Robotics Projects
Obstacle-Avoiding Robot Car
A two-wheel robot that drives forward and turns away from obstacles.

Overview
An ultrasonic sensor on a servo scans ahead. Closer than a set distance, the robot stops, looks left and right and turns to the clearer side.
Build Steps
Assemble the chassis
Mount the motors, wheels and caster, and fix the battery holder underneath.
Wire the driver
Connect motors to the L298N, battery to its supply and logic pins to the UNO. Share ground.
Mount the scanner
Fix the HC-SR04 to the servo horn and wire the servo to a PWM pin.
Write the avoid logic
Drive forward until close, stop, scan both ways, then turn toward the larger distance.