CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Open smart 2.0 TFT with pi zero

Tue Apr 10, 2018 12:37 am

Hey everyone, I'm new to pi's but not new to Linux, or microcontrollers. I've just gotten my first pi, just the pi zero, and I was wondering if I couldn't get this screen working with it.

The screen is here: http://www.dx.com/p/open-smart-2-0-touc ... swGo5MpA0N

But I was unable to use it with an Arduino due to the 3.3v logic levels, and needing 13 level shifters to compensate for this. I would imagine the drivers don't even exist for Linux/pi's, but I would still very much be interested in developing them myself, if possible (because I could also then use it with a third development board, called the CHIP), but if I would also need level shifters to use it with the pi, I would be up for that challenge as well. Thanks!

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Sun Apr 15, 2018 7:29 pm

Bump

User avatar
DougieLawson
Posts: 32380
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Open smart 2.0 TFT with pi zero

Sun Apr 15, 2018 7:36 pm

Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Sun Apr 15, 2018 11:11 pm

Wonderful! Will do, thank you!

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Mon Apr 16, 2018 12:22 am

Thanks! That was just what I was looking for. Unfortunately, im still just not so sure how the pins on the board I have correlate to the ili9225's. I know the SD pins can just be disregarded, but as for the standard SPI pins they arent really labelled (except for cs, res, led, gnd, and vcc 3.3v) So Im not sure whats supposed to be mosi, miso, or sck. Any help would be greatly appreciated, thanks!

Pins are as follows:
GND
3V3
CS
RS (x-)
WR(y+)
RD
RST
LED
DB0
DB1
DB2
DB3
DB4
DB5
DB6(x+)
DB7(y-)

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 12:52 am

Sorry, since I know how SPI works, I'm pretty sure I can just figure out the wiring by process of elimination (as I already know what the SPI pins are on the zero), I can just try to figure out what the unknown pins are on the screen by trying a few different configurations.

However, I'm still pretty green at using Linux, so I'm not entirely sure how to install the drivers you've provided. Sorry for such a beginner question, I've just exhausted all of my search results and I'm still unsure. But I am already familiar with some sudo commands (which I know is still a pretty gross generalisation), and I would imagine installing them has something to do with sudo commands on the terminal?

Again, sorry for such basic questions, but thanks for the info so far! Much appreciated

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 1:19 am

Nevermind, now I see the steps on the readme, just need to install something else real quick then I should have it. Still need to figure out the wiring though, but will update soon with any progress. Thanks!

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 1:29 am

Okay, seems I was mistaken yet again- the ili9225 driver says it relies on one of two drivers, and im trying to use the faster one (bcm2835), but even after installing (version 1.49), the following line of the ili9225 driver readme says 'bcm2835.h: no such file or directory' and then 'compilation terminated', then just puts me back in the ili9225spi_rpi directory.

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 1:37 am

Okay, terribly sorry for the spam, but I've gotten everything successfully installed, so now for the hardware test. Then I'll need to figure out how to make it display the GUI to the screen on boot. But for now, the hardware.

Quick edit: alright, I'm still entirely lost on the hardware side, just can't figure out what the clk, mosi, and miso are (but in the case of this driver, it seems to exclude miso in place of dc with cs), but im still unsure of this as well. Any help is greatly appreciated, thanks!

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 5:45 am

Sorry, now I see that what I'm using is an 8080-8 parallel display, so now looking more into how to use them

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 17, 2018 7:04 pm

Nevermind, still cant figure this out

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Wed Apr 18, 2018 12:42 am

Okay, between the documentation for the st7775 hardware that I was sent by the supplier (and told it was based off of this), the ili9225 pinouts, and the pi zero pinouts, my connections are as follows:

Ili9225. 2.0. Pi zero. Actual
---------------------------------------------------------------------
3.3v. 3v3. 3.3v(pin 1). 3v3
LED. LED. GND(pin 9). GND
SCK. WR. GPIO 14(pin 23). SCLK
D/C. RS. GPIO 8(pin 3). SDA1(i2c)
or GPIO 13(pin21) MISO(SPI)
RES. RST. GPIO 9(pin 5) SCL1(i2c)
MOSI. RD. GPIO 12(pin19) MOSI(SPI)
CS. CS. GPIO 10(pin 24). CE0(SPI)
GND. GND. pin 6. GND


But after I followed the read me and tried the bcm2835 library, and executed the command

Code: Select all

cc -o demo demo.c fontx.c ili9225.c -lcbm2835 -lm 

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Wed Apr 18, 2018 12:48 am

(sorry, posting both from my phone and pi itself)

And this returns:

Code: Select all

demo.c: In function ‘main’:
demo.c:38:3: warning: implicit declaration of function ‘Fontx_init’ [-Wimplicit-function-declaration]
   Fontx_init(fxG16,"./fontx/ILGH16XB.FNT","./fontx/ILGZ16XB.FNT");
   ^~~~~~~~~~
demo.c:263:3: warning: implicit declaration of function ‘srand’ [-Wimplicit-function-declaration]
   srand( (unsigned int)time( NULL ) );
   ^~~~~
demo.c:263:24: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
   srand( (unsigned int)time( NULL ) );
                        ^~~~
demo.c:265:9: warning: implicit declaration of function ‘rand’ [-Wimplicit-function-declaration]
     red=rand()%255;
         ^~~~
ili9225.c: In function ‘lcdDrawSJISChar’:
ili9225.c:557:12: warning: ‘return’ with no value, in function returning non-void
   if (!rc) return;
            ^~~~~~
ili9225.c:543:5: note: declared here
 int lcdDrawSJISChar(FontxFile *fx, uint16_t x,uint16_t y,uint16_t sjis,uint16_t color) {
     ^~~~~~~~~~~~~~~
I'm just not sure just what this means, if it was supposed to execute a demo or if I need to execute additional commands/how. Thanks!

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue Apr 24, 2018 5:27 am

Anyone? Been beating my head against a wall about this since my last post

koosthoe
Posts: 1
Joined: Fri Apr 27, 2018 6:48 pm

Re: Open smart 2.0 TFT with pi zero

Fri Apr 27, 2018 7:22 pm

I have been having the same problem. I have tried https://github.com/nopnop2002/ili9225spi_rpi and https://github.com/firnsy/BHack_Python_ILI9225. I have tried the Bhack_Python examples which are suppose to show images on the screen, but only a blank white screen appears. Trying the ili9225spi_rpi I get the same exact error code as you did. Any luck trying to get this to work? I feel like ive tried all of the very limited options available for this screen on RPi.

My RPi zero /w wiring
vcc - pin 17
gnd - pin 9
led - pin 12
clk - pin 23
sdi - pin 19
rs - pin 18
rst - pin 16
cs - pin 24

CatDadJynx
Posts: 14
Joined: Tue Apr 10, 2018 12:26 am

Re: Open smart 2.0 TFT with pi zero

Tue May 15, 2018 5:58 am

Hmm...anyone? Had more than enough projects to keep me busy in the meantime, but if we can figure a way to get this working that would be a great solution to finding cheap screens, as these are quite readily available online and a much cheaper alternative. Thanks!

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 5 guests