GODIYMODULES ST7789

GODIYMODULES 1.54 Inch 240x240 IPS TFT Display Module ST7789 User Manual

1. ບົດແນະນຳ

This manual provides comprehensive instructions for the GODIYMODULES 1.54 Inch Full Color TFT Display Module, featuring an HD IPS LCD LED screen with a 240x240 resolution and an ST7789 controller. Designed for integration with microcontrollers such as Arduino, ESP32, Raspberry Pi, 8051, PIC, and AVR, this module utilizes a Serial Peripheral Interface (SPI) for communication. This document covers product overview, setup, wiring, operation, specifications, troubleshooting, and maintenance to ensure proper use and functionality.

GODIYMODULES 1.54 Inch TFT Display Module with header pins

ຮູບ 1: ດ້ານຫນ້າ view of the 1.54-inch TFT display module, showing the screen and the included male header pins for connection.

2. ຜະລິດຕະພັນເກີນview

2.1 ລັກສະນະທີ່ສໍາຄັນ

  • ປະເພດການສະແດງ: 1.54-inch Full Color TFT IPS LCD
  • ຄວາມລະອຽດ: 240x240 ພິກເຊລ
  • Controller IC: ST7789
  • ການໂຕ້ຕອບ: Serial Peripheral Interface (SPI)
  • ຄວາມເຂົ້າກັນໄດ້: Designed for use with various Microcontroller Units (MCUs) including Arduino, ESP32, Raspberry Pi, 8051, PIC, and AVR.
  • ຄຸນະພາບການສະແດງ: HD IPS panel for superior viewໃນມຸມແລະສີສັນສົດໃສ.

2.2 ອົງປະກອບລວມ

  • 1 x GODIYMODULES 1.54 Inch TFT Display Module
  • 1 x Male Header Pin Strip (for soldering)

3. ການຕິດຕັ້ງ ແລະສາຍໄຟ

The 1.54-inch TFT display module communicates via SPI. Proper wiring is essential for correct operation. The module requires soldering the included header pins before use.

3.1 ລາຍລະອຽດ Pinout

Back of GODIYMODULES 1.54 Inch TFT Display Module showing driver IC and pin labels

ຮູບ 2: ດ້ານຫລັງ view of the display module circuit board, detailing the ST7789 driver IC and connection pins.

Table 1: Display Module Pinout
ປັກໝຸດປ້າຍລາຍລະອຽດ
GNDການເຊື່ອມຕໍ່ພື້ນດິນ.
VCCPower supply (typically 3.3V or 5V, refer to MCU specifications).
SCLSerial Clock (SPI Clock).
SDASerial Data (SPI MOSI - Master Out Slave In).
RESຣີເຊັດ pin.
DCData/Command selection pin.
CSChip Select pin.
BLKBacklight control (can be left unconnected if not used).

3.2 Wiring Diagram for Arduino

Below is a typical wiring configuration for connecting the display module to an Arduino board. Note that specific pin assignments may vary slightly depending on the Arduino model (e.g., Uno, Nano, ESP32). Always consult your MCU's documentation for hardware SPI pins.

Wiring diagram for 1.54 Inch TFT Display Module with MCU and Arduino pin assignments

Figure 3: Wiring diagram showing connections between an MCU (e.g., Arduino) and the 1.54-inch TFT display module.

ຕາຕະລາງ 2: ຕົວຢ່າງample Arduino Wiring (Arduino Nano/Uno)
ສະແດງ PINArduino Pinບັນທຶກ
GNDGNDພື້ນ​ຖານ.
VCC5VPower supply for the module.
SCLD13 (SCK)ເຂັມໂມງ SPI.
SDAD11 (MOSI)SPI Master Out Slave In pin.
RESD8Digital pin for Reset.
DCD9Digital pin for Data/Command selection.
CSD10Digital pin for Chip Select.
BLK(ທາງເລືອກ)Can be left unconnected or connected to a digital pin for backlight control.

ໝາຍເຫດ: The silkscreen labels on the module for SCL and SDA refer to SPI communication, not I2C. Do not confuse them with I2C pins (e.g., A4 & A5 on some Arduinos).

4. ຄໍາແນະນໍາການດໍາເນີນງານ

To operate the display module, you will typically use a compatible library for your chosen microcontroller. For Arduino, libraries such as Adafruit GFX Library and Adafruit ST7789 Library are commonly used.

4.1 Software Setup (Arduino Exampເລ)

  1. Install Libraries: Open your Arduino IDE. Go to Sketch > Include Library > Manage Libraries... ຊອກຫາ "Adafruit GFX" and "Adafruit ST7789" and install them.
  2. Include Headers: In your Arduino sketch, include the necessary headers:
    #include <Adafruit_GFX.h>
    #include <Adafruit_ST7789.h>
  3. Define Pins: Define the pins connected to the display module in your sketch. For example, using the pins from Table 2:
    #define TFT_CS    10
    #define TFT_DC 9
    #define TFT_RST 8 // Or set to -1 if you share Arduino reset pin
  4. Initialize Display: Initialize the display object in your setup function:
    Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);

    void setup() {
    tft.init(240, 240); // Initialize ST7789 screen
    tft.setRotation(2); // Adjust rotation as needed
    tft.fillScreen(ST77XX_BLACK);
    tft.setTextWrap(false);
    tft.setTextColor(ST77XX_WHITE);
    tft.setTextSize(1);
    tft.setCursor(0, 0);
    tft.print("Hello, World!");
    }
  5. Drawing Functions: Use the GFX library functions to draw text, shapes, and images on the display. Refer to the Adafruit GFX library documentation for a full list of functions.

5. ຂໍ້ມູນຈໍາເພາະ

ຕາຕະລາງ 3: ຂໍ້ມູນສະເພາະທາງດ້ານວິຊາການ
ຄຸນສົມບັດລາຍລະອຽດ
ຂະຫນາດຈໍສະແດງຜົນ1.54 ນິ້ວ
ຄວາມລະອຽດ240x240 ພິກເຊລ
ປະເພດການສະແດງFull Color TFT IPS LCD
ຂັບ ICST7789
ການໂຕ້ຕອບSPI (Serial Peripheral Interface)
ການດໍາເນີນງານ VoltageTypically 3.3V or 5V (VCC)
ອຸປະກອນທີ່ເຂົ້າກັນໄດ້Arduino, Raspberry Pi, ESP32, 8051, PIC, AVR
ນ້ໍາຫນັກລາຍການ0.634 ອອນສ໌ (ປະມານ 18 ກຣາມ)
ຂະໜາດແພັກເກັດ5.63 x 4.88 x 1.38 ນິ້ວ

6. ການແກ້ໄຂບັນຫາ

  • Display is blank or shows garbage:
    • ກວດ​ສອບ​ສາຍ​ໄຟ​: Verify all connections (GND, VCC, SCL, SDA, RES, DC, CS) are secure and correctly connected to the appropriate microcontroller pins as per the wiring diagram. Pay close attention to SPI pin assignments (SCL/SCK, SDA/MOSI).
    • ການສະຫນອງພະລັງງານ: Ensure the VCC pin receives the correct voltage (typically 3.3V or 5V, depending on your MCU's logic level and the module's tolerance).
    • Library Installation: Confirm that all necessary libraries (e.g., Adafruit GFX, Adafruit ST7789) are correctly installed in your IDE.
    • Initialization Code: Double-check your code for correct pin definitions and display initialization parameters (e.g., tft.init(240, 240)).
    • SPI vs. I2C Confusion: This module uses SPI. Ensure you are not attempting to connect it using I2C pins or I2C libraries, despite some pin labels potentially causing confusion.
  • Colors are incorrect or washed out:
    • ການຕັ້ງຄ່າການຫມຸນ: ບໍ່ຖືກຕ້ອງ setRotation() might affect how colors are interpreted or displayed. Experiment with different rotation values.
    • Library Version: Ensure you are using up-to-date libraries.
  • Display works on one MCU (e.g., ESP32) but not another (e.g., Arduino):
    • ຄວາມເຂົ້າກັນໄດ້ຂອງ PIN: Verify that the SPI pins and other control pins are correctly mapped for the specific MCU you are using. Pin numbers for SPI can differ between Arduino boards (Uno, Nano, Mega) and other platforms like ESP32 or Raspberry Pi.
    • ລະດັບ Logic: ຮັບປະກັນ voltage compatibility. Some MCUs operate at 3.3V logic, while others use 5V. The display module typically supports both, but incorrect voltage levels can cause issues.

7. ບໍາລຸງຮັກສາ

The 1.54-inch TFT display module is a delicate electronic component. Follow these guidelines for proper maintenance:

  • ການຈັດການ: Always handle the module by its edges to avoid touching the screen surface or electronic components.
  • ທໍາຄວາມສະອາດ: If necessary, gently clean the screen with a soft, lint-free cloth. Avoid abrasive materials or harsh chemical cleaners.
  • ການເກັບຮັກສາ: Store the module in an anti-static bag in a dry, cool environment away from direct sunlight and extreme temperatures.
  • soldering: When soldering header pins, use appropriate soldering techniques to prevent damage to the board or components.

8. ການຮັບປະກັນແລະການສະຫນັບສະຫນູນ

Specific warranty information for this product is not provided in the available documentation. For any technical support, warranty claims, or further inquiries, please contact the seller or manufacturer directly through the platform where the product was purchased.

ເອກະສານທີ່ກ່ຽວຂ້ອງ - ST7789

ກ່ອນview 2inch LCD Module with ST7789 SPI Interface - Technical Guide
Technical documentation and usage guide for the 2inch LCD Module with ST7789 controller, featuring SPI interface, 240x320 resolution, and compatibility with Raspberry Pi, STM32, and Arduino platforms.
ກ່ອນview Arduino Nesso N1: Full Pinout and Technical Specifications
A comprehensive guide to the Arduino Nesso N1 development board, detailing its components, pin configurations, and essential technical information for developers and makers. Features ESP32-C6, LoRa, LCD touchscreen, Grove connectivity, and more.
ກ່ອນview E32R32P & E32N32P 3.2 ນິ້ວ IPS ESP32-32E Display Module ຄູ່ມືຜູ້ໃຊ້
ຄູ່ມືຜູ້ໃຊ້ທີ່ສົມບູນແບບສໍາລັບໂມດູນຈໍສະແດງຜົນ E32R32P & E32N32P 3.2 ນິ້ວ IPS ESP32-32E, ກວມເອົາຄໍາອະທິບາຍຊັບພະຍາກອນ, ຄໍາແນະນໍາຊອບແວ, ແລະຄໍາອະທິບາຍຮາດແວຢ່າງລະອຽດ.
ກ່ອນview E32R32P & E32N32P 3.2 ນິ້ວ IPS ESP32-32E Display Module ຄູ່ມືຜູ້ໃຊ້
This user manual provides a comprehensive guide to the E32R32P and E32N32P 3.2-inch IPS ESP32-32E Display Modules. It covers resource descriptions, software and hardware instructions, detailed explanations of schematic diagrams, and precautions for use. The manual details the module's components, including the LCD screen, resistive touch screen, ESP32-WROOM-32E module, various interface circuits, and power management.
ກ່ອນview ຄູ່ມືຜູ້ໃຊ້ LILYGO T-Deck ESP32-S3 ສໍາລັບການພັດທະນາ Arduino
ຄູ່ມືຜູ້ໃຊ້ທີ່ສົມບູນແບບສໍາລັບຄະນະກໍາມະການພັດທະນາ LILYGO T-Deck, ລາຍລະອຽດການຕິດຕັ້ງ Arduino IDE, ການຕັ້ງຄ່າ ESP32-S3, ຟັງຊັນ Wi-Fi ແລະ LoRa, ແລະການອ້າງອີງຄໍາສັ່ງ SSC ສໍາລັບຄໍາຮ້ອງສະຫມັກ IoT.
ກ່ອນview Blockstream Jade V1.1 ແກ້ໄຂດ້ານເຕັກນິກແລ້ວview ແລະຂໍ້ມູນຈໍາເພາະ
ດ້ານເຕັກນິກview ຂອງ Blockstream Jade V1.1, ເຊິ່ງລະບຸລາຍລະອຽດກ່ຽວກັບສ່ວນປະກອບຮາດແວ, ລາຍລະອຽດການເຮັດວຽກ, CPU ແລະ ໜ່ວຍຄວາມຈຳ, ບ່ອນເກັບຂໍ້ມູນ, ແລະ ຄຸນສົມບັດການຈັດການພະລັງງານ. ລວມທັງຂໍ້ມູນການປະຕິບັດຕາມ FCC.