Algorithm One: Line Follower



Note: Sensor's are aligned left-center-right, "0" is equivalent to white, and "1" is equivalent to black.



If 0-0-0 : Robot is lost. Call search function.
If 0-0-1 : Correct by turning right.
If 0-1-0 : Go straight. Note, this is the optimal state.
If 0-1-1 : Go Right.
If 1-0-0 : Correct by turning left.
If 1-0-1 : At a Y intersection.
If 1-1-0 : Go Left.
If 1-1-1 : At a T, a Y, or a + intersection.

Go Back To Algorithm Menu | Look at Algorithm Two |