Javatpoint Logo
Javatpoint Logo

Line Follower Robot

What is line follower:

Line follower robot is an autonomous machine that can follow a path. The path can be seen like a white line on a black surface (or vice-versa) or it can be invisible as magnetic field.

Requirement of line follower robot:

Sensing a line and maneuvering the robot to stay on path, while constantly correcting wrong moves by using feedback mechanism forms a simple and effective closed loop system. As a programmer we get an opportunity to ?teach? the robot how to follow the line therefore it gives robot human like property of responding to stimuli.

Consider the practical application of line follower robot is:

  • Guidance system for industrial robots moving on shop floor
  • Automated cars running on road with embedded magnet.

Hardware Required:

  • 12V, 1A DC Adapter-1 piece
  • Analog IR Sensor-3 piece
  • AVR Microcontroller Board-1 piece
  • DC Motor Driver-1 piece
  • AVR USB Programmer-1 piece
  • 1 to 1 Connector-15 piece
  • 10 to 10 FRC Female Connector-2 piece
  • Robot-1 piece

Software Required:

  • BASCOM-AVR Integrated Development Environment (IDE)
  • WinAVR-2010
  • USBasp Driver

Block Diagram:

Line Follwer Robot1


  1. R=rightmost sensor which reads 0, L=leftmost sensor which reads 0. If no sensor on right (or Left) is 0 than L (or R) equals to 0.
  2. If all sensor read 1 then go to step 3,
  3. Else,

    If L<R Move Right

    If L>R Move Left

    If L=R Move Forward

  4. Move anticlockwise if line was last seen on Left, Move clockwise if line was last seen on Right. Repeat step 3 till line is found.

Circuit Diagram:

Consider the eagle software based schematic circuit of line follower robot is:-

Line Follwer Robot2

Source Code:

Consider the screenshot of source code used in Line Follower robot using BASCOM-AVR Integrated Development Environment (IDE) is:-

Line Follwer Robot3 Line Follwer Robot4

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA