Line-Following Robot
In my sophomore spring at MIT I took the class 2.678 Electronics for Mechanical Systems. For this project we had to work with a partner to create a line-following robot and be that fastest to complete the obstacle course. The robots were provided, but we had to create the circuit connecting the light sensors to the Arduino and code in Arduino to teach the robot how to follow the course. Obstacles included gaps in the line, sharp corners, and spontaneously thin lines. To solve these problems, my partner and I coded in a way that if the robot saw all white, no black, it would stop, look both ways until it saw black, and if not it would drive forward for a few seconds and check again. My partner and I were one of the few to complete the course, but were the slowest to do so at 220.7 seconds, so we won a certificate and a t-shirt as a prize. We were also able to go back into the code and have the robot complete the course in about half the time.

