Stufin
Home Quick Cart Profile

Elecrow 2.4 inch HMI touch display 240320 TTL serial screen

Buy Now on Stufin

Component Name

Elecrow 2.4 inch HMI Touch Display 240320 TTL Serial Screen

Overview

The Elecrow 2.4 inch HMI touch display is a compact, high-resolution graphical user interface (GUI) module designed for a wide range of IoT and embedded system applications. This display module features a 2.4-inch TFT LCD screen with a resolution of 240x320 pixels, a resistive touch panel, and a TTL serial interface for communication with microcontrollers or other host devices.

Functionality

The Elecrow 2.4 inch HMI touch display is a versatile component that enables users to create interactive and intuitive GUIs for their projects. The module's primary functions include

Displaying graphics, text, and images on the 2.4-inch TFT LCD screen

Detecting touch input from the resistive touch panel

Communicating with host devices or microcontrollers through the TTL serial interface

Executing commands and displaying feedback based on user input and system status

Key Features

  • Display Specifications:

Screen size

2.4 inches (diagonal)

Resolution

240x320 pixels (QVGA)

Display type

TFT LCD (Thin-Film Transistor Liquid Crystal Display)

Brightness

250 cd/m (typical)

Viewing angle

60 (left/right), 50 (up/down)

  • Touch Panel:

Resistive touch technology

Supports single-touch input

Touch detection accuracy

1 mm (typical)

  • Interface and Communication:

TTL serial interface (RX, TX, VCC, GND)

Baud rate

9600 bps (default), adjustable up to 115200 bps

Communication protocol

8-bit data, 1-bit parity, 1-bit stop

  • Power Supply:

Operating voltage

5V DC

Power consumption

150 mA (typical), 250 mA (maximum)

  • Mechanical Characteristics:

Module size

65.5 x 47.5 mm

PCB thickness

1.6 mm

Mounting holes

  • Operating Environment:
4 x M2.5 holes (pitch50 mm)

Operating temperature

-20C to 70C

Storage temperature

-30C to 80C

Humidity

5% to 95% RH (non-condensing)

Applications

The Elecrow 2.4 inch HMI touch display is suitable for a wide range of applications, including

IoT devices and smart home systems

Industrial control and automation systems

Medical devices and equipment

Wearable devices and mobile accessories

Robotics and autonomous systems

Embedded systems and development boards

Documentation and Resources

For more information, please refer to the following documents and resources

Elecrow 2.4 inch HMI Touch Display datasheet

Elecrow 2.4 inch HMI Touch Display user manual

TTL serial communication protocol documentation

Sample code and libraries for popular microcontrollers and development boards

Pin Configuration

  • Elecrow 2.4 inch HMI Touch Display 240320 TTL Serial Screen Pinout Guide
  • The Elecrow 2.4 inch HMI touch display is a TFT LCD screen with a resolution of 240x320 pixels, featuring a TTL serial interface for communication with microcontrollers or other devices. This documentation provides a detailed explanation of each pin on the display's interface, along with a structured guide on how to connect them.
  • Pinout Diagram:
  • The display has a 14-pin interface, which can be divided into three categories: Power, Communication, and Touch Panel.
  • Power Pins:
  • 1. VCC (Pin 1): Power supply voltage (3.3V or 5V) for the display.
  • 2. GND (Pin 2): Ground connection for the display.
  • Communication Pins:
  • 3. RX (Pin 3): TTL serial receive pin for data transmission from the host device.
  • 4. TX (Pin 4): TTL serial transmit pin for data transmission to the host device.
  • 5. SCLK (Pin 5): Clock signal pin for serial communication.
  • 6. CS (Pin 6): Chip select pin for serial communication.
  • Touch Panel Pins:
  • 7. TP_INT (Pin 7): Interrupt pin for touch panel events (active low).
  • 8. TP_CLK (Pin 8): Clock signal pin for touch panel communication.
  • 9. TP_DATA (Pin 9): Data pin for touch panel communication.
  • Reserved Pins:
  • 10. NC (Pin 10): Not Connected (reserved for future use).
  • 11. NC (Pin 11): Not Connected (reserved for future use).
  • 12. NC (Pin 12): Not Connected (reserved for future use).
  • 13. NC (Pin 13): Not Connected (reserved for future use).
  • 14. NC (Pin 14): Not Connected (reserved for future use).
  • Connection Structure:
  • To connect the Elecrow 2.4 inch HMI touch display to your microcontroller or device, follow these steps:
  • Power Connections:
  • Connect VCC (Pin 1) to a 3.3V or 5V power supply.
  • Connect GND (Pin 2) to the ground connection of your device.
  • Communication Connections:
  • Connect RX (Pin 3) to the TX pin of your device (e.g., microcontroller).
  • Connect TX (Pin 4) to the RX pin of your device (e.g., microcontroller).
  • Connect SCLK (Pin 5) to the clock signal pin of your device.
  • Connect CS (Pin 6) to the chip select pin of your device.
  • Touch Panel Connections:
  • Connect TP_INT (Pin 7) to an interrupt pin on your device (active low).
  • Connect TP_CLK (Pin 8) to a clock signal pin on your device.
  • Connect TP_DATA (Pin 9) to a data pin on your device.
  • Important Notes:
  • Make sure to use a level shifter or voltage divider if your device's communication voltage is different from the display's operating voltage (3.3V or 5V).
  • Ensure that your device's communication protocol matches the display's TTL serial interface.
  • Refer to the display's datasheet and your device's documentation for specific communication protocols and timing requirements.
  • By following this pinout guide and connection structure, you can successfully integrate the Elecrow 2.4 inch HMI touch display with your device or project.

Code Examples

Elecrow 2.4 inch HMI Touch Display 240320 TTL Serial Screen Documentation
Overview
The Elecrow 2.4 inch HMI touch display is a compact and versatile screen designed for IoT and embedded systems applications. It features a 240x320 pixel resolution, 2.4-inch diagonal size, and a 4-wire resistive touch panel. The display communicates with a host device using a TTL serial interface, making it easy to integrate into a wide range of projects.
Technical Specifications
Display Size: 2.4 inches
 Resolution: 240x320 pixels
 Touch Panel: 4-wire resistive
 Interface: TTL serial
 Power Supply: 5V
 Operating Temperature: -20C to 70C
 Storage Temperature: -30C to 80C
Connecting the Display
To connect the Elecrow 2.4 inch HMI touch display to a host device, you'll need to wire the following pins:
VCC: 5V power supply
 GND: Ground
 TX: TTL serial data transmission
 RX: TTL serial data reception
Example Code 1: Basic Display Initialization using Arduino
This example demonstrates how to initialize the display and print a simple message using an Arduino board.
```c
#include <SoftwareSerial.h>
// Define the TX and RX pins for the display
#define DISPLAY_TX 2
#define DISPLAY_RX 3
SoftwareSerial displaySerial(DISPLAY_TX, DISPLAY_RX);
void setup() {
  // Initialize the display serial interface
  displaySerial.begin(9600);
  
  // Initialize the display
  displaySerial.write(0xFF); // Display reset
  displaySerial.write(0x01); // Display clear
  displaySerial.write(0x11); // Display on
  
  // Print a message to the display
  displaySerial.println("Hello, World!");
}
void loop() {
  // Do nothing in this example
}
```
Example Code 2: Touch Event Handling using Raspberry Pi (Python)
This example demonstrates how to handle touch events using a Raspberry Pi and the Python programming language.
```python
import serial
import time
# Open the serial interface to the display
display_serial = serial.Serial('/dev/ttyUSB0', 9600, timeout=1)
def handle_touch(x, y):
  # Handle touch event logic here
  print(f"Touch detected at ({x}, {y})")
while True:
  # Read touch data from the display
  touch_data = display_serial.readline().strip()
  if touch_data.startswith(b'TP='):
    x, y = map(int, touch_data[3:].split(b','))
    handle_touch(x, y)
  
  time.sleep(0.01)  # Polling rate
```
Example Code 3: Displaying an Image using ESP32 (C++)
This example demonstrates how to display a bitmap image on the screen using an ESP32 board.
```c
#include <WiFi.h>
#include <SPI.h>
#define DISPLAY_CS 5 // Chip select pin for the display
#define DISPLAY_CLK 18 // Clock pin for the display
#define DISPLAY_MOSI 23 // MOSI pin for the display
SPIClass display_spi(HSPI);
void setup() {
  // Initialize the display SPI interface
  display_spi.begin(DISPLAY_CLK, DISPLAY_MOSI, DISPLAY_CS, -1);
  
  // Initialize the display
  display_spi.transfer(0xFF); // Display reset
  display_spi.transfer(0x01); // Display clear
  display_spi.transfer(0x11); // Display on
  
  // Load and display the image
  uint8_t image[] = { / bitmap image data / };
  display_spi.transfer(image, sizeof(image));
}
void loop() {
  // Do nothing in this example
}
```
These examples demonstrate the basic usage of the Elecrow 2.4 inch HMI touch display. For more advanced applications, you may need to consult the display's datasheet and the documentation for your specific host device.