Sleep mode with Timer

Hi!

Is there a simple way to put Arduino to sleep for a long period of time and wake up based on a timer trigger? I wanna a power save mode to save battery. I would like to put Arduino to consume the minimum energy as possible during the sleep time.

Like this:

loop(){
wake up();

execute my code.

sleep();
timer(time);
}

I don't have any specific code, but I know it's possible.
It will involve some low-level coding. But you can use the built in timers on the arduino to trigger sleep mode and the watchdog timer to keep track of how long it stays asleep. I would look at the data sheet for the specific board you will be using.
This link will also be a good reference.

http://playground.arduino.cc/Learning/arduinoSleepCode

Try:
http://forum.arduino.cc/index.php/topic,180973.0.html#lastPost

Thanks for reply!

I will look those links.

I'm using an Arduino Uno R3. Atmel Atmega 328P.

RafaDarkStrings:
I'm using an Arduino Uno R3. Atmel Atmega 328P.

You're likely to be disappointed with the power saving that is possible with an Uno (as compared to a bare 328P). See When sleeping helps - #34 by JChristensen - Microcontrollers - Arduino Forum