0% found this document useful (0 votes)
1K views3 pages

Obstacle Avoiding Robot Car Project

This document outlines the creation of an obstacle-avoiding robot car using Arduino, featuring components like an HC-SR04 ultrasonic sensor and an L298N motor driver. It provides detailed wiring instructions and connections for each component, as well as steps for assembling and testing the robot. The ultrasonic sensor measures distances to obstacles, while the servo motor allows for scanning, and the Arduino processes the data to control movement.

Uploaded by

Monika Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views3 pages

Obstacle Avoiding Robot Car Project

This document outlines the creation of an obstacle-avoiding robot car using Arduino, featuring components like an HC-SR04 ultrasonic sensor and an L298N motor driver. It provides detailed wiring instructions and connections for each component, as well as steps for assembling and testing the robot. The ultrasonic sensor measures distances to obstacles, while the servo motor allows for scanning, and the Arduino processes the data to control movement.

Uploaded by

Monika Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Obstacle Avoiding Robot(CAR) Using

Arduino
Introduction
This project involves creating an obstacle-avoiding robot car using Arduino. The robot uses
an HC-SR04 ultrasonic sensor to detect obstacles and an L298N motor driver to control the
motors. A servo motor is used to rotate the ultrasonic sensor to check for obstacles on the
left and right sides.

Components Required
 1. Arduino Uno
 2. HC-SR04 Ultrasonic Sensor
 3. L298N Motor Driver
 4. Servo Motor
 5. DC Motors
 6. Jumper Wires
 7. Breadboard (optional)
 8. 12V Battery or Power Supply
Wiring Diagram
Refer to the wiring diagram below for connections:

Connections
 HC-SR04 Ultrasonic Sensor

1. VCC to 5V
2. GND to GND
3. TRIG to Digital Pin 11
4. ECHO to Digital Pin 12

 Servo Motor

5. Signal to Digital Pin 3


6. VCC to 5V
7. GND to GND

 L298N Motor Driver

8. IN1 to Digital Pin 9


9. IN2 to Digital Pin 10
10. IN3 to Digital Pin 7
11. IN4 to Digital Pin 8
12. ENA to Digital Pin 6
13. ENB to Digital Pin 5
14. VCC to 12V Power Supply
15. GND to GND

Instructions
16. 1. Connect the components as per the wiring diagram.
17. 2. Upload the code to the Arduino Uno using the Arduino IDE.
18. 3. Power the Arduino Uno and the motor driver using a 12V power supply.
19. 4. Place the robot car in an area with obstacles to test its obstacle-avoiding capabilities.

Explanation
Ultrasonic Sensor: Measures the distance to the nearest obstacle.
Servo Motor: Rotates the ultrasonic sensor to scan left and right.
L298N Motor Driver: Controls the direction and speed of the motors.
Arduino Uno: Processes sensor data and controls the motors and servo.

You might also like