The first order of business was building the robot. We put a pivoting wheel in the front so that it could turn as the line turned. After building the robot, we started working on the code.
This program says to go at 50% speed until the reflector sensor reads less than 15 at which point the right motor coasts and the left motor keeps going until it finds the line, then the left motor coasts and the right motor keeps going.
Our program gives the robot a jerky movement, but it follows the line rather well so we were happy.
No comments:
Post a Comment