The 1.77" 1.8" TFT LCD SPI ST7735 is a compact color display module with a resolution of 128x160 pixels. It is powered by the ST7735 driver and communicates via the SPI (Serial Peripheral Interface) protocol. This module is widely used in embedded systems for displaying text, images, and graphical data. Its small size, vibrant color display, and low power consumption make it ideal for portable devices, DIY projects, and IoT applications.
Parameter | Value |
---|---|
Display Type | TFT LCD |
Driver IC | ST7735 |
Resolution | 128x160 pixels |
Communication Protocol | SPI (Serial Peripheral Interface) |
Operating Voltage | 3.3V (logic level) |
Backlight Voltage | 3.3V to 5V |
Current Consumption | ~50mA (with backlight on) |
Display Size | 1.77" or 1.8" diagonal |
Color Depth | 18-bit (262,144 colors) |
Viewing Angle | ~160° |
Operating Temperature | -20°C to 70°C |
Pin Name | Pin Number | Description |
---|---|---|
GND | 1 | Ground connection |
VCC | 2 | Power supply (3.3V to 5V for backlight) |
SCL | 3 | Serial Clock (SPI clock input) |
SDA | 4 | Serial Data (SPI data input) |
RES | 5 | Reset pin (active low) |
DC | 6 | Data/Command control pin |
CS | 7 | Chip Select (active low) |
BLK | 8 | Backlight control (connect to VCC for always on) |
VCC
pin to a 3.3V or 5V power source and the GND
pin to ground.SCL
(clock) and SDA
(data) pins to the corresponding SPI pins on your microcontroller.RES
pin to a GPIO pin for resetting the display.DC
pin to toggle between data and command modes.CS
pin to a GPIO pin to enable or disable the display.BLK
pin to VCC
for constant backlight or to a PWM pin for brightness control.BLK
pin to adjust the brightness and reduce power consumption.Below is an example of how to interface the display with an Arduino UNO using the Adafruit ST7735 library:
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // ST7735 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_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
Serial.println("Initializing display...");
// Initialize the display
tft.initR(INITR_BLACKTAB); // Use INITR_BLACKTAB for this display
tft.fillScreen(ST77XX_BLACK); // Clear the screen with black color
// Display a test message
tft.setTextColor(ST77XX_WHITE); // Set text color to white
tft.setTextSize(1); // Set text size
tft.setCursor(0, 0); // Set cursor position
tft.println("Hello, World!"); // Print text to the display
}
void loop() {
// Add your code here to update the display
}
TFT_CS
, TFT_RST
, TFT_DC
) to match your wiring.No Display Output:
CS
, DC
, and RES
pins are correctly connected and configured.Flickering or Distorted Display:
Backlight Not Turning On:
BLK
pin is connected to VCC
or a PWM pin.Incorrect Colors or Graphics:
Q: Can I use this display with a 5V microcontroller like Arduino UNO?
A: Yes, but you need to use level shifters for the SPI and control pins to step down the 5V logic to 3.3V.
Q: How do I display images on this screen?
A: Convert your image to a compatible format (e.g., RGB565) and use the Adafruit GFX library's drawBitmap()
or drawRGBBitmap()
functions.
Q: Can I control the backlight brightness?
A: Yes, connect the BLK
pin to a PWM-capable pin on your microcontroller and adjust the duty cycle.
Q: Is this display compatible with Raspberry Pi?
A: Yes, it can be used with Raspberry Pi via SPI, but you may need to install additional libraries like luma.lcd
or Pillow
.
By following this documentation, you can effectively integrate the 1.77" 1.8" TFT LCD SPI ST7735 display into your projects!