It depends which wire you use for the digital input (black or white).
Quote:
Posted by Jnadke (last year):
Hook the brown to + (12V circuit breaker), blue to - (ground).
Don't tie black and white together.
When nothing is sensed, the circuit for the black is closed (1) and the white is open (0). When the light is reflected and sensed, the black is open (0) and the white is closed (1).
Just hook both white and black to SEPARATE digital inputs and debug the variables. You can find out by trial and error. When you figure it out, you only really need 1 wire to detect 1 or 0.
|
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
Last edited by Jnadke : 15-01-2003 at 16:58.
|