last day (17 days later) » 

4:30 PM
1
Q: How to connect ST7789 LCD to Raspberry Pi

ichirowI'm trying to connect to this LCD ( sry 4 japanese page:( use translate plz ) This monitor driver is ST7789, 7pins.[GND VCC SCL SDA RES DC BLK] And now I'm connecting to pi like this https://imgur.com/a/BFWUAXN I'm using Python_ST7789 library. The installation was success and The example progra...

 
Hi @ichirow, Welcome and nice to meet you. You might find my answer to the following question helpful to newbies getting started: How to connect ST7789 LCD to SPI Bus 1 as 2nd screen? raspberrypi.stackexchange.com/questions/104846/…. Please feel free to ask me more newbie questions! :)
Google does not know how to translate your LCD Japanese spec into English or Chinese, but I compare your IPS with what I am studying seems to be the same config. So I think my answer referred above should still be helpful to you. (1) TFT LCD 240x240 IPS 65K 3.3V SPI ST7789 -¥1,069 amazon.co.jp/gp/product/B07P7W8D8J/… (2) DisplayModule ST7789VW 1.3" 240x240 IPS TFT SPI - $10 displaymodule.com/products/…
 
@tifong01 Hi thank you for answer for my question, I read that question, but I couldn't see first picture so I couldn't get know how to connect LCD to Pi sry:(
@tifong01 thank you for tell me the product, I checked it. it seems exactly same
 
About the connection, you might like to read Refs 2, 3 of my answer. They include wiring instructions. Let me know if you find which connection confuses you. PS - Actually my answer also includes a wiring chart and a schematic.
Or do you need this pinout picture: pinout.xyz ?
 
@tlfong01 the confusing point is wiring.... I think SPI is correct, DC and VCC are suspect. 18 is a good pin for DC, Pi is providing power correctly? How to find the wiring errors, and what is the BLK(I know use as turn to backlight but signals)
@tlfong01 Mercy me about missspell your name btw.... thx about pinout.xyz. I can find pics like that and wiring to pi everytimes.
 
Ah, no problem about misspelling my user name. Actually I did not notice it! :( I usually cut and paste the user name, especially when the username is long, to prevent typo errors and also to save time. About the wiring problem: (1) There are two kinds of connectors: (a) 7 pin, and (b) 12 pin. I think you are using the 7 pin version. Correct me if otherwise. Now let me take a look and come back to you later.
Ah, I read the schematic again and found it badly drawn and not well commented for newbies. So I improved it. Please read my updated answer and let me know if it is all clear now. Thanks. Cheers.
Hi @ichirow, By the way, your username reminds me of the world famous 铃木一朗 and 王貞治. I know 王貞治 better because he has "only one foot"! :)
 
4:30 PM
@tlfong01 sry, late response, Yes I'm using 7 pin version. sry where is updated comment. yep, same name, this name came from real name (It is not real name) 一 meaning a first male of family and 郎 meaning a man. I like this name.
 
It is my answer to the question, already referred in my first comment above. See update at the bottom of answer: raspberrypi.stackexchange.com/questions/104846/…. Ah, jogging time for me, see you late this evening or tomorrow. Cheers. Ah yes, I am 次郎, second son of the family.
 
You need to find out if the Adafruit library is using hardware SPI or software SPI. Given a speed of 40 MHz is mentioned in the code that suggests hardware SPI (software SPI in Python would be about 50 kHz, not 40 MHz). If it is using hardware SPI you are using the wrong GPIO.
 
@tlfong01 reviewed wiring and some fix and debug but blank..... maybe hardware is dead. good luck jogging! cu later
@joan hi, thank you for reviewing but some people have already works with this program.... wondering asking only my probrem?
@joan sry, I got misunderstand, what is the hardware SPI and software SPI in Adafruits libraries. Can I find and fix it?
 
I do not know. I do not use the Adafruit libraries.
 
@joan okay, I referred the source code. It seems hardware gpio.github.com/adafruit/Adafruit_Python_GPIO/blob/master/… it is wrong...?
 
4:30 PM
The code can do hardware (using spidev) or software (using bit bang). I don't know which it is doing in your case. If you are using SPI hardware you need to use the dedicated SPI GPIO. See pinout.xyz GPIO 7-11.
 
@joan I figured.... Okay, I'm using hardware SPI GPIO (may be misunderstanding.... its about learning progress.) and I am testing this Device(LCD) connect to Arduino with another reference (simple-circuit.com/arduino-st7789-ips-tft-display-example) but it is still blank, so this LCD is garbage's probability is very high. So, I ordered other screens with Amazon....
 
Hi @ichirow, Ah, I think even your ST7789 does not work in both Rpi and Arduino, the probability of your LCD module faulty is NOT very high. I think the probability is lower than other things, like software bug etc. I have taken the liberty to compile your wiring into one compete diagram, and pasted into your question, so that everybody can help double check if every end to end wiring is correct.
Hi @ichirow, I googled and found 2 python libraries for Rpi. I have included them in your question. The second library looks better, but I not tried either. One potential problem is that the driver is originally from AdaFruit, modified for Rpi, but there might be OS incompatibility problems, eg, work for jessie, but not stretch, or buster.
 
@tlfong01 I slept well and read well your answer of another question. thank you for adding the figures editting from my figures. I cannot running examples so wirings is the points. I am trying anything wiring in the progress. ST7789 is endure miswiring btw? e.g. overvoltage, reverse currents etc.
@tlfong01 Thank you for googled, I couldn't find the second library. I'm going to test that. gracias. grazie. merci.
 

  last day (17 days later) »