Setting intervals

Hey all,

I have a little project from school that I need some help understanding/guidance.

What I am given: Arduino GSM SIM900 Shield.

What the project is: I need to code so that every five minutes i give it a command. after the command is given i want it to go straight to sleep for the rest of the five minutes. i need this to happen over and over while producing the least amount of energy possible and requiring the minimal voltage.

Any help would be greatly appreciated.


This is pretty much the best thing online to teach you what you need to know to do this task.

The demo Several Things at a Time also illustrates the use of millis() for timing. But it does not deal with putting the Arduino to sleep.

I think Nick Gammon has a tutorial about minimizing power consumption.