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
OBSTACLE AVOIDING CAR
PPTX
Voice controlled robot ppt
PPTX
Obstacle Avoidance ROBOT using ARDUINO
PPTX
1. Introduction to drones
PPTX
Computerized system validation
DOCX
Final report obstacle avoiding roboat
PDF
Final year project report final sem.pdf
PPTX
line following robot ppt
OBSTACLE AVOIDING CAR
Voice controlled robot ppt
Obstacle Avoidance ROBOT using ARDUINO
1. Introduction to drones
Computerized system validation
Final report obstacle avoiding roboat
Final year project report final sem.pdf
line following robot ppt

What's hot (20)

PPTX
Obstacle Avoidance Robot
PPT
Obstacle detctor
PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
PPTX
Obstacle Avoidance Robot Summer training Presentation
PDF
Obstacle avoiding car project slide
PDF
Obstacle Avoidance Robot
DOC
Obstacle avoiding robot(Lab report)
PPTX
Line follower robot
PPTX
Obstacle avoidance robot
PPTX
Obstacle avoiding robot
PPTX
Line follower robot
PPTX
Line Following Robot Presentation
PPTX
Obstacle Avoidance Robot (Powered by Arduino)
PPTX
Obstacle Avoidance Robotic Vehicle
PPTX
Line Following Robot using Arduino UNO
PDF
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
PDF
Gesture control car
PPTX
Hand Gesture Controlled Robot
PPTX
Line Following Robot Using Arduino
DOCX
obstacle avoiding robot
Obstacle Avoidance Robot
Obstacle detctor
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle Avoidance Robot Summer training Presentation
Obstacle avoiding car project slide
Obstacle Avoidance Robot
Obstacle avoiding robot(Lab report)
Line follower robot
Obstacle avoidance robot
Obstacle avoiding robot
Line follower robot
Line Following Robot Presentation
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robotic Vehicle
Line Following Robot using Arduino UNO
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
Gesture control car
Hand Gesture Controlled Robot
Line Following Robot Using Arduino
obstacle avoiding robot
Ad

Similar to Obstacle avoiding Robot (20)

PPTX
Arduino Based Collision Prevention Warning System
PPTX
371275588.pptx
PPTX
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
PPTX
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
DOCX
Motorized pan tilt(Arduino based)
PPT
Hexapod ppt
PPTX
Design and Development of a prototype of AGV
PPTX
Metal detector robot
PPTX
batch 7.pptx
PPTX
microcontroller-based-missile-detection-and-destroying-8154-Rv8KK7q.pptx
PPTX
Arduino bt mobile robot r2.0
PDF
Analysis and Construction of a Robot controlled by a Universal Remote Control
PPTX
Understanding robotics: Introductory Event | GDSC RCCIIT
PPTX
Obstacle observing
PPTX
Flexible robotic hand
PPTX
spy_robot.pptx
PPTX
PPT Missile Radar System introduction.pptx
PDF
Microprocessor-Based Automatic Door Opener
DOCX
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
PPTX
Gesture control robot using by Ardiuno
Arduino Based Collision Prevention Warning System
371275588.pptx
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Motorized pan tilt(Arduino based)
Hexapod ppt
Design and Development of a prototype of AGV
Metal detector robot
batch 7.pptx
microcontroller-based-missile-detection-and-destroying-8154-Rv8KK7q.pptx
Arduino bt mobile robot r2.0
Analysis and Construction of a Robot controlled by a Universal Remote Control
Understanding robotics: Introductory Event | GDSC RCCIIT
Obstacle observing
Flexible robotic hand
spy_robot.pptx
PPT Missile Radar System introduction.pptx
Microprocessor-Based Automatic Door Opener
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
Gesture control robot using by Ardiuno
Ad

Recently uploaded (20)

PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PDF
737-MAX_SRG.pdf student reference guides
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Construction Project Organization Group 2.pptx
PPTX
Geodesy 1.pptx...............................................
PPT
introduction to datamining and warehousing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Mechanical Engineering MATERIALS Selection
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Fundamentals of safety and accident prevention -final (1).pptx
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Categorization of Factors Affecting Classification Algorithms Selection
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Internet of Things (IOT) - A guide to understanding
additive manufacturing of ss316l using mig welding
737-MAX_SRG.pdf student reference guides
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Construction Project Organization Group 2.pptx
Geodesy 1.pptx...............................................
introduction to datamining and warehousing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Safety Seminar civil to be ensured for safe working.
Mechanical Engineering MATERIALS Selection

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