Hey, I just scrapped from an old RC controller a 3 way switch, but it has 4 pins. Can someone show me how to connect that to an Arduino?
Most common is 1 common, 3 outputs => 4 pins
Find the common with a multimeter, a single pin should always to the other 3 depending on the position.
Or, two contacts next to each other conduct. So for example position A connects pins 1 and 2, position B connects 2 and 3 etc. Also, use a multimeter.
And to connect it to an Arduino, expecting the first, common to GND, outputs to Arduino inputs and enable internal pull ups. You only need to connect two outputs of the switch, you know it's on the third position when it's not on one of the other two.