View Single Post
  #2   Spotlight this post!  
Unread 17-02-2011, 10:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote