Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (20 loc) · 1.51 KB

README.md

File metadata and controls

21 lines (20 loc) · 1.51 KB

The TRACKtor - Line Following Robot

In this project we were trying to make a robot that could follow a black line using 7 down facing photoresistors. We calibrated the photoresistors by getting the average values of each photoresistor while it is on a black surface and mapping that value to 0. We then did the same thing with the photoresistors on a white surface. This way, we could tell where in relation to the photoresistors the 1 inch wide black line was. We then used this information of how far off center the black line was and fed it into our PId controller as the error. We used 4 potentiometers to set the multiplication constants of the S (speed), P (proportion), I (integral), and D (derivative). The result of the calculation was fed into the motor controller as voltages so that the motors could change their speed and keep the robot central to the black line.

Here is the photoresistor wiring diagram:
Photoresistor wiring diagram

Here is the potentiometer wiring diagram:
Potentiometer wiring diagram

Here is the chassis CAD model:
Chassis design

Here is the printed chassis:
Printed chassis

Here is the assembled robot:
Assembled robot

Here is the robot following a line:
Robot following line