I need your help. I have an Arduino project with Mega and Nextion HMI TFT Screen. Firstly I explain what I want to do. I have a LM35 Heat Sensor and I can read and write value on Arduino Serial Monıtor. But I cant read and write Nextion HMI TFT Screen. HMI Screen is more complicated 2x16 LCD Screen. So guys if I can share my codes will you help me the finish this project. Thanks everyone. I hope you will. See you soon..
Nextion uses mostly simple text over serial terminated with three bytes of 0xFF 0xFF 0xFF
Iteadlib Arduino Nextion Library makes this a bit easier
(Already configured for Mega's Serial2
Click the Help Menu Item under the Help Menu
Scroll down and check out
Nextion Editor Quick Start Guide
A Text Component in your HMI called t0 uses
A Number Component in your HMI called n0 uses
This can be done with Serial2.print("n0.txt=142ÿÿÿ")
or declaring a NexNumber variable n0 and using n0.setValue();
Nextion Forum - Nextion Questions
but perhaps Arduino Forum - for Arduino Questions on coding.
Check through the Nextion forum - many ideas and answers already exist
Dear Thierry Frenkel
I didnt want to anyone write my codes for me. I just say it I cant do it. I am asking all of you what am I doing wrong. when I used the libraries it gives too many codes fail. But too many people says " You can do it without libraries " I am just wondered how can I do without libraries.
firstly I think abuot connection with Serial ports maybe there is something wrong on connection types but I try to already exist project but I never writed any value on HMI screen.
By the way I already downloaded Nextion Editor and do my pages design.
I just need to know which codes uses to writed printing on value expect LM35 codes
Thanks everyone and you MR. Thierry. Have good work all of you.
What codes failed ... example of what you send to the Nextion?
If you want to send data to Nextion without using a library, you can see this thread: