Problem with the Parallax 5-position switch #27801
kilometers
Posts: 3
This supposed to be a normally open switch but when I test it, all contacts are closed and when I press one of the positions, that contact opens. Am I missing something?
Comments
5 volts to VCC, Pin outputs to LEDs. All LEDs are lit until I set the switch to one of the 5 positions which turns the appropriate LED off.
The documentation mentions this (though indirectly), but it's pointed out in the KickStart examples:
https://sites.google.com/site/parallaxinretailstores/home/parallax-5-position-switch
If you wire the LEDs from switch outputs to ground, then yes, they'll be lit when the switch is open because the switch outputs are all internally pulled high with 10K resistors. The LED will turn off when you close the switch, because then the output will go low.
-- Gordon
-- Gordon