Line Follower
Line Follower
Line Follower
This paper report describes the techniques for analyzing, designing, controlling and
improving the material supply delivery within hospitals. Due to increasing demands
for patient supervision, the jobs like supply of food, medicines etc., has become a ti
me consuming process. So, a microcontroller based line following robot carrying m
edicine can be designed for providing the medicine to the patient whenever they nee
d it. A line follower robot is an electronic system that can detect and follow a line dr
awn on the floor. The robot uses IR sensors to sense the line, an array of 3 IR LEDs
and sensors, facing the ground have been used in this setup. An IR sensor can be fitt
ed near the patient’s bed to which connection has been made with the robot too. The
switch for it can be activated by the supply person in the microcontroller itself. If th
e switch is pressed then a flag bit is set in the microcontroller, from which the robot
follows the line and reaches near the patient and provide the medicine to the patient.
A proximity sensor can be attached with the robot so that it detects any obstacle pre
sent in their way and can alarm. The ability to get someone around the clock is the b
est thing that this system can do. This helps and simplifies the job of material supply
and also reduces the manual routine work done by the hospital staff. This technolog y
focuses on the delivery of safe, timely, efficient, effective, patient-centered health
care.
Table of contents
Certificates
Acknowledgement
Abstract
Table of
contents List of
figures
1 Introduction 1-3
4.1 Result 16
4.2 Discussions 16
4.3 Advantages & Disadvantages 18
4.4 Applications 18
5.1 Conclusion 19
5.2 Future Scope 20
6 Bibliography 21
6.1 References 21
7 Appendix 22-27
Line- following robots with pick- and- placement capabilities are commonly used in m
anufacturing plants. These move on a specified path to pick the components from spec
ified locations and place them on desired locations. Basically, a line- following robot i
s a self-operating robot that detects and follows a line drawn on the floor. The path to
be taken is indicated by a white line on a black surface. The control system used must
sense the line and man oeuvre the robot to stay on course while constantly correcting t
he wrong moves using feedback mechanism, thus forming a simple yet effective close
d- loop system.
In the industry carriers are required to carry products from one manufacturing plant to
another which are usually in different buildings or separate blocks. Conventionally, c
arts or trucks were used with human drivers. Unreliability and inefficiency in this part
of the assembly line formed the weakest link. The project is to automate this sector, u
sing carts to follow a line instead of laying railway tracks which are both costly and a
n inconvenience
The robot can be further enhanced to let the user decide whether it is a dark line on a
white background or a white line on a dark background. The robot can also be progra
mmed to decide what kind of line it is, instead of a user interface. The motor control c
ould be modified to steer a convectional vehicle, and not require a differential steering
system. The robot could be modified to be a four wheel drive. Extra sensors could be
attached to allow the robot to detect obstacles, and if possible bypass it and get back t
o the line. In other words, it must be capable predicting the line beyond the obstacle. S
peed control could also be incorporated. Position and distance sensing devices could a
lso be built in which can transmit information to a mother station, which would be use
ful in tracking a lost carrier.
1.4 Block Diagram
Sensor Array
Crystal
ATmega 8
Microcontroller
Reset circuit
H-Bridge
Left Mo Right Mo
tor tor
Research into autonomous driving using smaller robots typically follows one of two a
pproaches. In the first approach a mathematical model of the vehicle and its surroundi
ngs is generated, tested in simulation, and then applied to a robot built specifically for
the purpose. In the second approach a combination of a visual servoing system and a k
inematic model is used, again the robot is typically designed around the solution techn
ique. Due to the size of these robots, the processing resources available are quite limit
ed so simpler models and techniques, such as visual servoing, are used to reduce the p
rocessing load.
Autonomous robots are independent of any controller and can act on their own. The r
obot is programmed to respond in a particular way to an outside stimulus. The bump-a
nd-go robot is a good example. This robot uses bumper sensors to detect obstacle. Wh
en the robot is turned on, it moves in a straight direction and when it hits an obstacle, t
he crash triggers its bumper sensor. The robot gives a programming instruction that as
ks the robot to back up, turn to the right direction and move forward. This is its respon
se to every bump. In this way, the robot can change direction every time, it encounters
an obstacle.
A more elaborate version of the same idea is used by more advanced robots. Robotics
create new sensor systems and algorithms to make robots more perceptive and smarter
. Today, robots are able to effectively navigate a variety of environments. Obstacle av
oidance can be implemented as a reactive control law whereas path planning involves
the pre-computation of an obstacle- free path which a controller will then guide a
robot along.
Some mobile robots also use various ultrasound sensors to see obstacles or infrared. T
hese sensors work in a similar fashion to animal echolocation. The robot sends out a b
eam of infrared light or a sound signal. It then detects the reflection of the signal. The
robot locates this distance to the obstacles depending on how long it takes the signal t
o bounce back.
Some advanced robots also use stereo vision. Two cameras provide robots with depth
perception. Image recognition software then gives them the ability to locate, classify v
arious objects. Robots also use smell and sound sensors to gain knowledge about its s
urroundings
The Embedded Line following robot uses two motors to control rear wheels and the si
ngle front wheel is free. It has 3- infrared sensors on the bottom for detection of black
t racking tape. When the middle sensor detects the black color, this sensor output is giv
en to the comparator LM358. The output of comparator compares this sensor output w
ith a reference voltage and gives an output. The output of comparator will be low whe
n it receives an input from the sensor.
We follow a simple logic to implement this project. As we know that black colour is c
apable of absorbing the radiation and white colour or a bright colour reflects the radiat
ion back. Here we use 3 pairs of IR TX and Rx .The robot uses these IR sensors to sen
se the line and the arrangement is made such that sensors face the ground. The output
from the sensors is an analog signal which depends on the amount of light reflected ba
ck and this analog signal is given to the comparator to produce 0s and 1s.
Internally we have an OTP (one time programmable) processor which is used to contr
ol the rotation of the wheels. The rotation of these wheels depends up on the response
from the comparator. Let us assume that when a sensor is on the black line it reads 0 a
nd when it is on the bright surface it reads 1.
2. Right curve
3. Left curve
We can expect our robot to move in straight direction when the middle sensors respon
se is low and the remaining two sensors response is high. i.e., according to our arrang
ement the middle sensor will always be on the line and as the line is black in colour it
will not reflect the emitted radiation back and the response of the sensor will be low a
nd the response of the remaining two sensors will be high as they will be on the bright
surface.
When a left curve is found on the line the response of the left most sensor will be chan
ged from high to low as the sensor will now face the black or the dark surface. Then t
he control of the wheel changes i.e. by holding the left wheel and allowing the right
wheel to move freely until the middle sensor changes it is response from high to low.
The same process continues for all the turns and the robot moves continuously until th
e supply is remove.
2.3 Hardware Components
1. IR SENSOR
2. MICROCONTROLLER
3. VOLTAGE REGULATOR
4. COMPARATOR IC
5. MOTOR DRIVER IC
6. POTENTIOMETER
Chapter 3
STEPS IN CIRCUIT DESIGNING
3.1.5 Pressing
After the PCB layout is done, take its printout on a glossy A4 size sheet using a LASE
R printer and print it on the copper clad board (CCD) Using press method. Due to whi
ch the diagram on the glossy paper will stick to the board.
3.1.6 Etching
After pressing the glossy paper on the PCB board, now dip that printed circuit board i
n FeCl3 for one hour and this whole process is known as Etching.
3.1.7 Drilling and Shouldering
After taking out the PCB from the ferric chloride solution, now PCB is ready for Drill
ing. Drilling is the process in which small holes are made in the PCB for fixing the co
mponents. The size of hole is about 0.8mm and the machine is used for drilling is call
ed Drilling machine.
After the drilling process now fix all the components in the holes andthen to fix the co
mponents permanently we shouldering process, in which a wire, made of tin and lead
is heated by a shouldering machine so that it melts and components become stick to th
e board permanently.
Fig.3.4 PCB after Drilling and Shouldering
Our project is an innovative idea of intelligent system which has basically line detecti
on feature and will provide help in various fields like hospitals and service sectors. Th
e sensors in this system are a type of infrared sensor that senses the line and gives the
feedback to the microcontroller unit.
4.1 Result
The objective of the line following robot is to follow a line on its given path which is
obtained for which it uses IR sensors which detects the line and sends the information
to LM324 comparator and then to H bridge which controls the working of the wheel’s
. Microcontroller controls the other operations.
4.2 Discussions
Research shows that number of patients died because of few numbers of trained medi
cal staff. Shortage of nurses is ‘killing thousands a year’: Patients in overstretched hos
pitals developing fatal complications which could have been cured. A lot of hospitals
have stopped recruiting nurses and medical personnel since 2005 and 2006. From the
past two years there is an increasing trend of recruiting more doctors than the nurses. I
f sufficient number of nurses based on the patient numbers visiting a hospital can be r
ecruited then the number of deaths can be estimated decreases by 10 %.
Figure 4.1 World health statistics, WHO 2013
The above table (fig4.1) shows that the availability of nurses and physicians is very lo
w in India compared to that of the Global median. So there is a high need of supervisi
on of the nurses or attendants towards the monitoring of patients rather than concentra
ting on the supply of medicines, food etc. This leads to the need for implementing oth
er alternative for those activities. This is the situation where the Automated Guided V
ehicle (AGV) can be implemented for the delivery of the material supply to patients. I
n this paper we considered the use of a line follower robot for the above specified pro
blem.
Recommended Solution
The average nurse walks roughly 5 miles per shift of work. Much of this travel time is
not spent travelling from one patient to the next to apply hands-on, bedside care. Unf
ortunately, most of the walking is spent in the pursuit of hunting for and gathering me
dical supplies, collecting and executing physician orders, and performing registration
and discharge tasks. These routine and mundane tasks can be performed by robots no
w. Thanks to the robot solution, quality of care improves through efficiency.
Nurses can now claim more time during their shift to spend on patient care. In fact, th
e robot allows for a redefinition of ‘patient care.’ Whereas historically, gathering supp
lies, coordinating meals and medications, and various forms of paperwork and docum
entation were considered ‘patient care’, now these administrative and logistical tasks c
an be defined and assigned to what they truly are. And nurses can get back to the high
ly-skilled interpersonal clinical tasks that they have been trained for, and that patients
really need in order to heal. Quality of care improves through increased staff satisfacti
on.
Medical errors have been a major cost to the healthcare delivery system. First and fore
most, there is a human cost. Medical errors have caused death, dismemberment, and
minor injuries.
Disadvantages
4.4 Applications
Guidance system for industrial robots moving on shop floor etc.
Industrial applications.
Home applications.
Chapter 5
CONCLUSION AND FUTURE SCOPE OF WORK
5.1 Conclusion
In this project we have studied and implemented a Line Following Robot using a Micr
ocontroller for blind people. The programming and interfacing of microcontroller has
been mastered during the implementation.
The cost of health care in India greatly depends upon the land and location of building
, the infrastructure and facilities and skilled staff required to maintain the expensive m
achinery. In a country like India, where the population in humongous and the resource
s are scarce, it becomes highly difficult to set up such extensive projects in every locat
ion. So what this system provides is an alternate to the existing system with robotic m
achinery, which can handle tasks with lower per capita cost and better accuracy
This technology has been suggested for running buses and other mass transit systems
and may end up as a part of autonomous cars navigating the freeway.
Line following robot based materials supply system can play a vital role in the field of
hospitality. Line following robot’s application over electronics engineering can’t be u
nderestimated. In India many people show reluctance to get admitted in a hospital bec
ause of cost issues. The cost for cure can be reduced by using the robots in governmen
t and private hospitals. It can be very beneficial for the patients as well. Also, monitori
ng of every patient is very difficult for the nurses, given the fact that there are very fe
w of them. So a camera can be placed in the line following robot, from which the stat
us for every patients can be handle from a single room. In the bed of the patient an acc
elerometer can be placed from which if a patient have a heart attack then that device c
an operate an alarm circuit. A GSM module can be placed with the line following rob
ot so that if any untoward incident occurs then that system can make a call to the doct
or, it also helps the doctors for remote diagnosis of patients even when he is away fro
m hospital by remote presence. The line follower robots can also be improvised by usi
ng RFID tags so that accuracy of the system increases. Robotics is very big field for t
he new innovation and research. By using the robot in real time applications, a health
care system can be manage in an effectively way.
Chapter 6
BIBLOGRAPHY
6.1 References
APPENDIX
7.1 IR Sensors
An Infra-Red sensor detects Infra-Red light/white light from a particular object/lin
e and then converts light energy to electrical energy. An IR sensor pair consists of
an emitter and a detector. The emitter is blue in color and the detector can be grey,
black or white in color.
2.2.1.1 IR Emitter:
An infra-red emitter is a Light Emitting Diode (LED) made from Gallium Arsenide
. It detects IR energy at a wavelength of 880nm and emits the same. The infrared p
hototransistor acts as a transistor with the base voltage determined by the amount o
f light hitting the transistor. Hence it acts as a variable current source. Greater amo
unt of IR light cause greater currents to flow through the collector-emitter leads.
The variable current traveling through the resistor causes a voltage drop in the pull-
up resistor. This voltage is measured as the output of the device.
2.2.1.2 IR Detector:
An infra-red detector is a photo detector. It detects IR energy emitted by the
emitte r and converts it into electrical energy. The main principle involved in the
conversi on of light energy to electrical energy is photoelectric effect.The output is
taken at negative terminal of IR detector. The output can be taken to a
microcontroller eithe r to its ADC (Analog to Digital Converter) or LM 339 can be
used as a comparator
.
Fig: 7.3 Voltage Regulator
7.4 Comparator IC
The LM358 IC is a great, low power and easy to use dual channel op-amp IC. It is
designed and introduced by national semiconductor. It consists of two internally fr
equency compensated, high gain, independent op-amps. This IC is designed for spe
cially to operate from a single power supply over a wide range of voltages. The L
M358 IC is available in a chip sized package and applications of this op amp inclu
de conventional op-amp circuits, DC gain blocks and transducer amplifiers. LM35
8 IC is a good, standard operational amplifier and it is suitable for your needs. It ca
n handle 3-32V DC supply & source up to 20mA per channel. This op-amp is apt, i
f you want to operate two separate op-amps for a single power supply. It’s availabl
e in an 8-pin DIP package.
Fig.7.4 pin diagram of LM 358 IC
S1 S2 S3 S4 Result
0 1 0 1 Motor brakes
7.5.3 Features
600ma output current capability per channel
1.2A peak output current (non repetitive)
Enable facility over temperature protection
high noise immunity
internal clamp diodes
7.6 Potentiometer
Potentiometer is a variable resistor which is used to vary the resistance by rotating
the shaft. Potentiometers are available from 100 ohm to 470Kohm (or more).Potent
iometer is a voltage divider. If we connect lead A to Vcc and lead B to ground then
you get voltages from 0 to Vcc at lead W. Mainly Potentiometer are used to gener
ate reference voltage for LM324.