Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Nextion Enhanced HMI Solved

(you are viewing a thread; or go back to list of threads)

Nextion Enhanced HMI Solved (by Tom J.)
In this post I'm going to focus on sending and receiving serial data uart with the HMI. Enclosed in this zip file you will find a ladder and the HMI file to be used with the Nextion software.
The big hurdle was the stop bits And as it turns out sending those stop bits as hex was the problem.
There is a special character that needs to be used in place of 0xFF that can be obtained with a keyboard combination of ALT+0255 that must be used as the spot bits.
The ladder file is pretty well commented but I kind of jumped the gun on the HMI file and didn't do any commenting in there, fortunately the HMI file is pretty simple to understand as it sits.

Let there be Nextions in LdMicro!
Today, 15:38:42, download attachment LdMicroVSNextion.zip
Sun Apr 19 2020, 15:39:42, download attachment LdMicroVSNextion.zip
(no subject) (by Tom J.)
I forgot to add, the knowledge about the special character came from a member of the Nextion forum, I tried every possible combination of that stop bit and the first thing he said about the special characters worked.
Sun Apr 19 2020, 15:46:37
(no subject) (by Tom J.)
This one's a simple method of taking 4 of the Nextion GPIO pins and making 15 outputs from them with binary.
There's a couple rungs at the bottom to send the calculated variable back to Nextion through UART just for fun.
The Nextion has 8 GPIO pins, that means expanding this ladder and utilizing them could yield as many as 127 outputs .... not that there's a pic with that many IOs but it is turned into a variable in the pic just the same.

While I can't imagine a use for it, this same basic idea could be used in reverse to put a variable in the Nextion.

The ld & Nextion HMI file are in the attached zip.
Wed Apr 22 2020, 11:47:03, download attachment NextionBinary.zip
(no subject) (by OnoTech)
Thanks, Tom. this very helpful.
Tue Apr 20 2021, 07:41:25
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):