Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TFT ST7789V 2.8': Examples, Pinouts, and Specs

Image of TFT ST7789V 2.8'
Cirkit Designer LogoDesign with TFT ST7789V 2.8' in Cirkit Designer

Introduction

The TFT ST7789V 2.8' is a 2.8-inch thin-film transistor (TFT) display module that utilizes the ST7789V driver. This display is known for its high resolution, vibrant color depth, and compact size, making it ideal for a wide range of embedded applications. It is commonly used in projects requiring graphical user interfaces, such as IoT devices, handheld instruments, and portable displays.

Explore Projects Built with TFT ST7789V 2.8'

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Powered 1.3 inch TFT Display Module for Visual Data Output
Image of ESP32+ST7789: A project utilizing TFT ST7789V 2.8' in a practical application
This circuit connects an ESP32 microcontroller to a 1.3 inch TFT display module (ST7789). The ESP32 provides power and control signals to the display, enabling it to show graphical data.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-C6 and ST7735S Display: Wi-Fi Controlled TFT Display Module
Image of ESP32-C6sm-ST7735: A project utilizing TFT ST7789V 2.8' in a practical application
This circuit features an ESP32-C6 microcontroller interfaced with a China ST7735S 160x128 TFT display. The ESP32-C6 controls the display via SPI communication, providing power, ground, and control signals to render graphics and text on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
Image of ColorSensor: A project utilizing TFT ST7789V 2.8' in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
RTL8720DN-Based Interactive Button-Controlled TFT Display
Image of coba-coba: A project utilizing TFT ST7789V 2.8' in a practical application
This circuit features an RTL8720DN microcontroller interfaced with a China ST7735S 160x128 TFT LCD display and four pushbuttons. The microcontroller reads the states of the pushbuttons and displays their statuses on the TFT LCD, providing a visual feedback system for button presses.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TFT ST7789V 2.8'

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32+ST7789: A project utilizing TFT ST7789V 2.8' in a practical application
ESP32-Powered 1.3 inch TFT Display Module for Visual Data Output
This circuit connects an ESP32 microcontroller to a 1.3 inch TFT display module (ST7789). The ESP32 provides power and control signals to the display, enabling it to show graphical data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32-C6sm-ST7735: A project utilizing TFT ST7789V 2.8' in a practical application
ESP32-C6 and ST7735S Display: Wi-Fi Controlled TFT Display Module
This circuit features an ESP32-C6 microcontroller interfaced with a China ST7735S 160x128 TFT display. The ESP32-C6 controls the display via SPI communication, providing power, ground, and control signals to render graphics and text on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ColorSensor: A project utilizing TFT ST7789V 2.8' in a practical application
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of coba-coba: A project utilizing TFT ST7789V 2.8' in a practical application
RTL8720DN-Based Interactive Button-Controlled TFT Display
This circuit features an RTL8720DN microcontroller interfaced with a China ST7735S 160x128 TFT LCD display and four pushbuttons. The microcontroller reads the states of the pushbuttons and displays their statuses on the TFT LCD, providing a visual feedback system for button presses.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Smart home devices (e.g., thermostats, control panels)
  • Wearable technology
  • Portable gaming consoles
  • Industrial control systems
  • Educational and hobbyist projects with microcontrollers (e.g., Arduino, Raspberry Pi)

Technical Specifications

Below are the key technical details and pin configuration for the TFT ST7789V 2.8' display module:

Key Technical Details

Parameter Value
Display Type TFT LCD
Driver IC ST7789V
Screen Size 2.8 inches
Resolution 240 x 320 pixels
Color Depth 16-bit (65,536 colors)
Interface SPI (Serial Peripheral Interface)
Operating Voltage 3.3V
Backlight Voltage 3.0V to 3.3V
Backlight Current ~20mA
Operating Temperature -20°C to 70°C
Viewing Angle 80° (all directions)

Pin Configuration

The TFT ST7789V 2.8' module typically has the following pinout:

Pin Number Pin Name Description
1 GND Ground
2 VCC Power supply (3.3V)
3 SCL Serial Clock (SPI clock input)
4 SDA Serial Data (SPI data input)
5 RES Reset pin (active low)
6 DC Data/Command control pin
7 CS Chip Select (active low)
8 BLK Backlight control (connect to 3.3V for always on)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V power source and the GND pin to ground.
  2. SPI Communication: Connect the SCL (clock) and SDA (data) pins to the corresponding SPI pins on your microcontroller.
  3. Control Pins:
    • Connect the RES pin to a GPIO pin on your microcontroller for resetting the display.
    • Use the DC pin to toggle between data and command modes.
    • Connect the CS pin to a GPIO pin to enable or disable the display.
  4. Backlight: Connect the BLK pin to 3.3V for constant backlight or to a PWM pin for brightness control.

Important Considerations

  • Ensure the operating voltage is strictly 3.3V to avoid damaging the display.
  • Use level shifters if your microcontroller operates at 5V logic levels.
  • Keep SPI connections as short as possible to minimize signal degradation.
  • Add decoupling capacitors near the power pins for stable operation.

Example Code for Arduino UNO

Below is an example of how to interface the TFT ST7789V 2.8' with an Arduino UNO using the Adafruit ST7789 library:

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7789.h> // ST7789 driver library
#include <SPI.h>             // SPI library

// Define pin connections
#define TFT_CS    10  // Chip select pin
#define TFT_RST   9   // Reset pin
#define TFT_DC    8   // Data/Command pin

// Initialize the display object
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);
  Serial.println("TFT ST7789V Test");

  // Initialize the display
  tft.init(240, 320); // Initialize with 240x320 resolution
  tft.setRotation(1); // Set display orientation (1 = landscape)

  // Fill the screen with a color
  tft.fillScreen(ST77XX_BLACK);

  // Draw a simple rectangle
  tft.fillRect(50, 50, 140, 100, ST77XX_RED);

  // Display text
  tft.setTextColor(ST77XX_WHITE);
  tft.setTextSize(2);
  tft.setCursor(60, 80);
  tft.print("Hello, World!");
}

void loop() {
  // Nothing to do here
}

Notes:

  • Install the Adafruit GFX and Adafruit ST7789 libraries via the Arduino Library Manager before running the code.
  • Adjust the pin definitions (TFT_CS, TFT_RST, TFT_DC) to match your wiring.

Troubleshooting and FAQs

Common Issues

  1. No Display Output:

    • Verify all connections, especially power and SPI pins.
    • Ensure the CS pin is correctly toggled to enable the display.
    • Check if the backlight (BLK pin) is powered.
  2. Flickering or Unstable Display:

    • Use shorter wires for SPI connections to reduce noise.
    • Add decoupling capacitors near the power supply pins.
  3. Incorrect Colors or Artifacts:

    • Ensure the SPI clock speed is within the display's supported range.
    • Verify that the DC pin is correctly toggled between data and command modes.
  4. Display Not Resetting:

    • Confirm that the RES pin is connected to a GPIO pin and is toggled during initialization.

FAQs

Q: Can I use this display with a 5V microcontroller?
A: Yes, but you must use level shifters to convert 5V logic to 3.3V logic for the SPI and control pins.

Q: How do I control the backlight brightness?
A: Connect the BLK pin to a PWM-capable GPIO pin on your microcontroller and adjust the duty cycle to control brightness.

Q: Can I use this display with Raspberry Pi?
A: Yes, the display is compatible with Raspberry Pi. Use the SPI interface and appropriate libraries (e.g., luma.lcd or ST7789 Python libraries).

Q: What is the maximum SPI clock speed supported?
A: The ST7789V driver typically supports SPI clock speeds up to 15 MHz. Check your specific module's datasheet for exact details.