notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Sep 24, 2013 6:29 pm

iriseth wrote: @Notro, thanks, do you have a pin matching diagram for the "witout the touchscreen" version you specify above?
one more thing: do you happen to have a PCB diagram for SPI interface circuit?
No, sorry I don't. The SPI circuit I use when testing the fb_ssd1289 driver is still on a solderless breadboard :-)

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 9:27 am

thanks Notro,
can you please give me a pin matching for the touch-less version you mentioned earlier?
I appreciate much.

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 4:39 pm

Code: Select all

Display     fbtft pin name
--------------------------------
RESET          reset
RS             dc
WR              wr
DB00-15      db00-15

RD connected to 3.3v
CS connected to GND
VCC 5v
LED-A 5v or 3.3V

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 4:40 pm

THANK YOU SIR! but I'm afraid this is not the answer to my question.
how can I wire the display directly to the raspi without this SPI interface?
you mentioned above that its possible. I have these pins on the raspi:

3.3v
5v
GPIO2
5V
GPIO3
GND
GPIO4 (GPCLK0)
GPIO14 (UART_TxD)
GND
GPIO15 (UART_RxD)
GPIO17
GPIO18 (PCM_CLK)
GPIO27
GND
GPIO22
GPIO23
3.3v
GPIO24
GPIO10 (SPI0_MOSI)
GND
GPIO9 (SPIO_MISO)
GPIO25
GPIO11 (SPIO_SCLK)
GPIO08 (SPIO_CE0_N)
GND
GPIO17 (SPIO_CE1_N)

how can I plug the display? I assume your reply is to connect the raspi and the display to the SPI interface. am I right?
sorry for the lots of questions.

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 4:48 pm

so I need to match somehow this:

display
1 GND
2 VCC
3 NC
4 RS
5 WR
6 RD
7 DB8
8 DB9
9 DB10
10 DB11
11 DB12
12 DB13
13 DB14
14 DB15
15 CS
16 F CS
17 REST
18 NC
19 LED-A
20 NC
21 DB0
22 DB1
23 DB2
24 DB3
25 DB4
26 DB5
27 DB6
28 DB7
29 D_CLK
30 D_CS
31 D_DIN
32 D_BUSY
33 D_OUT
34 D_PENIRQ
35 SD_OUT (F_SI)
36 SD_SCK (F_SCK)
37 SD_DIN (F_SO)
38 SD_CD
39 F_WP
40 F_HOLD

to this:

raspi
1 3.3v
2 5v
3 GPIO2
4 5V
5 GPIO3
6 GND
7 GPIO4 (GPCLK0)
8 GPIO14 (UART_TxD)
9 GND
10 GPIO15 (UART_RxD)
11 GPIO17
12 GPIO18 (PCM_CLK)
13 GPIO27
14 GND
15 GPIO22
16 GPIO23
17 3.3v
18 GPIO24
19 GPIO10 (SPI0_MOSI)
20 GND
21 GPIO9 (SPIO_MISO)
22 GPIO25
23 GPIO11 (SPIO_SCLK)
24 GPIO08 (SPIO_CE0_N)
25 GND
26 GPIO17 (SPIO_CE1_N)

can you please help on this? I know I'm a little bit hardly understanding :) and I first like to try the without-touch panel version, what you mentioned can be possible without the SPI gpio port extender.
thanks in advance,

guzunty
Posts: 276
Joined: Mon Jan 14, 2013 10:13 am

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 5:28 pm

An important question:

Do you want to solder extra pins into the Raspberry Pi?

If you are not comfortable doing this, then you must build an SPI circuit or choose a different display.
Guzunty: A fully programmable peripheral you build yourself! https://github.com/Guzunty/Pi/wiki

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 6:09 pm

hi guzunty, why not? I have the necessary tools for that but I expected that its not needed.
do you have a diagram of where to solder pins to the pi and how to wire them?
finally I will build that spi circuit for sure since I have 99% of the parts for it. (waiting for the rest from china -ebay-)

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 7:08 pm

Code: Select all

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
This maps fbtft pin names to gpios.

Example: RESET on the display is called 'reset' in fbtft and is assigned gpio 29. gpio 29 is on the P5 header which by the way is not populated. There is not enough gpios available on the P1 header.

See P5 header info here: http://elinux.org/RPi_Low-level_periphe ... .28GPIO.29

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Sep 25, 2013 7:53 pm

thank you! hope it will be enough for me to generate a pin matching list I wanted :)
sorry for my hard understanding. just learning.

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Oct 02, 2013 9:57 am

Notro, one question: I've created the SPI interface board on a humblePI breadboard.
I have one question: assuming that all the IC's needs to get their Vcc vired to +5v or +3.3v as well right
also, where's 'CS' connecting on the raspi side? you shown CSn but I don't really understand.
also, do you think I can supply this SPI circuit from the raspi's 5v or recommended to create an external power supply?

thanks in advance,

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Thu Oct 03, 2013 1:04 pm

I connect Vcc to 3.3V on the Raspi header.
CSn (chip select) is a bit confusing I admit, they are called CE0 and CE1 (chip enable) on the Raspi.
I have updated the circuit to show CE0.

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Mon Oct 07, 2013 8:04 am

awesome. Thank you.

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Mon Oct 28, 2013 10:48 am

hi Notro. finally arrived my 74hc04's. can you please be a bit more specific on how to wire it?
which pin to where? one more stupid question: vcc's are going to vcc and gnd's to gnd of all ic's right? asking just because it's not shown anywhere.
thanks much in advance.

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Mon Oct 28, 2013 4:14 pm

Sorry, I don't have time to write a wiring table with pin numbers.
Use the schematic: https://github.com/notro/fbtft/wiki/SPI ... ce-circuit and IC datasheets to find what the pin numbers are.

User avatar
mwilliams03
Posts: 117
Joined: Mon Oct 29, 2012 2:56 pm
Contact: Website

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Oct 29, 2013 2:42 am

iriseth wrote:hi Notro. finally arrived my 74hc04's. can you please be a bit more specific on how to wire it?
which pin to where? one more stupid question: vcc's are going to vcc and gnd's to gnd of all ic's right? asking just because it's not shown anywhere.
thanks much in advance.
Look here;
http://marks-space.com/2013/05/23/raspb ... h-control/
Image
It has the complete wiring details for the Sainsmart 3.2
Mark -- OzzMaker.com -- Creator of PiScreen - A 3.5" TFT for the Rasspberry Pi and BerryIMU.

facundo_10
Posts: 7
Joined: Mon Oct 28, 2013 4:49 am

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Oct 29, 2013 5:35 am

Dear Notro, i have seen that you have some knowledge in adapting and make touchscreen drivers work. I am working in a project similar ..

http://www.raspberrypi.org/phpBB3/viewt ... 44&t=59393

If you have a little of time, i can really use some of your knowledge to get my project going on.. I have so many questions, fortunately i have found which it seems to be a workable driver from SSD company. I need some help to adapt GPIO of that driver to my PI, some interrupts maybe need to be adapted too, and try to compile and get that module running. I have read a lot, but still i have not find a relative easy way on how to load the module, and test..

I will appreciate very much your help

Thanks very much
Best Regards
Facundo

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Oct 29, 2013 8:03 am

mwilliams03 wrote:
iriseth wrote:hi Notro. finally arrived my 74hc04's. can you please be a bit more specific on how to wire it?
which pin to where? one more stupid question: vcc's are going to vcc and gnd's to gnd of all ic's right? asking just because it's not shown anywhere.
thanks much in advance.
Look here;
http://marks-space.com/2013/05/23/raspb ... h-control/
Image
It has the complete wiring details for the Sainsmart 3.2
hi Notro, thanks, yesterday I've figured it out. I was just too lazy (dumb?) to think a little bit it in the first time. I will wire the display today finally and see if it will work. I see some discrete stuff like a 10k resistor what I can't see in your diagram. I will finally do the one you draw hope it will work :) thanks again for your lots of help!

iriseth
Posts: 20
Joined: Sat Aug 24, 2013 4:03 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Sun Nov 03, 2013 4:57 pm

hi Notro, got lost again. I've created the circuit, but still blank white screen what I see. can you pls tell me the module options if I'm using this additional interface you sent the drawing of? for a sainsmart32. I know I drive you crazy. have a great day.

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Sun Nov 03, 2013 5:08 pm

:)

sudo modprobe fbtft_device name=sainsmart32_spi

This is the default settings: https://github.com/notro/fbtft/blob/mas ... ice.c#L499

I created a test script when building my own circuit. It showed me that I had swapped to bus wires.
https://github.com/notro/fbtft/wiki/SPI ... est-script

JJR2
Posts: 7
Joined: Tue Jan 15, 2013 6:39 am

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Feb 25, 2014 10:07 pm

Sorry to jump in late. It looks like the 1289 has a built-in shift register for serial input data. Is it possible to use this capability on the TFT_320QVT instead of external shift registers?

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Wed Feb 26, 2014 4:35 pm

JJR2 wrote:Sorry to jump in late. It looks like the 1289 has a built-in shift register for serial input data. Is it possible to use this capability on the TFT_320QVT instead of external shift registers?
The SSD1289 controller has support for SPI, but the pins are not brought out on the 40-pin header on the breakout board. Probably not on the flex cable from the display panel either.

oneblade
Posts: 3
Joined: Mon Nov 24, 2014 4:13 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Mon Nov 24, 2014 4:26 pm

Hi
Sorry for poor English

I have a problem running ssd1289 display.
I have exactly this:
http://www.sainsmart.com/sainsmart-3-2- ... -2560.html
The software is loaded:
2014-06-20-wheezy-raspbian-2014-07-25-fbtft-master-firmware
SPI interface circuit:
http://i0.wp.com/ozzmaker.com/wp-conten ... aticV2.png

Software with ready kernel and modules "valdodov" available here:
http://valdodov.com/index.php?show=hard ... =1&lang=en
There is no problem. LCD will start from the beginning, but he wanted me to 2014-06-20-wheezy-raspbian-2014-07-25-fbtft-master-firmware and, unfortunately, in any configuration does not work. I tested different configurations. The current shown below. How to run this lcd?

Code: Select all

 dmesg | grep fb
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x10 bcm2708.serial=0xf9f799ae smsc95xx.macaddr=B8:27:EB:F7:99:AE bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000]       .init : 0xc05d7000 - 0xc05fbd94   ( 148 kB)
[    7.041350] Freeing unused kernel memory: 144K (c05d7000 - c05fb000)
[  189.816803] fbtft_device:  SPI devices registered:
[  189.816850] fbtft_device:      spidev spi0.0 500kHz 8 bits mode=0x00
[  189.816868] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[  189.816877] fbtft_device:  'fb' Platform devices registered:
[  189.816897] fbtft_device:      bcm2708_fb id=-1 pdata? no
[  189.816962] fbtft_device: Deleting spi0.0
[  189.817506] fbtft_device:  GPIOS used by 'sainsmart32_spi':
[  189.817530] fbtft_device:    'reset' = GPIO17
[  189.817541] fbtft_device:    'dc' = GPIO4
[  189.817554] fbtft_device:    'wr' = GPIO5
[  189.817564] fbtft_device:    'cs' = GPIO15
[  189.817574] fbtft_device:    'db00' = GPIO21
[  189.817583] fbtft_device:    'db01' = GPIO22
[  189.817593] fbtft_device:    'db02' = GPIO23
[  189.817602] fbtft_device:    'db03' = GPIO24
[  189.817611] fbtft_device:    'db04' = GPIO25
[  189.817620] fbtft_device:    'db05' = GPIO26
[  189.817629] fbtft_device:    'db06' = GPIO27
[  189.817639] fbtft_device:    'db07' = GPIO28
[  189.817647] fbtft_device:    'db08' = GPIO7
[  189.817656] fbtft_device:    'db09' = GPIO8
[  189.817665] fbtft_device:    'db10' = GPIO9
[  189.817677] fbtft_device:    'db11' = GPIO10
[  189.817687] fbtft_device:    'db12' = GPIO11
[  189.817696] fbtft_device:    'db13' = GPIO12
[  189.817705] fbtft_device:    'db14' = GPIO13
[  189.817714] fbtft_device:    'db15' = GPIO14
[  189.817723] fbtft_device:    'led' = GPIO19
[  189.817731] fbtft_device:  SPI devices registered:
[  189.817745] fbtft_device:      spidev spi0.1 500kHz 8 bits mode=0x00
[  189.817758] fbtft_device:      fb_ssd1289 spi0.0 16000kHz 8 bits mode=0x00
[  190.058906] graphics fb1: fb_ssd1289 frame buffer, 240x320, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 16 MHz


notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Thu Dec 04, 2014 4:39 am

This is valdodovs circuit, and requires his driver.

This interface circuit doesn't insert control signals into the datastream, and is supported by FBTFT: https://github.com/notro/fbtft/wiki/SPI ... ce-circuit

SunnyAcres
Posts: 4
Joined: Thu Nov 21, 2013 7:18 pm

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Sun Dec 07, 2014 7:25 pm

Has anyone tried this display on an A plus or B plus directly? Are there enough GPIO pins? Would it be east to modify the driver? Any other considerations?

notro
Posts: 686
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: Sainsmart 3.2" (SSD1289) framebuffer driver

Tue Dec 09, 2014 4:50 pm

I have tried on a Model B rev.2. I didn't work very well, because the interface was too fast or noisy. By default FBTFT writes directly to the hardware gpio registers for increased speed. When I hacked FBTFT to use gpiolib, which is slower, it worked.
I really should have made that choice runtime configurable...

Return to “Other projects”

Who is online

Users browsing this forum: No registered users and 28 guests