How to put microcontroller into shutdown mode?

I want to make my Orangutan SV-328 work like remote control, which is always turned on, and go to shutdown mode or sleep mode when there is no key press in a while. But I can’t find much information on how to achieve that, can anyone give me a hint or any example codes? Thanks in advance.


Hello, Justin.

The Pololu AVR Library does not provide any functions for putting an Orangutan into sleep modes, but you should be able to do it by using some AVR Libc functions. Specifically, this page documents the relevant functions in avr/sleep.h.

Note that we have not really characterized the idle power draw of the the rest of the hardware on the Orangutan, which could be enough that putting the AVR to sleep might not be so worthwhile.

- Kevin