Parking Assistant
Parking in a dark garage or driveway can be difficult, especially when it is hard to judge the distance between a vehicle and an obstacle. This project is a Smart Parking Assistant that uses an ultrasonic distance sensor, an LDR light sensor, an RGB LED, a buzzer, and a 555 timer circuit to help a driver park safely.
The system only activates when it is dark. As the vehicle approaches an obstacle, the RGB LED changes colour and the warning buzzer becomes more frequent. This provides both visual and audio feedback to help the driver park accurately and safely.
Supplies
- Arduino Uno
- Ultrasonic Sensor
- Light Dependent Resistor
- RGB LED (Common Anode)
- NE555 Timer IC
- Buzzer
- 10kΩ Resistor
- 1kΩ Resistor
- 220Ω Resistors
- 10µF Capacitor
- Breadboard
Circuit Assembly
Ultrasonic Sensor
The HC-SR04 sensor measures the distance between the parking assistant and an obstacle.
Connections:
- VCC → 5V
- GND → GND
- TRIG → Arduino Pin 9
- ECHO → Arduino Pin 10
LDR Voltage Divider
The LDR allows the parking assistant to operate only in darkness.
Connections:
- One LDR leg → 5V
- Other LDR leg → A0
- 10kΩ resistor from A0 to GND
RGB LED
The RGB LED provides visual distance feedback.
Connections:
- Common Anode → 5V
- Red → Arduino Pin 3 through 220Ω resistor
- Green → Arduino Pin 5 through 220Ω resistor
- Blue → Arduino Pin 6 through 220Ω resistor
555 Timer Circuit
The 555 timer is configured as an astable multivibrator.
Connections:
- Power → 5V
- Ground → GND
- Reset → Arduino Pin 7
- Trigger connected to Threshold
- 1kΩ resistor from 5V to Discharge
- 10kΩ resistor from Discharge to Trigger/Threshold
- Output → Buzzer
Coding
The code reads data from the ultrasonic sensor and the LDR to determine the distance to nearby obstacles and whether it is dark enough for the system to operate.
The program then controls the RGB LED and the 555 timer warning circuit. Depending on the measured distance, the system displays different warning levels using colours and sound alerts.
Here is the file of the code.
Downloads
Conclusion
And just like that you have your very own parking assitant! It uses sensors,programming and digital circuits to help drivers safely park in dark spaces and is now ready to go!