View Single Post
  #6   Spotlight this post!  
Unread 10-02-2015, 01:30
SousVide SousVide is offline
Registered User
no team
 
Join Date: Jan 2011
Location: CA
Posts: 91
SousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to behold
Re: Micro Switch Wiring & Programming

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 View Post
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.