ESP32 Tutorial: Using 2.8 Inch SPI TFT LCD Touch Display (ST7789 & ILI9341)

preview_player
Показать описание
In this video, I’ll show you how to set up and use the 2.8 inch SPI TFT LCD Touch Display with two popular drivers: ST7789 and ILI9341. Whether you’re using an ESP32, this step-by-step guide will walk you through the process from wiring to code setup, including touch functionality and SD card usage.

BUY: 2.8 inch/2.4/2.2/3.2/3.5 inch TFT touch color SPI serial LCD display module

Buy: ESP32 Arduino LVGL 2.8'' Smart Display

Buy: Gps Module Arduino Neo 6m

How to Use 2.8 Inch SPI TFT LCD Touch Display (ST7789 & ILI9341) with ESP32 | Full Guide:

Required Components:

ESP32 development board
2.8" SPI TFT LCD Display Module (ST7789 or ILI9341)
Micro SD card (optional for image display)
TFT_eSPI library by Bodmer
JPEGDecoder Library
Jumper wires and breadboard

Start building your ESP32 display project today!

TFT Display Wiring:
TFT_VCC → ESP32 VIN / 3V3
TFT_GND → ESP32 GND
TFT_CS → ESP32 D15 / GPIO 15 (Chip Select)
TFT_RST → ESP32 D4 / GPIO 4 (Reset Pin)
TFT_DC → ESP32 D2 / GPIO 2 (Data/Command)
TFT_MOSI → ESP32 D23 / GPIO 23 (MOSI)
TFT_SCK → ESP32 D18 / GPIO 18 (Clock)
TFT_LED → ESP32 3V3 (LED Backlight)
TFT_MISO → ESP32 D19 / GPIO 19 (MISO)

Touchscreen Wiring (XPT2046):
T_CLK → ESP32 D18 / GPIO 18 (Clock, shared with TFT)
T_CS → ESP32 D21 / GPIO 21 (Touchscreen Chip Select)
T_DIN → ESP32 D23 / GPIO 23 (Data Input, shared with TFT MOSI)
T_DO → ESP32 D19 / GPIO 19 (Data Output, shared with TFT MISO)
T_IRQ → Optional: Connect to an available GPIO (e.g., GPIO 22) or leave unconnected.

SD Card Wiring:
SD_SCK → ESP32 D18 / GPIO 18 (Shared with TFT)
SD_MISO → ESP32 D19 / GPIO 19 (Shared with TFT)
SD_MOSI → ESP32 D23 / GPIO 23 (Shared with TFT)
SD_CS → ESP32 D5 / GPIO 5 (You can choose a different GPIO if needed)

pinMode(16, OUTPUT);

digitalWrite(16,false);
digitalWrite(16,false);

LIKE | COMMENT | SHARE | SUBSCRIBE
=== = = = = = = = == = = = == = = = == = =
== = = = = == = = = = = = = == = = = = = ==
★★ Please like and subscribe ★★
=== = = = = = = = == = = = == = = = == = =

How to extend wifi range with another router wirelessly
How To Program ATtiny85 Microcontroller with Arduino Uno || Programming And Burn Bootloader
TP-Link To Netgear Router Wireless Internet Sharing || Router As WiFi Repeater, Range Extender - WDS
view ip camera easy way
How to extend wifi range with another router
sokoban level 11 solution

★★=== = = = = = = = ==★★
Contact us for any enquiries :
★★=== = = = = = = = ==★★
#yellowpurple
##

=== = = = = = = = == = = = == = = = == = =
Рекомендации по теме
Комментарии
Автор

*ESP32 & 2.8" TFT: Displaying SD Card Images & Fixing Color Issues!*

YellowPurple
Автор

Thanks for the video...

I've tested the ST7789 and worked perfectly with both esp32 and wemos D1 Mini. Next I'll try ILI9341.

aripjamaludinrumi
Автор

My SD card doesn't work if I use the screen with ESP32. It gives error like "Folder not found" even I already format it correctly.
I also already tried SD card with different capacity.
If I use it with Arduino Uno/Nano, there is no problem.
I found solution on the internet and it say you have to solder connection on the board which labeled J1 to bypass voltage regulator.
I haven't tried that and I afraid it might fry both of my ESP32 and TFT screen.
The same SD card problem also happen to my ST7735 if I use it with ESP32/NodeMCU ESP8266.

jumbo
Автор

Bro, can I use a 3.5 display and follow your instructions?

VictorBorah-Invincible
Автор

Hi, i have tried connecting my 2'8 inch ILI9341 to the Arduino and Esp32 but i am only getting a white screen. I have installed all the libraries and files from Github but still its white. The instruction manual mentioned that i have to solder J1 at the back otherwise i will only be able to use 3.3v instead of 5v. Do i need to attach resistor on the CS/RST/DC/SDI/SCK connection?

ishwin
Автор

does the version of TET_eSPI library affect the LCD touch Display V1.2?
the LCD touch Display in video is v1.1

peter
Автор

Bro, make esp32 nes emulator using this display

Xavier_Everwhere
Автор

You should buy a flipper zero... following from yemen ❤

كلشئ-ول
Автор

bruce firmware for nodemcu esp8266 and esp32 t display ❤😊

jasimurrahman