3-way switch and Arduino
With this small tutorial, I’m going to show you how to read the position of a 3-way switch using just one Arduino’s analog PIN. A 3-way switch (sometimes called ON-OFF-ON or SPTT) has 3 PINs: the common (on the center) and the two outputs. When the lever is up or down, the common PIN is connected to one of…