An arduino robot that uses ultrasonic sensor to avoid obstacles.
This project describes the construction process of a UGV (Unmanned Ground Vehicle) using Arduino, which moves autonomously by avoiding obstacles. As detailed below, we used an Arduino Uno to implement the logic, DC motors for movement and an Ultrasonic sensor combined with a servo motor to detect obstacles.
The UGV architecture is based on an Arduino Uno R4 WiFi board connected to an Ultrasonic sensor and a servo motor to detect obstacles and their distance. We have connected 4 DC motors to 2 L293D motor drivers, using an external battery to power the motors.
Arduino Uno R4 WiFi: Features an ARM Cortex M4 microprocessor. It uses digital pins for logic and a 5V power output for the sensor and servo. It is powered by a 9V battery via the barrel jack, which the board regulates down to 5V.
Ultrasonic HC-SR04: Operates like sonar, emitting high-frequency sound that reflects off surfaces. By measuring the return time and knowing the speed of sound, it calculates distance.
L293D Motor Driver: An integrated circuit that allows the Arduino to control up to 2 DC motors (per chip), as the Arduino cannot provide enough current directly. It operates between 4.5V and 36V.
MG996R Servo Motor: Used to rotate the ultrasonic sensor left and right to scan for paths when an obstacle is detected ahead.
N20 Micro Metal Gear Motor: Four 6V DC motors with internal metal gearboxes are used for high torque and durability, reaching speeds of 300 RPM.





