Line Follower Using Arduino | Easy DIY Project
by sairushan in Circuits > Arduino
1549 Views, 0 Favorites, 0 Comments
Line Follower Using Arduino | Easy DIY Project



In this tutorial, We will be making a line follower using Arduino
Parts Needed:
Chasis: BO Motors and Wheels: https://amzn.to/2Yjh9I7 L298n motor Driver: https://amzn.to/2IWNMWF IR sensor: https://amzn.to/2FFtFu3 Arduino Uno: https://amzn.to/2FyTrjF Jumpers: Mini BreadBoard:
Building the Chassis

Connect the wires to the motors. Then attach the motors to the chassis using Zip ties. Attach the wheels to it.
Now the body is complete.
Build the Motor Circuit:

Here we are using an L298N motor driver module which is a dual H-Bridge driver. It can Drive 2 motors bi-directionally or 4 motors uni-directionally.
Connect the motors to the driver.
Connect the power source to the power pins of the driver.
Connect the IR Sensors:

Here we are using IR sensors to detect the line.
The IR sensor module has an emitter and a receiver. The IR light is absorbed by black surfaces and reflected by white surfaces. This helps us to follow the black line.
Connect 3 jumpers to the IR sensors.
One for data and the rest two for power.
Arduino Connection:

Connect the input pis of the motor driver to the digital pins of the Arduino. Assign them using the code. Do the same for the IR sensors.
The Build Is Complete(CODE):

Link to the code: https://github.com/sairushan/Line-follower
Upload the code and enjoy!!
Check My Video for Test Runs:
