|
Re: Wiring a limit switch.
Normal open, red wire (end)
Middle leg, white wire (middle)
Normal Closed, black wire (end)
This will read false when not trigged in the code, true when pressed. If you don't know which end leg is which, just look on the side of the limit switch. The diagram will show the middle leg connected to a side leg (normal closed)
Plug into a digital I/O, pay attention to the orientation on the digital side car.
__________________
Grow the roses of success!
2011 Archimedes 2nd seed,
2011 Waterford Champion, 2011 Troy Simi-Finalist,
2011 Waterford Rookie all star, 2011 Troy Rookie all star
http://www.bytingbulldogs.com/
|