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.
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.