Hello everyone, I hope you all are fine and having fun with your lives. Today, I am going to share a very basic project named as Line Following Robot using Arduino. I have designed a three wheeler robot and have placed IR sensors beneath it to detect the black line and then I have made it move over this Black Line.

This Line Following Robot is not doing any extra feature i.e. turning or rotating back. It will just simply move in the straight line. I have also posted a short video at the botton of this tutorials which will give you better idea of how this robot moves. You should first read this tutorial and design the basic robot and once you are successful in designing the basic Line Following Robot then you should have a look at my recent Project Line following Robotic Waiter in which I have designed a Robotic waiter which follows the line and also take turns on different tables. So, let’s get started with Line Following Robot using Arduino.

#### Line Following Robot using Arduino

• First of all I have designed the Mechanical model of the robot, which has three wheels on it.
• Its a triangular method in which the motors were attached to the front two wheels and the back wheel is a caster wheel, which is present in the middle of the robot.
• Here’s the image of front wheel coupled with the DC Gear Motor:

• Now let’s have a look at the rear caster wheels, shown in below image:

• Finally, I have used Acrylic as the body of the robot.
• Here’s the assembled version of our Line Following Robot:

• Now that we have the mechanical design of our robot and we have assembled it completely.
• So, now comes the electronics part where we are gonna place the DC Motor Driver Circuits and will also place the IR sensors.
• I have used Arduino board for programming of this Line following Robot.
• First of all, I have designed the 2 relay baord for DC motors.
• Its circuit diagram is shown in below figure:

• We also need a voltage divider circuit because we need such a power supply from which we can get 5V, while our source battery is of 12V.
• So, in order to do that I have used 7805 Regulator IC and have designed a simple circuit as shown in below figure:

• Now placing all the components over the Line following Robot, it looked like something as shown in below figure:

• Here’s the Arduino code which you need to upload in your Arduino board:

• Now that’s all, here’s the video for Line Following Robot using Arduino which will give you better idea:

That’s all for today. I hope you have enjoyed this Line Following Robot using Arduino and are gonna use it in your projects. feel free to ask in comments, if you got into any trouble. Thanks for reading. Take care !!! ðŸ™‚

### 1 Comment

1. Dear sir .
May I ask you few request to help me understand what happen in your project !!if that is possible to you of course
1-sensor 4 never user in the code!!why?I think that is wrong!
2-plz show to us how you connect the arduino to the robot(Arduino configuration) that will be nice of you.
3-till us the general idea about the whole project ..like how is the code work in general .
4-in the function called Table1() in your code ..it start by turn right…why that happen …

in the end I really hope to here from you sir….
Thanks a lot in advanced for you Great effort and time

yours Naz