Need help troubleshooting ST7796S display with Arduino Nano 33 IoT (SAMD21) #3174
Replies: 1 comment 3 replies
-
Most likely the RST pin is not connected or it is connected to wrong GPIO . I would recommend either connecting RST to proper GPIO - 3 in you;re case OR (beware - unsure if is not any side effect so use it at you;re own risk ! ) connect LCD RST pin to 3.3 volt power - ideally via a resistor for power efficiency but I would expect to work also directly for a test ( in this way you save one gpio ). For my setup , only the Adafruit_ST7796S_kbv works fine with an Olimex ESP32 POE ISO. PS. Separate topic: Beware also about the touch part - I heard that due to some bug in the design on some models ( not all ), some SPI pin is not able to be tristate so the LCD does not accept other SPI devices on the SPI bus - so, the workaround is to solder/remove a diode ( don;t have all the info right now ) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been having trouble with getting the LCD to display anything (it's always either a white screen or garbage rgb pixels). I tested several different libraries including the LCDWIKI, Adafruit_ST7796S_kbv, and this one, TFT_eSPI. So far not even a fillScreen call will work in any of them, but I have noticed that sometimes with the Adafruit library after resetting the board there is a short period where test text is displayed before the program reloads (graphic test example). In addition to the graphics examples, I did test the diagnostic examples from TFT_eSPI and the Read_User_Setup works as expected while the Read_Write_Test fails to get any correct read values.
The specific display I have is here: http://www.lcdwiki.com/4.0inch_SPI_Module_ST7796
Pin connections:
TFT_VCC = 5V // external source
TFT_GND = GND // external source
TFT_CS = 2
TFT_RST = 3
TFT_DC = 4
TFT_BL = 5
TFT_MOSI = 11 // hardware
TFT_MISO = 12 // hardware
TFT_SCK = 13 // hardware
User_Setup.h
TFT_graphictest_one_lib.ino (simplified to just a fillScreen)
The output I'm getting is this:

Beta Was this translation helpful? Give feedback.
All reactions