TENSTAR ROBOT TFT Serial Port Module LCD Display

Contents

TENSTAR ROBOT TFT Serial Port Module LCD Display User Manual

Models: 2.4 Inch, 2.8 Inch, 3.5 Inch SPI TFT Displays

1. Introduction

This manual provides instructions for the TENSTAR ROBOT 2.4, 2.8, and 3.5 Inch SPI TFT Serial Port Module LCD Displays. These modules are designed for use with microcontrollers like Arduino and feature an iron frame for display protection. Please read this manual thoroughly before use to ensure proper operation and to prevent damage.

Three TENSTAR ROBOT TFT LCD display modules of different sizes: 2.4 inch, 2.8 inch, and 3.5 inch.
Figure 1: Overview of the 2.4, 2.8, and 3.5 Inch TFT Display Modules.

2. Specifications

The TENSTAR ROBOT TFT display modules come in three main variants, each with specific characteristics:

Detailed specifications and dimensions for 2.4, 2.8, and 3.5 inch TFT LCD modules, including resolution, panel type, interface, driver chip, and physical dimensions.
Figure 2: Technical Specifications and Dimensions for all Display Variants.

2.1 Common Features

  • Panel Type: TFT (IPS)
  • Interface: SPI (Serial Peripheral Interface)
  • Voltage: 5V/3.3V compatible (via PCB adapter)
  • Protection: Equipped with an iron frame to protect the display.

2.2 Model-Specific Specifications

Feature2.4 Inch Module2.8 Inch Module3.5 Inch Module
Resolution240RGBx320240RGBx320320RGBx480
Driver ChipST7789VST7789VST7796S
Physical Size (LxWxH)47 x 71 x 13.5 mm55 x 81 x 4.4 mm59 x 95 x 8.3 mm

3. Setup and Connection

These display modules utilize a Serial Peripheral Interface (SPI) for communication. Below are the typical pin connections and general setup guidelines.

3.1 Pinout Description

The modules typically feature the following pins:

  • GND: Ground connection.
  • VCC: Power supply (5V or 3.3V, depending on your microcontroller and module version).
  • SCL: Serial Clock pin for SPI communication.
  • SDA: Serial Data (MOSI) pin for SPI communication.
  • RES: Reset pin.
  • DC: Data/Command selection pin.
  • CS: Chip Select pin.
  • BLK: Backlight control pin (optional, may be tied high for always-on backlight).

3.2 Connection to Microcontroller (e.g., Arduino)

Connect the display module to your microcontroller according to the pinout. Ensure that the voltage levels are compatible (5V or 3.3V). If your microcontroller operates at 3.3V, ensure the VCC pin on the display module is supplied with 3.3V. If using a 5V microcontroller, verify if the display module has built-in level shifters or use external ones.

A typical connection scheme for an Arduino might involve:

  • VCC to Arduino 5V or 3.3V
  • GND to Arduino GND
  • SCL to Arduino SCK (e.g., D13 on Uno)
  • SDA to Arduino MOSI (e.g., D11 on Uno)
  • RES to a digital pin (e.g., D9)
  • DC to a digital pin (e.g., D8)
  • CS to a digital pin (e.g., D10)
  • BLK to a digital pin (for backlight control) or VCC (for always-on)
Back view of the 2.4 inch TFT display module showing the pinout and PCB markings GMT024-08-SP18P VER:1.3.
Figure 3: Back view of 2.4 Inch Module with Pinout.
Back view of the 2.8 inch TFT display module showing the pinout and PCB markings ST7789V.
Figure 4: Back view of 2.8 Inch Module with Pinout.
Back view of the 3.5 inch TFT display module showing the pinout and PCB markings ST7796S.
Figure 5: Back view of 3.5 Inch Module with Pinout.

4. Operating Instructions

To operate the display, you will need appropriate libraries for your microcontroller platform (e.g., Adafruit GFX Library and Adafruit ST7789/ST7796 library for Arduino). These libraries handle the low-level SPI communication and display commands.

4.1 Software Setup (Arduino Example)

  1. Install Libraries: Open your Arduino IDE, go to Sketch > Include Library > Manage Libraries. Search for "Adafruit GFX Library" and "Adafruit ST7789" (for 2.4/2.8 inch modules) or "Adafruit ST7796" (for 3.5 inch module) and install them.
  2. Include Headers: In your sketch, include the necessary headers:
    #include <Adafruit_GFX.h>
    #include <Adafruit_ST7789.h> // Or Adafruit_ST7796.h for 3.5 inch
  3. Define Pins: Define the pins connected to the display:
    #define TFT_CS    10
    #define TFT_DC    9
    #define TFT_RST   8 // Or -1 if you share Arduino reset pin
  4. Initialize Display: Create an instance of the display object:
    Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
  5. Begin Display: In your setup() function, initialize the display:
    tft.init(240, 320); // For 2.4/2.8 inch (width, height)
    // tft.init(320, 480); // For 3.5 inch (width, height)
    tft.setRotation(2); // Adjust rotation as needed
    tft.fillScreen(ST77XX_BLACK);

4.2 Basic Display Functions

Once initialized, you can use the GFX library functions to draw graphics and text:

  • tft.fillScreen(color);: Fills the entire screen with a specified color.
  • tft.drawPixel(x, y, color);: Draws a single pixel.
  • tft.drawLine(x0, y0, x1, y1, color);: Draws a line.
  • tft.drawRect(x, y, w, h, color);: Draws a rectangle outline.
  • tft.fillRect(x, y, w, h, color);: Draws a filled rectangle.
  • tft.setCursor(x, y);: Sets the text cursor position.
  • tft.setTextColor(color);: Sets text color.
  • tft.setTextSize(size);: Sets text size.
  • tft.print("Hello World!");: Prints text to the display.

5. Maintenance

These TFT display modules are generally low-maintenance. Follow these guidelines to ensure longevity:

  • Cleaning: Use a soft, dry, lint-free cloth to gently wipe the screen surface. Avoid abrasive materials or harsh chemical cleaners.
  • Handling: Always handle the module by its edges or PCB to avoid touching the display surface or damaging components.
  • Storage: Store the module in a dry, anti-static environment, away from direct sunlight and extreme temperatures.
  • Power: Ensure stable power supply within the specified voltage range (3.3V/5V). Over-voltage can damage the module.

6. Troubleshooting

If you encounter issues with your TFT display module, consider the following troubleshooting steps:

  • No Display/Blank Screen:
    • Check all wiring connections (VCC, GND, SPI pins, RES, DC, CS). Ensure they are secure and correctly connected.
    • Verify power supply voltage (3.3V or 5V) is correct and stable.
    • Confirm that the backlight (BLK) pin is correctly connected and receiving power (if not controlled by software).
    • Ensure the display initialization code in your sketch matches the driver chip (ST7789V or ST7796S) and resolution of your specific module.
    • Try a simple "Hello World" example sketch to rule out complex code issues.
  • Garbled/Incorrect Display:
    • Double-check SPI connections (SCL, SDA, CS).
    • Verify the correct driver library is used for your module (ST7789 for 2.4/2.8 inch, ST7796 for 3.5 inch).
    • Ensure the resolution set in tft.init() matches your module's resolution.
    • Check the setRotation() setting; incorrect rotation can make the display appear garbled.
  • Display Not Responding:
    • Ensure the Reset (RES) pin is correctly connected and toggled during initialization.
    • Check if the Chip Select (CS) pin is correctly toggled by the library during SPI communication.
    • Verify that the SPI clock speed is compatible with your module and microcontroller.

7. User Tips

  • IPS Panel: The display modules feature an IPS (In-Plane Switching) panel, which provides wide viewing angles and good color reproduction. This is a key advantage over older TN panels.
  • Customization: These modules are marked as 'customizable', indicating flexibility for advanced users to integrate them into various projects.

8. Warranty and Support

For technical support, driver code examples, or further inquiries, please refer to the TENSTAR ROBOT official store or contact their customer service. Information regarding specific warranty terms may be available on the product's purchase page or through the seller.

Seller: TENSTAR ROBOT GREAT WALL Store

Store URL: TENSTAR ROBOT GREAT WALL Store

© 2024 TENSTAR ROBOT. All rights reserved.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.