Introduction

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

Notice:
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

小车左边的红外循迹传感器接到扩展板D2

小车右边的红外寻及传感器接到扩展板D3

How to code

这一步请根据教程内容,以图片的形式表现出来

下载zip文件后解压,直接用mixly软件打开

代码下载地址

Running Result