SlideShare a Scribd company logo
1 of 25
Oli ullah
Id:011143014
Israt jhan eva
Id:011143014
Arhana Rahman silvy
Id:011143021
Mamunur Rashid Rubel
Id:011143005
Index
• Introduction
• Components
• Working Principle
• Block Diagram
• Application
• Advantages and Disadvantages
• Programming on Arduino
Let’s Discuss
Introduction
What is a Robot
A Robot is a
machine capable of
carrying out a complex
series of actions
automatically,
especially one
programmable by a
computer.
Line Following Robot
What is a Line
Following Robot
Line following Robot
is a machine that
can follow a path.
The path can be
visible like a black
line on a white
surface or it can be
invisible like a
magnetic field.
What is the need to build a line follower?
Sensing a line and maneuvering the robot to stay on
course, while constantly correcting wrong moves using
feedback mechanism forms a simple yet effective closed
loop system.
Components
•Arduino uno
•IR Sensor
• Motors
L298N
•Motors
What are we
using?
Arduino
Arduino is an open-
source computer hardware
and software company, project
and user community that
designs and
manufactures microcontroller-
based kits for building digital
devices.
Microcontroller
Arduino
UNO
IR Sensor
IR Sensor
Motor
Driver
DC
motor
DC
motor
Block Diagram
IR Sensor
Circuit Diagram
IR Sensor
IR Sensor
A passive infrared
sensor (PIR sensor) is
an
electronic sensor that
measures infrared (IR)
light radiating from
objects in its field of
view. They are most
often used in PIR-based
motion detectors.
IR Working Principle
Infrared Spectrum
Transmitter
Receiver
Reflection by Object
Voltage
Object Detection
The robot uses IR(infrared) sensors to sense the line.
Output of the sensors is an analog signal which depends on the amount of
light reflected back.
This analog signal is given to the comparator to
Then microcontroller decides the position of robot in left or right direction.
WORKING PRINCIPLE
WORKING PRINCIPLE
When left sensor comes in white(for black line
tracer) region then right motor stops while left
motor continue to move so that right turn takes
place and robot returns on white line.
First sensor which is to the right will become
low as that sensor will be facing the black line and
the remaining sensors response will be high. i.e.
the right wheel is held constant and the left wheel
is made to move freely until the response from the
middle sensor becomes low .
When right sensor comes in white region then
left motor stops while right motor continue to
move so that left turn takes place and robot returns
on white line.
WORKING PRINCIPLE( contd…)
19
The middle sensor will always be on the line
and as the line is black in color, it will not reflect
the emitted radiation back and the response of
the sensor will be low and the response of the
remaining two sensors will be high as they will
be on the bright surface. When both sensors are
on black line then robot moves forward.
If all the three sensors will be on brighter
surface then they all will be high and as no line
is detected , robot move in a circular motion
until line is found.
Applications
• Industrial automated equipment carriers.
• Automated cars.
• Tour guides in museums and other similar
applications.
• Deliver the mail within the office building
• Deliver medications in a hospital.
Where is
this used?
Advantages
• The robot must be capable of following a line.
• Insensitive to environment factors like noise
and lightning.
• It should be capable of taking various degrees
of turns.
• The color of the line must not be a factor as
long as it is darker than the surroundings.
Disadvantages
• LFR can move on a fixed track or path.
• It requires power supply.
• Lack of speed control makes the robot
unstable at times.
• Choice of line is made in the hardware
abstraction and cannot be changed by
software.
What are the
disadvantages
?
Code:
const int lmtf =7;
const int lmtb=6;
const int rmtf =8;
const int rmtb=9;
const int ENA = 3;
const int ENB = 5;
void setup() {
pinMode(lmtf,OUTPUT);
pinMode(lmtb,OUTPUT);
pinMode(rmtf,OUTPUT);
pinMode(rmtb,OUTPUT);
pinMode (ENA, OUTPUT);
pinMode (ENB, OUTPUT);
// put your setup code here,
to run once:
}
void loop() {
int lsensor=digitalRead(11);
int fsensor=digitalRead(12);
int rsensor=digitalRead(13);
analogWrite(ENA, 200);
analogWrite(ENB, 200);
if(fsensor==HIGH)
{
digitalWrite(lmtf,HIGH);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,HIGH);
digitalWrite(rmtb,LOW);
}
else if(rsensor==HIGH)
{
digitalWrite(lmtf,LOW);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,HIGH);
digitalWrite(rmtb,LOW);
}
else if(lsensor==HIGH)
{
digitalWrite(lmtf,HIGH);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,LOW);
digitalWrite(rmtb,LOW);
}
else
{
else if(lsensor==HIGH)
{
digitalWrite(lmtf,HIGH);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,LOW);
digitalWrite(rmtb,LOW);
}
else
{
else if(lsensor==HIGH)
{
digitalWrite(lmtf,HIGH);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,LOW);
digitalWrite(rmtb,LOW);
}
else
{
digitalWrite(lmtf,LOW);
digitalWrite(lmtb,LOW);
digitalWrite(rmtf,LOW);
digitalWrite(rmtb,LOW);
QUESTIONS
?????
Thank You

More Related Content

What's hot

LINE FOLLOWER ROBOT
LINE FOLLOWER ROBOTLINE FOLLOWER ROBOT
LINE FOLLOWER ROBOTMohit Kumar
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding RobotRasheed Khan
 
Line follower robot
Line follower robotLine follower robot
Line follower robotANU_110
 
line following robot
line following robotline following robot
line following robotRehnaz Razvi
 
Line Following Robot Using Arduino
Line Following Robot Using ArduinoLine Following Robot Using Arduino
Line Following Robot Using ArduinoSamuel Manoj Palani
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOSanjay Kumar
 
How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower RobotroboVITics club
 
Line Following Robot using Arduino UNO
Line Following Robot using Arduino UNOLine Following Robot using Arduino UNO
Line Following Robot using Arduino UNOViswanadh Ivaturi
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance RobotRatan Srikanth
 
Line following robot
Line following robotLine following robot
Line following robotsunil sah
 
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATIONBLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATIONVarun Divekar
 
Line follower Robot using PID algorithm
Line follower Robot using PID algorithmLine follower Robot using PID algorithm
Line follower Robot using PID algorithmIfaz Ahmed Aflan
 
Report - Line Following Robot
Report - Line Following RobotReport - Line Following Robot
Report - Line Following RobotDivay Khatri
 
Line maze solver robot
Line maze solver robot Line maze solver robot
Line maze solver robot saiharsha41
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance RobotYash Sati
 

What's hot (20)

LINE FOLLOWER ROBOT
LINE FOLLOWER ROBOTLINE FOLLOWER ROBOT
LINE FOLLOWER ROBOT
 
Line Follower Robot
Line Follower RobotLine Follower Robot
Line Follower Robot
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding Robot
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
line following robot
line following robotline following robot
line following robot
 
Line Following Robot Using Arduino
Line Following Robot Using ArduinoLine Following Robot Using Arduino
Line Following Robot Using Arduino
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower Robot
 
Line Following Robot using Arduino UNO
Line Following Robot using Arduino UNOLine Following Robot using Arduino UNO
Line Following Robot using Arduino UNO
 
Line Follower Robot
Line Follower RobotLine Follower Robot
Line Follower Robot
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
 
Obstacle avoiding robot
Obstacle avoiding robotObstacle avoiding robot
Obstacle avoiding robot
 
Line following robot
Line following robotLine following robot
Line following robot
 
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATIONBLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
 
Line follower Robot using PID algorithm
Line follower Robot using PID algorithmLine follower Robot using PID algorithm
Line follower Robot using PID algorithm
 
Voice controlled robot ppt
Voice controlled robot pptVoice controlled robot ppt
Voice controlled robot ppt
 
Report - Line Following Robot
Report - Line Following RobotReport - Line Following Robot
Report - Line Following Robot
 
Line maze solver robot
Line maze solver robot Line maze solver robot
Line maze solver robot
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
 

Similar to LINE FOLLOWING ROBOT

How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower RobotHassan Raza
 
Design and Construction of Line Following Robot using Arduino
Design and Construction of Line Following Robot using ArduinoDesign and Construction of Line Following Robot using Arduino
Design and Construction of Line Following Robot using Arduinoijtsrd
 
340211628-Line-Follower-Robot-Presentation.pdf
340211628-Line-Follower-Robot-Presentation.pdf340211628-Line-Follower-Robot-Presentation.pdf
340211628-Line-Follower-Robot-Presentation.pdfdivyanshuranjan9973
 
Line Following Robot
Line Following Robot Line Following Robot
Line Following Robot ArifMansuri10
 
embedded system report
embedded system reportembedded system report
embedded system reportmanish katara
 
Line following robot with gripper
Line following robot with gripperLine following robot with gripper
Line following robot with gripperAnika Jindal
 

Similar to LINE FOLLOWING ROBOT (20)

How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower Robot
 
LINE FOLLOWER ROBOT | J4RV4I1010
LINE FOLLOWER ROBOT | J4RV4I1010LINE FOLLOWER ROBOT | J4RV4I1010
LINE FOLLOWER ROBOT | J4RV4I1010
 
Design and Construction of Line Following Robot using Arduino
Design and Construction of Line Following Robot using ArduinoDesign and Construction of Line Following Robot using Arduino
Design and Construction of Line Following Robot using Arduino
 
Project PPT.pptx
Project PPT.pptxProject PPT.pptx
Project PPT.pptx
 
Obstacle Avoiding Robot Using Micro Controller
Obstacle Avoiding Robot Using Micro ControllerObstacle Avoiding Robot Using Micro Controller
Obstacle Avoiding Robot Using Micro Controller
 
Path Following Robot
Path Following RobotPath Following Robot
Path Following Robot
 
340211628-Line-Follower-Robot-Presentation.pdf
340211628-Line-Follower-Robot-Presentation.pdf340211628-Line-Follower-Robot-Presentation.pdf
340211628-Line-Follower-Robot-Presentation.pdf
 
Line Following Robot
Line Following Robot Line Following Robot
Line Following Robot
 
Presentation1
Presentation1Presentation1
Presentation1
 
Line maze solver
Line maze solverLine maze solver
Line maze solver
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following Robot
 
embedded system report
embedded system reportembedded system report
embedded system report
 
Maze follower robot
Maze follower robotMaze follower robot
Maze follower robot
 
ECD PROJEXT.pptx
ECD PROJEXT.pptxECD PROJEXT.pptx
ECD PROJEXT.pptx
 
Line follower12
Line follower12Line follower12
Line follower12
 
Line Maze Solver Presentation
Line Maze Solver PresentationLine Maze Solver Presentation
Line Maze Solver Presentation
 
Edge detector robot
Edge detector robotEdge detector robot
Edge detector robot
 
Front
FrontFront
Front
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Line following robot with gripper
Line following robot with gripperLine following robot with gripper
Line following robot with gripper
 

Recently uploaded

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 

Recently uploaded (20)

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 

LINE FOLLOWING ROBOT

  • 1. Oli ullah Id:011143014 Israt jhan eva Id:011143014 Arhana Rahman silvy Id:011143021 Mamunur Rashid Rubel Id:011143005
  • 2. Index • Introduction • Components • Working Principle • Block Diagram • Application • Advantages and Disadvantages • Programming on Arduino Let’s Discuss
  • 3. Introduction What is a Robot A Robot is a machine capable of carrying out a complex series of actions automatically, especially one programmable by a computer.
  • 4. Line Following Robot What is a Line Following Robot Line following Robot is a machine that can follow a path. The path can be visible like a black line on a white surface or it can be invisible like a magnetic field.
  • 5. What is the need to build a line follower? Sensing a line and maneuvering the robot to stay on course, while constantly correcting wrong moves using feedback mechanism forms a simple yet effective closed loop system.
  • 6. Components •Arduino uno •IR Sensor • Motors L298N •Motors What are we using?
  • 7. Arduino Arduino is an open- source computer hardware and software company, project and user community that designs and manufactures microcontroller- based kits for building digital devices.
  • 9.
  • 10.
  • 14. IR Sensor A passive infrared sensor (PIR sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. They are most often used in PIR-based motion detectors.
  • 15. IR Working Principle Infrared Spectrum Transmitter Receiver Reflection by Object Voltage
  • 17. The robot uses IR(infrared) sensors to sense the line. Output of the sensors is an analog signal which depends on the amount of light reflected back. This analog signal is given to the comparator to Then microcontroller decides the position of robot in left or right direction. WORKING PRINCIPLE
  • 18. WORKING PRINCIPLE When left sensor comes in white(for black line tracer) region then right motor stops while left motor continue to move so that right turn takes place and robot returns on white line. First sensor which is to the right will become low as that sensor will be facing the black line and the remaining sensors response will be high. i.e. the right wheel is held constant and the left wheel is made to move freely until the response from the middle sensor becomes low . When right sensor comes in white region then left motor stops while right motor continue to move so that left turn takes place and robot returns on white line.
  • 19. WORKING PRINCIPLE( contd…) 19 The middle sensor will always be on the line and as the line is black in color, it will not reflect the emitted radiation back and the response of the sensor will be low and the response of the remaining two sensors will be high as they will be on the bright surface. When both sensors are on black line then robot moves forward. If all the three sensors will be on brighter surface then they all will be high and as no line is detected , robot move in a circular motion until line is found.
  • 20. Applications • Industrial automated equipment carriers. • Automated cars. • Tour guides in museums and other similar applications. • Deliver the mail within the office building • Deliver medications in a hospital. Where is this used?
  • 21. Advantages • The robot must be capable of following a line. • Insensitive to environment factors like noise and lightning. • It should be capable of taking various degrees of turns. • The color of the line must not be a factor as long as it is darker than the surroundings.
  • 22. Disadvantages • LFR can move on a fixed track or path. • It requires power supply. • Lack of speed control makes the robot unstable at times. • Choice of line is made in the hardware abstraction and cannot be changed by software. What are the disadvantages ?
  • 23. Code: const int lmtf =7; const int lmtb=6; const int rmtf =8; const int rmtb=9; const int ENA = 3; const int ENB = 5; void setup() { pinMode(lmtf,OUTPUT); pinMode(lmtb,OUTPUT); pinMode(rmtf,OUTPUT); pinMode(rmtb,OUTPUT); pinMode (ENA, OUTPUT); pinMode (ENB, OUTPUT); // put your setup code here, to run once: } void loop() { int lsensor=digitalRead(11); int fsensor=digitalRead(12); int rsensor=digitalRead(13); analogWrite(ENA, 200); analogWrite(ENB, 200); if(fsensor==HIGH) { digitalWrite(lmtf,HIGH); digitalWrite(lmtb,LOW); digitalWrite(rmtf,HIGH); digitalWrite(rmtb,LOW); } else if(rsensor==HIGH) { digitalWrite(lmtf,LOW); digitalWrite(lmtb,LOW); digitalWrite(rmtf,HIGH); digitalWrite(rmtb,LOW); } else if(lsensor==HIGH) { digitalWrite(lmtf,HIGH); digitalWrite(lmtb,LOW); digitalWrite(rmtf,LOW); digitalWrite(rmtb,LOW); } else { else if(lsensor==HIGH) { digitalWrite(lmtf,HIGH); digitalWrite(lmtb,LOW); digitalWrite(rmtf,LOW); digitalWrite(rmtb,LOW); } else { else if(lsensor==HIGH) { digitalWrite(lmtf,HIGH); digitalWrite(lmtb,LOW); digitalWrite(rmtf,LOW); digitalWrite(rmtb,LOW); } else { digitalWrite(lmtf,LOW); digitalWrite(lmtb,LOW); digitalWrite(rmtf,LOW); digitalWrite(rmtb,LOW);