Combined sleepmode
-
-
If you will open a datasheet for atmega328p on page 38 you will see all sleep modes http://www.atmel.com/Images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet.pdf
the most saving mode is power-down. But in this mode you cannot wake from a regular timer but you can wake from a watchdogto wake from a regular timer the best option will be power-save
actually there is no need in any library because power management is just a manipulation of some registers.
for me the use of the macros defined by #include <avr/sleep.h> is sufficient
The #include <avr/wdt.h> is sufficient to configure watchdog
just take into account that not all arduino bootloaders are supporting watchdog, in some cases an upgrade is neededall standard includes are described in avrlib user guide http://www.nongnu.org/avr-libc/
search it for sleep functions and sleep.h usage -
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login