Racetrack Car Navigation
December 2023
About this project
This project was made for the final lab of Embedded Control. We had to program the TI-RSLK car to drive around a track without any intervention. During the semester, we were learning about the concepts of PWM and encoders, which would then be applied to car. This included turning, how to adjust the speed of each motor, and how to adjust the speed of each motor to ensure it drove in a straight line.

Our solution was to place markers around the track that the car would physically bump into, which told the car when to turn. Before driving, the user could program a path into the car, telling it to turn either left or right at certain points.
When driving, the front two bumpers would get clicked, indicating that it had reached a marker and should turn accordingly. Due to small errors in the encoder, the car would still slightly veer off course, and may run into the track instead of the markers. In the event that this occurs, the side bumpers would get clicked, telling the car to slightly turn in the direction opposite where it is going. This process would repeat until the car successfully made a loop around the track.
