3.3V to 5V
3.3V to 5V
typically 100mA (max 150mA)
65.5mm x 36.5mm x 11.5mm (W x H x D)
Applications
| The Nextion BASIC NX3224T024 is suitable for a wide range of IoT applications, including |
Advantages
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.
Nextion BASIC NX3224T024 2.4" TFT Man-Machine Interface HMI Kernel LCD Touch Display DocumentationOverviewThe 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 SpecificationsDisplay 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: 5VProgramming LanguageThe 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 InterfaceIn 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 ArduinoIn 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 3SoftwareSerial 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 DataIn 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.