Introduction: Line Follower on Tinkercad
A-Line Follower Robot, as the name suggests, is an automated guided vehicle, which follows a visual line embedded on the floor or ceiling. Usually, the visual line is the path in which the line follower robot goes and it will be a black line on a white surface but the other way (white line on a black surface) is also possible. Certain advanced Line Follower Robots use the invisible magnetic field as their paths.
Large line follower robots are usually used in industries for assisting the automated production process. They are also used in military applications, human assistance purpose, delivery services etc.
Line follower Robot is one of the first robots that beginners and students would get their first robotic experience with. In this project, we have designed a simple Line Follower Robot using Arduino and some other components.
Step 1: Components Required:
1. Arduino UNO (or Arduino Nano)
2. L293D Motor Driver IC [You can buy module or you can make yourself]
3. Geared Motors x 2
4. IR Sensor Module x 2 [You can buy module or you can make yourself]
5.Connecting Wires
6. Power supply
7. Battery Connector
Step 2: Working of Arduino Line Follower Robot:
In this project, I have designed an Arduino based Line Follower Robot. The working of the project is pretty simple: detect the black line on the surface and move along that line.
As mentioned, we need sensors to detect the line. For line detection logic, we used two IR Sensors, which consists of IR LED and Photodiode. They are placed in a reflective way i.e. side – by – side so that whenever they come into proximity of a reflective surface, the light emitted by IR LED will be detected by Photodiode.
When the robot moves forward, both the sensors wait for the line to be detected. For example, if the IR Sensor 1 in the above image detects the black line, it means that there is a right curve (or turn) ahead.
Arduino UNO detects this change and sends signal to motor driver accordingly. In order to turn right, the motor on the right side of the robot is slowed down using PWM, while the motor on the left side is run at normal speed.
Similarly, when the IR Sensor 2 detects the black line first, it means that there is a left curve ahead and the robot has to turn left. For the robot to turn left, the motor on the left side of the robot is slowed down (or can be stopped completely or can be rotated in opposite direction) and the motor on the right side is run at normal speed.
Arduino UNO continuously monitors the data from both the sensors and turns the robot as per the line detected by them.
Step 3: Code:
For credit, please follow my following accounts.
Thanks
For more interesting projects connect with me on:
Youtube:https://www.youtube.com/channel/UCTS10_CRYJhT-vb9-...
Facebook page: https://www.facebook.com/techeor1/
Instagram: https://instagram.com/official_techeor?igshid=uc8l...
Attachments

Participated in the
Arduino Contest 2020
21 Comments
2 years ago
Hello brother !
I hope you are doing well.
Can you share the code plz ?
If you can ! this is my email abnabi222@gmail.com
thanks
3 years ago on Introduction
can you share your code with me? thankyou for you help europefreak@gmail.com
3 years ago
thank for the tutorial.can you email the code to thawrah@gmail.com
3 years ago
can you mail me as soon as posiible....
mail ID: patelved1355@gmail.com
Question 3 years ago
I want to simulate this , could u plz share code here , my mail priyankags1807@gmail.com
3 years ago
Could you please send me the code, here is my mail rakovisavio@gmail.com
3 years ago
Can you share me the code please....Here is my mail id: shyamala.19ec@kct.ac.in
3 years ago
Hey Thanks, it has been a great help already!!
Could you please send me the code, here is my mail ridwanahamad101@gmail.com
3 years ago
riddlexd@gmail.com can you share the code? How to test it in tinkercad? :(
Reply 3 years ago
You can watch my youtube video to know "Hos to use tinkercad"😄
Reply 3 years ago
Code has been shared thanks 😄
3 years ago
hai can you share the code to amirul2498@gmail.com
Reply 3 years ago
Code has been shared thanks 😄
3 years ago
harshvasani86@gmail.com pls send me code and simulation
Reply 3 years ago
Shared thanks
Reply 3 years ago
once again can you sent link?
3 years ago
hi, My email is patchavageethika@gmail.com can you send the code to me
3 years ago
I want to make this simulation
could you sent the coding to me?
my email is dhseo0619@outlook.kr
Reply 3 years ago
Shared thanks
3 years ago on Step 3
hai. can you sent the coding to me ? This is my email nurulnaqibahbadihah98@gmail.com