The "Virtual Pet" game I wrote about in the last log seems to be working fine. Although I was not able to keep it alive overnight.
It seems like the voltage dropped below 2v during the night at some point, the power saving mode kicked in and the "pet" was not able to survive that.
Currently when pet wakes up from its 8 minute naps, one LED (showing overall health level) is lit for about 20 seconds, which is the overall timeout for getting user input. I need to set this so if after the first button timeout, there is no user input, LED is off. 20 seconds on every 8 min is roughly 2 min on every hour. During an 8 hour night thats 16 min of wasted power. During the winter where i live we get up to 16 hours of darkness. Ideally the pet can survive through the night.
Another idea is to have the pet "hibernate" if health (VCC voltage) drops below a certain level. Placing device in sun would be the only way to wake it in that case. While pet is in hibernation, no attention is needed from its owner. In this mode 16 hours has been tested for device not resetting and losing ram contents.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.