The Accident Avoiding Car is an innovative project designed to enhance road safety through autonomous obstacle detection and avoidance. Using advanced sensor technology, this system can detect obstacles in real-time and take preventive actions to avoid collisions.
This project uses an Arduino UNO microcontroller combined with an ultrasonic sensor to measure the distance to obstacles. When an object is detected within 20cm, the system automatically stops the car by activating a relay module that controls the motors.
Powered by Arduino UNO for reliable control
Real-time obstacle distance measurement
Automatic stop when obstacle detected
All the components needed to build this project
Description: The main microcontroller board that runs the code and controls all other components. It processes sensor data and controls the relay.
Specifications:
Description: Measures distance to obstacles using ultrasonic sound waves. Sends and receives signals to calculate distance accurately.
Specifications:
Description: High-torque DC motors that drive the car wheels. Provides sufficient power for movement and can be controlled via the relay.
Specifications:
Description: Durable plastic or rubber wheels that attach to the gear motors. Provides smooth movement and traction.
Specifications:
Description: An electronically controlled switch that controls the motor power. Active LOW relay - HIGH signal stops the car, LOW signal allows movement.
Specifications:
Description: Male-to-male, male-to-female, and female-to-female wires for making connections between components.
Specifications:
Description: ON/OFF toggle switch to control the main power supply to the entire circuit.
Specifications:
Description: Portable power source - one for Arduino and one for motors. Provides independent power supply for stable operation.
Specifications:
Upload this code to your Arduino UNO using the Arduino IDE
Pin 13 (Trigger) and Pin 12 (Echo) for ultrasonic sensor. Pin 7 controls the relay module.
Sends ultrasonic pulse and measures echo time. Converts time to distance in centimeters.
If obstacle detected within 20cm, relay turns HIGH (stops car). Otherwise, relay stays LOW (car moves).
This relay works in reverse - LOW = Motors ON (moving), HIGH = Motors OFF (stopped).
Scan this QR code to open the website on your mobile device
accident-avoiding-car.netlify.app