Hello people. I was wondering how do you use a switch to turn a arduino board on/off.
Wire one in series with the power+ feed into the barrel jack.
can you pls give a little more information, i'm still unsure
Your power cord that plugs into the barrel jack has 2 wires, yes? Identify the one that connects to the center pin of the barrel jack, cut it and connect the two wires to the two legs of your switch.
Here is a switch you can use
.
Sorry mate, no image! (403 - Forbidden) Some foul-up with the Adafruit site.
The information we would like to know is - why on earth would you want to switch your Arduino off?
Paul__B:
Sorry mate, no image! (403 - Forbidden) Some foul-up with the Adafruit site.The information we would like to know is - why on earth would you want to switch your Arduino off?
Changes to the things plugged into it on your breadboard comes to mind. Pulling the USB cable or barrel jack connector is a two handed operation on a small board and you risk disturbing all those small jumper wires. I bought some switches to mount to my breadboard so I don't have to pull a wire or unplug the wall wart.
Point noted but in this country we have switches on our power points - though that said, domestic wiring has grossly failed to survive the latter half of the 20th century, let alone the millennium, so that the majority of said power points are wearing a "power board" and those with switches cost five times as much as those without, so "hot-plugging" in the US style is now de rigeur.
But in practice, pulling the plug pack ("wall wart") is the simplest.
And I have a house rule: Never buy a 4-way power board.
Based on amriechert's other posts, I've guessing this is for a battery powered Arduino (robot).
As CrossRoads mentioned, you want to use the switch on the + power wire.
If you were to use this connector for a battery, one way to add a switch would be to cut the red wire and solder the two ends resulting from the cut to a switch.
Here are a few switches which would likely work for your robot.
Illuminated toggle with cover.
Whichever switch you use should be rated for the voltage and current you plan to use.