How To Make DIY Autonomous Obstacle Avoiding Robot Car using Arduino Nano & Ultrasonic Sensor by WTC Zone
Here’s a comprehensive guide for your Obstacle Avoider Car project using an ultrasonic sensor, servo motor, L298N motor driver, Arduino Nano, and other components.
Project Overview
The Obstacle Avoider Car moves forward by default and uses the ultrasonic sensor mounted on a servo motor to scan for obstacles. If it detects an obstacle, the car evaluates the surroundings (left and right) and moves in the direction with more space.
Parts Required
- Arduino Nano x 1
- HC-SR04 Ultrasonic Sensor x 1
- Servo Motor x 1 (for ultrasonic sensor scanning)
- L298N Motor Driver Module x 1
- DC Motors x 2 (connected to wheels)
- Robot Chassis x 1 (with wheels and space for components)
- Battery Pack (7.4V Li-ion or 9V)
- Connecting Wires
- Male-to-Male and Male-to-Female Jumper Wires
- Breadboard (optional, for prototyping)
Circuit Connections
1. Ultrasonic Sensor (HC-SR04)
- VCC → Arduino Nano 5V
- GND → Arduino Nano GND
- Trigger (Trig) → Arduino Nano D9
- Echo → Arduino Nano D8
2. Servo Motor
- Signal → Arduino Nano D10
- VCC → Arduino Nano 5V (or external 5V supply)
- GND → Arduino Nano GND
3. L298N Motor Driver
- IN1 → Arduino Nano D2
- IN2 → Arduino Nano D3
- IN3 → Arduino Nano D4
- IN4 → Arduino Nano D5
- ENA → Connect to 5V (via jumper or PWM pin for speed control)
- ENB → Connect to 5V (via jumper or PWM pin for speed control)
- Motor A (Left Motor) → L298N OUT1, OUT2
- Motor B (Right Motor) → L298N OUT3, OUT4
- Power Input → Battery Pack VCC and GND
4. Power Supply
- Connect the battery pack to the L298N module's power input and ensure common GND between the Arduino and L298N.
Circuit Diagram
Video Link: - Click Here For Video
How To Make DIY Autonomous Obstacle Avoiding Robot Car using Arduino Nano & Ultrasonic Sensor by WTC Zone simple Circuit: -
Arduino IDE Program
Code for DIY Autonomous Obstacle Avoiding Robot Car using Arduino Nano & Ultrasonic Sensor by WTC Zone
-----------------------------------------------------------------------------------------------------------------------------
Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #wtc #Arduino #ideas #projects #diy #how #to #ArduinoProjects #UltrasonicSensor #HeightMeasurement #TechDIY #WeTechCreators #wtczone
0 Comments