Hi everyone.
I'm working on a project and I'm using the Snooze library to put my Teensy 3.2 on sleep mode. I am using the RTC module to wake it up and I am doing some testing.
What I have found so far is that the RTC module is not running while the Teensy is sleeping.
Basically I am powering my project from a 5V power supply. I have soldered the small crystal for the RTC module. I am using USB to debug my project
and most importantly I am writing sleeping time in the EEPROM to check what was stored when it went to sleep and what is the current time before sleeping.
So basically I have noticed that the difference between when it goes to sleep and it wakes up is of a few seconds due to my project running and not 10 minutes like
it should be. Because if I put it to sleep at 20.00 then when it wakes up the current time should be greater than 20.10 at most but it isn't. It's just a couple of seconds later
due to other code running before the time is printed on my laptop. So why is this happening? Anyone has got an idea?
Thanks
I'm working on a project and I'm using the Snooze library to put my Teensy 3.2 on sleep mode. I am using the RTC module to wake it up and I am doing some testing.
What I have found so far is that the RTC module is not running while the Teensy is sleeping.
Basically I am powering my project from a 5V power supply. I have soldered the small crystal for the RTC module. I am using USB to debug my project
and most importantly I am writing sleeping time in the EEPROM to check what was stored when it went to sleep and what is the current time before sleeping.
So basically I have noticed that the difference between when it goes to sleep and it wakes up is of a few seconds due to my project running and not 10 minutes like
it should be. Because if I put it to sleep at 20.00 then when it wakes up the current time should be greater than 20.10 at most but it isn't. It's just a couple of seconds later
due to other code running before the time is printed on my laptop. So why is this happening? Anyone has got an idea?
Thanks