Suggestion for this use would be to wire these micro-switches as NC for failsafe. If the wiring or the switch somehow fails - the usually mode is a break in the line, then it will act as if the switch is depressed and disallow movement. If you wire it up as NO, you will have no way to know that there is a break in the line until the device crashes or hits a hardstop.
See:
http://www.allaboutcircuits.com/vol_4/chpt_6/5.html
Quote:
Originally Posted by pastelpony
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.
|