SlideShare a Scribd company logo
1 of 31
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
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
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.
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
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

What's hot

Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation Wasi Abbas
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance RobotYash Sati
 
Line Following Robot Presentation
Line Following Robot PresentationLine Following Robot Presentation
Line Following Robot PresentationOli ullah
 
Obstacle avoiding car project slide
Obstacle avoiding car project slideObstacle avoiding car project slide
Obstacle avoiding car project slideShourovSarkerJoy
 
The line follower robot
The line follower robotThe line follower robot
The line follower robotPoonam Narang
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following RobotSelf-employed
 
line following robot ppt
line following robot pptline following robot ppt
line following robot pptSuchit Moon
 
Line follower robot
Line follower robotLine follower robot
Line follower robotPriya Hada
 
line following robot
line following robotline following robot
line following robotRehnaz Razvi
 
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 Following Robot
Line Following RobotLine Following Robot
Line Following RobotVikram Jha
 
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)Amanullah Mahmood
 
Arduino maze solving robot
Arduino maze solving robotArduino maze solving robot
Arduino maze solving robotMahmoud Salheen
 
Autonomous maze solving robot (1/2)
Autonomous maze solving robot (1/2)Autonomous maze solving robot (1/2)
Autonomous maze solving robot (1/2)Musfiqur Rahman
 

What's hot (20)

Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
 
Line Following Robot Presentation
Line Following Robot PresentationLine Following Robot Presentation
Line Following Robot Presentation
 
Obstacle avoiding robot
Obstacle avoiding robotObstacle avoiding robot
Obstacle avoiding robot
 
Obstacle avoiding car project slide
Obstacle avoiding car project slideObstacle avoiding car project slide
Obstacle avoiding car project slide
 
OBSTACLE AVOIDING CAR
OBSTACLE AVOIDING CAROBSTACLE AVOIDING CAR
OBSTACLE AVOIDING CAR
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
The line follower robot
The line follower robotThe line follower robot
The line follower robot
 
Obstacle Detection Robot
Obstacle Detection RobotObstacle Detection Robot
Obstacle Detection Robot
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following Robot
 
line following robot ppt
line following robot pptline following robot ppt
line following robot ppt
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
line following robot
line following robotline following robot
line following robot
 
Obstacle avoiding robot.doc
Obstacle avoiding robot.docObstacle avoiding robot.doc
Obstacle avoiding robot.doc
 
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATIONBLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following Robot
 
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)
 
Arduino maze solving robot
Arduino maze solving robotArduino maze solving robot
Arduino maze solving robot
 
Voice controlled robot ppt
Voice controlled robot pptVoice controlled robot ppt
Voice controlled robot ppt
 
Autonomous maze solving robot (1/2)
Autonomous maze solving robot (1/2)Autonomous maze solving robot (1/2)
Autonomous maze solving robot (1/2)
 

Similar to Obstacle avoiding Robot

Arduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemArduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemMadhav Reddy Chintapalli
 
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERSEMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERSHariniChaganti1
 
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle AvoidanceRobotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle Avoidancekiet group of institution
 
Motorized pan tilt(Arduino based)
Motorized pan tilt(Arduino based)Motorized pan tilt(Arduino based)
Motorized pan tilt(Arduino based)kane111
 
Design and Development of a prototype of AGV
Design and Development of a prototype of AGVDesign and Development of a prototype of AGV
Design and Development of a prototype of AGVKUNJBIHARISINGH5
 
Metal detector robot
Metal detector robotMetal detector robot
Metal detector robotf114n
 
Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Fajar Baskoro
 
Analysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlAnalysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlIJERD Editor
 
Final report obstacle avoiding roboat
Final report obstacle avoiding roboatFinal report obstacle avoiding roboat
Final report obstacle avoiding roboatShubham Thakur
 
obstacle avoiding robot
obstacle avoiding robotobstacle avoiding robot
obstacle avoiding robotssuser5ba2241
 
Understanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIITUnderstanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIITGDSCRCCIITTeam
 
Flexible robotic hand
Flexible robotic hand Flexible robotic hand
Flexible robotic hand Nâhíd Alam
 
Microprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door OpenerMicroprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door OpenerJitendra Choudhary
 
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxDesign and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxcarolinef5
 
Gesture control robot using by Ardiuno
Gesture control robot using by ArdiunoGesture control robot using by Ardiuno
Gesture control robot using by ArdiunoSudhir Kumar
 

Similar to Obstacle avoiding Robot (20)

Arduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemArduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning System
 
371275588.pptx
371275588.pptx371275588.pptx
371275588.pptx
 
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERSEMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
EMERGENCY RESCUE ROBOT FOR HUMAN DETECTION DURING DISASTERS
 
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle AvoidanceRobotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
 
Motorized pan tilt(Arduino based)
Motorized pan tilt(Arduino based)Motorized pan tilt(Arduino based)
Motorized pan tilt(Arduino based)
 
Hexapod ppt
Hexapod pptHexapod ppt
Hexapod ppt
 
Design and Development of a prototype of AGV
Design and Development of a prototype of AGVDesign and Development of a prototype of AGV
Design and Development of a prototype of AGV
 
Metal detector robot
Metal detector robotMetal detector robot
Metal detector robot
 
batch 7.pptx
batch 7.pptxbatch 7.pptx
batch 7.pptx
 
Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0
 
Analysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote ControlAnalysis and Construction of a Robot controlled by a Universal Remote Control
Analysis and Construction of a Robot controlled by a Universal Remote Control
 
Final report obstacle avoiding roboat
Final report obstacle avoiding roboatFinal report obstacle avoiding roboat
Final report obstacle avoiding roboat
 
obstacle avoiding robot
obstacle avoiding robotobstacle avoiding robot
obstacle avoiding robot
 
Understanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIITUnderstanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIIT
 
Obstacle observing
Obstacle observingObstacle observing
Obstacle observing
 
Flexible robotic hand
Flexible robotic hand Flexible robotic hand
Flexible robotic hand
 
spy_robot.pptx
spy_robot.pptxspy_robot.pptx
spy_robot.pptx
 
Microprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door OpenerMicroprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door Opener
 
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxDesign and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
 
Gesture control robot using by Ardiuno
Gesture control robot using by ArdiunoGesture control robot using by Ardiuno
Gesture control robot using by Ardiuno
 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
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
 
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
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
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
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
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...
 
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
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 

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
  • 5.
  • 6.
  • 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
  • 12.
  • 13.
  • 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.
  • 15.
  • 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.
  • 19.
  • 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