SlideShare a Scribd company logo
OBSTACLE AVOIDING
ROBOT
GROUP MEMBERS
 Rasheed Khan 14-ME-146
 Shahzaib Tahir 14-ME-154
 Shehzad Iqbal 14-ME-157
 Sumair Ansar 14-ME-159
What is Obstacle Avoidance ??
Our Robot
 The obstacle detection is primary requirement of this autonomous robot
 In this project our robot senses any obstacle in its path, avoids it and resume its
running
 Involves the pre-computation of an obstacle-free path which a controller guides
the robot
Obstacle avoiding Robot
Obstacle avoiding Robot
Hardware
 UNO Arduino
 U.R Sensor
 DC motor Driver
 Connecting wires
 USB programmer
1- UNO Arduino:
 Arduino is a software company, project, and user community that designs and
manufactures computer open-source hardware, open-source software, and
microcontroller-based kits for building digital devices and interactive objects
that can sense and control physical devices.


Sensors
 Some sensing devices used for obstacle detection like bump sensor, infrared
sensor, ultrasonic sensor etc.
 Ultrasonic sensor is most suitable for obstacle detection because of
 LOW COST
 HIGH RANGING CAPABILITY
2- Ultrasonic Sensor
 Emit a sound pulse that reflects off of objects entering the wave field
 The reflected sound, or “echo” is then received by the sensor
 Detection of the sound generates an output signal for use by an actuator, controller,
or computer
 The output signal can be analog or digital.
 The time for an ultrasonic sensor’s beam to strike the target and return is directly
proportional to the distance to the object
Obstacle avoiding Robot
Obstacle avoiding Robot
3- DC Motor Driver (L298N)
 L298N is a typical Motor driver or Motor Driver IC which allows DC motor to drive
on either direction.
 L298N is a 16-pin IC which can control a set of two DC motors simultaneously in
any direction.
 It means that you can control two DC motor with a single L298N IC.
Obstacle avoiding Robot
Specifications:
 Double H bridge Drive Chip: L298N
 Logical voltage: 5V Drive voltage: 5V-35V
 Logical current: 0-36mA Drive current: 2A (MAX single bridge)
 Max power: 25W
 Dimensions: 43 x 43 x 26mm
 Weight: 26g
4- Connecting wires :
We are using these wires for making the connections.
 5- USB Programmer:
USB Programmer is basically use for uploading the code from computer to
Arduino.
Block Diagram
Obstacle avoiding Robot
Circuit Diagram

Programe Coding
 #define trigPin
 #define echoPin
 #define MotorA_IN1
 #define MotorA_IN2
 #define MotorB_IN3
 #define MotorB_IN4
 #define MotorA_PWM
 #define MotorB_PWM
 void setup()
 {
 pinMode(MotorA_IN1, OUTPUT);
 pinMode(MotorA_IN2, OUTPUT);
 pinMode(MotorB_IN3, OUTPUT);
 pinMode(MotorB_IN4, OUTPUT);
 pinMode(MotorA_PWM, OUTPUT);
 pinMode(MotorB_PWM, OUTPUT);
 pinMode(trigPin, OUTPUT);
 pinMode(echoPin, INPUT);
 }
 float search(void)
 {
 float duration = 0.00;
 float CM = 0.00;
 digitalWrite(trigPin, LOW);
 delayMicroseconds(2);

 //Send 10us High Pulse to Ultra-Sonic Sonar Sensor "trigPin"
 digitalWrite(trigPin, HIGH);
 delayMicroseconds(10);
 digitalWrite(trigPin, LOW);
 duration = pulseIn(echoPin, HIGH);
 CM = (duration / 58.82);
 return CM;
 }
 void RobotForward()
 {
 digitalWrite(MotorA_IN1, HIGH);
 digitalWrite(MotorA_IN2, LOW);
 digitalWrite(MotorB_IN3, HIGH);
 digitalWrite(MotorB_IN4, LOW);
 }
 void RobotBackward()
 {
 digitalWrite(MotorA_IN1, LOW);
 digitalWrite(MotorA_IN2, HIGH);
 digitalWrite(MotorB_IN3, LOW);
 digitalWrite(MotorB_IN4, HIGH);
 }
 void RobotLeft()
 {
 digitalWrite(MotorA_IN1, LOW);
 digitalWrite(MotorA_IN2, HIGH);
 digitalWrite(MotorB_IN3, HIGH);
 digitalWrite(MotorB_IN4, LOW);
 }
 void RobotRight()
 {
 digitalWrite(MotorA_IN1, HIGH);
 digitalWrite(MotorA_IN2, LOW);
 digitalWrite(MotorB_IN3, LOW);
 digitalWrite(MotorB_IN4, HIGH);
 }
 void RobotStop()
 {
 digitalWrite(MotorA_IN1, LOW);
 digitalWrite(MotorA_IN2, LOW);
 digitalWrite(MotorB_IN3, LOW);
 digitalWrite(MotorB_IN4, LOW);
 }
 void loop()
 {
 float distance = 0.00;
 float RobotSpeed = 0.00;
 float RightDistance = 0.00;
 float LeftDistance = 0.00
 distance = search();
 if((distance <= 40)) .
 {
 RobotSpeed = 50;
 analogWrite(MotorA_PWM, RobotSpeed);
 analogWrite(MotorB_PWM, RobotSpeed);
 RobotStop();
 delay(10);
 RobotBackward();
 delay(400);
 RobotStop();
 delay(10);
 RobotRight();
 delay(500);
 RightDistance = search();
 delay(10);
 RobotLeft();
 delay(900);
 LeftDistance = search();
 delay(10);
 if(LeftDistance >= RightDistance)
 {
 RobotForward();
 }
 else
 {
 RobotRight();
 delay(800);
 RobotStop();
 delay(10);
 RobotForward();
 }
 }
 else if((distance > 40) && (distance <= 75))
 {
 RobotSpeed = 150;
 analogWrite(MotorA_PWM, RobotSpeed);
 analogWrite(MotorB_PWM, RobotSpeed);
 RobotForward();
 }
 else
 {
 RobotSpeed = 200;
 analogWrite(MotorA_PWM, RobotSpeed);
 analogWrite(MotorB_PWM, RobotSpeed);
 RobotForward();

Applications
 Automated Cars (Google Car)
 Toys
 Military
 Mines
Video

More Related Content

PPTX
Arduino Based Project.pptx
Abhishek Sharma
 
DOCX
Obstacle avoiding robot.doc
Electronics - Embedded System
 
PPTX
Obstacle Avoidance Robot
Ratan Srikanth
 
PPTX
Obstacle Avoidance Robotic Vehicle
Edgefxkits & Solutions
 
PPTX
Obstacle Avoidance Robot (Powered by Arduino)
Amanullah Mahmood
 
PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Sanjay Kumar
 
DOC
Obstacle avoiding robot(Lab report)
Захір Райхан
 
PPTX
Obstacle avoidance robot
Rahuldey1991
 
Arduino Based Project.pptx
Abhishek Sharma
 
Obstacle avoiding robot.doc
Electronics - Embedded System
 
Obstacle Avoidance Robot
Ratan Srikanth
 
Obstacle Avoidance Robotic Vehicle
Edgefxkits & Solutions
 
Obstacle Avoidance Robot (Powered by Arduino)
Amanullah Mahmood
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Sanjay Kumar
 
Obstacle avoiding robot(Lab report)
Захір Райхан
 
Obstacle avoidance robot
Rahuldey1991
 

What's hot (20)

PDF
Obstacle Avoidance Robot
Yash Sati
 
PPTX
Obstacle Avoidance ROBOT using ARDUINO
jovin Richard
 
PDF
Obstacle avoiding car project slide
ShourovSarkerJoy
 
PPTX
Obstacle avoiding robot
Electronics - Embedded System
 
PPT
The line follower robot
Poonam Narang
 
PPTX
Obstacle Avoidance Robot Summer training Presentation
Wasi Abbas
 
PPTX
Line Following Robot
Vikram Jha
 
DOCX
Obstacle Avoiding Robot Report Robot23
Abhijeet kapse
 
PPTX
Line Following Robot Presentation
Oli ullah
 
PPT
MOBILE ROBOTIC SYSTEM
KARTHIK SRINIVAS
 
PPTX
OBSTACLE_AVOIDING_ROBOT.pptx
SushilPathak25
 
PPT
sensor assisted smart white cane for blind man using Arduino UNO
Ak Azad
 
PPTX
MOBILE CONTROLLED ROBOTIC ARM USING ARDUINO AND HC-06
Eklavya Sharma
 
PDF
Smart Blind Stick using Arduino
ijtsrd
 
PPTX
Line Following Robot using Arduino UNO
Viswanadh Ivaturi
 
PPTX
Line Following Robot
Self-employed
 
PPT
line following robot
Rehnaz Razvi
 
PPTX
OBSTACLE AVOIDING CAR
Shubham Thakur
 
PPTX
Line follower robot
Priya Hada
 
PPTX
Bluetooth controlled robot
UVSofts Technologies
 
Obstacle Avoidance Robot
Yash Sati
 
Obstacle Avoidance ROBOT using ARDUINO
jovin Richard
 
Obstacle avoiding car project slide
ShourovSarkerJoy
 
Obstacle avoiding robot
Electronics - Embedded System
 
The line follower robot
Poonam Narang
 
Obstacle Avoidance Robot Summer training Presentation
Wasi Abbas
 
Line Following Robot
Vikram Jha
 
Obstacle Avoiding Robot Report Robot23
Abhijeet kapse
 
Line Following Robot Presentation
Oli ullah
 
MOBILE ROBOTIC SYSTEM
KARTHIK SRINIVAS
 
OBSTACLE_AVOIDING_ROBOT.pptx
SushilPathak25
 
sensor assisted smart white cane for blind man using Arduino UNO
Ak Azad
 
MOBILE CONTROLLED ROBOTIC ARM USING ARDUINO AND HC-06
Eklavya Sharma
 
Smart Blind Stick using Arduino
ijtsrd
 
Line Following Robot using Arduino UNO
Viswanadh Ivaturi
 
Line Following Robot
Self-employed
 
line following robot
Rehnaz Razvi
 
OBSTACLE AVOIDING CAR
Shubham Thakur
 
Line follower robot
Priya Hada
 
Bluetooth controlled robot
UVSofts Technologies
 
Ad

Similar to Obstacle avoiding Robot (20)

PPTX
371275588.pptx
AnandVerma529372
 
PDF
Impediment detection robot using Arduino
Ayush Chhangani
 
PPTX
obstacle divider robot stm32 using obligance engg
shkzishan810
 
DOCX
pdf-obstacle-avoiding-robot.docx
maheshwaran79
 
PPTX
Self Obstacle Avoiding Rover
Emam Hasan
 
DOCX
obstacle avoiding robot
ssuser5ba2241
 
PDF
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
LeTsKnOw1
 
PDF
obstacle avoiding robot project
Aisha Naeem
 
PDF
Automotive report
Mohamed Wahied
 
PPTX
Collision detector and avoidance robot
WaqarAhmad444
 
PPTX
Autonomous Obstacle Avoidance.pyrtby7ergbybgrybrguirgubrgubeugbrptx
AYZASALMANPIRACHA
 
PDF
Autonomous navigation robot
IRJET Journal
 
PPTX
Metal detector robot
f114n
 
PPTX
Autonomous metal search,collect and collision avoidance robot
Akhil Unnikrishnan
 
PPTX
Arduino Project (1).pptx
Urvela
 
PPTX
Final year Engineering project
VaibhavShukla740413
 
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
PPTX
BATCH 28 PHASE 3.pptx
ZuberAhmedV
 
PPTX
Radar Using Arduino
Golu Jain
 
PPTX
Unmanned Ground Vehicle
Shashank Srivastava
 
371275588.pptx
AnandVerma529372
 
Impediment detection robot using Arduino
Ayush Chhangani
 
obstacle divider robot stm32 using obligance engg
shkzishan810
 
pdf-obstacle-avoiding-robot.docx
maheshwaran79
 
Self Obstacle Avoiding Rover
Emam Hasan
 
obstacle avoiding robot
ssuser5ba2241
 
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
LeTsKnOw1
 
obstacle avoiding robot project
Aisha Naeem
 
Automotive report
Mohamed Wahied
 
Collision detector and avoidance robot
WaqarAhmad444
 
Autonomous Obstacle Avoidance.pyrtby7ergbybgrybrguirgubrgubeugbrptx
AYZASALMANPIRACHA
 
Autonomous navigation robot
IRJET Journal
 
Metal detector robot
f114n
 
Autonomous metal search,collect and collision avoidance robot
Akhil Unnikrishnan
 
Arduino Project (1).pptx
Urvela
 
Final year Engineering project
VaibhavShukla740413
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
BATCH 28 PHASE 3.pptx
ZuberAhmedV
 
Radar Using Arduino
Golu Jain
 
Unmanned Ground Vehicle
Shashank Srivastava
 
Ad

Recently uploaded (20)

PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PPTX
anatomy of limbus and anterior chamber .pptx
ZePowe
 
PDF
Structs to JSON How Go Powers REST APIs.pdf
Emily Achieng
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
ETO & MEO Certificate of Competency Questions and Answers
Mahmoud Moghtaderi
 
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
ghousebhasha2007
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPT
SCOPE_~1- technology of green house and poyhouse
bala464780
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PPTX
Module_II_Data_Science_Project_Management.pptx
anshitanarain
 
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Hyogeun Oh
 
PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
Ship’s Structural Components.pptx 7.7 Mb
abdalwhab7327
 
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
VICTOR MAESTRE RAMIREZ
 
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
sangeethamtech26
 
PPTX
Azure-DevOps-Training presentation downloadable
NamanGoyal428595
 
PPTX
Simulation of electric circuit laws using tinkercad.pptx
VidhyaH3
 
PDF
algorithms-16-00088-v2hghjjnjnhhhnnjhj.pdf
Ajaykumar966781
 
PPT
High Data Link Control Protocol in Data Link Layer
shailajacse
 
Introduction to Data Science: data science process
ShivarkarSandip
 
anatomy of limbus and anterior chamber .pptx
ZePowe
 
Structs to JSON How Go Powers REST APIs.pdf
Emily Achieng
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
ETO & MEO Certificate of Competency Questions and Answers
Mahmoud Moghtaderi
 
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
ghousebhasha2007
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
SCOPE_~1- technology of green house and poyhouse
bala464780
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
Module_II_Data_Science_Project_Management.pptx
anshitanarain
 
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Hyogeun Oh
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Ship’s Structural Components.pptx 7.7 Mb
abdalwhab7327
 
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
VICTOR MAESTRE RAMIREZ
 
Strings in CPP - Strings in C++ are sequences of characters used to store and...
sangeethamtech26
 
Azure-DevOps-Training presentation downloadable
NamanGoyal428595
 
Simulation of electric circuit laws using tinkercad.pptx
VidhyaH3
 
algorithms-16-00088-v2hghjjnjnhhhnnjhj.pdf
Ajaykumar966781
 
High Data Link Control Protocol in Data Link Layer
shailajacse
 

Obstacle avoiding Robot

  • 2. GROUP MEMBERS  Rasheed Khan 14-ME-146  Shahzaib Tahir 14-ME-154  Shehzad Iqbal 14-ME-157  Sumair Ansar 14-ME-159
  • 3. What is Obstacle Avoidance ??
  • 4. Our Robot  The obstacle detection is primary requirement of this autonomous robot  In this project our robot senses any obstacle in its path, avoids it and resume its running  Involves the pre-computation of an obstacle-free path which a controller guides the robot
  • 7. Hardware  UNO Arduino  U.R Sensor  DC motor Driver  Connecting wires  USB programmer
  • 8. 1- UNO Arduino:  Arduino is a software company, project, and user community that designs and manufactures computer open-source hardware, open-source software, and microcontroller-based kits for building digital devices and interactive objects that can sense and control physical devices.
  • 10. Sensors  Some sensing devices used for obstacle detection like bump sensor, infrared sensor, ultrasonic sensor etc.  Ultrasonic sensor is most suitable for obstacle detection because of  LOW COST  HIGH RANGING CAPABILITY
  • 11. 2- Ultrasonic Sensor  Emit a sound pulse that reflects off of objects entering the wave field  The reflected sound, or “echo” is then received by the sensor  Detection of the sound generates an output signal for use by an actuator, controller, or computer  The output signal can be analog or digital.  The time for an ultrasonic sensor’s beam to strike the target and return is directly proportional to the distance to the object
  • 14. 3- DC Motor Driver (L298N)  L298N is a typical Motor driver or Motor Driver IC which allows DC motor to drive on either direction.  L298N is a 16-pin IC which can control a set of two DC motors simultaneously in any direction.  It means that you can control two DC motor with a single L298N IC.
  • 16. Specifications:  Double H bridge Drive Chip: L298N  Logical voltage: 5V Drive voltage: 5V-35V  Logical current: 0-36mA Drive current: 2A (MAX single bridge)  Max power: 25W  Dimensions: 43 x 43 x 26mm  Weight: 26g
  • 17. 4- Connecting wires : We are using these wires for making the connections.  5- USB Programmer: USB Programmer is basically use for uploading the code from computer to Arduino.
  • 21. Programe Coding  #define trigPin  #define echoPin  #define MotorA_IN1  #define MotorA_IN2  #define MotorB_IN3  #define MotorB_IN4  #define MotorA_PWM  #define MotorB_PWM
  • 22.  void setup()  {  pinMode(MotorA_IN1, OUTPUT);  pinMode(MotorA_IN2, OUTPUT);  pinMode(MotorB_IN3, OUTPUT);  pinMode(MotorB_IN4, OUTPUT);  pinMode(MotorA_PWM, OUTPUT);  pinMode(MotorB_PWM, OUTPUT);  pinMode(trigPin, OUTPUT);  pinMode(echoPin, INPUT);  }
  • 23.  float search(void)  {  float duration = 0.00;  float CM = 0.00;  digitalWrite(trigPin, LOW);  delayMicroseconds(2);   //Send 10us High Pulse to Ultra-Sonic Sonar Sensor "trigPin"  digitalWrite(trigPin, HIGH);  delayMicroseconds(10);  digitalWrite(trigPin, LOW);  duration = pulseIn(echoPin, HIGH);  CM = (duration / 58.82);  return CM;  }
  • 24.  void RobotForward()  {  digitalWrite(MotorA_IN1, HIGH);  digitalWrite(MotorA_IN2, LOW);  digitalWrite(MotorB_IN3, HIGH);  digitalWrite(MotorB_IN4, LOW);  }  void RobotBackward()  {  digitalWrite(MotorA_IN1, LOW);  digitalWrite(MotorA_IN2, HIGH);  digitalWrite(MotorB_IN3, LOW);  digitalWrite(MotorB_IN4, HIGH);  }
  • 25.  void RobotLeft()  {  digitalWrite(MotorA_IN1, LOW);  digitalWrite(MotorA_IN2, HIGH);  digitalWrite(MotorB_IN3, HIGH);  digitalWrite(MotorB_IN4, LOW);  }  void RobotRight()  {  digitalWrite(MotorA_IN1, HIGH);  digitalWrite(MotorA_IN2, LOW);  digitalWrite(MotorB_IN3, LOW);  digitalWrite(MotorB_IN4, HIGH);  }
  • 26.  void RobotStop()  {  digitalWrite(MotorA_IN1, LOW);  digitalWrite(MotorA_IN2, LOW);  digitalWrite(MotorB_IN3, LOW);  digitalWrite(MotorB_IN4, LOW);  }  void loop()  {  float distance = 0.00;  float RobotSpeed = 0.00;  float RightDistance = 0.00;  float LeftDistance = 0.00  distance = search();
  • 27.  if((distance <= 40)) .  {  RobotSpeed = 50;  analogWrite(MotorA_PWM, RobotSpeed);  analogWrite(MotorB_PWM, RobotSpeed);  RobotStop();  delay(10);  RobotBackward();  delay(400);  RobotStop();  delay(10);  RobotRight();  delay(500);  RightDistance = search();  delay(10);  RobotLeft();  delay(900);
  • 28.  LeftDistance = search();  delay(10);  if(LeftDistance >= RightDistance)  {  RobotForward();  }  else  {  RobotRight();  delay(800);  RobotStop();  delay(10);  RobotForward();  }  }
  • 29.  else if((distance > 40) && (distance <= 75))  {  RobotSpeed = 150;  analogWrite(MotorA_PWM, RobotSpeed);  analogWrite(MotorB_PWM, RobotSpeed);  RobotForward();  }  else  {  RobotSpeed = 200;  analogWrite(MotorA_PWM, RobotSpeed);  analogWrite(MotorB_PWM, RobotSpeed);  RobotForward(); 
  • 30. Applications  Automated Cars (Google Car)  Toys  Military  Mines
  • 31. Video