Quote:
Originally Posted by Doug Leppard
You must use a 10k pull up resistor on the driver’s station. The crio input on the robot has built in 10k resistors but not the driver's station.
So put a 5V to 10k and that goes to input. Then when the switch is flipped have it go to ground.
A way to have a three way switch, on-off-on (up - neutral - down) tie 47k resistor to each end of the switch both terminating to the middle of the switch. The end of switch is tied to 5v and other end to ground. Then the middle goes to the analog port. That will give you three conditions to be read by analog input.
|
I'm confused. It seems to me like you're saying:
When switch is off, signal should be connected to ground.
When switch is on, signal should be connected to 5V going through 10K resistor.
That's a little difficult to do with a SPST switch...