Line Sensor

Intro to Robotics and Mechatronics

The Project:

Create a line following robot using your Pi Camera.

Designing the Robot:

Physical Design:

We kept our same base bot from the Color Sensor - Line Follower Robot. We based our robot off of the Mystery Box in Mario. We used OnShape to design the box along with the holes for the motor and color sensors. We used two DC motors for the back wheels to drive and steer the robot. We used a wooden dowel attached to two wheels to help keep the box stable and level. We added the camera to the top center of the box.

Code:

We used VNCViewer this time with our code because it allowed us to more easily access the picamera. We also added proportional control into the code so that it follows the line better and faster than the color sensor.

Video of Final Project