Thread: Optical Sensors
View Single Post
  #5   Spotlight this post!  
Unread 25-01-2002, 22:00
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
Hook the brown to +, blue to -.

Don't tie black and white together.

When nothing is sensed, the circuit for the white is closed and the black is open. When the light is reflected and sensed, the white is open and the black is closed.

Or is it the other way around... I'm just doing that off the top of my head...

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.