How to wire a 3-pin rocker switch with LED to Arduino power pin?

Hi everyone, I'm new to electronics and Arduino.

I'm using 61.5V batteries to power the Arduino. The 61.5 batteries is connected to the Vin pin of the Arduino.

Now when i want to turn on/off the Arduino, I just plug/unplug the wire to the Vin pin which is not convenient. I want to know if there is a simple approach to turn on/off the Arduino by a hardware switch?

I did some research and bought this rocker switch. How can I wire it?

Thank everyone! :slight_smile:

Do you have a soldering iron?

aarg:
Do you have a soldering iron?

Yes

samcheng92:
I'm using 61.5V batteries to power the Arduino. The 61.5 batteries is connected to the Vin pin of the Arduino.

Now when i want to turn on/off the Arduino, I just plug/unplug the wire to the Vin pin which is not convenient. I want to know if there is a simple approach to turn on/off the Arduino by a hardware switch?

How do you switch a light off in your house?

If it's wired correctly,
live (120/230) -> switch -> light -> neutral
Same for Arduino
live (9V) -> switch -> Arduino -> GND

So just put the switch between the (positive side of the) 9V and the Arduino Vin.

sterretje:
How do you switch a light off in your house?

If it's wired correctly,
live (120/230) -> switch -> light -> neutral
Same for Arduino
live (9V) -> switch -> Arduino -> GND

So just put the switch between the (positive side of the) 9V and the Arduino Vin.

I thought this is correct but I just read other threads mentioning MOSFET and relay, etc.
So I don't know if this is the correct approach. Thanks!

Hi! I have bought the rocker switch with 12V DC config..

Now I need help to wire it correctly..Anyone can help me?

If you have a multimeter, measure the contacts in both positions. The center contact is probably ‘common’, one of the other ones ‘normally open’ (NO) and the last one ‘normally closed’ (NC).

               -----o normally connected
              /
             /
common -----+


               -----o normally open

               
OTHER POSITION

               -----o normally connected


common -----+
             \
              \
               -----o normally open

If that is the case:
connect center pin to your battery
connect one of the other pins to Vin
test (e.g. run the blink sketch)

Note: the light might not work; saves you battery power :wink: