|
Re: How in the world do I code and wire this wacky sensor(a.k.a. Photoswitch)
One thing to beware of is that unlike most sensors, you are going to want to wire this guy to your power distribution board for 12v and ground. There should only be a signal wire going to the digital side car; whether you choose the white or black only changes whether light = true or light = false.
Treat it like a normal digital input in code. I can't remember how you do that in Java, but it should be fairly simple.
|