SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
Obstacle Avoiding Robot
 Objective: -
The main aim of this study is to design
and develop an “Obstacle Detection System for Vehicles on
Road.”capable of reducing the increasing number of vehicular
accidents in our highways.
 Software required: -
i. Arduino IDE
 Arduino Uno: -
Arduino is an open-sourceplatform
used for building electronicsprojects. The Arduino UNO is an
open-sourcemicrocontrollerboard based on the Microchip
ATmega328P microcontrollerand developed by Arduino.cc.
o It can be powered by a USB cable or by an external 9-volt
battery, though it accepts voltages between 7 and 20 volts.
Requirements: -
Chassis OR any toy car.
Arduino UNO/Mega.
Ultrasonic sensor HC SR-04.
2 DC motors.
9V/12V 1A battery.
Motordriver moduleL298.
Jumpers.
Single stranded wires.
Procedure: -
So yes, I’m going to divide the whole making into 4 part
Connectionsof Ultrasonic-sensor → Connectionsof L298N
→ Code → Testing
Connections: -
CIRCUIT DIAGRAM: -
Ultrasonic Sensor: -
 Connections for Obstacle avoiding
robot: -
 Connectionsof Ultrasonic-sensor:-
i) VCC – VCC terminal of Arduino.
ii) GND – GND terminal of Arduino.
iii) Trigpin – digital pin 9 on Arduino.
iv) Echo pin – digital pin 10 on Arduino.
Ultrasonic Sensor: -
An Ultrasonic sensor is a device
that can measure the distance to an object by using sound
waves. It measures distance by sending out a sound wave at
a specific frequency and listening for that sound wave to
bounce back. By recording the elapsed time between the
sound wave being generated and the sound wave bouncing
back, it is possible to calculatethe distance between the
sonar sensor and the object.
Motor Driver L298N: -
Pulse width modulation (PWM), or pulse-duration modulation (PDM), is a method of reducing .... The
simplest way to generate a PWM signal is the intersective method, which requires only a sawtooth or a
triangle .... electronic circuitry which suppresses current flow during defined portions of each cycle of the
AC line voltage
Connections of L298N: -
i. +12V – Positive terminal of the battery.
ii. GND – a) GND of Arduino b) Negative terminal of
battery.
iii. Input terminal 1 – Pin 4
iv. Input terminal 2 – Pin 5
v. Input terminal 3 – Pin 6
vi. Input terminal 4 – Pin 7
vii. Output terminal 1 – Positive of first motor.
viii. Output terminal 2 – Negative of first motor.
ix. Output terminal 3 – Positive of second motor.
x. Output terminal 4 – Negative of second motor.
Coding: -
int trigPin = 9;
int echoPin = 10;
int revright = 4; //REVerse motion of Right motor
int fwdleft = 7;
int revleft= 6;
int fwdright= 5; //ForWarD motion of Right motor
int c = 0;
void setup() {
//Serial.begin(9600);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(4, OUTPUT);
pinMode(7, OUTPUT);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
// put your setup codehere, to run once:
}
void loop() {
long duration, distance;
digitalWrite(trigPin,HIGH);
delayMicroseconds(1000);
digitalWrite(trigPin, LOW);
duration=pulseIn(echoPin, HIGH);
distance =(duration/2)/29.1;
//Serial.print(distance);
//Serial.println("CM");
delay(10);
if((distance>20))
{
digitalWrite(5,HIGH); // If you dont get propermovements of your
robot,
digitalWrite(4,LOW); // then alter the pin numbers
digitalWrite(6,LOW); //
digitalWrite(7,HIGH); //
}
else if(distance<20)
{
digitalWrite(5,HIGH);
digitalWrite(4,LOW);
digitalWrite(6,HIGH); //HIGH
digitalWrite(7,LOW);
}
}
.Project final shape: -
Submitted By: Muhammad Faseeh

More Related Content

What's hot (20)

PPTX
Obstacle Avoidance Robot (Powered by Arduino)
Amanullah Mahmood
 
DOCX
Obstacle avoiding robot.doc
Electronics - Embedded System
 
DOCX
A report on ultrasonic distance measurement
itfakash
 
PPTX
Distance measurement using Ultrasonic sensor on Arduino Uno
Aswin KP
 
PPTX
Arduino slides
sdcharle
 
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
PDF
Obstacle avoiding car project slide
ShourovSarkerJoy
 
DOCX
Obstacle Avoiding Robot Report Robot23
Abhijeet kapse
 
PDF
Obstacle Avoidance Robotic Vehicle Using Ultrasonic Sensor, Android and Bluet...
IRJET Journal
 
ODP
Introduction to Arduino
Richard Rixham
 
PPTX
ROBOTIC CAR PPT (2).pptx
JatinKanojiya2
 
PPT
Arduino
vipin7vj
 
DOCX
ARDUINO EMBEDDED SYSTEM
Vishal GARG
 
PPTX
PIR sensing with arduino
chetan kadiwal
 
PPTX
Arduino Robotics workshop Day1
Sudar Muthu
 
PDF
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
LeTsKnOw1
 
PPTX
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
PPTX
Obstacle avoidance robot
Rahuldey1991
 
PPTX
Arduino Workshop
atuline
 
PPTX
raspberry pi and robots
chikkujacob
 
Obstacle Avoidance Robot (Powered by Arduino)
Amanullah Mahmood
 
Obstacle avoiding robot.doc
Electronics - Embedded System
 
A report on ultrasonic distance measurement
itfakash
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Aswin KP
 
Arduino slides
sdcharle
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
Obstacle avoiding car project slide
ShourovSarkerJoy
 
Obstacle Avoiding Robot Report Robot23
Abhijeet kapse
 
Obstacle Avoidance Robotic Vehicle Using Ultrasonic Sensor, Android and Bluet...
IRJET Journal
 
Introduction to Arduino
Richard Rixham
 
ROBOTIC CAR PPT (2).pptx
JatinKanojiya2
 
Arduino
vipin7vj
 
ARDUINO EMBEDDED SYSTEM
Vishal GARG
 
PIR sensing with arduino
chetan kadiwal
 
Arduino Robotics workshop Day1
Sudar Muthu
 
OBSTACLE AVOIDACE ROBOT USING ARDUINO UNO AND ULTRASONIC SENSOR
LeTsKnOw1
 
Wi-Fi Esp8266 nodemcu
creatjet3d labs
 
Obstacle avoidance robot
Rahuldey1991
 
Arduino Workshop
atuline
 
raspberry pi and robots
chikkujacob
 

Similar to obstacle avoiding robot (20)

PPTX
Arduino Based Collision Prevention Warning System
Madhav Reddy Chintapalli
 
PPTX
371275588.pptx
AnandVerma529372
 
PPTX
Design and Development of a prototype of AGV
KUNJBIHARISINGH5
 
PDF
IRJET- Low-Cost DTMF Controlled Landmine Detection Rover
IRJET Journal
 
PPTX
Metal detector robot
f114n
 
PPTX
Obstacle avoiding Robot
Rasheed Khan
 
PPTX
Fire Fighting Robot
Saadullah74
 
DOC
Multi-Function Automatic Move Smart Car for Arduino
Wanita Long
 
DOCX
Automatic railway gate control using arduino uno
selvalakshmi24
 
PDF
Controlling and optimization of 3d optical stage for precise movement
Avadhut Khade
 
PDF
Contactless digital tachometer using microcontroller
IJECEIAES
 
PPTX
Smart accident detector and intimator [autosaved]
Sivajyothi paramsivam
 
PPTX
Automatic railway gate control using arduino uno
selvalakshmi24
 
DOCX
pdf-obstacle-avoiding-robot.docx
maheshwaran79
 
PPTX
Arduino tutorial A to Z
Md. Asaduzzaman Jabin
 
PPTX
IOT BASED AUTOMATIC BREAKING CONTROL SYSTEM FOR EV VEHICLE AND MONITORING SYSTEM
SIVAKUMAR351202
 
PDF
Thesis power theft detection ch 3
Faraz Ahmed
 
PDF
Accident detection management system project report II.pdf
Kamal Acharya
 
PPTX
PRE PROJECT.pptx
AUComputers1
 
DOCX
Speed Control of DC Motor
Mafaz Ahmed
 
Arduino Based Collision Prevention Warning System
Madhav Reddy Chintapalli
 
371275588.pptx
AnandVerma529372
 
Design and Development of a prototype of AGV
KUNJBIHARISINGH5
 
IRJET- Low-Cost DTMF Controlled Landmine Detection Rover
IRJET Journal
 
Metal detector robot
f114n
 
Obstacle avoiding Robot
Rasheed Khan
 
Fire Fighting Robot
Saadullah74
 
Multi-Function Automatic Move Smart Car for Arduino
Wanita Long
 
Automatic railway gate control using arduino uno
selvalakshmi24
 
Controlling and optimization of 3d optical stage for precise movement
Avadhut Khade
 
Contactless digital tachometer using microcontroller
IJECEIAES
 
Smart accident detector and intimator [autosaved]
Sivajyothi paramsivam
 
Automatic railway gate control using arduino uno
selvalakshmi24
 
pdf-obstacle-avoiding-robot.docx
maheshwaran79
 
Arduino tutorial A to Z
Md. Asaduzzaman Jabin
 
IOT BASED AUTOMATIC BREAKING CONTROL SYSTEM FOR EV VEHICLE AND MONITORING SYSTEM
SIVAKUMAR351202
 
Thesis power theft detection ch 3
Faraz Ahmed
 
Accident detection management system project report II.pdf
Kamal Acharya
 
PRE PROJECT.pptx
AUComputers1
 
Speed Control of DC Motor
Mafaz Ahmed
 
Ad

Recently uploaded (20)

PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PPTX
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Ad

obstacle avoiding robot

  • 1. Obstacle Avoiding Robot  Objective: - The main aim of this study is to design and develop an “Obstacle Detection System for Vehicles on Road.”capable of reducing the increasing number of vehicular accidents in our highways.  Software required: - i. Arduino IDE  Arduino Uno: -
  • 2. Arduino is an open-sourceplatform used for building electronicsprojects. The Arduino UNO is an open-sourcemicrocontrollerboard based on the Microchip ATmega328P microcontrollerand developed by Arduino.cc. o It can be powered by a USB cable or by an external 9-volt battery, though it accepts voltages between 7 and 20 volts. Requirements: - Chassis OR any toy car. Arduino UNO/Mega. Ultrasonic sensor HC SR-04. 2 DC motors. 9V/12V 1A battery. Motordriver moduleL298. Jumpers. Single stranded wires. Procedure: - So yes, I’m going to divide the whole making into 4 part Connectionsof Ultrasonic-sensor → Connectionsof L298N → Code → Testing
  • 4. Ultrasonic Sensor: -  Connections for Obstacle avoiding robot: -  Connectionsof Ultrasonic-sensor:- i) VCC – VCC terminal of Arduino. ii) GND – GND terminal of Arduino. iii) Trigpin – digital pin 9 on Arduino. iv) Echo pin – digital pin 10 on Arduino. Ultrasonic Sensor: - An Ultrasonic sensor is a device that can measure the distance to an object by using sound waves. It measures distance by sending out a sound wave at a specific frequency and listening for that sound wave to bounce back. By recording the elapsed time between the sound wave being generated and the sound wave bouncing back, it is possible to calculatethe distance between the sonar sensor and the object.
  • 5. Motor Driver L298N: - Pulse width modulation (PWM), or pulse-duration modulation (PDM), is a method of reducing .... The simplest way to generate a PWM signal is the intersective method, which requires only a sawtooth or a triangle .... electronic circuitry which suppresses current flow during defined portions of each cycle of the AC line voltage
  • 6. Connections of L298N: - i. +12V – Positive terminal of the battery. ii. GND – a) GND of Arduino b) Negative terminal of battery. iii. Input terminal 1 – Pin 4 iv. Input terminal 2 – Pin 5 v. Input terminal 3 – Pin 6 vi. Input terminal 4 – Pin 7 vii. Output terminal 1 – Positive of first motor. viii. Output terminal 2 – Negative of first motor. ix. Output terminal 3 – Positive of second motor. x. Output terminal 4 – Negative of second motor. Coding: - int trigPin = 9; int echoPin = 10; int revright = 4; //REVerse motion of Right motor int fwdleft = 7; int revleft= 6; int fwdright= 5; //ForWarD motion of Right motor int c = 0; void setup() { //Serial.begin(9600); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(4, OUTPUT); pinMode(7, OUTPUT); pinMode(trigPin, OUTPUT);
  • 7. pinMode(echoPin, INPUT); // put your setup codehere, to run once: } void loop() { long duration, distance; digitalWrite(trigPin,HIGH); delayMicroseconds(1000); digitalWrite(trigPin, LOW); duration=pulseIn(echoPin, HIGH); distance =(duration/2)/29.1; //Serial.print(distance); //Serial.println("CM"); delay(10); if((distance>20)) { digitalWrite(5,HIGH); // If you dont get propermovements of your robot, digitalWrite(4,LOW); // then alter the pin numbers digitalWrite(6,LOW); // digitalWrite(7,HIGH); // } else if(distance<20) { digitalWrite(5,HIGH); digitalWrite(4,LOW); digitalWrite(6,HIGH); //HIGH
  • 8. digitalWrite(7,LOW); } } .Project final shape: - Submitted By: Muhammad Faseeh