Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 08:56:10 08:56


Login with username, password and session length


Pages: [1]
Print
Author Topic: Nextion HMI Simulation  (Read 8869 times)
0 Members and 1 Guest are viewing this topic.
intel
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 53
-Receive: 2141



« on: September 29, 2016, 05:30:13 17:30 »


Hello friends;
While trying to develop a new project with GLCD, I met with Nextio HMI. Very useful. The price is affordable. Many Arduino help file and sample codes are available. I differ, I wrote a new code with Proton Basic. To communicate with the serial port (with Eltima Serial Port Driver), I set up the circuit on Proteus. To complete the simulation, you need to install the Nextion Editor. To merged pictures, resized JPG files and convert to PNG file, I use free distributed Paint.net v4.0.12. 

Several links that may be of interest:



Nextion is a Seamless Human Machine Interface (HMI) solution that provides a control and visualisation 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 Nixie tube.
Nextion includes hardware part (a series of TFT boards) and software part (the Nextion editor). The Nextion TFT board uses only one serial port to communicate. It lets you avoid the hassle of wiring. We notice that most engineers spend much time in application development but get unsatisfactory results. In this situation, 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 WYSIWYG editor, designing a GUI is a piece of cake.

Nextion Site:
http://nextion.itead.cc/index.html#home

Nextion Editor (Programming and simulation):
http://nextion.itead.cc/download.html

Tutorial
https://www.itead.cc/wiki/Tutorial

Sales for Aliexpress:
https://www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20160929080400&SearchText=Nextion+HMI

I added the test sample files.

Logged

In life, most genuine mentor is science.
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 747

Thank You
-Given: 169
-Receive: 1288



« Reply #1 on: September 30, 2016, 07:30:10 07:30 »

I bought the 3.5 inch model last year and it's an amazing HMI with fast touch response, the software is a bit hard but the amazing feature is the simulator. you can simulate the hmi with a real micrcontroller circuit.

I hope they make a case for it.
Logged
intel
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 53
-Receive: 2141



« Reply #2 on: September 30, 2016, 10:41:34 10:41 »

I did just simulation. I did not order. But I will use the device. There are demos that can be useful below.

https://www.youtube.com/watch?v=wnFKmwkshds&list=PLoRAgPNU5jg0H4_ciP3rjjwNCBXLP409v
https://www.youtube.com/watch?v=D-zgtylBKUc
https://www.youtube.com/watch?v=t3y08wBBB8c
https://www.youtube.com/watch?v=3mD2OCcmP84&list=PLa9feQ1iIn7mMu6iWkSdZj5vbBPMYf_Rl&index=1
Logged

In life, most genuine mentor is science.
Some Anon Guy
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 58
-Receive: 25



« Reply #3 on: October 05, 2016, 12:46:19 00:46 »

I have made a few 3D models for the 4.3 Nextion Displays,
You can get them off of grabcad.com
https://grabcad.com/library/nextion-enhanced-4-3-hmi-1
https://grabcad.com/library/nx4827t043-1

I will also model the 2.4 at some piont.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4639

Thank You
-Given: 823
-Receive: 4194


There is no evidence that I muted SoNsIvRi


« Reply #4 on: October 24, 2016, 11:56:26 11:56 »

Not an easy display to use, lack of documentation, but there is a few youtube videos that made is easier.
downside of this I had to revert to a an Older display, to meet the deadline, and a few extras for the project, had to be discarded.

Pros. I like the sd-card update
Cons. Lack of documentation. Sadly not an easy 10mins, as some say it took to get it up and running.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Some Anon Guy
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 58
-Receive: 25



« Reply #5 on: October 27, 2016, 07:22:46 19:22 »

I agree the documentation is lacking,
Here are a couple of links that beginners may find helpful.
https://www.itead.cc/wiki/Nextion_Instruction_Set
http://support.iteadstudio.com/support/discussions/topics/1000065323

Also, the library has a few limitations. Specifically the one that caused me some grief was that the library only takes uint32 values for the number boxes. This means no negative numbers. It also does not seem to like decimal points... Needs work.
You do not have to use the library and can send the commands as text to the display over the serial port.
example:
Code:
 
// Generate Display Data
    EGT1 = (((strtol(&rxWord1[15],0,16)*256)+strtol(&rxWord1[18],0,16))*0.18)-40;

// Display the EGTs
    Serial2.print("page1.n0.val=" + String(EGT1));
    Serial2.write(0xff);
    Serial2.write(0xff);    // sending 3 "0xff" tell the nextion that the command is complete...
    Serial2.write(0xff);

I have noticed that you really need to not use blocking delays in you code (arduino: delay(500)Wink
Obviously this delays the processor and will prevent it from processing the incoming commands from the display.

If you are doing two way communication from the display back to the MCU, then you should if using the library, scatter
Code:
nexLoop(nex_listen_list);
throughout your application to help catch and process the incoming commands in a timely manner. That is a library function included in the library for the arduino.

Using the attachPop and attachPush calls to objects on the display are helpful to catching events.
Here is a link explaining them.
http://support.iteadstudio.com/support/discussions/topics/1000062402

I have found most everything I have needed from these pages and by dissecting the demo apps available in the second link.

Hope someone finds this helpful...


Posted on: October 28, 2016, 04:15:58 am - Automerged

Here are 2 links to a bezel for the 4.3" display and a windshield mount for the 2.4" display.
I created the 4.3 bezel copying the measurements from my displays and the STL files from Itead.
https://grabcad.com/library/nextion-4-3-bezel-1

The 2.4 windshield mount was designed by my to mount the 2.4" display between my rear view mirror and the headliner in my truck. I use it to display OBD II data.
https://grabcad.com/library/windshield-box-mount-1
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC