I have the following setup:
Now, basically, I'm just going to wanttrying to use this switch as a simpleswitch to to provide input to software running on or off. It's an SPSTthe Raspberry Pi. I've gotI have software running right now that sets up GPIO_13 as an input pin, and continually reads from it. (This is no ways reflects the actual GPIO layout on the Pi, it was just for demonstration).
Now, measuring from the input terminal ofpin and prints the switch to circuit ground always gives 3.3 volts, as it shouldresult. AndProblem is, even when the switchnothing is ON, measuring from the output pinconnected to ground also gives 3.3 voltsit, and the software reports TRUE.
Now, turnvoltage reading from the switchinput pin to OFF, and measuring between the output terminal of the switch andcircuit ground givesreads about 0.85 volts. Steady9V. The software rapidly flickers between TRUE and FALSE.
Is this a software issue? If I disconnect the output terminal of the switch so that it's not connected to the input pin, how can I measure 3.3 volts on the input terminal and 0 volts on the output termainal while OFF. Good.
So, what's making that 0.85 volts pop up? Is there somehow a positive voltage ON the input pinavoid this?
Any guidance welcomeThanks for any advice,
- Chase