Go to Post Know that CD is a safe environment to learn to talk with a foot in your mouth. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2004, 19:25
gjibben gjibben is offline
Registered User
#1136
 
Join Date: Mar 2003
Location: Sprin valley
Posts: 2
gjibben is an unknown quantity at this point
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
  #2   Spotlight this post!  
Unread 11-02-2004, 21:23
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
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.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 11-02-2004, 23:18
Damian Manda's Avatar
Damian Manda Damian Manda is offline
The Damian
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Fort Collins, CO
Posts: 154
Damian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud of
Send a message via AIM to Damian Manda
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.
  #4   Spotlight this post!  
Unread 11-02-2004, 23:48
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
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.
  #5   Spotlight this post!  
Unread 12-02-2004, 11:41
LBK Rules's Avatar
LBK Rules LBK Rules is offline
1467 '06 Alumni
AKA: Anthony Rinaldi
no team (HSRO)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Henrico, VA
Posts: 438
LBK Rules will become famous soon enoughLBK Rules will become famous soon enough
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

__________________
Anthony Rinaldi
Team 1132: 2003
Team 1467: 2004 - 2006

Last edited by LBK Rules : 12-02-2004 at 11:51.
  #6   Spotlight this post!  
Unread 12-02-2004, 11:58
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
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.
  #7   Spotlight this post!  
Unread 12-02-2004, 12:24
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
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.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #8   Spotlight this post!  
Unread 12-02-2004, 13:56
DART1284 DART1284 is offline
Registered User
#1284
 
Join Date: Feb 2004
Location: Alabama
Posts: 1
DART1284 is an unknown quantity at this point
Re: Line-Tracking sensors

Can someone please send me some sample code of how to use them, I am having many troubles.



Thank You
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line tracking sensors - Wiring up? ahmed Electrical 2 09-02-2004 20:52
Sprockets and Roller Chain Models Madison Inventor 3 04-02-2003 11:51
line tracking line BerserkerSpyke Rules/Strategy 1 18-01-2003 17:10
iParts on firstcadlibrary.com Ed Sparks Inventor 3 08-01-2003 23:30
Goal tracking sensors Carolyn Duncan General Forum 15 24-03-2002 12:40


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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