Obstacle-Avoidance Rover
Hardware ultrasonic and differential-drive autonomous rover built for real-time reactive obstacle detection and collision-free indoor navigation.
Real-time ultrasonic obstacle detection & differential-drive avoidance on physical hardware
- Arduino / Embedded C
- HC-SR04 Ultrasonic
- L298N Motor Driver
- Differential Drive

Problem
Getting a low-cost wheeled rover to detect and steer around indoor obstacles in real time without pre-mapped coordinates.
Approach
Wired an Arduino chassis with a front HC-SR04 ultrasonic sensor and an L298N dual H-bridge motor driver for continuous distance polling and differential-drive turn-and-clear maneuvers.
Results
Completed collision-free indoor floor runs across cluttered obstacle layouts on the physical prototype.
What Went Wrong
Angled walls and table legs caused specular echo dropouts on the HC-SR04, producing sudden false readings before median filtering was added.
What I Learned
A 3-tap median filter on ultrasonic pulse timings removes single-ping echo glitches without slowing down reactive steering.
LIVE 2D KINEMATICS // SENSOR-CONE SIMULATOR
Differential-Drive & Reactive Sensor Loop
HC-SR04 front ultrasonic cone with 3-tap median filter steers around obstacles before reaching the 0.35 m hard-stop threshold.
Photo Gallery // 2 Assets
Links & Artifacts
Code / artifacts being prepared for release.