I always wanted to have a touchscreen Interface in my projects which are related to arduino, raspberry pi and esp8266. I earlier used the cheap Chinese touchscreen display which used to have resistive touchscreen. The problem with these display is that they take a lot of I/O's on our micro controller. So, we are limited with the extent of the project. Also debugging them is also is a pain in a ass. and also we are limited by the storage space of our favorite arduino. So, there is this Nextion HMI display which solves the need.
You may wonder what is the Nextion HMI Display . 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 . This display is manufactured by Itead Studio . This display is graphically programmed using a software named Nextion editor which is also made by Itead Studio.
The enhanced version of these display has a RTC (Real Time Clock), more storage and faster processor upto 108MHz.
To Know more Click Here:- http://shink.in/Gh5c2
The above link is paid and i get small income from the ads.
The below link is without ads
Enough of the talks So let's get to some work. First of all this is not a full guide to use the display but rather it is a overview to get you started using this display because after you know the basics you can make anything on this very device. This is important as there is little to no documentation provided and it takes a while to know everything.
In the box you get The display itself , a wire set, and a micro USB C breakout Board.
The one I chose for this tutorial is "NX3224T024_011R" it is 2.4" display having 320x240 resolution and 4 Mb of memory.
Also you require a micro SD card of about 4 GB to 32 GB formatted with FAT 32.
At first you need to download the Nextion editor software.
The link to the software is here :-http://shink.in/21hOS
the above link is paid
The below link is add free link
Installing the software is easy but still i have provided the pictures to illustrate the steps.
After you have installed the software download the file provided below
Or
This link without ads
Download the file above you while see a file named "First_Test.hmi". Double click to open that file and the Nextion Editor Software will start. It will prompt you to set the display first. First click the button that has your nextion display model on it . Then go the display tab on the left and choose the orientation of the display. In my case i Chose 90 degree horizontal.
This it Now you have succesfully setup your display.
Now, I will not get into Detail on how the software is used. but i will tell you about the basic tools that will get up and running.
On the top bar you can see icons of ' Open , New, Save , Compile, Debug , Upload.
All the icons are self explanatory except Debug and compile. The Compile icon will obviously compile the code and debug icon is used for debugging and simulation.
Follow these Steps Carefully:-
So you have your own DIY touchscreen display.