Hi there! I was wondering whether it is possible to use a 3PDT toggle switch to control the direction of a motor I am using.
Basically the idea is that when it is flicked to one side, a pin on the Arduino (say Pin 5) is now reading high, and if it were flicked to the other side another pin (say Pin 6) now reads high.
I can then use code so that when one pin or the other reads high, the motor will rotate in a certain direction, am I making sense?
Whatever the case, I have never wired a Toggle switch before and am having some difficulty with respect to that!
You need 2P2T to control the motor, that leaves a single pole to switch something else. If you want to switch two "other things" you need a 4P2T switch.
I can then use code so that when one pin or the other reads high, the motor will rotate in a certain direction, am I making sense?
So do you want the Arduino to control the motor based on switch inputs, or the switch to control the motor. They are two totally different concepts.