M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time
-
Hi,
When M5Stamp PLC Controller with M5StampS3 got the power supply.
It can write and read the current Date and Time.
But after I turned of the power supply for 1 day.The PLC shown "Sunday, 0 Jan 2090 33:20:39"
It is not the current Date and Time.Could you recommend me to solve this?
Thank you
-
is your battery charged? what is status of on/off switch when external power disconnected/connected?
-
Hello @MCU1536
assuming you are using Arduino and the M5StamPLC library then it is clear as to why the date and time are not retained. There is no code in the M5StamPLC library to enable charging the RTC backup battery.
I created a PR which enables RTC backup battery charging.
Thanks
Felix