Software Serial support has been added. Now connect Nextion HMI display to any two pins of ESP8266. Check out our Github Repository for modified Nextion library for ESP8266 (Tutorial work is in progress).
Nextion is a Seamless Human Machine Interface (HMI) solution that provides a control and visualization interface between a human and a process, machine, application or appliance. Nextion is mainly applied to IoT or consumer electronics field. It is the best solution to replace the traditional LCD and LED.
Nextion includes hardware part (A series of TFT boards) and software part (Nextion editor). The Nextion TFT board uses only one serial port to communicate. It lets you avoid the hassle of wiring. Nextion editor has mass components such as button, text, progress bar, slider, instrument panel etc. to enrich your interface design. And the drag-and-drop function ensures that you spend less time in programming, which will reduce 99% of your development workloads. With the help of this Nextion editor, designing a GUI is a piece of cake.
Interesting? So let’s make the working combination of Nextion and ESP8266, Just FOLLOW ME 😛
- Nextion display of your choice (We used Nextion 2.4″ in this demonstration)
- ESP8266 ESP-12E or ESP-12F or NodeMCU or WeMos D1 Mini (ESP-12E or ESP-12F requires additional hardware, For further information see ESP8266 Basic Setup and Program using Arduino IDE)
- CP2102 Micro USB to UART TTL Module
- Arduino IDE with ESP8266 support
- Nextion Example Sketch
- Nextion Project File (HMI)
- Nextion Editor
- Nextion library
Nextion Editor is a Windows based drag and drop tool for creation Nextion GUI in real time, as you can see what you are building. Here is the fun begins, so let’s get started 😎 . Download Nextion Editor and install it. Download Nextion HMI file for current project and open it with Nextion Editor. Follow the video tutorial for rest of demonstration.
Download Nextion Library and install it. Download .ino file from Nextion Example Sketch zip file. If you are using your own sketch, use the baud rate of 9600 in “void setup” function i.e. Serial.begin(9600); Follow the video for rest of the demonstration.