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

How to Use Nextion Basic 3.2 inch: Examples, Pinouts, and Specs

Image of Nextion Basic 3.2 inch
Cirkit Designer LogoDesign with Nextion Basic 3.2 inch in Cirkit Designer

Introduction

The Nextion Basic 3.2 inch (NX4024T032_011) is a human-machine interface (HMI) display module designed to simplify the development of interactive user interfaces for embedded systems. Featuring a 3.2-inch resistive touchscreen, this module allows users to create visually appealing and functional interfaces without the need for extensive programming. It includes a built-in graphics engine and supports serial communication, making it compatible with a wide range of microcontrollers, including Arduino, Raspberry Pi, and other platforms.

Explore Projects Built with Nextion Basic 3.2 inch

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP8266 NodeMCU OLED Display: Wi-Fi Enabled Hello World Project
Image of oled: A project utilizing Nextion Basic 3.2 inch in a practical application
This circuit features an ESP8266 NodeMCU microcontroller connected to a 1.3-inch OLED display via I2C communication. The microcontroller initializes the display and renders basic graphics and text, demonstrating a simple interface for visual output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based OLED Clock with RTC and LiPo Battery Charging
Image of RTC for Keyboard: A project utilizing Nextion Basic 3.2 inch in a practical application
This circuit features an Arduino Nano connected to an OLED display and a DS3231 real-time clock (RTC) module for displaying the current time. The Arduino Nano is powered through a toggle switch connected to its VIN pin, with power supplied by a TP4056 charging module that charges and manages two 3.7V LiPo batteries connected in parallel. The OLED and RTC module communicate with the Arduino via I2C, with shared SDA and SCL lines connected to the A4 and A5 pins of the Arduino, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled LCD Interface with Pushbutton Inputs
Image of MacroDisplay: A project utilizing Nextion Basic 3.2 inch in a practical application
This circuit features a Nano 3.0 ATmega328P microcontroller connected to a 16x2 I2C LCD display for output. Two pushbuttons, each with a 10k Ohm pull-down resistor, are connected to digital pins D2 and D3 of the microcontroller for input. The LCD and pushbuttons are powered by the 5V output from the microcontroller, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Controlled TFT Touchscreen Interface
Image of Tablero Moto: A project utilizing Nextion Basic 3.2 inch 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

Explore Projects Built with Nextion Basic 3.2 inch

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 oled: A project utilizing Nextion Basic 3.2 inch in a practical application
ESP8266 NodeMCU OLED Display: Wi-Fi Enabled Hello World Project
This circuit features an ESP8266 NodeMCU microcontroller connected to a 1.3-inch OLED display via I2C communication. The microcontroller initializes the display and renders basic graphics and text, demonstrating a simple interface for visual output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RTC for Keyboard: A project utilizing Nextion Basic 3.2 inch in a practical application
Arduino Nano-Based OLED Clock with RTC and LiPo Battery Charging
This circuit features an Arduino Nano connected to an OLED display and a DS3231 real-time clock (RTC) module for displaying the current time. The Arduino Nano is powered through a toggle switch connected to its VIN pin, with power supplied by a TP4056 charging module that charges and manages two 3.7V LiPo batteries connected in parallel. The OLED and RTC module communicate with the Arduino via I2C, with shared SDA and SCL lines connected to the A4 and A5 pins of the Arduino, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MacroDisplay: A project utilizing Nextion Basic 3.2 inch in a practical application
Arduino Nano Controlled LCD Interface with Pushbutton Inputs
This circuit features a Nano 3.0 ATmega328P microcontroller connected to a 16x2 I2C LCD display for output. Two pushbuttons, each with a 10k Ohm pull-down resistor, are connected to digital pins D2 and D3 of the microcontroller for input. The LCD and pushbuttons are powered by the 5V output from the microcontroller, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Tablero Moto: A project utilizing Nextion Basic 3.2 inch 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

Common Applications and Use Cases

  • Home automation control panels
  • Industrial equipment interfaces
  • IoT device dashboards
  • Medical device displays
  • Educational and hobbyist projects

Technical Specifications

Below are the key technical details of the Nextion Basic 3.2 inch module:

Specification Details
Display Size 3.2 inches
Resolution 400 x 240 pixels
Touchscreen Type Resistive
Communication Interface UART (Serial)
Operating Voltage 5V DC
Power Consumption 90mA (typical)
Flash Memory 4MB
RAM 3584 bytes
Processor 48 MHz Cortex-M0
Operating Temperature -20°C to 70°C
Dimensions 95mm x 47.6mm x 5.55mm

Pin Configuration and Descriptions

The Nextion Basic 3.2 inch module has a 4-pin interface for communication and power:

Pin Name Description
1 GND Ground connection
2 VCC Power supply input (5V DC)
3 TX Transmit data (UART output to microcontroller RX)
4 RX Receive data (UART input from microcontroller TX)

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V power source and the GND pin to ground.
  2. Establish Serial Communication: Connect the TX pin of the Nextion module to the RX pin of your microcontroller, and the RX pin of the module to the TX pin of the microcontroller.
  3. Design the Interface: Use the Nextion Editor software to design your user interface. Export the .tft file and upload it to the module via a microSD card.
  4. Write Microcontroller Code: Use serial commands to interact with the module. For example, you can send commands to update text, change pages, or read touch events.

Important Considerations and Best Practices

  • Power Supply: Ensure a stable 5V power supply to avoid damage or erratic behavior.
  • Baud Rate: Configure the UART baud rate in the Nextion Editor to match your microcontroller's settings.
  • Level Shifting: If using a 3.3V microcontroller, use a level shifter for the TX and RX lines to avoid damaging the module.
  • Touch Calibration: The module comes pre-calibrated, but you can recalibrate it if necessary using the Nextion Editor.

Example Code for Arduino UNO

Below is an example of how to interface the Nextion Basic 3.2 inch module with an Arduino UNO:

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial nextion(10, 11); // RX = Pin 10, TX = Pin 11

void setup() {
  // Initialize serial communication with Nextion
  nextion.begin(9600); // Set baud rate to match Nextion settings
  Serial.begin(9600);  // For debugging via Serial Monitor

  // Send a command to change the text of a component (e.g., t0)
  nextion.print("t0.txt=\"Hello, World!\""); // Update text on the display
  nextion.write(0xFF); // End of command
  nextion.write(0xFF); // Required by Nextion protocol
  nextion.write(0xFF); // Required by Nextion protocol
}

void loop() {
  // Example: Read touch events from the Nextion display
  if (nextion.available()) {
    String response = "";
    while (nextion.available()) {
      response += (char)nextion.read(); // Read incoming data
    }
    Serial.println("Nextion Response: " + response); // Print response
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Display Output:

    • Ensure the module is powered with a stable 5V supply.
    • Verify that the .tft file is correctly uploaded to the module.
  2. Serial Communication Not Working:

    • Check the baud rate settings in both the Nextion Editor and your microcontroller code.
    • Ensure the TX and RX pins are correctly connected.
  3. Touchscreen Not Responding:

    • Verify that the touchscreen is not physically damaged.
    • Recalibrate the touchscreen using the Nextion Editor if necessary.
  4. Corrupted Display:

    • Re-upload the .tft file to the module using a properly formatted microSD card.

FAQs

Q: Can I use the Nextion Basic 3.2 inch module with a 3.3V microcontroller?
A: Yes, but you must use a level shifter for the TX and RX lines to avoid damaging the module.

Q: How do I update the firmware or interface design?
A: Use the Nextion Editor to create or modify your design, export the .tft file, and upload it to the module via a microSD card.

Q: What is the maximum cable length for UART communication?
A: For reliable communication, keep the cable length under 1 meter. Use shielded cables for longer distances.

Q: Can I use multiple Nextion displays with one microcontroller?
A: Yes, but each display must be connected to a separate UART port or controlled via a multiplexer.