Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Line Sensor programming help (http://www.chiefdelphi.com/forums/showthread.php?t=92086)

Tds123 17-02-2011 10:17

Line Sensor programming help
 
Can someone please give me an example of how the line sensors should work? How do i make the robot follow the refllectix tape using the line sensor .. I have it hooked up correctly because i programmed the dashboard to read when it has seen the refletix tap

Alan Anderson 17-02-2011 10:52

Re: Line Sensor programming help
 
The line on the carpet is not made of the expensive retroreflective material. It is 2-inch-wide gray gaffer's tape.

The easiest way to follow a line is to have two sensors not quite as far apart as the tape is wide. When neither sees the tape, turn right. When the right one sees the tape, go straight. When the left one sees the tape, turn left. If you want to detect the end-of-line mark, use a third sensor to the left of the others. When all three see the tape, stop. This will follow the left edge of the line. It should be obvious how to change it to follow the right edge if you want to.

Tds123 17-02-2011 16:38

Re: Line Sensor programming help
 
i was actually kind of hoping for a little demo program on how to move the robot if the sensor sees the tap

jwakeman 17-02-2011 16:48

Re: Line Sensor programming help
 
there is a line following demo in the demo projects that come installed with the WindRiver Workbench


All times are GMT -5. The time now is 13:27.

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