Today's blog article is about how to optimize the power consumption of an AVR microcontroller running on batteries.

We're going to explore one of the ATmega32's sleep modes and how it affects power consumption. We will eventually reach a state where it actually makes sense to power the device from batteries. Besides sleeping, the microcontroller should do some work for us, requested by a single button press.

This post has moved to my new blog: [deardevices.com](https://deardevices.com/2017/11/26/avr-sleep-mode-for-fun-and-profit/)! [![Dear Devices](https://steffen.ronalter.de/assets/deardevices.png)](https://deardevices.com/2017/11/26/avr-sleep-mode-for-fun-and-profit/)