These sketches are compiled with uC-Makefile against ATTinyCore.
A valuable source of information was Nick Gammon's Power saving techniques for microprocessors.
sketch | current | description |
---|---|---|
0 | 2.36m | blank sketch |
1 | 226u | sleep_mode_pwr_down |
2 | 219u | 2 + bod disabled |
3 | <218u | 2 + power_all_disable |
4 | <1u | 3 + ADCSRA = 0 |
5 | 5u | 2 + ADCSRA = 0 + WDT(8s) |
6 | 5u | 3 + ADCSRA = 0 + WDT(8s) |
SLEEP_MODE_PWR_DOWN
reduces idle current by 90%- disabling the Brown-out Detector and all other devices saves about 7uA
- disabling the Analog comparator saves almost all of the remaining current draw
- enabling the Watchdog timer costs about 5uA