Stufin
Home Quick Cart Profile

Nextion BASIC NX3224T024 2.4 TFT ManMachine Interface HMI kernel LCD Touch Display

Buy Now on Stufin

Operating voltage

3.3V to 5V

Power consumption

typically 100mA (max 150mA)

Dimensions

65.5mm x 36.5mm x 11.5mm (W x H x D)

Applications

  • Industrial control systems
  • Home automation systems
  • Medical devices
  • Consumer electronics
  • Automotive systems
  • Robotics and drones
The Nextion BASIC NX3224T024 is suitable for a wide range of IoT applications, including

Advantages

  • Easy to use and integrate into projects
  • Cost-effective compared to developing a custom HMI solution
  • Compact size and low power consumption
  • High-resolution display with capacitive touch capabilities
  • Compatible with various programming languages and protocols

Conclusion

The Nextion BASIC NX3224T024 is a versatile and feature-rich HMI kernel LCD touch display, ideal for developers and engineers working on IoT projects. Its compact size, low power consumption, and ease of use make it an attractive solution for integrating user-friendly interfaces into a wide range of applications.

Pin Configuration

  • Nextion BASIC NX3224T024 2.4" TFT Man-Machine Interface HMI kernel LCD Touch Display Pinout Explanation
  • The Nextion BASIC NX3224T024 is a 2.4" TFT LCD touch display with a built-in HMI kernel, suitable for various IoT applications. It has a total of 20 pins, which are explained below:
  • Pinout Structure:
  • The pinout structure of the Nextion BASIC NX3224T024 is divided into three sections:
  • Power supply pins (5 pins)
  • Communication pins (4 pins)
  • Control pins (11 pins)
  • Power Supply Pins:
  • 1. VCC (Pin 1): Connect to a 5V power supply (recommended operating voltage: 4.5V to 5.5V). The maximum current consumption is 150mA.
  • 2. GND (Pin 2): Connect to the system ground.
  • 3. VBAT (Pin 3): Connect to a 2.5V to 3.3V power supply for the internal battery-backed Real-Time Clock (RTC).
  • 4. VLED (Pin 4): Connect to a 3V to 5V power supply for the backlight LED (optional).
  • 5. GND (Pin 5): Connect to the system ground.
  • Communication Pins:
  • 1. TX (Pin 6): Serial transmission pin for UART communication.
  • 2. RX (Pin 7): Serial reception pin for UART communication.
  • 3. SCL (Pin 8): I2C clock pin.
  • 4. SDA (Pin 9): I2C data pin.
  • Control Pins:
  • 1. RST (Pin 10): Active-low reset pin. Pull low to reset the display.
  • 2. CS (Pin 11): Chip select pin for SPI communication.
  • 3. SCK (Pin 12): Clock pin for SPI communication.
  • 4. MISO (Pin 13): Master In Slave Out pin for SPI communication.
  • 5. MOSI (Pin 14): Master Out Slave In pin for SPI communication.
  • 6. TP_INT (Pin 15): Touch panel interrupt pin.
  • 7. TP_IRQ (Pin 16): Touch panel interrupt request pin.
  • 8. LED_K (Pin 17): LED cathode pin for backlight control.
  • 9. LED_A (Pin 18): LED anode pin for backlight control.
  • 10. NC (Pin 19): Not connected (reserved for future use).
  • 11. NC (Pin 20): Not connected (reserved for future use).
  • Connection Guidelines:
  • Use a 5V power supply for VCC and GND.
  • Use a 2.5V to 3.3V power supply for VBAT.
  • Connect VLED to a 3V to 5V power supply if using a backlight LED.
  • Use a serial communication protocol (e.g., UART, I2C, or SPI) to communicate with the display.
  • Connect the control pins according to your specific application requirements.
  • Note:
  • The pinout structure and connections may vary depending on the specific application and hardware design.
  • Consult the Nextion BASIC NX3224T024 datasheet and application notes for more detailed information on pin usage and connections.
  • By following these guidelines, you can properly connect the pins of the Nextion BASIC NX3224T024 and integrate it into your IoT project.

Code Examples

Nextion BASIC NX3224T024 2.4" TFT Man-Machine Interface HMI Kernel LCD Touch Display Documentation
Overview
The Nextion BASIC NX3224T024 is a 2.4-inch TFT color display with a capacitive touch panel, designed for human-machine interface (HMI) applications. It features a built-in HMI kernel, allowing users to create interactive interfaces without the need for an external microcontroller. This display is suitable for a wide range of applications, including industrial control, medical devices, consumer electronics, and more.
Technical Specifications
Display Size: 2.4 inches
 Display Resolution: 320x240 pixels
 Touch Panel: Capacitive
 HMI Kernel: Built-in
 Communication Interface: UART, I2C, and SPI
 Operating Temperature: -20C to 70C
 Power Supply: 5V
Programming Language
The Nextion BASIC NX3224T024 can be programmed using the Nextion Editor software, which allows users to create HMI interfaces using a drag-and-drop interface. The display also supports serial communication protocols, including UART, I2C, and SPI, allowing users to interact with the display using a microcontroller or other external devices.
Example 1: Basic Button Interface
In this example, we will create a simple button interface using the Nextion Editor software.
Nextion Editor Code:
```scss
// Create a new page
page0
  // Create a button
  button b0, 40, 40, 100, 50, "Button 0"
  // Set button properties
  b0.bco = 63488 // Set button color to blue
  b0.pco = 65504 // Set text color to white
  // Add a touch event
  b0.touch = "print('Button 0 pressed!')"
```
Example 2: Serial Communication with Arduino
In this example, we will use an Arduino Uno board to send commands to the Nextion display via UART serial communication.
Arduino Code:
```cpp
#include <SoftwareSerial.h>
// Define the Nextion display pins
#define NEXTION_RX 2
#define NEXTION_TX 3
SoftwareSerial nextionSerial(NEXTION_RX, NEXTION_TX);
void setup() {
  // Initialize the serial communication
  nextionSerial.begin(9600);
}
void loop() {
  // Send a command to the Nextion display
  nextionSerial.print("page 1");
  delay(1000);
  nextionSerial.print("page 0");
  delay(1000);
}
```
Nextion Editor Code:
```scss
// Create a new page
page0
  // Create a text component
  text t0, 40, 40, 100, 50, "Page 0"
page1
  // Create a text component
  text t1, 40, 40, 100, 50, "Page 1"
```
In this example, the Arduino board sends commands to the Nextion display to switch between two pages. The `page 1` command switches to page 1, and the `page 0` command switches back to page 0.
Example 3: Reading Sensor Data
In this example, we will use the Nextion display to read data from a temperature sensor connected to an Arduino board.
Arduino Code:
```cpp
#include <DHT.h>
#define DHTPIN 2
DHT dht(DHTPIN, DHT11);
void setup() {
  // Initialize the temperature sensor
  dht.begin();
}
void loop() {
  // Read temperature data
  float temperature = dht.readTemperature();
  // Send the temperature data to the Nextion display
  Serial.print("t0.txt=""Temperature: ");
  Serial.print(temperature);
  Serial.println("C""");
  delay(1000);
}
```
Nextion Editor Code:
```scss
// Create a new page
page0
  // Create a text component
  text t0, 40, 40, 100, 50, "Temperature: ??C"
```
In this example, the Arduino board reads temperature data from a DHT11 sensor and sends it to the Nextion display via UART serial communication. The Nextion display updates the text component with the received temperature data.