View Full Version : Light Sensors
zdude255
02-02-2004, 15:48
Hi Everyone!
I know this is a pretty basic question, but i've got the line tracking code down, and I want to know where to attach the light sensors on the robot controller and how to read them in the program.
Thanks in advance!
Mark McLeod
02-02-2004, 16:10
Hi Everyone!
I know this is a pretty basic question, but i've got the line tracking code down, and I want to know where to attach the light sensors on the robot controller and how to read them in the program.
Thanks in advance!
See the diagram in the rules section 5.6.8, Figure 5.2.
It shows how the wires on the banner sensor connect.
You only need the black OR the white wire connected to a digital input. One is on when the sensor sees something, the other is on when the sensor doesn't see anything.
The 12v connection is to power the light as well as the sensor feedback.
The ground can be any ground.
emergency emergency! is there a code for optical sensor
Mark McLeod
14-02-2004, 12:09
emergency emergency! is there a code for optical sensor
Reading the optical sensor is straight forward, just read the digital input.\
There is sample code that drives the EDU bot according to Optical Sensor input here:
http://www.rec.ri.cmu.edu/education/edubot/2004_content/index.htm
specifically here:
http://www.rec.ri.cmu.edu/education/edubot/2004_content/index.htm
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.