V7i3 1547

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/351942942

Design of autonomous line follower robot with obstacle avoidance

Technical Report · May 2021


DOI: 10.13140/RG.2.2.11652.86403

CITATIONS READS

2 7,776

1 author:

Kumar Rishabh
SRM Institute of Science and Technology
3 PUBLICATIONS   2 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Design of Autonomous Line Follower Robot with Obstacle Avoidance View project

All content following this page was uploaded by Kumar Rishabh on 28 May 2021.

The user has requested enhancement of the downloaded file.


International Journal of Advance Research, Ideas and Innovations in Technology

ISSN: 2454-132X
Impact Factor: 6.078
(Volume 7, Issue 3 - V7I3-1547)
Available online at: https://www.ijariit.com

Design of autonomous line follower robot with obstacle avoidance


Kumar Rishabh
kumar.rishabh.2000@gmail.com
SRM Institute of Science and Technology, Chennai, Tamil Nadu

ABSTRACT following robot and the object obstructing it by sending a sound


wave of a specific frequency and detecting the bounced sound
This paper shows design and implementation of the Line wave at receiver
Follower Robot and its ability to select the desired line among
black and white line. This can be combined with different It is important to understand that some objects might not be
colours. Since each colour has its own distinct property, robot detect by ultrasonic sensor. This can be applied for military
can therefore easily differentiate among different colours and purposes, delivery services, transportation systems, blind
possess the ability to detect the presence of an obstacle and assisting applications.
choose the other path to find its target. It is programmed in
such a way that instructions are given to the robot which 2. MOTIVATION
senses a line and attempts to move towards the target. The In time of automation advances to reduce human efforts, it is
robot can easily move along very congested curves as it necessary to develop colour line following robot, this robot can
continuously data from the sensors. This robot avoids collision be used in airports to carry equipment and baggage from one
and it can detect collision with an obstacle sensor and hence place to another place, and it can be used for home automation,
reaching the target. The proposed system can be implemented in restaurant it is used as robotic waiter like in Robot Restaurant
in any commercial, industrial, medical and also in educational in Porur, Chennai. It was opened in November 2017. Advantage
labs of such robots is that they can operate efficiently for 6-7 long
hours with a single charge. Thus, it is profitable for the business
Keywords⸻ Arduino, IR Sensor, Ultrasonic Sensor, Motor itself. Therefore, for a large country like India, it is necessary to
1. INTRODUCTION use the line following robots in restaurants, industries etc. Such
The Line Following Robot is an autonomous robot that detects Robots come into play when large and heavy machineries are to
a path and according to the path drawn, it follows the path with be transferred from one place to another within industries. This
the help of an IR sensor attached to the robot. The path can be technology can be implemented in running buses or other mass
either a Blackline drawn over a white surface or a white line transit systems.
drawn over a black surface thus avoiding any detection error.
Line follower robot also consists of an obstacle sensor that 3. RELATED WORK
detects any obstacle in front of the Robot thus avoiding any In robotics there are many systems invented which has different
unnecessary accidents. Line follower robot is designed and applications in different fields. Robotics is very popular field for
programmed in such a way that it does its job perfectly without research and manufacturing. Pakdaman M. et.al has design a
any error and detects it’s given path. It operates in such a way small line following robot which used IR sensors to detect the
that it detects and reads the path and transmits the signal to line drawn on floor [1]. Priyank Patil has developed an AVR line
Arduino UNO. The microcontroller decides to make any following robot which can detect the line drawn on the floor with
changes (if needed) in the directions or speeds of the robot the help of sensor array. When its sensor is passing through the
according to the inputs received. Thus, it sends the control signal line drawn on the way then it reads 0 and vice versa [2]. That
to the speed and directions of the line follower robot. This way system has designed for the robot competition. Colak I. et.al has
the line follower robot operates without any error. design a line following robot to use in the shopping malls for
entertainment. That system used 4.8 cm wide black line to carry
To make a line follower robot with object detection ability it is maximum load of 400 kg. Two wheels balancing robot has
attached with an ultrasonic sensor, which is a device that can developed by Nor Maniha Abdul Ghani et.al, which has the line
measures the distance between an object and robot by using following capability and for balancing it, they used infrared
sound waves. It calculates the distance between the line distance sensor to solve the problem in inclination [11], They
© 2021, www.IJARIIT.com All Rights Reserved Page |715
International Journal of Advance Research, Ideas and Innovations in Technology
also used a manual control with the help of remote controller DIFFERENT TYPES OF PATH FOR LINE FOLLOWER
[12]. A physical robot with 50 individual controls is generated ROBOT
by Gomi T. et.al from which the ability and gait to lift the body
can be improved. That robot can move its legs in forward motion
and tested in different conditions [13]. Roman Osorio C. et.al
designed an intelligent line following robot, which can modify
the performance of the movement with the help of different type
of magnetic sensors. That robot was based on the V2X sensor The robot will follow a bad angle of 45° and cycle or bad
which is a type of digital compass [14]. This system is used an curves. It will stop when it finds a cross black line.
array of 8 IR sensors and several LEDs. M. Zafri Baharuddin
et.al designed a mobile robot which can be used as the
navigation purpose [15]. An intelligent robot system is designed
by Bajestani S. E. M. which can give corrective feedback in
different colors of light [16]. They used a comparator circuit to
improve the sensitivity of the system. That comparator
compares the voltage with the predetermined amounts from
which a robot can move in accurate real time. Kazi Mahmud On any kind of polygon, it can follow the line and maintain a
Hasan et.al designed sensor based autonomous color line particular speed.
following robot with obstacle avoidance, this robot can follow
not only black and white colors but also some other different
colors. This robot includes electronic logic gates as brain instead
of microcontroller [17].

4. PRINCIPLE The line may have cycles and unwanted curves that it has to
The Line Follower Robot consists of two IR sensors and an follow on narrow space or moving one room to another
Ultrasonic sensor attached to it. When the left sensor comes on
the black line, then the robot turns the left side in the black line 5. SENSORS
(Fig.1) and if the right sensor senses a black line (Fig.2), then 5.1 Arduino Uno
the robot turns the right side until both the left and right sensor
senses white then only the robot moves forward (Fig. 3). If robot
comes across a path where there is another black strip lying
perpendicular to the path then the robot stops at that instant (Fig.
4).

Fig. 1 Fig. 2
The Arduino Uno is a microcontroller board based on the
datasheet file,
http://www.atmel.com/dyn/resources/prod_documents/do
c8161.pdf

Further information about Arduino Uno, you can read it on


http://arduino.cc/en/Main/ArduinoBoardUno

Fig. 3 Fig. 4 5.2 L293D (Motor Driver)

This is a Motor driver IC that can drive two motors


simultaneously. Motors are arranged in a fashion called H-
Bridge. H-Bridge-It is an electronic circuit which enables a
voltage to be applied across a load in either direction. It allows
a circuit full control over a standard electric DC motor. That is,
© 2021, www.IJARIIT.com All Rights Reserved Page |716
International Journal of Advance Research, Ideas and Innovations in Technology
with an H-bridge, a microcontroller, logic chip, or remote 5.6 IC 7805
control can electronically command the motor to go forward,
reverse, brake, and coast. [18]
5.3 HC-SR04 (Ultrasonic Sensor)

A voltage regulator is an electrical regulator designed to


automatically maintain a constant voltage level. It converts a
positive voltage (7-29V) to +5 volts. Heat sink provided in the
center to release heat generated due to drop across the IC. Input
voltage of about 5 to 18 V is given, Ground is 0 V and regulated
output of +5V. [22]
Ultrasonic sensor is a device which can measure the distance to
an object by using sound waves. It will measure the distance by
5.7 Chassis
sending out a sound wave at a particular frequency and listening
that wave when it bounces back.[19]

5.4 IR Sensor

Basic chassis for building your own Arduino robot car etc. The
acrylic base is pre-drilled & routed to mount the gear motor/Tire
assemblies, a 4 “AA” cell battery holder and a small caster for
the rear wheel. Motors: 5-10VDC with Tach disks

5.8 Castor Wheel

The Infrared (IR) sensors consist of Infrared (IR) LED and


Infrared (IR) photodiodes. The IR LED is called photoemitter
and IR photodiode is called receiver. The IR light emitted by the
LED strikes the surface and gets reflected back to the
photodiode. Then the photodiode gives an output voltage which A caster (or castor) is an undriven, single, double, or compound
is proportional to the reflectance of the surface which will be wheel that is designed to be mounted to the bottom of a larger
high for a light surface and low for dark surface. Light colored object (the "vehicle") to enable that object to be easily moved.
objects reflect more IR light and dark colored objects reflect less They are available in various sizes and are commonly made of
IR light.[20] rubber, plastic, nylon, aluminium, or stainless steel.[23]

5.5 Jumper Wires 5.9 Batteries

Jumper wires are simply wire that have connector pins at each
end, allowing them to be used to connect two points to each A battery is a device consisting of one or more electrochemical
other without soldering. Jumper wires are typically used with cells with external connections provided to power electrical
breadboards and other prototyping tools in order to make it easy devices such as flashlights, mobile phones, and electric cars.
to change a circuit as needed.[21] When a battery is supplying electric power, its positive terminal
is the cathode and its negative terminal is the anode. The
© 2021, www.IJARIIT.com All Rights Reserved Page |717
International Journal of Advance Research, Ideas and Innovations in Technology
terminal marked negative is the source of electrons that will flow 6. BLOCK DIAGRAM
through an external electric circuit to the positive terminal. Below is the block diagram for Line Follower Robot. The
When a battery is connected to an external electric load, a redox Arduino UNO microcontroller sends a set of signals to the
reaction converts high-energy reactants to lower-energy L293D and uses the Motor Shield L293D. All kinds of
products, and the free-energy difference is delivered to the processing take place in the Arduino UNO microcontroller. Two
external circuit as FIG:2.9 electrical energy. Historically the Dc Motors are connected with the motor shield as well as Two
term "battery" specifically referred to a device composed of IR sensors and two Ultrasonic Sensors are connected to the
multiple cells, however, the usage has evolved to include motor shield. They send signals through the L293D to the
devices composed of a single cell.[24] Arduino. The 11v Lithium Polymer battery powers the whole
system.

7. SYSTEM ARCHITECTURE

Connection Between Motor Driver and Arduino


Motor Driver Arduino
N1 10
IN 2 9
IN 3 6
IN 4 5
VCC/ 12V Vin / 5v
GND GND
5V 5V

Connection between IR Sensor and Arduino


IR Sensor Arduino
Sensor 1:
VCC VCC
GND GND
OUT A0
Sensor 2:
VCC VCC
GND GND
OUT A1

Connection between Ultrasonic Sensor and Arduino


Ultrasonic Sensor Arduino
GND GND
ECHO A3
TRIG A5
VCC VCC

© 2021, www.IJARIIT.com All Rights Reserved Page |718


International Journal of Advance Research, Ideas and Innovations in Technology
8. ARCHITECTURE OF THE SYSTEM

9. SOURCE CODE }else{


The complete code of the of the proposed system is presented turnLeft();
below, delay(350);
#define trigpin A5 delay(1000);
#define echopin A4 turnRight();
int motor_l1 = 6; delay(200);
int motor_l2 = 5; forword();
int motor_r1 = 10; delay(500);
int motor_r2 = 9; forword();
int speed =115; delay(500);
int frontdist; }
long duration; }
int setdist = 10;
int L_S = A0; long data(){
int R_S = A1; Long data(){
void setup(){ pinMode(motor_l1,OUTPUT); digitalWrite(trigpin,LOW);
pinMode(motor_l2,OUTPUT); delayMicroseconds(2);
pinMode(motor_r1,OUTPUT); digitalWrite(trigpin,HIGH);
pinMode(motor_r2,OUTPUT); delayMicroseconds(10); duration=pulseIn(echopin,HIGH);
pinMode(trigpin,OUTPUT); return duaration / 29 / 2
pinMode(echopin,OUTPUT); }
pinMode(L_S,INPUT); Void stop(){
pinMode(R_S,INPUT); analogWrite(motor_11, 0);
Serial.begin(9600); analogWrite(motor_l2, 0);
delay(1000); analogWrite(motor_r1, 0);
} analogWrite(motor_r2, 0);
void loop(){ }
frontdist = data(); Void forward(){
Serial.println(frontdist); analogWrite(motor_11, speed);
if(frontdist>setdist){ analogWrite(motor_l2, 0);
if((digitalRead(L_S) == 0) && (digitalRead(R_S) == analogWrite(motor_r1, 0);
0){forword();} analogWrite(motor_r2, speed);
if((digitalRead(L_S) == 0) && (digitalRead(R_S) == }
1){turnRight();} Void backword(){
if((digitalRead(L_S) == 1) && (digitalRead(R_S) == analogWrite(motor_11, 0);
1){turnLeft();} analogWrite(motor_l2, speed);
© 2021, www.IJARIIT.com All Rights Reserved Page |719
International Journal of Advance Research, Ideas and Innovations in Technology
analogWrite(motor_r1, speed); [9]. Hagras,H., Pounds-cornish, A., Colley, M., Callaghan,
analogWrite(motor_r2, 0); V.,Clarke,G.: Evolving Spiking Neural Network Controllers
} for Autonomous Robots. Proceedings of the 2004 IEEE
Void turnRight(){ International Conference on Robotics and Automation , pp.
analogWrite(motor_11, 0); 4620-4626., 2004
analogWrite(motor_l2, speed; [10]. Charles A. Schuler, Willam L. McNamee, “Industrial
analogWrite(motor_r1, 0); Electronics and Robotics,” McGraw-Hill International
analogWrite(motor_r2, speed); Edition, Industrial Electronics Series 2003.
} [11]. Nor Maniha Abdul Ghani, FaradilaNaim, Tan Pi own yon,
Void turnLeft(){ "Two Wheels Balancing Robot with Line Following
analogWrite(motor_11, speed); Capability ".
analogWrite(motor_l2, 0); [12]. Colak, I., Yildirim, D.,"Evolving a Line Following Robot
analogWrite(motor_r1, speed); to use in shopping centers for entertainment”, Industrial
analogWrite(motor_r2, 0); Electronics, 2009. IECON '09. 35th Annual Conference of
} IEEE, pp.3803 - 3807, 3-5 Nov. 2009.
[13]. T. Gomi, K. Ide, “Evolution of gaits of a legged robot",
10. CONCLUSION IEEE International Conference on Fuzzy Systems 06/1998;
Thus, the line follower robot is successfully designed and DOI:10.1109/FUZZY.1998.687476 ISBN: 0-7803-4863-X
implemented. The advanced version of these robot can be used In proceeding of: Fuzzy Systems Proceedings, 1998.
in Public Transports and other means of Public Transit. These [14]. Román Osorio,” Intelligent Line Follower Mini-Robot
can be operated easily without any use other devices such as System”, International Journal of Computers,
smartphones, remote control, WiFi etc. This will run Communications & Control Vol. I, No.2, pp.73-83, 2006.
automatically with following a given line using Arduino [15]. M. Zafri Baharuddin, Izham Z. Abidin, S. Suleiman Kaja
microcontroller Mohideen, Yap Keem Siah, Jeffrey Tan Too
Chuan,"Analysis of Line Sensor Configuration for the
11. REFERENCES Advanced Line Follower Robot”, University Tenaga
[1]. Pakdaman,M.Sanaatiyan,M.M.,"Design and Implemen Nasional.
tation of Line Follower Robot,", Second International [16]. Bajestani, S.E.M., Vosoughinia, A., “Technical Report of
Conference on Computer and Electrical Engineering Building a Line Follower Robot” International Conference
TCCEE '09, vol.2, pp.585-590,Dec.2009. on Electronics and Information Engineering (ICEIE 2010),
[2]. PriyankPatil,"AVR Line Following Robot,” Department of vol 1, pp. v1-1 v1-5, 2010.
Information Technology K. 1. Somaiya College of [17]. Kazi Mahmud hasan, Abdullah -nahid,k. Reza,s.khatun
Engineering Mumbai, India. Mar 5, 2010. and m. R.basar”Sensor Based Autonomous Color Line
[3]. Dean A. Pomerleau; Jay Gowdy; Charles E. Thorpe, Follower Robot with Obstacle Avoidance”2013 IEEE
“Combining Artificial Neural Networks and Symbolic Business Engineering and Industrial Application
Processing for Autonomous Robot Guidance," Engng Colloquium (BEIAC)
Applic. Artif. Intell. Vol. 4, No. 4, pp. 279-285, 1991. [18]. http://robotics4u.weebly.com/motors.html
[4]. L1U Shi-Cai,L1U Guang-Jun, "Formation Control of [19].https://www.irjet.net/archives/V7/i2/IRJET-V7I2379.pdf
Mobile Robots with Active ObstacleAvoidance," Acta [20].https://fdocuments.in/document/smart-and-intelligent-line-
Automatica Sinica, Vol. 33, No. 5, 2007. follower-robot-with-obstacle-factors-line-follower.html
[5]. YANG Tian-Tian; L1U Zhi-Yuan; CHEN Hong; PEl Run, [21].http://www.ekalai.net/English/Product/Electronics/Connec
"Formation Control and Obstacle Avoidance for Multiple tor-Jumper-Wire-Black-Male-To-Male-20cm
Mobile Robots," Acta Automatica Sinica, Vol. 34, No. 5, [22]. https://www.slideshare.net/RohitDadoriya/line-follower-
2008. robot-70242686
[6]. Sandhana, Lakshmi (2002-09-05), “A Theory of Evolution [23].https://www.chegg.com/homework-help/questions-and-
for Robots, “Wired Magazine ... Retrieved 2007- 10-28. answers/caster-undriven-single-double-compound-wheel-
[7]. J.Kramer and M. Scheutz, “Development environments for designed-mounted-bottom-larger-object-vehicle-
autonomous mobile robots: A survey, “Autonomous Robots, q72544410
vol. 22. [24]. https://en.wikipedia.org/wiki/Electric_battery.
[8]. Floreano, D.,Mondada F.,"Evolutionary neurocontrollers
for autonomous mobile robots,” Neural Networks 11, pp.
1461-1478, 1998.

© 2021, www.IJARIIT.com All Rights Reserved Page |720


View publication stats

You might also like