The ESP32 TFT 3.5 CYD is a 3.5-inch TFT display module designed to integrate seamlessly with the ESP32 microcontroller. This module enables developers to create graphical outputs and user interfaces for embedded systems. With its vibrant display and touch functionality, it is ideal for applications requiring visual feedback or interactive controls.
Parameter | Specification |
---|---|
Display Size | 3.5 inches |
Resolution | 480 x 320 pixels |
Display Type | TFT LCD |
Touch Panel | Resistive or Capacitive (varies by model) |
Controller IC | ILI9488 |
Interface | SPI |
Operating Voltage | 3.3V |
Backlight Voltage | 3.3V |
Current Consumption | ~100mA (varies with brightness) |
Dimensions | 85mm x 55mm x 5mm |
Pin Name | Pin Number | Description |
---|---|---|
VCC | 1 | Power input (3.3V) |
GND | 2 | Ground |
CS | 3 | Chip Select for SPI communication |
RESET | 4 | Reset pin for the display |
DC/RS | 5 | Data/Command control pin |
SDI/MOSI | 6 | SPI Master Out Slave In (data input) |
SCK | 7 | SPI Clock |
LED | 8 | Backlight control (connect to 3.3V) |
T_CLK | 9 | Touch panel SPI clock |
T_CS | 10 | Touch panel chip select |
T_DIN | 11 | Touch panel SPI data input |
T_DO | 12 | Touch panel SPI data output |
T_IRQ | 13 | Touch panel interrupt signal |
VCC
pin to a 3.3V power source and the GND
pin to ground.CS
, SDI/MOSI
, SCK
, and DC/RS
to the corresponding SPI pins on the ESP32.LED
pin to 3.3V for constant backlight or to a PWM pin for brightness control.T_CLK
, T_CS
, T_DIN
, T_DO
, and T_IRQ
to available GPIO pins on the ESP32.TFT_eSPI
or Adafruit_GFX
for easier integration with the ESP32.Below is an example of how to initialize and display text on the ESP32 TFT 3.5 CYD using the TFT_eSPI
library.
#include <TFT_eSPI.h> // Include the TFT_eSPI library
TFT_eSPI tft = TFT_eSPI(); // Create an instance of the display
void setup() {
tft.init(); // Initialize the display
tft.setRotation(1); // Set display orientation (0-3)
tft.fillScreen(TFT_BLACK); // Clear the screen with black color
tft.setTextColor(TFT_WHITE, TFT_BLACK); // Set text color and background
tft.setTextSize(2); // Set text size
tft.setCursor(10, 10); // Set cursor position
tft.println("Hello, ESP32!"); // Print text to the display
}
void loop() {
// Add your code here for dynamic updates
}
User_Setup.h
file in the TFT_eSPI
library is configured for the ESP32 and ILI9488 controller.Display Not Turning On:
VCC
and GND
connections.No Output on the Screen:
CS
, SDI/MOSI
, SCK
, DC/RS
).TFT_eSPI
library is correctly configured for the ILI9488 controller.Touch Panel Not Responding:
T_CLK
, T_CS
, T_DIN
, T_DO
, T_IRQ
).Flickering or Artifacts on the Display:
Q: Can I use a 5V power supply for this module?
A: No, the module operates at 3.3V. Using 5V can damage the display and touch controller.
Q: Which library is recommended for this display?
A: The TFT_eSPI
library is highly recommended for its performance and compatibility with the ESP32.
Q: How do I control the backlight brightness?
A: Connect the LED
pin to a PWM-capable GPIO pin on the ESP32 and use PWM signals to adjust brightness.
Q: Can I use this module with other microcontrollers?
A: Yes, as long as the microcontroller supports SPI communication and operates at 3.3V logic levels.
Q: Is the touch panel mandatory to use?
A: No, the touch panel is optional. You can use the display without touch functionality if not required.