Professional Documents
Culture Documents
Abstract: A line following robot is a robot that basically DC Power Adapter (9V,2A)
follows a specific line. This line following robot is sensor Ball Castor
based. Sensor based approach uses various kinds of
7805 IC
sensors such as IR sensors and ultrasonic sensors. IR
sensors are generally used for measuring the difference L293D IC
in reflectivity of surfaces depending on the properties Breadboard & Jumper wires
like color, roughness etc. Which is this line follower is
based on. The path can be visible like a black line on
a white surface (or vice-versa). Sensing a line and Project Development & Background
maneuvering the robot to stay on course, while
constantly correcting wrong moves using feedback
mechanism forms a simple yet effective closed loop We researched a little bit to select our hardware and
system. This bot was developed based on a vision based
preferable methods to accomplish this task. We
system to navigate the robot through a black line
marked in the white surface. It also extracted some
selected our preferences based on availability and
features in the sensor to follow a line with automatic price range to build this robot.
color detection and follow that color in white surface.
This report is intended to describe the information
regarding the project. It explains the requirements, the Microcontroller:
techniques and technologies used, design and
implementation, details, problems faced, and future
improvements of the project. Microcontrollers are the preferred method for
Keywords : Line follower, Microcontroller , Color
endowing a robot with smarts. The reasons for this
detector , IR sensor .
include their low costs, simple power requirements
Introduction
(usually 5 to 9 V), and ability of most, to be
programmed using software and a simple hardware
Robotics has greatly advanced in the developed interface on the PC. Once programmed, the
countries. High performance, high accuracy, lower microcontroller is disconnected from the PC and
labor cost and the ability to work in hazardous operates on its own. These are programmed either in
places have put robotics in an advantageous an assembly language or in a high level language
position over many other such technologies But as such as C or C++.Here we use Arduino UNO R3.
for developing countries like Bangladesh it is still The Arduino Uno is a microcontroller board based on
quite out of reach. But it is one of the most the ATmega328. It has 14 digital input/output pins
fascinating and interesting aspects to the new (of which 6 can be used as PWM outputs), 6 analog
generations and a lot of development in robotics has inputs, a 16 MHz ceramic resonator, a USB
been done in last couple of years. On this note is this connection, a power jack, an ICSP header, and a reset
effort to make a relatively cheap line follower button. It contains everything needed to support the
microcontroller; simply connect it to a computer with
Equipment List a USB cable or power it with a AC-to-DC adapter or
battery to get started. The ATmega328 on the
Arduino Uno comes preburned with a bootloader that
Arduino Uno R3. allows you to upload new code to it without the use
Photoresistor. of an external hardware programmer. Besides it is
IR Transmitter. cheap and almost available in electronics hardware
DC Gear Motor with Wheels. stores.
divider varies with the intensity of IR light we have
used analog arduino input to measure the results to
Sensor Circuit:
Truth Table :
Motor Specifications
Operating voltage: 3V ~ 6V DC (recommended
value 5V)
Maximum torque: 800g.cm
Speed without load: 90±10rpm
1. Pin1 and Pin9 are "Enable" pins. They Reduction ratio: 1:48
should be connected to +5V for the drivers
No Load current: 190mA (max.250mA) 1 1 1 Stop
Stall Current: ~1A
Working Procedure
Possible Improvements:
Applications
-Use of differential steering with gradual change in
This line following robotics has various types of wheel speeds.
applications in both home and industrial sectors.
-Use of Hysteresis in sensor circuit using LM339
Conclusion
Final Design:
int rightsen = A0;
int midsen = A1;
int leftsen = A2;
int lmf = 10;
int lmr = 9;
int rmf = 11;
int rmr = 6;
int ledpin = 5;
void setup()
{ Serial.begin(9600);
pinMode(lmf, OUTPUT);
pinMode(lmr, OUTPUT);
pinMode(rmf, OUTPUT);
pinMode(rmr, OUTPUT);
}
void loop()
Sensor Circuit:
{ analogWrite(ledpin, 255);
int rightread = analogRead(rightsen);
int midread = analogRead(midsen);
int leftread = analogRead(leftsen);
Serial.print("Right Sensor :");
Serial.println(rightread);
Serial.print("Mid Sensor :");
Serial.println(midread);
Serial.print("Left Sensor :");
Serial.println(leftread);
if
((rightread>400)&&(midread<=400)&&(leftread>40
Motor Diver IC L293D: 0)) forward();
else if
((rightread<=400)&&(midread<=400)&&(leftread>4
00)) right();
else if
((rightread>400)&&(midread<=400)&&(leftread<=6
00)) left();
else halt();
}
void forward()
{ analogWrite(lmf, 80);
analogWrite(rmf, 100);
}
void left()
{ analogWrite(lmf, 0);
analogWrite(rmf, 255);
}
[14] http://linefollower-robot.blogspot.com/
Refernce
[15] http://www.instructables.com/id/Arduino-and-
[1] http://robotsreloaded.blogspot.com/p/line- L293D-Robot-Part-1-/?ALLSTEPS
following-robot-without.html
[16] http://www.richardvannoy.info/my-line-
[2] http://www.roboticsbible.com/simple-line- follower.php
following-robot.html
[17] http://embedjournal.com/2013/06/line-follower-
[3] robot/
http://abhitechstrong.blogspot.com/2013/01/robotics-
project-1-making-line-follower.html [18] http://www.tinkerhobby.com/motion-and-light-
sensors-with-arduino-and-without/
[4 ]http://legendtronics.blogspot.com/2013/10/line-
follower-robot-with-and-without.html [19 http://extremeelectronics.co.in/robotics/making-
a-line-sensor-using-ir-receiver/
[5] http://www.elprocus.com/line-follower-robot-
basics-controlling/ [20] http://www.buildcircuit.com/test-your-sensors-
for-line-following-robots/
[6] http://embedded-
electronics.blogspot.com/2013/06/line-follower- [21] http://tetalab.org/blog/23
robot-without.html
[22] https://www.inkling.com/read/arduino-
[7] http://circuit-diagram.hqew.net/Analog-Line- cookbook-michael-margolis-2nd/chapter-8/recipe-8-
Follower-Robot_11907.html 11