|
Re: PWM Cable Voltage
The voltage potential you see on each wire depends on what port of the RoboRio you connect it to.
If you want to use a PWM cable to monitor a limit switch you'll want to plug it into a DIO port. Plugged into a DIO port the red wire is 5v the black wire is ground, while the white wire is your signal wire.
You'll want to connect the white wire and black wire to your switch that is activated when pressed. Then in code you want to configure the pin as an input and look for the voltage on the signal wire to go low. There is an internal pull-up resistor so it will show voltage when not connected to ground.
|