I'm trying to see if I can use a DPDT switch to simultaneously turn on power, while also having an option to power a continuous rotation servo either forward or backward.
Moving the DPDT switch one way would turn on the power and power the servo in one direction, while moving the DPDT switch the other way would also turn on the power and power the servo in the other direction, while a neutral DPDT switch position would leave both the power and servo off.
Should I be wiring one set of poles of the switch to ground, the board, and the battery, while wiring the other set of poles to two pins on the board?
I'm not really sure how to approach this with an Arduino, and not sure if the power would go on if moving the switch in both other positions with that kind of wiring.
Any guidance or advice regarding what I'm attempting to accomplish would be highly appreciated! Thanks so much in advance!
Moving the DPDT switch one way would turn on the power and power the servo in one direction, while moving the DPDT switch the other way would also turn on the power and power the servo in the other direction, while a neutral DPDT switch position would leave both the power and servo off.
You most likely would need to splice the switch to the motor wiring if the wiring is actually accessible in the servo.
I am not sure why you would do this? Maybe I am not following.
Moving the DPDT switch one way would turn on the power and power the servo in one direction, while moving the DPDT switch the other way would also turn on the power and power the servo in the other direction, while a neutral DPDT switch position would leave both the power and servo off.
by saying turning on the power do you mean turning power on for the arduino?
Why not have the switch turn on the arduino and have the arduino turn on the motor. ( through an appropriate relay or transistor.)