Step 3And then magic happens...
Here is some example arduino code:
int offPin = 7; // Pololu connected to digital pin 7
void setup()
{
pinMode(offPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
delay(30000); // wait for 30 seconds
digitalWrite(offPin, HIGH); // Sets the pin to HIGH and shuts down the Arduino
}
I hope you have found this useful. Please post in the comments if you use one of these in a project.
| « Previous Step | Download PDFView All Steps | Next Step » |





































Say you have a push button that you want to use to Turn on the arduino, and then let it time out after a little bit. Would you simply write in a method that reads if a button is pushed, to switch pin 7 to low?