So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Paolo Cinaglia
#70645 Hi to all.
I'm pretty new to programming, but i've created a data logging system that reads some data and post them on adafruit IO then the system goes in deep sleep.
All works fine except for the RTC that obviously is not so precise in keeping time. Now i need to replace with an external RTC, pcf8523 in my case, but i don't know how to keep the external RTC work when i'm in deep sleep. Any tips to do that? After 3 weeks of searching i've found nothing...

I'm using RTClib.h with Time.h and TimeAlarms.h to set alarms and use them.

My problem it's only to keep the RTC in function everytime; i think after that i will have no other problem to be solved

Thanks
PS: sorry for my english
User avatar
By Paolo Cinaglia
#70675
gdsports wrote:This is a well known problem. See if Adafruit will replace your board.

https://forums.adafruit.com/viewtopic.p ... 523+losing


Wait a sec. I don't have the time losing problem. I need to set my pcf8523 working even the entire system is in deep sleep so i can use it to wake up the entire system.
If I put the system in deep sleep forever, the pcf8523 don't wake up the system ever. I don't know how say in the code that the pcf8523 must stay out of the deep sleep
User avatar
By Paolo Cinaglia
#70738
gdsports wrote:This is a well known problem. See if Adafruit will replace your board.

https://forums.adafruit.com/viewtopic.p ... 523+losing


Thanks. My problem is to keep the pcf8523 awake when the system is in deep sleep. I don't have the losing time problem. I really need some help to get the pcf8523 working when the entire system is sleeping. If i use my datalogger without deep sleep it works very well. I need to put all in deep sleep except the pcf8523 that keeps time ad wake up the system time by time to do the work