Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

2.8 TFT with Raspberry Init sequences
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

2.8 TFT with Raspberry Init sequences

by SpaceZ on Sun Jun 21, 2020 2:43 pm

Hi!
First, I would like to thank you for every help that we can get here and for the sharing experiences it is really appreciated! Each time I need something I could have found here on that forum and that is really nice.
Now I have a question about a TFT 2.8 old version (ILI9325 I guess) I purchased on the store. (It was a long time ago already)
It is the one without the SPI just the 8-bit analogue and I'm trying to make it work with a raspberry 2.
I found different tutorial on the net, but I'm blocked at the init sequences (command is :
Code: Select all | TOGGLE FULL SIZE
sudo modprobe fbtft_device name=itdb28 custom rotate=90 bgr=1 buswidth=8 width=240 height=320 gpios=reset:17,dc:2,wr:3,cs:27,db00:21,db01:20,db02:16,db03:12,db04:1,db05:7,db06:8,db07:25 init=-1,0xb0,0x0,-1,0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x28,-1,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E,0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43,0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3

The screen is always showing me a whitescreen with flickering when triyng to attempt any writing.
My question is : Do you have the good init sequences (as i'm guessing this is not the really good one here)
Or
Do you have any information to share with me for trying to save me some time as if I come here, it's beacuse I'm stuck somewhere... ;)
Thanks for any help, really appreciated that for sure :)
Nicolas

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Mon Jun 22, 2020 6:59 am

Here a picture of what's happening :
[img]
IMG_2351.jpg
IMG_2351.jpg (740.05 KiB) Viewed 124 times

[/img]

The command used : sudo modprobe fbtft_device name=itdb28 gpios=reset:17,dc:2,wr:3,cs:27,db00:21,db01:20,db02:16,db03:12,db04:26,db05:7,db06:8,db07:25 (init sequences missing here)

And the trace inside dmesg :

Code: Select all | TOGGLE FULL SIZE
[  112.252729] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[  112.262594] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[  112.264616] bcm2708_fb soc:fb: soc:fb id=-1 pdata? no
[  112.264957] fbtft_device: GPIOS used by 'itdb28':
[  112.264971] fbtft_device: 'reset' = GPIO17
[  112.264978] fbtft_device: 'dc' = GPIO2
[  112.264984] fbtft_device: 'wr' = GPIO3
[  112.264993] fbtft_device: 'cs' = GPIO27
[  112.264999] fbtft_device: 'db00' = GPIO21
[  112.265007] fbtft_device: 'db01' = GPIO20
[  112.265013] fbtft_device: 'db02' = GPIO16
[  112.265021] fbtft_device: 'db03' = GPIO12
[  112.265027] fbtft_device: 'db04' = GPIO26
[  112.265034] fbtft_device: 'db05' = GPIO7
[  112.265040] fbtft_device: 'db06' = GPIO8
[  112.265048] fbtft_device: 'db07' = GPIO25
[  112.265088] bcm2708_fb soc:fb: soc:fb id=-1 pdata? no
[  112.265127] platform fb_ili9325.0: fb_ili9325 id=0 pdata? yes
[  112.278138] fb_ili9325: module is from the staging directory, the quality is unknown, you have been warned.
[  113.029748] graphics fb1: fb_ili9325 frame buffer, 240x320, 150 KiB video memory, 4 KiB buffer memory, fps=20

Every cable has been verified, everything should work but I don't know how to calculate the init sequences (and I don't know where to search too :/ )
Thanks for any help !

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by mikeysklar on Mon Jun 22, 2020 5:44 pm

Hi SpaceZ,

Can you give us a some clear shots of the wiring and any model identification for your 2.8" display?

mikeysklar
 
Posts: 1730
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:39 am

Hi,
Thank you for your interest, here you will find my wiring :
IMG_0023.jpg
IMG_0023.jpg (80.37 KiB) Viewed 119 times


Here the back face of the screen, so engenered by Adafruit ;) and I think it's based on ILI9325 (as instructed on the 335 product page) :
IMG_0022.jpg
IMG_0022.jpg (149.32 KiB) Viewed 119 times


Here the wiring on the RPi2 : (I guess it won't be really helpful I think ;) )
IMG_0021.jpg
IMG_0021.jpg (96.01 KiB) Viewed 119 times


I found this tuto and Tried to follow it : http://www.anya.bagge.no/hacks/2018/02/17/tft-panel/ but apparently she had to cope with an init sequences that I don't have with that screen and I could'nt find on the adafruit forum or even in datasheets provided here :
https://www.adafruit.com/product/335

I tried some command on the raspberry on the screen :
sudo tail --bytes 153600 /var/log/messages > /dev/fb1
yes | head --bytes 76800 > /dev/fb1
tail --bytes 153600 giraffe.565 > /dev/fb1

Still whitescreen...

Thanks fr any help, really appreciated!! :)

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:45 am

And for adding some iinformation :
- The brown cable on the raspberry picture not connected is not connected on the other side ^^
- /dev/fb1 is appearing in /dev when pushing the modprobe command, and as you can see the dmesg doesn't complain much so I guess the screen is recognized as a screen but I have found on others forum that a whitescreen means it's not initialized, so init squences required ?
Thanks

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:55 am

And another question came to my mind, I've just ask to myself is the RD (Read) pin on the screen should be connected ? Because on others forums they don't use it.
Not sure about that too.
Thanks again

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by mikeysklar on Tue Jun 23, 2020 6:24 pm

Your wiring on the Pi looks different than I would have expected based on the followon version of 2.8" display which we do have a guide for.

CF3ED478-63E8-4EA1-A925-80A8C32C6EBC.png
CF3ED478-63E8-4EA1-A925-80A8C32C6EBC.png (203.75 KiB) Viewed 116 times


https://learn.adafruit.com/user-space-s ... 2-8/wiring

Has the above link been the guide you have been following (roughly).

mikeysklar
 
Posts: 1730
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:27 pm

Thank you very much for looking into this, but what you are mentioning is the SPI version of that screen and I have the old 8 Bit analog one.
So the wiring is different because the one I have is not SPI friendly.
Thanks for your time anyway :)

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:42 pm

Sorry for replying again, but my answer didn't cover everything, I cannot connect to the link you gave me, it says authorization that maybe I don't have, but on the picture you put I can see on the right board of the screen that there are the 8 bit analog connection that I have. This is where I would like to connect. But I guess if you end up on the spi version it's because there is a good reason ;)

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 6:56 pm

On that topic viewtopic.php?t=38491, karantza succeeded to make it work, but I cannot contact him. That is exactly what I'm trying to do but what he wrote on that topic doesn't seem to be enough.

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 23, 2020 8:10 pm

All right then, I have done the same wiring as Alex Karantza, push the same option in the /boot/config.txt and modules. I deactivated i2c for being sure that there is nothing working on that GPIO, and even add the init sequences that I found on the net on the option line. Everything has been accepted by the raspberry, but now I have a flickering screen on the fb1 2.8 TFT when I move the mouse. So it is likely that screen is not correctly initialized.
I need that sequence I'm sure of that.

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Re: 2.8 TFT with Raspberry Init sequences

by SpaceZ on Tue Jun 30, 2020 6:20 am

Hi,
I verified my breakout screen 2.8 by making the tutorial from adafruit with an arduino that I had and it's working great.
IMG_0047.jpg
IMG_0047.jpg (673.61 KiB) Viewed 56 times


The serial port said :
Code: Select all | TOGGLE FULL SIZE
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 240x320
Found ILI9325 LCD driver
Benchmark                Time (microseconds)
Screen fill              1379560
Text                     201152
Lines                    1101048
Horiz/Vert Lines         144912
Rectangles (outline)     105056
Rectangles (filled)      3268732
Circles (filled)         943624
Circles (outline)        470000
Triangles (outline)      248784
Triangles (filled)       1729392
Rounded rects (outline)  220980
Rounded rects (filled)   3425892
Done!


So it's definitly an ILI9325

SpaceZ
 
Posts: 36
Joined: Sat Oct 06, 2012 5:21 pm

Please be positive and constructive with your questions and comments.