Line Follower Robot Using Arduino

by My Tech Studio in Circuits > Arduino

867 Views, 10 Favorites, 0 Comments

Line Follower Robot Using Arduino

Line Follower Robot.jpg

Line follower robot is another example of arduino project. The name “Line follower robot” suggest a robot which can follow the line. In other words the path of the line or track is become the path of the robot. A line follower robot is an automation related project where we use the arduino and some other sensors (IR sensor) to automate the car. Read More >>

Supplies

Components –

  1. DC Geared Motor
  2. Arduino uno
  3. L298N Motor Driver
  4. IR Sensor
  5. Jumper Wire
  6. 12 Volt Lipo Battery

Structure Design

Line_follower_robot_chassis.jpg
Line_follower_robot_circuit_connection.jpg

The basic structure of a line follower robot is quite similar to any arduino car. The only thing that differs is the placement of the IR sensors in front of the robot. So while building a line follower robot you have to keep your attention in the front part of the robot. And you have to keep enough space for the installation of the IR sensors. At first you have to take the four dc geared motor for your robot. Connect the wires in the motor. Then you have to take a wooden or plastic board which can be used as a chassis of the robot. Fix all the dc geared motor in the four corners of the chassis by using the glue. Read More >>

Circuit Connection

Line Follower Robot circuit diagram.jpg

Now we have to make the circuit for line follower robot. And for this purpose you need some circuit component like Arduino uno, L298N motor driver and IR sensors. At first take the L298N motor driver and place it in the rear side of the chessis. Then take the wires of the dc motor and connect it with the output terminal of the L298N motor driver. After this take the Arduino uno, and then place it in front of the motor driver. At this time you have to build the connections between the arduino and L298N motor driver. For this you may follow the steps. Read More >>

Arduino Code

Line_follower_robot_arduino_code.jpg

Now you have to do the coding for line follower robot. In this project we use three IR sensor. So our code will be based on this three IR sensors. Connect the arduino with your computer and do the coding.

Line follower robot working principal –

  1. When the left ir sensor detect the black line, the robot will move to left.
  2. When the right ir sensor detect the black line, the robot will move to right.
  3. When the middle ir sensor detect the black line, the robot will go forward.
  4. When all the ir sensor detect the black line, the robot will stop. Read More >>

IR Sensor Calibration

Line_follower_robot_ir_sensor_connection.jpg

Now it is the time to test the robot. Place the robot in a track and observe its performance. If you notice that the robot is not working properly, then you have to calibrate the ir sensors. Change the value of potentiometer in the ir sensors and try it once. If the result is not satisfactory, you have to change the value of potentiometer again. In this manner you have to find the right value of potentiometer. Read More >>