|
Re: Micro Switch Wiring & Programming
We're using these things for the same purpose of stopping a potentially-dangerous component of the robot.
What we did was saw off the male end of a PWM cable and solder the signal and ground to NO and COM respectively. The female side of the PWM then goes into the DIO breakout of the roboRIO. You'd treat it as a digital input in your code and look for a boolean value to decide what would happen if pressed/not pressed.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
|