How to interface a microcontroller with a switch? Answered
I have a device with a lever-style switch, like the bottom switch in the picture of this article. http://en.wikipedia.org/wiki/Miniature_snap-action_switch
With some multimeter probing, i found that of the three pins, the middle is unconnected. The left pin is always connected to ground. The right pin is connected to ground when the switch is unpressed. When the switch is pressed, the right pin is unconnected. How can I use a microcontroller to stand in for this switch? I'd like to have it activate the switch every 2 seconds. I have the software done, and just need to get the hardware set up. Help is apreciated.