A double throw switch has three leads, sometimes labeled NC (normally closed), NO (normally open), and C (common). The common lead is usually the one in the middle. To add a double throw switch to your Qwerk, wire the normally closed lead to ground, the normally open lead to +5V, and the common lead to one of the analog input ports.
A single throw switch has two leads. To wire a single throw switch to your Qwerk, you will need to add a pulldown resistor to hold the analog input line at ground when the switch is open; when the switch is closed it will pull the line up to +5V, and the resistor will limit the current flow. The value of the resistor isn't critical; anything from 10 ohms and up should be fine (5 ohms is the absolute lowest).For source be sure to check out the code for the bump sensor, as it's actually just a single throw switch.
Last modified: Thu May 13th 2008