Hello, I currently have a 'Basic' Nextion NX3224T028 display that I am using with an Arduino Uno connected to a DS3231 RTC.
I am a little experienced with Arduino but am inexperienced with Nextion, for now I am trying to display the time and date values from the RTC to the display. Could anyone point me in the right direction? Or to a similar project?
Thank you in advance.
End game I hope to create a data logger (SD) with a few sensor values that I can calibrate with values stored to the Uno eeprom and adjust with the Nextion HMI. Also including a realtime graph to display the sensor values.
Hello @steady96 ,
In my tutorial Using Nextion displays with Arduino i use a clock as an example. My clock does not use an RTC and isn't accurate. Take my clock as a starting point and modify it to use an RTC.
Take the code out of loop() and put it into separate functions, like in my example code. Having separate functions makes code easier to read and easier to fix problems.
Only update a display when something changes, in this case the time changes every second so check the value of now.second() and only send an update when it changes.