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