I'm building a project that will be powered by a wall wart, but I don't want it to be on at all times. I'd also prefer not to have to plug in the cord everytime I want to turn it on (I may even hide the cord inside a wall).
So - simple question: Is there a way to wire a SPST Push-On/Off switch to the arduino to shut it on and off?
I found this in another thread... would this work? Basically switching it from external to USB (and since the USB wouldn't be plugged in, it would essentially turn it off)? Or would it have to be a slide switch and not a SPST push-on/off?
Wire the common to the pin in the center of the header that has the jumper for USB or External power. Wire up one connection to the USB power power pin and one to the external power pin. Now you can flip the switch to use USB or external power or be off. I'm not sure but I think a three pin connector similar to the ones used on the board would allow you to solder to the connector and slide that onto the three pins on the board.
Or is there another way to essentially add a power switch to the Arduino board? Any help you can offer would be greatly appreciated.