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

How to Use Adafruit 1.54inch 240x240 IPS TFT: Examples, Pinouts, and Specs

Image of Adafruit 1.54inch 240x240 IPS TFT
Cirkit Designer LogoDesign with Adafruit 1.54inch 240x240 IPS TFT in Cirkit Designer

Introduction

The Adafruit 1.54inch 240x240 IPS TFT (Manufacturer Part ID: 3787) is a compact, high-resolution display module designed for embedded systems and DIY electronics projects. Featuring a 240x240 pixel resolution with IPS (In-Plane Switching) technology, this display offers wide viewing angles and vibrant color reproduction. It is ideal for applications requiring a small yet high-quality display, such as wearable devices, IoT dashboards, and portable instruments.

Explore Projects Built with Adafruit 1.54inch 240x240 IPS TFT

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Mega 2560 Controlled TFT Touchscreen Interface
Image of Tablero Moto: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
This circuit connects an Arduino Mega 2560 microcontroller to a 3.5-inch 480x320 TFT LCD display. The Arduino provides power, ground, and digital signals to control the display, including data lines for pixel information and control lines for reset, write, and command/data selection. The embedded code initializes the display and configures the Arduino's pins for communication, likely to create a user interface or visual output for a project.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered 1.3 inch TFT Display Module for Visual Data Output
Image of ESP32+ST7789: A project utilizing Adafruit 1.54inch 240x240 IPS TFT 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
Arduino Nano Controlled TFT Display with Multiple Pushbuttons
Image of rey: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
This circuit features an Arduino Nano microcontroller connected to a ST7735 128x128 1.44 TFT I2C Color display and multiple pushbuttons. The display is interfaced with the Arduino via digital pins for control signals and SPI pins for data transfer. The pushbuttons are connected to various digital and analog input pins on the Arduino, likely intended for user input to control the display or other functions within the code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ILI9341 TFT Display Interactive Graphics Demo
Image of CE Test ili9341: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
This circuit interfaces an Arduino UNO with an ILI9341 TFT display using two bi-directional logic level converters to manage voltage differences. The Arduino runs a program to test various graphical functions on the TFT display, demonstrating its capabilities through a series of visual benchmarks.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit 1.54inch 240x240 IPS TFT

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 Tablero Moto: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
Arduino Mega 2560 Controlled TFT Touchscreen Interface
This circuit connects an Arduino Mega 2560 microcontroller to a 3.5-inch 480x320 TFT LCD display. The Arduino provides power, ground, and digital signals to control the display, including data lines for pixel information and control lines for reset, write, and command/data selection. The embedded code initializes the display and configures the Arduino's pins for communication, likely to create a user interface or visual output for a project.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32+ST7789: A project utilizing Adafruit 1.54inch 240x240 IPS TFT 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 rey: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
Arduino Nano Controlled TFT Display with Multiple Pushbuttons
This circuit features an Arduino Nano microcontroller connected to a ST7735 128x128 1.44 TFT I2C Color display and multiple pushbuttons. The display is interfaced with the Arduino via digital pins for control signals and SPI pins for data transfer. The pushbuttons are connected to various digital and analog input pins on the Arduino, likely intended for user input to control the display or other functions within the code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CE Test ili9341: A project utilizing Adafruit 1.54inch 240x240 IPS TFT in a practical application
Arduino UNO and ILI9341 TFT Display Interactive Graphics Demo
This circuit interfaces an Arduino UNO with an ILI9341 TFT display using two bi-directional logic level converters to manage voltage differences. The Arduino runs a program to test various graphical functions on the TFT display, demonstrating its capabilities through a series of visual benchmarks.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Wearable electronics (e.g., smartwatches)
  • IoT devices and dashboards
  • Portable measurement tools
  • Compact user interfaces for embedded systems
  • Gaming devices and retro consoles

Technical Specifications

Below are the key technical details of the Adafruit 1.54inch 240x240 IPS TFT:

General Specifications

Parameter Value
Display Type IPS TFT
Resolution 240x240 pixels
Screen Size 1.54 inches (diagonal)
Interface SPI (Serial Peripheral Interface)
Color Depth 16-bit (65,536 colors)
Backlight White LED
Operating Voltage 3.3V or 5V (logic level compatible)
Operating Temperature -20°C to 70°C

Pin Configuration

The display module has a total of 7 pins. Below is the pinout and description:

Pin Name Pin Number Description
VIN 1 Power input (3.3V or 5V). Provides power to the display and backlight.
GND 2 Ground connection.
SCK 3 SPI clock input.
MOSI 4 SPI data input (Master Out Slave In).
CS 5 Chip Select. Active low signal to enable communication with the display.
DC 6 Data/Command select. High for data, low for command.
RST 7 Reset pin. Active low to reset the display.

Usage Instructions

Connecting the Display to an Arduino UNO

To use the Adafruit 1.54inch 240x240 IPS TFT with an Arduino UNO, follow these steps:

  1. Wiring the Display: Connect the display module to the Arduino UNO as shown below:

    Display Pin Arduino UNO Pin
    VIN 5V
    GND GND
    SCK D13
    MOSI D11
    CS D10
    DC D9
    RST D8
  2. Install Required Libraries:

    • Download and install the Adafruit_GFX and Adafruit_ST7789 libraries from the Arduino Library Manager.
  3. Example Code: Use the following example code to initialize and display graphics on the screen:

    // Include necessary libraries
    #include <Adafruit_GFX.h>       // Core graphics library
    #include <Adafruit_ST7789.h>   // Driver for ST7789 display
    
    // Define pins for the display
    #define TFT_CS    10  // Chip Select pin
    #define TFT_DC    9   // Data/Command pin
    #define TFT_RST   8   // Reset pin
    
    // Create an instance of the display
    Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
    
    void setup() {
      // Initialize the display
      tft.init(240, 240);  // Initialize with 240x240 resolution
      tft.setRotation(1);  // Set display orientation (1 = landscape)
    
      // Fill the screen with a solid color
      tft.fillScreen(ST77XX_BLACK);
    
      // Draw a rectangle with text
      tft.fillRect(50, 50, 140, 140, ST77XX_BLUE);
      tft.setTextColor(ST77XX_WHITE);
      tft.setTextSize(2);
      tft.setCursor(60, 100);
      tft.print("Hello!");
    }
    
    void loop() {
      // Nothing to do here
    }
    

Important Considerations

  • Ensure the power supply voltage matches the display's requirements (3.3V or 5V).
  • Use level shifters if interfacing with a 5V logic system to avoid damaging the display.
  • Avoid excessive bending or stress on the display module to prevent damage.
  • Use the Adafruit_GFX library for advanced graphics functions like shapes, text, and images.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Display Not Turning On:

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check all connections and ensure the VIN pin is receiving 3.3V or 5V.
  2. No Image or Incorrect Colors:

    • Cause: Incorrect initialization or library mismatch.
    • Solution: Verify that the Adafruit_GFX and Adafruit_ST7789 libraries are installed and up to date. Ensure the tft.init() function is called with the correct resolution.
  3. Flickering or Artifacts:

    • Cause: SPI communication issues or loose connections.
    • Solution: Check the SPI clock speed and ensure all connections are secure.
  4. Reset Pin Not Working:

    • Cause: RST pin not connected or improperly configured.
    • Solution: Ensure the RST pin is connected to the correct Arduino pin and is properly defined in the code.

FAQs

Q: Can I use this display with a Raspberry Pi?
A: Yes, the display is compatible with Raspberry Pi. You can use the SPI interface and appropriate libraries like Pillow or ST7789 Python libraries.

Q: What is the maximum SPI clock speed supported?
A: The display supports SPI clock speeds up to 15 MHz for optimal performance.

Q: Can I use this display in outdoor environments?
A: While the display has a wide operating temperature range, it is not waterproof or sunlight-readable. Consider additional enclosures or filters for outdoor use.

Q: How do I display images on the screen?
A: Use the Adafruit_GFX library to load bitmap images. Convert images to a compatible format (e.g., 24-bit BMP) before displaying them.

This concludes the documentation for the Adafruit 1.54inch 240x240 IPS TFT. For further assistance, refer to the official Adafruit guide or community forums.