View Single Post
  #2   Spotlight this post!  
Unread 19-02-2004, 20:34
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Little help Please

the timing of the loop, or how hard you tell your bot to turn when you detect you are loosing the line, depends on how fast your bot can turn, how fast its running, and whether or not you just hit one of the spots where the line changes direction.

line tracking with two sensors is simple -you space them out so the are on opposite sides of the line, and you put your robot pointing in the direction you want it to go

start the robot moving straight

if the right side sensor sees the line then you have turned to the left, so you tell it to turn right until it no longer sees it

and same (opposite) for the other side

but thats where you have to try some values, see how your bot responds, and adjust the amount of turn, the speed of the robot...

there is also the possibility that the sensor will see the line, but not be able to turn fast enough, and cross over it completely (if its going too fast)

all these things need to be tested with your machine and you need to tweak your settings - also, if you put more than two sensors on the bot, you can cover the possible variations with different responses.