Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Light Sensors (http://www.chiefdelphi.com/forums/showthread.php?t=24675)

zdude255 02-02-2004 15:48

Light Sensors
 
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

Re: Light Sensors
 
Quote:

Originally Posted by zdude255
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.

platt 14-02-2004 10:29

Re: Light Sensors
 
emergency emergency! is there a code for optical sensor

Mark McLeod 14-02-2004 12:09

Re: Light Sensors
 
Quote:

Originally Posted by platt
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/...tent/index.htm

specifically here:

http://www.rec.ri.cmu.edu/education/...tent/index.htm


All times are GMT -5. The time now is 04:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi