Can a raspberry pi connect to TFT LCD?


11 posts
by Eleenwhite » Thu Aug 23, 2012 9:35 am
I had a raspberry pi on hand, and now I am wondering if it can be connected to a 3.2" TFT LCD touch panel.
http://www.sainsmart.com/home-page-view ... -2560.html
If yes, that would be wonderful. It's like a homemade ipad. :lol:
I am following:
http://www.whence.com/rpi/
http://marks-space.com/
Posts: 12
Joined: Mon Jul 09, 2012 2:34 am
by davethewave » Thu Aug 23, 2012 2:46 pm
I hope so!
it seems that a similar display can be attached:
http://www.youtube.com/watch?v=nMQJmVDgAl8
bye
Posts: 1
Joined: Thu Aug 23, 2012 2:44 pm
by Eleenwhite » Wed Aug 29, 2012 3:44 am
Can this 1.8" SPI LCD be connected to RPI?
I am following:
http://www.whence.com/rpi/
http://marks-space.com/
Posts: 12
Joined: Mon Jul 09, 2012 2:34 am
by jamesh » Wed Aug 29, 2012 5:59 am
At this stage, any panel would need to connect either to the HDMI or VGA port. Although there is a dedicated TFT connector on the board it's not currently available for use. Foundation hopes to sell/promote a tested TFT once all tht other stuff is done!
Soon to be employed engineer - Hurrah! Volunteer at the Raspberry Pi Foundation, helper at PiAcademy September 2014.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11926
Joined: Sat Jul 30, 2011 7:41 pm
by Michael Meissner » Wed Aug 29, 2012 12:10 pm
If you just want to use a display without all of the challenge of getting a display to work from the various pins, you might want to search around for small displays that take either composite or HDMI inputs. Adafruit.com has several displays that take composite. I have a MP4 player from JXD that is fairly small and does video input that I've been meaning to use when I get to the r-pi.
Posts: 48
Joined: Tue Jan 17, 2012 1:42 pm
by darryl » Tue Nov 27, 2012 11:19 pm
Eleenwhite wrote:Can this 1.8" SPI LCD be connected to RPI?


Yes it's ST7735 based like the Adafruit ones. I've got one with an Sainsmart Arduino UNO from China, comes with the ST7735 code for the Arduino by LadyAda.
Posts: 12
Joined: Mon Nov 26, 2012 10:49 pm
by pygmy_giant » Wed Nov 28, 2012 12:28 am
wow - thats good for the price
Posts: 1569
Joined: Sun Mar 04, 2012 12:49 am
by SunshineSunlight » Tue Feb 05, 2013 7:30 am
by Eleenwhite » Wed Aug 29, 2012 3:44 am
Can this 1.8" SPI LCD be connected to RPI?

This is a video about it.
http://www.youtube.com/watch?v=-pP4ee08aJ0.
And this this a post details Adafruit 1.8 LCD and SainSmart 1.8 LCD
http://www.whence.com/rpi/
Posts: 8
Joined: Tue Feb 05, 2013 7:19 am
by notro » Tue Feb 05, 2013 10:11 am
I have started a project writing framebuffer drivers for small TFT LCDs. I have written a helper module that greatly simplifies writing such a driver. That is if the display is RGB565 and uses SPI. I have ordered two more modules that I will try and make drivers for:
* Nokia 5110/3310 monochrome LCD: http://adafruit.com/category/63 (challenge: monochrome, 1 bit per pixel)
* ITDB02-2.8: http://imall.iteadstudio.com/display/tf ... 19009.html (challenge: parallel databus, no SPI)

Project page: https://github.com/notro/fbtft
Wiki: https://github.com/notro/fbtft/wiki
Currently the wiki is just my own notes made pretty.
Posts: 510
Joined: Tue Oct 16, 2012 6:21 pm
Location: Norway
by texy » Tue Feb 05, 2013 3:15 pm
notro wrote:I have started a project writing framebuffer drivers for small TFT LCDs. I have written a helper module that greatly simplifies writing such a driver. That is if the display is RGB565 and uses SPI. I have ordered two more modules that I will try and make drivers for:
* Nokia 5110/3310 monochrome LCD: http://adafruit.com/category/63 (challenge: monochrome, 1 bit per pixel)
* ITDB02-2.8: http://imall.iteadstudio.com/display/tf ... 19009.html (challenge: parallel databus, no SPI)

Project page: https://github.com/notro/fbtft
Wiki: https://github.com/notro/fbtft/wiki
Currently the wiki is just my own notes made pretty.



Note that the Nokia type display has hardware SPI python code already, but if you can create a faster C++ driver for it, that would be awesome ;-)
viewtopic.php?f=32&t=9814

Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2410
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by notro » Tue Feb 05, 2013 4:53 pm
Note that the Nokia type display has hardware SPI python code already

Yes I was aware of that. The driver I will make is a framebuffer driver, a video driver.

It's the same type of driver that gives video output on the PI:
Code: Select all
# Show info about /dev/fb0
fbset -i

mode "656x416"
    geometry 656 416 656 416 16
    timings 0 0 0 0 0 0 0
    rgba 5/11,6/5,5/0,0/16
endmode

Frame buffer device information:
    Name        : BCM2708 FB
    Address     : 0x4c006000
    Size        : 545792
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 1312
    Accelerator : No

This the Adafruit 2.2" display supported by fbtft:
Code: Select all
fbset -i -fb /dev/fb1

mode "176x220"
    geometry 176 220 176 220 16
    timings 0 0 0 0 0 0 0
    nonstd 1
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        : adafruit22fb
    Address     : 0
    Size        : 77440
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 352
    Accelerator : No


It will fun to see if I can play video on the Nokia display using mplayer :)
Posts: 510
Joined: Tue Oct 16, 2012 6:21 pm
Location: Norway