Thursday, February 11, 2010

Feb.10 Line Follower Steps


 Line Follower: Basic Algorithm
  Black then forward
  White then left or right to find line

Robot:
1. See if / how to go straight
Answers: Is the robot build so it will go straight
2. Alternate left and right - Does go in a straight line?
3. Need to move slightly to get started.
4. Keep light sensor close to floor/line and/or shield to avoid interference from ambivalent light

Program:
5. Calibrate sensor by taking the average of reading on white and black rather than setting to particular value.
6. Program "switch"  or if-then-elseif statements to cover all cases
    # cases = 2^n where n is the number of light sensors
7. Slow down in when line curves so you don't over shoot and lose the line completely.

Following the Line Tests:
Basic
1. Straight
2. Curves 
    (right/left) 
    (gradual/sharp)
Advanced:
3. Break in light
4. Crossing lines
5. Find line in the beginning

With Touch Sensor
Object on the line

Also see more hints in:
Feb. 11 HTL Vienna and Bratislava classes together...

No comments:

Post a Comment