top of page

Line Following Robot with IR Sensors

Class: ME35 - Robotics

Skills: IR Sensors, Python, Robotics

​

Project Description:

In this project, we used infrared sensors to detect and follow a line with a small robot. Our design included three infrared sensors to accurately track the path of the line, along with two 12V DC motors to drive the robot. A Raspberry Pi served as the central controller, processing sensor data and adjusting motor movements accordingly.

WhatsApp Image 2025-02-13 at 16.18.17_42dcfdc7.jpg
WhatsApp Image 2025-02-13 at 16.18.17_42dcfdc7.jpg

Design

Our design featured two DC motors to drive the robot and three infrared sensors to detect the line's path. The control logic was straightforward: if the middle sensor detected the line (reading 1) while the outer sensors read 0, the robot continued straight. If one of the side sensors detected the line (reading 1) while the others read 0, it indicated a turn. To ensure smooth and accurate tracking, we fine-tuned the motor control, adjusting the speed and stopping behavior as needed to keep the robot consistently following the line.

Video of the Robot in Action!

Here's a video of our finalized robot in action following a black line!

bottom of page