View Single Post
  #5   Spotlight this post!  
Unread 15-01-2003, 16:55
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
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.