Digital Input on Spider

I am wanting to set up a digital input on my Spider through an extender module. I have found plenty of information on the programming, but i’m new to the hardware side of things and would like some information on how to wire this.

Thanks in Advance.

Take a look at my Piezo driver, you can replace PWM with digital input and access the properties.

I was hoping that it would be as simple as looking for voltage on a pin. For instance, feed the common side of my switch with 3.3 VDC or 5 VDC off of the extender module and look for that voltage on say pin 3 of socket 9. If there is no voltage, then I know the switch is in the off position, if there is voltage on the pin, then I know that the switch is in the on position. Am I on the right track here or am I way off?

assuming you want to read the position of a switch, you create an input port with a pull up resistor. you then connect one end of the. switch to the input port, and the end to ground. when the switch is open you will read true. when closed false.

Do not connect it to 5v though… 3v3 is enough.

unless you use a pull down resistor, placing a voltage on the port will not work. floating inputs are bad.

this tutorial may help http://wiki.tinyclr.com/index.php?title=Digital_Inputs_-_Buttons

I did a tutorial on this concept a couple years ago. It shows the hardware side a little better.