SPI ST7796S Driver Not compatible with the Arduino Uno Rev4 with WiFi?

Hi everyone,

I've been trying to get my SPI TFT screen to work on my Arduino 4 with WiFi. I can get the screen to turn on, but I'm having trouble programming it. I believe I've got the hardware setup correctly, as I followed this video tutorial: https://www.youtube.com/watch?v=4DtuOeeYHys&t=872s.

Since I'm not using the exact SPI screen shown in the video, I decided to use the TFT_eSPI library, which supports a wide range of screens. However, I'm still seeing a white blank screen instead of a "Hello World" message.

I've spent the past couple of weeks researching and trying different ways to connect my board to the screen, but nothing seems to work. I recently checked the product page where I bought the screen and saw that it's listed as compatible with "Arduino R3/Mega2560." I'm now wondering if the screen might not be compatible with my Arduino 4 board.

Does anyone have any insights or suggestions on this issue? Here's the link to the product page: Amazon.com: Hosyond 4.0 Inches 480x320 TFT Touch Screen LCD Display Module SPI ST7796S Driver for Arduino R3/Mega2560 : Electronics

Thanks for any help!

If you would post all the source code and a wiring diagram (a picture of a hand drawn is fine) we might be able to help. I have a similar screen.

I don't think that TFT_eSPI supports UNO R4.

About from Bodmer/TFT_eSPI:

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips

Try to use Adafruit GFX library.
I found this but I'm not sure it can be used for UNO R4:

Since I had recently purchased that same display, to update our ST77xx library to support the ST7796. I had also tried out the library TFT_eSPI.

So I pulled out a Minima from box in cabinet to give it a try. It works :smiley:

This is running their example sketch: Demo_3d_cube.

Wiring: Starting from the one labled VCC, I have:
VCC->+5v
GND->GND
CS->10
RST->9
DC->8
SDI(MOSI)->11
SCK->13
LED->+3.3V
SDO(MISO)->12

Note: With this library, at least with their examples, you need to edit a file in the
library directory. User_Setup.h
You need to select which of the display drivers to use:


// Only define one driver, the other ones must be commented out
//#define ILI9341_DRIVER       // Generic driver for common displays
//#define ILI9341_2_DRIVER     // Alternative ILI9341 driver, see https://github.com/Bodmer/TFT_eSPI/issues/1172
//#define ST7735_DRIVER      // Define additional parameters below for this display
//#define ILI9163_DRIVER     // Define additional parameters below for this display
//#define S6D02A1_DRIVER
//#define RPI_ILI9486_DRIVER // 20MHz maximum SPI
//#define HX8357D_DRIVER
//#define ILI9481_DRIVER
//#define ILI9486_DRIVER
//#define ILI9488_DRIVER     // WARNING: Do not connect ILI9488 display SDO to MISO if other devices share the SPI bus (TFT SDO does NOT tristate when CS is high)
//#define ST7789_DRIVER      // Full configuration option, define additional parameters below for this display
//#define ST7789_2_DRIVER    // Minimal configuration option, define additional parameters below for this display
//#define R61581_DRIVER
//#define RM68140_DRIVER
#define ST7796_DRIVER
//#define SSD1351_DRIVER
//#define SSD1963_480_DRIVER
//#define SSD1963_800_DRIVER
//#define SSD1963_800ALT_DRIVER
//#define ILI9225_DRIVER
//#define GC9A01_DRIVER

You also need to define the pin numbers used, mine has this part uncommented:

#define TFT_MISO 12
#define TFT_MOSI 11
#define TFT_SCLK 13
#define TFT_CS 10 // Chip select control pin
#define TFT_DC 8 // Data Command control pin
#define TFT_RST 9 // Reset pin (could connect to RST pin)

Hope that helps
Kurt

1 Like

Ben denedim Ama malesf Bende Çalışmadı

Hi I still had trouble on making the display work. I still sadly only see a white screen. I'm still unfamiliar in how to use this forums I most likely should have added updates here, but I created a new forums around the same topic, where I described everything I have done so far, I migrated away from the TFT_eSPI library because for some reason it was still not working for me, even with the changes that you added. I also feel quite confident and still keeping my hopes up that it isn't a hardware problem. Here is the link to my new forum I just posted right now, I really kept trying to find answers but nothing has worked so far

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.