Spike Prime Line Follow Help

When your robot follows a line, it is actually following an EDGE between light and dark. 

When it senses the light (greater reflection from the surface), it must turn toward the dark - in this case LEFT. 

When it senses dark (less reflection from the surface), it must turn toward the light - in this case RIGHT. 

In this way, it "waddles" along the edge. The smaller you make the turns, the smoother its pathway will be.

This is a good, simple line follow program.

This one works as well.

One more.


There are other ways to do a line follow. You are not limited to these codes.