AR-184ArduinoIntermediatePremium
Arduino Line Follower Robot: Follows a Black Line, Stops at the Finish (TCRT5000 + L298N)
Draw a track on the floor with black tape and let the robot follow it. Two TCRT5000 sensors sit on both sides of the line: when both see white the robot drives straight, when the left one touches black it turns left, the right one turns it right. When both see black at once it is on the finish strip and stops. The L298N drives two DC motors with speed and direction, two 18650 cells power it all.
0.0(0)

Lay a loop of black electrical tape on a white floor, put the robot on the line and flip the switch: two seconds later it sets off, corrects itself through the bends and stops on the finish strip. You learn how an infrared sensor tells black from white, how a two-wheel vehicle turns by slowing one wheel, how to drive motor speed and direction with the L298N and how to write a robot as a simple decision table.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
