I have a digital piano pedal that is a standard 1/4 TS connector. I want to use the Arduino to get 1 / 0 data stream if it is pressed or not. I can handle the software part. I am perplexed by the circuit although I know it must be easy for some.
The female end is one of these babies: http://www.mouser.com/ProductDetail/Switchcraft/12B/?qs=MW%252b0w7tSdpnfUMFNVQN7xQ%3D%3D&gclid=Cj0KEQiA2b20BRDj4buduIG-y9EBEiQAhgMGFWYiHhYm416xyjAhgvFH9owOxLfI6LRi790k-3LzAtUaAkJQ8P8HAQ
Simple. I've attached leads from the tip end and the sleeve end. I have a suspicion that one must go through a resistor (10k?) to the ground. Another probably goes to the positive 5v of the arduino. But then one must go to the digital input... right? That's 3 and I only have 2 leads from the jack.
What am I missing?