View Single Post
  #2   Spotlight this post!  
Unread 10-02-2014, 23:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How in the world do I code and wire this wacky sensor(a.k.a. Photoswitch)

The wiring diagram is on the back of the sensor.
Blue = ground
Brown = 12v
White or Black = signal (pick one, they just give opposite results)
It gets wired to a Digital Input and in code it'll act like a switch.

Something to be aware of with these sensors is they nominally require at least 11v, so if your robot power dips too low you may see bogus inputs.
It works best if you can feed it with a regulated 12v of power.

Allen-Bradley RightSight Specs
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2014 at 08:12.
Reply With Quote