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: [](! [![Dear Devices](](