AR-119IntermediatePremium
Arduino Smart Car Park (2x HC-SR04 + Servo Barrier + I2C LCD)
The barrier rises when a car arrives and stays down when the car park is full! An HC-SR04 at the entry and one at the exit detect cars, an SG90 servo lifts the barrier arm smoothly and an I2C LCD shows the free spaces and a fill bar. When it is full, the red LED lights, and a barrier that sees a car under it while lowering goes back up. The counter is kept in EEPROM; perfect for a smart city school project.
0.0(0)

The favourite part of any smart city school project: the barrier rises when a car arrives and stays down when the car park is full. A distance sensor at the entry and one at the exit count the cars, a servo motor lifts the barrier arm smoothly and the screen shows the empty spaces and a fill bar. If the barrier sees a car under it while lowering, it goes back up, and the count survives a power cut.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
