help for display Nextion + Arduino

Hello Lanfra,

The bug has been found and been solved. I have tested it with a small circuit and:

1)I removed the variable < va0 > from .ino file, because it was nowhere in the .HMI file and was sent all the time, confusing the code that I wrote, as I use the < va0 > variable in the code.

2)The system works as you want but:

a) Arduino can not "recognize" the current page and sends all the variables of all the pages continuously.
b) If the rotor is on moving either by hand or by software, Arduino loses connection with Nextion and the rotor will be moving "forever".

You must sent me the link for the Nextion library that you are using to see why the pages aren't declared.

I attached the .ino file.

and a link for the .HMI

http://seithan.com/data/documents/Antenna_rotation_mod_by_seithan.zip
Waiting for news.

-Thanasis Seitanis

Antenna_rotation_SEITHAN.ino (7.61 KB)

Dear Seithan,
it seems to me that it works very well ... I had to change the tim of tm0 and take it to 100 to avoid that the typed degrees were not read.
I did not understand what problem the pages give you ... consider that while the rotor is moving I must not change pages. Now I am deleting page 1 because it no longer serves the purpose. Initially I wanted to do that by touching the area to which to direct the antenna, this one directed towards that point .... but this in the next life. Meanwhile, if you want to see my project with thanks to you, you can go here:
http://www.psktrentunisti.it/psk/forum/7-autocostruzione/959-sostituzione-controller-yaesu-con-display-nextion.html

New video on YouTube:

Lanfranco

Seithan:
try to update the Editor to 0.58

https://nextion.tech/nextion-editor-ver-0-58/#_section1

or happens to me many times, i forgot to unzip the files (try extract)

I have the same problem, however even downloading the latest versions does not solve it. It happens to me with all files using nextion, .HMI
Thanks

Pagna:
I have the same problem, however even downloading the latest versions does not solve it. It happens to me with all files using nextion, .HMI
Thanks

How did you update the Nextion editor?
If you do it from the editor (check for new version) it doesn't work, you have to go to the link that Seithan wrote and download it manually.