jaybee007
Posts: 20
Joined: Thu May 29, 2014 8:49 pm

4.3 and 7 ssd1963 screen success with fbtft

Mon Aug 04, 2014 1:11 pm

Hi all,
I've been looking around, and I can see many posts on people wanting to know how to get these screens going on they're pi.
With the help of the very talented notro using his fbtft .
( https://github.com/notro/fbtft/wiki )
I've managed to run both my ssd1963 screens (4.3",7") and I'm sure the 5" will work too but I don't have one to play with.
So I thought I'd write a basic how to, To save other people some time.
Credit goes to Derek at guzunty pi for his great little module.
( https://github.com/Guzunty/Pi/wiki )
Also credit goes to Takenover83 for his ultraslim raspbian which is the easiest way to get xbmc,emulationstation and a desktop on your pi.
( http://www.raspberrypi.org/forums/viewtopic.php?t=59590 )
You can use notro's image if you are not interested in xbmc or emulationstation and from here.
http://tronnes.org/downloads/2014-06-20 ... rmware.zip
Or you can start with a fresh image of ultraslim raspbian available from here. http://www.mediafire.com/download/454ji ... limv1.6.7z
(Skip steps #3,#4,#7 and #8 if you use notro's image)
#1: Flash image with something like windisk32imager or dd.
#2: "raspi-config" will run on the first boot. Make sure to resize your file system, set regional settings, time-zone, etc..
#3: Do not reboot from raspi-config. Instead select No if it ask to reboot. This allows the first boot script to finish. (which will reboot for you)
#4: Install the rpi-update firmware by notro by typing :
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
Followed by : sudo reboot
#5: Enter the screen in to your /etc/modules by typing:
sudo nano /etc/modules
Scroll down to the bottom and type :
4.3" ssd1963 (parallel no touch)
flexfb width=480 height=272 buswidth=16 init=-1,0xE2,0x2d,0x02,0x04,-1,0xE0,0x01,-2,1,-1,0xE0,0x03,-2,5,-1,0x01,-2,5,-1,0xE6,0x00,0xff,0xbe,-1,0xB0,0x20,0x00,0x01,0xDF,0x01,0x0F,0x00,-2,5,-1,0xB4,0x02,0x13,0x00,0x2B,0x0A,0x00,0x08,0x00,-1,0xB6,0x01,0x20,0x00,0x0C,0x0A,0x00,0x04,-1,0x36,0x00,-1,0xF0,0x03,-2,5,-1,0x29,-1,0xBE,0x06,0xf0,0x01,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0xB8,0x00,0x01,-1,0xBA,0x00,-3
fbtft_device name=flexpfb debug=3 gpios=reset:29,dc:2,wr:31,db00:11,db01:9,db02:10,db03:22,db04:27,db05:17,db06:4,db07:3,db08:7,db09:8,db10:25,db11:24,db12:23,db13:18,db14:14,db15:15 rotate=0

4.3" ssd1963 (spi with touch using a Guzunty pi)
ads7846

ads7846_device swap_xy=1 cs=1 speed=2000000 model=7846 x_min=300 x_max=3800 y_min=700 y_max=3400 x_plate_ohms=60 pressure_max=255 gpio_pendown=25 keep_vref_on=1

flexfb width=480 height=272 regwidth=16 init=-1,0xE2,0x2d,0x02,0x04,-1,0xE0,0x01,-2,1,-1,0xE0,0x03,-2,5,-1,0x01,-2,5,-1,0xE6,0x00,0xff,0xbe,-1,0xB0,0x20,0x00,0x01,0xDF,0x01,0x0F,0x00,-2,5,-1,0xB4,0x02,0x13,0x00,0x2B,0x0A,0x00,0x08,0x00,-1,0xB6,0x01,0x20,0x00,0x0C,0x0A,0x00,0x04,-1,0x36,0x00,-1,0xF0,0x03,-2,5,-1,0x29,-1,0xBE,0x06,0xf0,0x01,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0xB8,0x00,0x01,-1,0xBA,0x00,-3
fbtft_device name=flexfb gpios=reset:22,dc:27 rotate=0 verbose=0 speed=32000000 fps=30 txbuflen=0

7" ssd1963 (parallel no touch)
flexfb width=800 height=480 buswidth=16 init=-1,0xE2,0x23,0x02,0x04,-1,0xE0,0x01,-2,10,-1,0xE0,0x03,-2,10,-1,0x01,-2,100,-1,0xE6,0x04,0x93,0xE0,-1,0xB0,0x00,0x00,0x03,0x1f,0x01,0xdf,0x00,-1,0xB4,0x03,0xA0,0x00,0x2E,0x30,0x00,0x0f,0x00,-1,0xB6,0x02,0x0D,0x00,0x10,0x10,0x00,0x08,-1,0xBA,0x05,-1,0xB8,0x07,0x01,-1,0x36,0x00,-1,0xf0,0x03,-2,10,-1,0x29,-1,0xBE,0x06,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0x2C,-3
fbtft_device name=flexpfb debug=3 gpios=reset:29,dc:2,wr:31,db00:11,db01:9,db02:10,db03:22,db04:27,db05:17,db06:4,db07:3,db08:7,db09:8,db10:25,db11:24,db12:23,db13:18,db14:14,db15:15 rotate=0

7" ssd1963 (spi with touch using a Guzunty pi)

ads7846

ads7846_device swap_xy=1 cs=1 speed=2000000 model=7846 x_min=300 x_max=3800 y_min=700 y_max=3400 x_plate_ohms=60 pressure_max=255 gpio_pendown=25 keep_vref_on=1

flexfb width=800 height=480 buswidth=16 init=-1,0xE2,0x23,0x02,0x04,-1,0xE0,0x01,-2,10,-1,0xE0,0x03,-2,10,-1,0x01,-2,100,-1,0xE6,0x04,0x93,0xE0,-1,0xB0,0x00,0x00,0x03,0x1f,0x01,0xdf,0x00,-1,0xB4,0x03,0xA0,0x00,0x2E,0x30,0x00,0x0f,0x00,-1,0xB6,0x02,0x0D,0x00,0x10,0x10,0x00,0x08,-1,0xBA,0x05,-1,0xB8,0x07,0x01,-1,0x36,0x00,-1,0xf0,0x03,-2,10,-1,0x29,-1,0xBE,0x06,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0x2C,-3
fbtft_device name=flexfb gpios=reset:22,dc:27 rotate=0 verbose=0 speed=48000000 fps=50 txbuflen=0
(Speeds 64MHz and 82MHz are also possible )
(7" screen cannot be ran from the pi's 5v pin so a work around is need. I used a 5v regulator to achieve this. I will add some pictures it's very simple.)
#6: Once you have entered the code for your setup. To save it hold ctrl and press x. Then you will be prompted to enter y or n press y then enter.
#7: install fbcp to copy the framebuffer buy typing:
Cd
sudo apt-get install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
#8: Add fbcp to your /etc/rc.local by typing:
sudo nano /etc/rc.local
The add /usr/local/bin/fbcp & before exit 0
Save it as we did before with ctrl + x,
Then sudo reboot .

(If you use notro's image and want to see what's going on when your pi boots up.)
Setup a boot console by typing:
sudo nano /boot/cmdline.txt
Then scroll to the end of the line of txt and add:
fbcon=map:10 fbcon=font:VGA8x8
Then save it with ctrl + x
A guide a user has made for ultraslim
UltraSlim Guide by Rionoskae
User Rionoskae has created a excellent guide for using UltraSlim here.
http://everyday-tech.com/the-complete-g ... -pi-image/

I will update this later as I'm sure there are many typo's in there and to add pictures.

Video of the 7" running @64MHz :
https://m.youtube.com/watch?v=wBoRlrDtkwI

Video of the 7" running @82MHz :
http://www.youtube.com/watch?v=CKDNqlizkQk
Attachments
image.jpg
A couple of easy ways to get 5v to the 7" screen.
image.jpg (18.33 KiB) Viewed 7224 times

younatan
Posts: 17
Joined: Sat Oct 25, 2014 7:30 am

Re: 4.3 and 7 ssd1963 screen success with fbtft

Tue Jan 13, 2015 3:55 am

Hi I want to access 5 inch ssd1963 tft. I am using raspberry pi B+ because there are more gpios. I have following the reference in notro tft but there is no result. Each times I connect TFT LCD I can't access my usb so I maybe it is supply problem. Is raspberry supply not strong enough to supply tft? thanks for any reply
I also have use this code :
flexfb width=480 height=272 buswidth=16 init=-1,0xE2,0x2d,0x02,0x04,-1,0xE0,0x01,-2,1,-1,0xE0,0x03,-2,5,-1,0x01,-2,5,-1,0xE6,0x00,0xff,0xbe,-1,0xB0,0x20,0x00,0x01,0xDF,0x01,0x0F,0x00,-2,5,-1,0xB4,0x02,0x13,0x00,0x2B,0x0A,0x00,0x08,0x00,-1,0xB6,0x01,0x20,0x00,0x0C,0x0A,0x00,0x04,-1,0x36,0x00,-1,0xF0,0x03,-2,5,-1,0x29,-1,0xBE,0x06,0xf0,0x01,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0xB8,0x00,0x01,-1,0xBA,0x00,-3
fbtft_device name=flexpfb debug=3 gpios=reset:29,dc:2,wr:31,db00:11,db01:9,db02:10,db03:22,db04:27,db05:17,db06:4,db07:3,db08:7,db09:8,db10:25,db11:24,db12:23,db13:18,db14:14,db15:15 rotate=0

younatan
Posts: 17
Joined: Sat Oct 25, 2014 7:30 am

Re: 4.3 and 7 ssd1963 screen success with fbtft

Wed Jan 28, 2015 12:31 am

Hi jaybee007. I am using spi with raspberry pi with this tutorial file:///C:/Users/Kira%20Yamato/Desktop/SPI%20interface%20circuit%20%C2%B7%20notro%20fbtft%20Wiki.html . I have tested wiring with the code and it is fine. But now I am confused to try it with ssd1963. I tried the same code ads7846

ads7846_device swap_xy=1 cs=1 speed=2000000 model=7846 x_min=300 x_max=3800 y_min=700 y_max=3400 x_plate_ohms=60 pressure_max=255 gpio_pendown=25 keep_vref_on=1

flexfb width=800 height=480 buswidth=16 init=-1,0xE2,0x23,0x02,0x04,-1,0xE0,0x01,-2,10,-1,0xE0,0x03,-2,10,-1,0x01,-2,100,-1,0xE6,0x04,0x93,0xE0,-1,0xB0,0x00,0x00,0x03,0x1f,0x01,0xdf,0x00,-1,0xB4,0x03,0xA0,0x00,0x2E,0x30,0x00,0x0f,0x00,-1,0xB6,0x02,0x0D,0x00,0x10,0x10,0x00,0x08,-1,0xBA,0x05,-1,0xB8,0x07,0x01,-1,0x36,0x00,-1,0xf0,0x03,-2,10,-1,0x29,-1,0xBE,0x06,0xf0,0x00,0x00,-1,0xd0,0x0d,-1,0x2C,-3
fbtft_device name=flexfb gpios=reset:22,dc:27 rotate=0 verbose=0 speed=48000000 fps=50 txbuflen=0 but got no result on display. Did I make mistakes somewhere? thanks for reply. I am using notro image

jaybee007
Posts: 20
Joined: Thu May 29, 2014 8:49 pm

Re: 4.3 and 7 ssd1963 screen success with fbtft

Tue Feb 17, 2015 9:15 pm

hi, younatan
The ADS7846 part of the code is for the touch screen.
You need to assign the gpios like this (gpios=reset:29,dc:2,wr:31,db00:11,db01:9,db02:10,db03:22,db04:27,db05:17,db06:4,db07:3,db08:7,db09:8,db10:25,db11:24,db12:23,db13:18,db14:14,db15:15 rotate=0 )
db is the connection on the screen side and the number after the : is the gpio hope this helps

Akex
Posts: 1
Joined: Sun Mar 01, 2015 8:08 pm

Re: 4.3 and 7 ssd1963 screen success with fbtft

Sun Mar 01, 2015 8:12 pm

Hy jaybee

Just one question
Why i you use touch screen you need a guzunty pi ? I must use it ?
Thanks lot of
Best regards
Alex

Return to “Graphics, sound and multimedia”