In this project, we designed a line follower robot that uses five infrared (IR) sensors to detect and follow a black line on a white surface. These sensors send information about the line’s position to an Arduino Nano board.
We programmed the robot so that if the left sensors detect the line, the robot turns left; if the right sensors detect the line, the robot turns right. When only the middle sensor is active, the robot moves straight. (Even if none of the sensors detect the line, the robot still moves forward — this is due to the limited number of sensors.)
The motors are controlled by an L298N driver, and their speed can be adjusted using PWM pins.
For power, we used two 3.7V lithium batteries, and the required 5V for the Arduino and sensors is provided through the driver.
Our robot has two wheels connected to motors, and a third wheel is a free-rotating caster wheel.















_3u05Tpwasz.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)
Comments