View Single Post
  #13   Spotlight this post!  
Unread 14-11-2006, 10:49
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Line Following with PID

There are two ways to do line following with an RCX/NXT.
The first easier, but slower way is simply if it sees black go left, if it see white go right. This approach uses only one light sensor so if you want to use the other sensor for something else you could.

The second more complicated way is to have two light sensors mounted (in your case) about 1 1/2-2'' apart. When the left sensor sees black slow the left motor, and increase speed of the right motor, and when the right sensor sees black slow the right motor, and increase speed of the left motor. This approach is more complicated, but the robot will move faster.
__________________
Eric Haskins KC9JVH