A Line Follower Robot, as the name suggests, is an automated guided vehicle, which follow a visual line embedded on the floor or ceiling. Usually, the visual line is the path in which the line follower robot goes and it will be a black line on a white surface but the other way (white line on a black surface) is also possible.
Large line follower robots are usually used in industries for assisting the automated production process. They are also used in military applications, human assistance purpose, delivery services etc.

Line follower Robot is one of the first robots that beginners and students would get their first robotic experience with. In this project, we have designed a simple Line Follower Robot using Arduino and some other components.

Parts We Need

Not much is needed for this lesson, Make sure you have a good quality syncing cable,do not pick a ‘charge only’ USB cable.

How to build the robot car


How to connect

扩展板上点击控制端子 — 扩展板上IO端口

左右电机接线端子分别接到扩展板上的L1 R1端口

IN1 —D12 //K1、K2 motor direction

IN2 —D13 //K1、K2 motor direction

IN3 —D9 //K3、K4 motor direction

IN4 —D10 //K3、K4 motor direction

ENA —D5 // Needs to be a PWM pin to be able to control motor speed ENA

ENB —D6 // Needs to be a PWM pin to be able to control motor speed ENB



How to code




Running Result