SlideShare a Scribd company logo
3
Most read
4
Most read
9
Most read
Obstacle
detection
Robot using
Ultrasonic
Sensor and
Arduino
UNO
By Deligence Technologies –
www.deligence.com
What We
Will
Cover ?
 Components Used in this Project –
Arduino UNO
Ultrasonic Sensor (HC-SR04)
Motor Driver Module (L298D)
Controlling DC Motors
 Project Description
 Video Presentation
1. Arduino UNO :
Arduino/Genuino Uno is a microcontroller board based on the ATmega328P
(datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM
outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power
jack, an ICSP header and a reset button.
2. Ultrasonic Sensor (HC-SR04) :
Ultrasonic range sensor(HC - SR04) provides 2cm - 400cm distance measurement
function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic
transmitters, receiver and control circuit.
3. Motor Driver Module (L298D) :
The L298N H-bridge module can be used with motors that have a voltage of
between 5 and 35V DC. With the module used in this tutorial, there is also an
onboard 5V regulator, so if your supply voltage is up to 12V you can also source
5V from the board.
1. DC motor 1 “+” or stepper motor A+
2. DC motor 1 “-” or stepper motor A-
3. 12V jumper – remove this if using a supply voltage greater than 12V DC. This
enables power to the onboard 5V regulator
4. Connect your motor supply voltage here, maximum of 35V DC. Remove 12V
jumper if >12V DC
5. GND
6. 5V output if 12V jumper in place, ideal for powering your Arduino (etc)
7. DC motor 1 enable jumper. Leave this in place when using a stepper motor.
Connect to PWM output for DC motor speed control.
8. IN1
9. IN2
10. IN3
11. IN4
12. DC motor 2 enable jumper. Leave this in place when using a stepper motor.
Connect to PWM output for DC motor speed control.
13. DC motor 2 “+” or stepper motor B+
14. DC motor 2 “-” or stepper motor B-
4. Controlling DC Motors :
To control one or two DC motors is quite easy with the L298N H-bridge module.
First connect each motor to the A and B connections on the L298N module. If
you’re using two motors for a robot (etc) ensure that the polarity of the motors is
the same on both inputs. Otherwise you may need to swap them over when you
set both motors to forward and one goes backwards!
Next, connect your power supply – the positive to pin 4 on the module and
negative/GND to pin 5. If you supply is up to 12V you can leave in the 12V
jumper (point 3 in the image above) and 5V will be available from pin 6 on the
module. This can be fed to your Arduino’s 5V pin to power it from the motors’
power supply. Don’t forget to connect Arduino GND to pin 5 on the module as
well to complete the circuit.
Now you will need six digital output pins on your Arduino, two of which need to
be PWM (pulse-width modulation) pins. PWM pins are denoted by the tilde (“~”)
next to the pin number, for example:
Finally, connect the Arduino digital output pins to the driver module. In our
example we have two DC motors, so digital pins D9, D8, D7 and D6 will be
connected to pins IN1, IN2, IN3 and IN4 respectively. Then connect D10 to
module pin 7 (remove the jumper first) and D5 to module pin 12 (again, remove
the jumper).
The motor direction is controlled by sending a HIGH or LOW signal to the drive
for each motor (or channel). For example for motor one, a HIGH to IN1 and a
LOW to IN2 will cause it to turn in one direction, and a LOW and HIGH will
cause it to turn in the other direction.
However the motors will not turn until a HIGH is set to the enable pin (7 for
motor one, 12 for motor two). And they can be turned off with a LOW to the same
pin(s). However if you need to control the speed of the motors, the PWM signal
from the digital pin connected to the enable pin can take care of it.
Project
Description..
Here we are going to implement a bot which is going to detect obstacle and
according to that, it going to change its direction.
For this we Require -
• Arduino UNO
• Ultrasonic Sensor
• L298d
• Dc gear Motor
Now first we are going to connect all ultrasonic sensor with our Arduino board.
Then according to program our all ultrasonic sensor going generate a trigger signal
which is going to receive by our echo pin of Ultrasonic Sensor.
Then we are going to run an algorithm according which we are going to manipulate
our desire distance for obstacle detection then we are going to control our motor
rotation direction for movement of our bot.
50CM(Front),15CM (Each Side)
You can check it's code & detailed description at -
https://github.com/DeligenceTechnologies/Obstacle-detection-Robot-using-
Ultrasonic-Sensor-and-Arduino-UNO .
You can contact us at info [@] deligence.com in case you have any query. You can
also contact us at sales [@] deligence.com in case of any Development requirement.
Deligence Technologies - your growing technology partner!
www.deligence.com/contact-us
Email : info@deligence.com
Phone : +91 9910130340
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO

More Related Content

PDF
Maze Solver Robot using Arduino
PPTX
Line Maze Solver Presentation
PPTX
Obstacle Avoidance ROBOT using ARDUINO
DOCX
Final report obstacle avoiding roboat
PDF
FTTH Planning using GIS
PPTX
Obstacle avoidance robot
PPTX
Line follower robot
PPTX
Robot controlled car using Wireless Module
Maze Solver Robot using Arduino
Line Maze Solver Presentation
Obstacle Avoidance ROBOT using ARDUINO
Final report obstacle avoiding roboat
FTTH Planning using GIS
Obstacle avoidance robot
Line follower robot
Robot controlled car using Wireless Module

What's hot (20)

PPTX
OBSTACLE AVOIDING CAR
PPTX
Obstacle Avoidance Robot (Powered by Arduino)
PPTX
Obstacle Avoidance Robot
PPTX
Obstacle avoiding Robot
PDF
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
DOCX
Obstacle Avoiding Robot Report Robot23
PDF
Obstacle avoiding car project slide
PPTX
Smart Blind stick by using arduino uno and sensor
PPTX
Passive infrared sensor technology(pir)
DOCX
obstacle avoiding robot
PPT
Arduino
DOCX
Arduino bluetooth controlled robot
PPTX
Mechanism of PIR sensor
DOC
Obstacle avoiding robot(Lab report)
PDF
Obstacle Avoidance Robotic Vehicle Using Ultrasonic Sensor, Android and Bluet...
PDF
Bluetooth based home automation system
DOC
PIC MICROCONTROLLERS -CLASS NOTES
PPTX
Temperature based fan speed control & monitoring using
PDF
Esp32 cam arduino-123
PPT
The line follower robot
OBSTACLE AVOIDING CAR
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot
Obstacle avoiding Robot
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
Obstacle Avoiding Robot Report Robot23
Obstacle avoiding car project slide
Smart Blind stick by using arduino uno and sensor
Passive infrared sensor technology(pir)
obstacle avoiding robot
Arduino
Arduino bluetooth controlled robot
Mechanism of PIR sensor
Obstacle avoiding robot(Lab report)
Obstacle Avoidance Robotic Vehicle Using Ultrasonic Sensor, Android and Bluet...
Bluetooth based home automation system
PIC MICROCONTROLLERS -CLASS NOTES
Temperature based fan speed control & monitoring using
Esp32 cam arduino-123
The line follower robot
Ad

Viewers also liked (12)

PPTX
Obstacle Avoidance Robotic Vehicle
PPTX
Reverse car-parking
DOCX
Project report on arduino based parking lot system
PPTX
State fair project ( Remote Car Parking System)
PPTX
Arduino Based Parking Lot System
PPTX
HC-SR04 Ultrasonic sensor with Arduino
PDF
Project Report Distance measurement system
PPTX
Ultrasonic sensor
PDF
Wireless Sensor Network Protocol for Smart Parking Application Experimental S...
PDF
Report On Arduino
DOCX
Arduino seminar report
PDF
Ultrasonic based distance measurement system
Obstacle Avoidance Robotic Vehicle
Reverse car-parking
Project report on arduino based parking lot system
State fair project ( Remote Car Parking System)
Arduino Based Parking Lot System
HC-SR04 Ultrasonic sensor with Arduino
Project Report Distance measurement system
Ultrasonic sensor
Wireless Sensor Network Protocol for Smart Parking Application Experimental S...
Report On Arduino
Arduino seminar report
Ultrasonic based distance measurement system
Ad

Similar to Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO (20)

DOCX
pdf-obstacle-avoiding-robot.docx
PPTX
371275588.pptx
PPTX
Automatic Railway Gate Control MCU .pptx
PPTX
Design and Development of a prototype of AGV
PPTX
Automatic railway gate control using arduino uno
PDF
obstacle detection
PPTX
obstacle divider robot stm32 using obligance engg
PDF
Team7 report
PPTX
Line Following Robot
PPTX
Fire Fighting Robot
PPTX
ADIT ROVER 12121212121212121212121212121
PDF
Animatronic hand controller
DOCX
Arduino windows remote control
PDF
Accident detection management system project report II.pdf
PPTX
project ppt for final year viva-voce - modified
PPTX
speedcontrol of dc motor using inverters
PDF
Home Automation System
PDF
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
PPTX
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
PDF
Robotics Report final.compressed (1)
pdf-obstacle-avoiding-robot.docx
371275588.pptx
Automatic Railway Gate Control MCU .pptx
Design and Development of a prototype of AGV
Automatic railway gate control using arduino uno
obstacle detection
obstacle divider robot stm32 using obligance engg
Team7 report
Line Following Robot
Fire Fighting Robot
ADIT ROVER 12121212121212121212121212121
Animatronic hand controller
Arduino windows remote control
Accident detection management system project report II.pdf
project ppt for final year viva-voce - modified
speedcontrol of dc motor using inverters
Home Automation System
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotics Report final.compressed (1)

More from Sanjay Kumar (19)

PPT
Mobile app development
PPT
Accelerated Mobile Pages (AMP)
PPTX
Attendance System using ESP8266(Wi-Fi) with MySQL
PPTX
Attendance system using MYSQL with Raspberry pi and RFID-RC522
PPTX
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
PPTX
Arduino to Control Bulbs using Web App
PPTX
Bulb Control using Web App with Raspberry Pi
PPTX
Arduino Interface LM35 MQTT Using UART
PPTX
Arduino Interface with MySQL for Storing RFID Access Details
PPTX
Rain Drop Sensor using Arduino!
PPTX
Arduino Programming Software Development
PPTX
Embedded Software Development
PPTX
Ionic - Hybrid Mobile Application Framework
PPTX
Internet of Things - IOT
PPTX
Meteor Mobile App Development
PPTX
Digital Marketing Strategy
PPTX
Web Application Development
PPTX
Joomla Website Development Company
PPTX
Meteor js App Development
Mobile app development
Accelerated Mobile Pages (AMP)
Attendance System using ESP8266(Wi-Fi) with MySQL
Attendance system using MYSQL with Raspberry pi and RFID-RC522
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Arduino to Control Bulbs using Web App
Bulb Control using Web App with Raspberry Pi
Arduino Interface LM35 MQTT Using UART
Arduino Interface with MySQL for Storing RFID Access Details
Rain Drop Sensor using Arduino!
Arduino Programming Software Development
Embedded Software Development
Ionic - Hybrid Mobile Application Framework
Internet of Things - IOT
Meteor Mobile App Development
Digital Marketing Strategy
Web Application Development
Joomla Website Development Company
Meteor js App Development

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation_ Review paper, used for researhc scholars
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
20250228 LYD VKU AI Blended-Learning.pptx

Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO

  • 1. Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO By Deligence Technologies – www.deligence.com
  • 3.  Components Used in this Project – Arduino UNO Ultrasonic Sensor (HC-SR04) Motor Driver Module (L298D) Controlling DC Motors  Project Description  Video Presentation
  • 4. 1. Arduino UNO : Arduino/Genuino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button.
  • 5. 2. Ultrasonic Sensor (HC-SR04) : Ultrasonic range sensor(HC - SR04) provides 2cm - 400cm distance measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit.
  • 6. 3. Motor Driver Module (L298D) : The L298N H-bridge module can be used with motors that have a voltage of between 5 and 35V DC. With the module used in this tutorial, there is also an onboard 5V regulator, so if your supply voltage is up to 12V you can also source 5V from the board.
  • 7. 1. DC motor 1 “+” or stepper motor A+ 2. DC motor 1 “-” or stepper motor A- 3. 12V jumper – remove this if using a supply voltage greater than 12V DC. This enables power to the onboard 5V regulator 4. Connect your motor supply voltage here, maximum of 35V DC. Remove 12V jumper if >12V DC 5. GND 6. 5V output if 12V jumper in place, ideal for powering your Arduino (etc) 7. DC motor 1 enable jumper. Leave this in place when using a stepper motor. Connect to PWM output for DC motor speed control. 8. IN1 9. IN2 10. IN3 11. IN4 12. DC motor 2 enable jumper. Leave this in place when using a stepper motor. Connect to PWM output for DC motor speed control. 13. DC motor 2 “+” or stepper motor B+ 14. DC motor 2 “-” or stepper motor B-
  • 8. 4. Controlling DC Motors : To control one or two DC motors is quite easy with the L298N H-bridge module. First connect each motor to the A and B connections on the L298N module. If you’re using two motors for a robot (etc) ensure that the polarity of the motors is the same on both inputs. Otherwise you may need to swap them over when you set both motors to forward and one goes backwards! Next, connect your power supply – the positive to pin 4 on the module and negative/GND to pin 5. If you supply is up to 12V you can leave in the 12V jumper (point 3 in the image above) and 5V will be available from pin 6 on the module. This can be fed to your Arduino’s 5V pin to power it from the motors’ power supply. Don’t forget to connect Arduino GND to pin 5 on the module as well to complete the circuit. Now you will need six digital output pins on your Arduino, two of which need to be PWM (pulse-width modulation) pins. PWM pins are denoted by the tilde (“~”) next to the pin number, for example:
  • 9. Finally, connect the Arduino digital output pins to the driver module. In our example we have two DC motors, so digital pins D9, D8, D7 and D6 will be connected to pins IN1, IN2, IN3 and IN4 respectively. Then connect D10 to module pin 7 (remove the jumper first) and D5 to module pin 12 (again, remove the jumper). The motor direction is controlled by sending a HIGH or LOW signal to the drive for each motor (or channel). For example for motor one, a HIGH to IN1 and a LOW to IN2 will cause it to turn in one direction, and a LOW and HIGH will cause it to turn in the other direction. However the motors will not turn until a HIGH is set to the enable pin (7 for motor one, 12 for motor two). And they can be turned off with a LOW to the same pin(s). However if you need to control the speed of the motors, the PWM signal from the digital pin connected to the enable pin can take care of it.
  • 11. Here we are going to implement a bot which is going to detect obstacle and according to that, it going to change its direction. For this we Require - • Arduino UNO • Ultrasonic Sensor • L298d • Dc gear Motor Now first we are going to connect all ultrasonic sensor with our Arduino board. Then according to program our all ultrasonic sensor going generate a trigger signal which is going to receive by our echo pin of Ultrasonic Sensor. Then we are going to run an algorithm according which we are going to manipulate our desire distance for obstacle detection then we are going to control our motor rotation direction for movement of our bot.
  • 12. 50CM(Front),15CM (Each Side) You can check it's code & detailed description at - https://github.com/DeligenceTechnologies/Obstacle-detection-Robot-using- Ultrasonic-Sensor-and-Arduino-UNO . You can contact us at info [@] deligence.com in case you have any query. You can also contact us at sales [@] deligence.com in case of any Development requirement.
  • 13. Deligence Technologies - your growing technology partner! www.deligence.com/contact-us Email : info@deligence.com Phone : +91 9910130340