Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Line-Tracking sensors (http://www.chiefdelphi.com/forums/showthread.php?t=25118)

gjibben 11-02-2004 19:25

Line-Tracking sensors
 
Hello:

Have anyone of you been successfull in implemetning the line tracking in the past?

WE need assistance to determine how high from the ground to install our sensors.

We appreciatre your answer
Thank you

Garry Gibbens
Mount Miguel High School
San Diego, CA

deltacoder1020 11-02-2004 21:23

Re: Line-Tracking sensors
 
the best way to find out is experimentation - hook a banner up to the edubot or the frc, write some code to echo the input, and watch the output console while playing around with the height.

Damian Manda 11-02-2004 23:18

Re: Line-Tracking sensors
 
We have the sensors working this year, they are mounted about 1.5-2 inches from the ground. They have to be adjusted to about all the way toward the plus side to work, but this may also be due to our lighting conditions.

Dave Flowerday 11-02-2004 23:48

Re: Line-Tracking sensors
 
Quote:

Originally Posted by deltacoder1020
the best way to find out is experimentation - hook a banner up to the edubot or the frc, write some code to echo the input, and watch the output console while playing around with the height.

Even better, just hook up the power and ground leads of one of the sensors to a 9 volt battery. You don't need to hook it up to a controller to tell when it's seeing it's reflection. It has a little LED on the front of it that will indicate what it's seeing.

LBK Rules 12-02-2004 11:41

Re: Line-Tracking sensors
 
This might be a dumb question, but how would you write the line following code using two banners, and how would you place them on the robot.

We have tried to write our own code, but it wouldn't work. (I don't have it on this computer.)

Also do you have to connect one sensor to two inputs, or can it work with just one?

EDIT:

I think the code went something like this:
PHP Code:

if (digi_in01 == 1)
{
    
pwm01 130
}
else
{
    
pwm01 124
}

if (
digi_in02 == 1)
{
    
pwm02 130
}
else
{
    
pwm02 124



steven114 12-02-2004 11:58

Re: Line-Tracking sensors
 
Each sensor usually needs its own set of inputs, but if you _really_ need an extra input, it is possible to use the analog ones for multiple digital inputs.

deltacoder1020 12-02-2004 12:24

Re: Line-Tracking sensors
 
one banner sensor needs one digital input. the banner sensor has two signal wires, but they are always exact mirrors of one another - when one is on, the other is off. just choose the one that is more convenient.

DART1284 12-02-2004 13:56

Re: Line-Tracking sensors
 
Can someone please send me some sample code of how to use them, I am having many troubles.



Thank You


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

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