A line follower robot, or a LFR in short, is a simple autonomous robot that optically tracks a line made on the surface of the floor. That means you have an arbitrary line drawn on the floor and the robot tracks it by moving right along it! The line is sensed using a piece of hardware called a line sensor.
A line sensor can be easily made using a low cost IR Rx/Tx pair. The IR Rx emmits IR radiation and the Rx helps in receiving the waves. See the figure below for working of line sensor.
![]() |
Working of Line Sensor |
Schematic for Line Sensor.
![]() |
Line Sensor Schematic |
![]() |
Actual IR Rx Tx Pair. |
Line Sensor Array.
Actually a group of such sensor units as described above is required to make a line follower robot. We generally use 3 or 5 such sensor unit to make a line sensor array. The complete steps are described below. You need small piece of veroboard (general purpose PCB).
![]() |
Actual IR Rx Tx Pair. |
We will fit the sensor at the castor mount of the metal chassis. So we carefully mark the location we need drilling.
![]() |
Mark drilling location. |
![]() |
Mark the drilling location. |
You can make the hole easily by using a pair of scissor. Just press and rotate.
![]() |
Make hole using scissor. |
![]() |
Done! |
![]() |
Check if it fits. |
![]() |
Line Sensor Array Complete. |
![]() |
Mounted on Chassis. |
![]() |
Mounted on Chassis. |
Professional Line Sensor Array
![]() |
Line Sensor Array. |
By Avinash Gupta















good work
nice.we were also done this but here i expected the real time implementation.please post that sir.
Great Work sir!!!
good work sir!
but can u please tell,how do we select the resistor values or are they fixed?
Gee thanks,i recentry joined your website and i`m enjoying every moment of it.I`m interested in control system which could encompass a radius of about a kilometer in robotics,how can we build such a sateritte and a receiver
Sir if we use more than 3 sensors then what will be overall effect of line follower robot and also please tell that can we make the sensor array for more than 3 sensors the same way as you have described above.
I want to connect 5sensor s to my robot how can i connect .please help me
hello sir, I want to know that here you use phototransistor, why you are not using photodiode?? and I didn’t understood the correct operation of phototransistor here?? Please Explain…
Hello Divyansh, do you know the working of photodiode ? If yes ,then tell me.