-
Notifications
You must be signed in to change notification settings - Fork 43
Deep Sleep
The system can be put into sleep mode to save power when running off a battery. To fully utilize the power saving capability, you need a DIYino Prime or Stardust board which not only send the Atmega328P to sleep mode, but also have power saving options for the FTDI and MP3 chipsets. Deep Sleep mode current consumption was measured to be in the range of 300uA - 450uA.
You can enable Deep Sleep mode with commenting out the following #define statement in the Config_SW.h tab:
#define DEEP_SLEEP
You can set the sleep mode timer with the #define statement below, unit is [ms]:
#define SLEEPYTIME (1000UL * 60 * 5) // corresponds to 5 minutes
Note: If you set the sleep mode timer to less than 5secs (i.e. 5000), the system will not go to sleep mode. Reason for the precaution is that the DIYino boards disable the FTDI chip as well when entering into Deep Sleep to save power. If the FTDI is disabled, no code can be uploaded. If the user does not leave enough time to enter into any other saber state than idle, the system cannot recover any more, because even a system reset will simply restart the code which will enter into Deep Sleep again.
The sleep mode timer will count up in Idle Mode and if it expires, the system will go into Deep Sleep mode. The code will notify with 3 beeps.
To wake up form