SlideShare une entreprise Scribd logo
1  sur  30
Obstacle
Avoidance Robot
Powered by Arduino
CircuitComponents Working Source Code Scope
Components
Components /
1. Chassis 2. Arduino UNO 3. DC Motor
4. Motor Driver 6. Servo Motor5. Ultrasonic Sensor
Components /
1. Chassis
• Good quality robotic chassis for DIY
projects
• Laser cut super smooth double layer
acrylic chassis
• Contains Ultrasonic Sensor and Servo
Motor holder
Components /
2. Arduino UNO
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage 7-12V (recommended)
6-20V (limit)
Digital I/O Pins 14
PWM Digital I/O Pins 6
Analog Input Pins 6
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
BUILTIN LED 13
Dimension 68.6 mm X 53.4 mm
Weight 25g
Components /
2. Arduino UNO
Open Source Hardware: Schematics
• Arduino Uno is open-source hardware! You
can build your own board
Programming
• The UNO is the best board to get started with
electronics and coding
• The Arduino Uno can be programmed with
the Arduino Software IDE
Power
• The Arduino Uno board can be powered via
the USB connection or with an external
power supply from 6 to 20 volts. The power
source is selected automatically
Components /
3. DC Motor
Voltage 3-6V DC
Reduction Ratio 1:48
Maximum torque 800k.cm
Material Plastic
Weight 2.4 ounces
Load Current 70mA (250mA MAX)
No-load Speed 1:48 (3V)
Components /
4. L298N Motor Driver
Driver Dual H Bridge Motor Driver IC
Operating
Voltage
7 to 35V
Peak Current 2A
Max Power
Consumption
20W (When the temperature
T = 75 °C
Weight 33g
Components /
5. HC-SR04 Ultrasonic Sensor
Operating Voltage 5V
Theoretical Measuring
Distance
2cm to 450cm
Practical Measuring
Distance
2cm to 80cm
Measuring Angle
Covered
<15°
Operating Current <15mA
Operating Frequency 40Hz
Components /
6. SG90 Micro Servo Motor
Operating Voltage 5V
Torque 2.5kg/cm
Operating Speed 0.1s/60°
Gear Type Plastic
Rotation 0°-240°
Weight 9g
Working
Working /
1. Calculating the Distance
• Ultrasonic signals travel at the speed of sound
• At 20°C the speed of sound is 343 m/s
• Time measured by HC-SR04 is for return trip
• Divide time in half to calculate distance
𝐷 = (Δt/2) × 𝑐
Δt = Time Delay
C = Speed of Sound
D = Distance Measured
Working /
2. Controlling the Speed and Direction of DC Motor
Motor A Enable:
• 5Volts = Enabled
• Ground = Disabled
• PWM = Speed Control
Motor A:
• Input 1: 5 Volts = Forward
• Input 2: Ground = Forward
Motor A:
• Input 1: Ground = Reversed
• Input 2: 5 Volts = Reversed
*Motor B Inputs work the same way
Pulse Width Modulation (PWM)
Working /
3. Using Servo Motor to Rotate Ultrasonic Sensor
• SG90 Micro Servos use DC motors
• Potentiometer is used as feedback sensor
• Internal controller board monitors and adjust position
• Position controlled using Pulse Width Modulation (PWM)
Torque
• Amount of force servo can apply to a lever
• Measured in kilogram centimetres (kg-cm)
• Rated Torque: 2.5 kg-cm
Circuit
Circuit /
Obstacle Avoidance Robot Schematic
Source
Code
Source Code </> /
Move Forward Function
Source Code </> /
Move Backward Function
Source Code </> /
Turn Right Function
Source Code </> /
Turn Left Function
Source Code </> /
Move Stop Function
Distance Calculator Function
Source Code </> /
Look Right Function
Look Left Function
Source Code </> /
Pin Declaration
Source Code </> /
Arduino Setup Code
Source Code </> /
Arduino Loop Code
Scope
Scope /
Further Improvements and Future Scope
1. Adding a Camera
• If interfaced with a camera, robot can be driven beyond line of sight
• Range becomes practically unlimited as network have a large range
2. Use as a fire fighter robot
• Addition of temperature sensor, water tank required
• Required some changes in programming
• It can work as an autonomous fire extinguisher
3. Obstacle detection for a Mining Vehicle
4. Driverless vehicles running along beams
5. Obstacle detecting system for a motor vehicle
6. Autonomous cleaning robot
Thank You

Contenu connexe

Tendances

line following robot
line following robotline following robot
line following robot
Rehnaz Razvi
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
Priya Hada
 

Tendances (20)

Obstacle avoiding car project slide
Obstacle avoiding car project slideObstacle avoiding car project slide
Obstacle avoiding car project slide
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
 
line following robot
line following robotline following robot
line following robot
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding Robot
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower 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
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATIONBLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
BLUETOOTH CONTROL ROBOT WITH ANDROID APPLICATION
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
 
AUTONOMOUS MAZE SOLVING ROBOT
AUTONOMOUS MAZE SOLVING ROBOTAUTONOMOUS MAZE SOLVING ROBOT
AUTONOMOUS MAZE SOLVING ROBOT
 
obstacle avoiding robot
obstacle avoiding robotobstacle avoiding robot
obstacle avoiding robot
 
Line Following Robot Using Arduino
Line Following Robot Using ArduinoLine Following Robot Using Arduino
Line Following Robot Using Arduino
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
Bluetooth controlled robot
Bluetooth controlled robotBluetooth controlled robot
Bluetooth controlled robot
 
Line Following Robot using Arduino UNO
Line Following Robot using Arduino UNOLine Following Robot using Arduino UNO
Line Following Robot using Arduino UNO
 
Obstacle avoidance robot
Obstacle avoidance robotObstacle avoidance robot
Obstacle avoidance robot
 
Fire Fighting Robot by saurabh
Fire Fighting Robot by saurabhFire Fighting Robot by saurabh
Fire Fighting Robot by saurabh
 

Similaire à Obstacle Avoidance Robot (Powered by Arduino)

Human robot interaction based on gesture identification
Human robot interaction based on gesture identificationHuman robot interaction based on gesture identification
Human robot interaction based on gesture identification
Restin S Edackattil
 

Similaire à Obstacle Avoidance Robot (Powered by Arduino) (20)

Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
 
My minor project
My minor projectMy minor project
My minor project
 
Arduino Based Project.pptx
Arduino Based Project.pptxArduino Based Project.pptx
Arduino Based Project.pptx
 
SMARTPHONE CONROL ROBOTIC CAR.pptx
SMARTPHONE CONROL ROBOTIC CAR.pptxSMARTPHONE CONROL ROBOTIC CAR.pptx
SMARTPHONE CONROL ROBOTIC CAR.pptx
 
Multi-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for ArduinoMulti-Function Automatic Move Smart Car for Arduino
Multi-Function Automatic Move Smart Car for Arduino
 
Self Obstacle Avoiding Rover
Self Obstacle Avoiding RoverSelf Obstacle Avoiding Rover
Self Obstacle Avoiding Rover
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home Automation
 
Exoskeleton arm ppt
Exoskeleton arm pptExoskeleton arm ppt
Exoskeleton arm ppt
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor control
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled Wheelchair
 
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
 
Final Design Presentation
Final Design PresentationFinal Design Presentation
Final Design Presentation
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following Robot
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
 
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
 
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
Embedded systemsc
Embedded systemscEmbedded systemsc
Embedded systemsc
 
Human robot interaction based on gesture identification
Human robot interaction based on gesture identificationHuman robot interaction based on gesture identification
Human robot interaction based on gesture identification
 

Dernier

Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
amitlee9823
 
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
amitlee9823
 
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | DelhiFULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
SaketCallGirlsCallUs
 
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
amitlee9823
 
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
Health
 
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
amitlee9823
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
amitlee9823
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
ozave
 
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitoutELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ssjews46
 

Dernier (20)

Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
Top Rated Call Girls Vashi : 9920725232 We offer Beautiful and sexy Call Girl...
 
Workplace-Hazards TLE EIM 10 QUARTER3 W2
Workplace-Hazards TLE EIM 10 QUARTER3 W2Workplace-Hazards TLE EIM 10 QUARTER3 W2
Workplace-Hazards TLE EIM 10 QUARTER3 W2
 
John Deere Tractors 6130M 6140M Diagnostic Manual
John Deere Tractors  6130M 6140M Diagnostic ManualJohn Deere Tractors  6130M 6140M Diagnostic Manual
John Deere Tractors 6130M 6140M Diagnostic Manual
 
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
Call Girls in Malviya Nagar Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts Ser...
 
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
Top Rated Call Girls South Mumbai : 9920725232 We offer Beautiful and sexy Ca...
 
BOOK FARIDABAD CALL GIRL(VIP Sunny Leone) @8168257667 BOOK 24/7
BOOK FARIDABAD CALL GIRL(VIP Sunny Leone) @8168257667 BOOK  24/7BOOK FARIDABAD CALL GIRL(VIP Sunny Leone) @8168257667 BOOK  24/7
BOOK FARIDABAD CALL GIRL(VIP Sunny Leone) @8168257667 BOOK 24/7
 
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | DelhiFULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
FULL NIGHT — 9999894380 Call Girls In Jagat Puri | Delhi
 
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
 
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Rajajinagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
 
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
 
(INDIRA) Call Girl Nashik Call Now 8617697112 Nashik Escorts 24x7
(INDIRA) Call Girl Nashik Call Now 8617697112 Nashik Escorts 24x7(INDIRA) Call Girl Nashik Call Now 8617697112 Nashik Escorts 24x7
(INDIRA) Call Girl Nashik Call Now 8617697112 Nashik Escorts 24x7
 
Is Your BMW PDC Malfunctioning Discover How to Easily Reset It
Is Your BMW PDC Malfunctioning Discover How to Easily Reset ItIs Your BMW PDC Malfunctioning Discover How to Easily Reset It
Is Your BMW PDC Malfunctioning Discover How to Easily Reset It
 
John deere 425 445 455 Maitenance Manual
John deere 425 445 455 Maitenance ManualJohn deere 425 445 455 Maitenance Manual
John deere 425 445 455 Maitenance Manual
 
What Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To AppearWhat Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To Appear
 
Dubai Call Girls R0yalty O525547819 Call Girls Dubai
Dubai Call Girls R0yalty O525547819 Call Girls DubaiDubai Call Girls R0yalty O525547819 Call Girls Dubai
Dubai Call Girls R0yalty O525547819 Call Girls Dubai
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
 
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitoutELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
 

Obstacle Avoidance Robot (Powered by Arduino)

  • 4. Components / 1. Chassis 2. Arduino UNO 3. DC Motor 4. Motor Driver 6. Servo Motor5. Ultrasonic Sensor
  • 5. Components / 1. Chassis • Good quality robotic chassis for DIY projects • Laser cut super smooth double layer acrylic chassis • Contains Ultrasonic Sensor and Servo Motor holder
  • 6. Components / 2. Arduino UNO Microcontroller ATmega328P Operating Voltage 5V Input Voltage 7-12V (recommended) 6-20V (limit) Digital I/O Pins 14 PWM Digital I/O Pins 6 Analog Input Pins 6 SRAM 2 KB (ATmega328P) EEPROM 1 KB (ATmega328P) BUILTIN LED 13 Dimension 68.6 mm X 53.4 mm Weight 25g
  • 7. Components / 2. Arduino UNO Open Source Hardware: Schematics • Arduino Uno is open-source hardware! You can build your own board Programming • The UNO is the best board to get started with electronics and coding • The Arduino Uno can be programmed with the Arduino Software IDE Power • The Arduino Uno board can be powered via the USB connection or with an external power supply from 6 to 20 volts. The power source is selected automatically
  • 8. Components / 3. DC Motor Voltage 3-6V DC Reduction Ratio 1:48 Maximum torque 800k.cm Material Plastic Weight 2.4 ounces Load Current 70mA (250mA MAX) No-load Speed 1:48 (3V)
  • 9. Components / 4. L298N Motor Driver Driver Dual H Bridge Motor Driver IC Operating Voltage 7 to 35V Peak Current 2A Max Power Consumption 20W (When the temperature T = 75 °C Weight 33g
  • 10. Components / 5. HC-SR04 Ultrasonic Sensor Operating Voltage 5V Theoretical Measuring Distance 2cm to 450cm Practical Measuring Distance 2cm to 80cm Measuring Angle Covered <15° Operating Current <15mA Operating Frequency 40Hz
  • 11. Components / 6. SG90 Micro Servo Motor Operating Voltage 5V Torque 2.5kg/cm Operating Speed 0.1s/60° Gear Type Plastic Rotation 0°-240° Weight 9g
  • 13. Working / 1. Calculating the Distance • Ultrasonic signals travel at the speed of sound • At 20°C the speed of sound is 343 m/s • Time measured by HC-SR04 is for return trip • Divide time in half to calculate distance 𝐷 = (Δt/2) × 𝑐 Δt = Time Delay C = Speed of Sound D = Distance Measured
  • 14. Working / 2. Controlling the Speed and Direction of DC Motor Motor A Enable: • 5Volts = Enabled • Ground = Disabled • PWM = Speed Control Motor A: • Input 1: 5 Volts = Forward • Input 2: Ground = Forward Motor A: • Input 1: Ground = Reversed • Input 2: 5 Volts = Reversed *Motor B Inputs work the same way Pulse Width Modulation (PWM)
  • 15. Working / 3. Using Servo Motor to Rotate Ultrasonic Sensor • SG90 Micro Servos use DC motors • Potentiometer is used as feedback sensor • Internal controller board monitors and adjust position • Position controlled using Pulse Width Modulation (PWM) Torque • Amount of force servo can apply to a lever • Measured in kilogram centimetres (kg-cm) • Rated Torque: 2.5 kg-cm
  • 17. Circuit / Obstacle Avoidance Robot Schematic
  • 19. Source Code </> / Move Forward Function
  • 20. Source Code </> / Move Backward Function
  • 21. Source Code </> / Turn Right Function
  • 22. Source Code </> / Turn Left Function
  • 23. Source Code </> / Move Stop Function Distance Calculator Function
  • 24. Source Code </> / Look Right Function Look Left Function
  • 25. Source Code </> / Pin Declaration
  • 26. Source Code </> / Arduino Setup Code
  • 27. Source Code </> / Arduino Loop Code
  • 28. Scope
  • 29. Scope / Further Improvements and Future Scope 1. Adding a Camera • If interfaced with a camera, robot can be driven beyond line of sight • Range becomes practically unlimited as network have a large range 2. Use as a fire fighter robot • Addition of temperature sensor, water tank required • Required some changes in programming • It can work as an autonomous fire extinguisher 3. Obstacle detection for a Mining Vehicle 4. Driverless vehicles running along beams 5. Obstacle detecting system for a motor vehicle 6. Autonomous cleaning robot