View Single Post
  #10   Spotlight this post!  
Unread 01-03-2012, 01:33
andreboos andreboos is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2010
Location: San Diego
Posts: 132
andreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the rough
Re: Wiring a limit switch.

Quote:
Originally Posted by SuperBK View Post
if the limit switch is a double throw (has common, NO and NC) then you could connect 5V to NO, Gnd to NC, and the signal to common. The switch would then either switch the signal to 5v or ground. Be careful not to put 5v or gnd on the common terminal, or one state will give you a short.

Reversing 5V and ground would change polarity or just change in software.

Get the analog port for greatere or less than 2.5 volts.
Genius. Now I have a use for that pesky black wire

I think I'll be wiring any analog limit switches this way in the future; thanks!