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
(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.
(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.
(no subject) (by OnoTech)
Thanks, Tom. this very helpful.