An IoT-enabled Smart Parking System built using the ESP32 microcontroller. The system uses HC-SR04 ultrasonic sensors to detect vehicle occupancy in parking slots, controls LED indicators to display slot availability, and updates parking status in real time on a Blynk IoT dashboard through WiFi connectivity.
-
Real-time parking slot occupancy detection using ultrasonic sensors.
-
Smart LED indication system:
- 🟢 Green LED → Parking Slot Available
- 🔴 Red LED → Parking Slot Occupied
-
Live parking status monitoring through Blynk IoT dashboard.
-
Displays total available parking slots in real time.
-
Cost-effective Smart City parking solution.
-
Secure credential management using separate configuration files.
Finding vacant parking spaces in shopping malls, hospitals, airports, and public parking areas is time-consuming and leads to traffic congestion and fuel wastage.
This project provides a Smart Parking System that automatically detects vehicle presence and displays parking availability through an IoT-enabled mobile dashboard.
- ESP32 Development Board
- HC-SR04 Ultrasonic Sensors (2)
- Green LEDs (2)
- Red LEDs (2)
- 220Ω Resistors
- Breadboard
- Jumper Wires
- USB Cable
- Mobile Device with Blynk App
| Component | ESP32 GPIO Pin | Description |
|---|---|---|
| HC-SR04 Slot 1 – TRIG | GPIO 5 | Trigger Signal |
| HC-SR04 Slot 1 – ECHO | GPIO 18 | Echo Signal |
| HC-SR04 Slot 2 – TRIG | GPIO 19 | Trigger Signal |
| HC-SR04 Slot 2 – ECHO | GPIO 21 | Echo Signal |
| Green LED Slot 1 | GPIO 22 | Available Indicator |
| Red LED Slot 1 | GPIO 23 | Occupied Indicator |
| Green LED Slot 2 | GPIO 25 | Available Indicator |
| Red LED Slot 2 | GPIO 26 | Occupied Indicator |
Vehicle ↓ HC-SR04 Ultrasonic Sensor ↓ ESP32 Controller ↓ WiFi Network ↓ Blynk Cloud ↓ Mobile Dashboard
- Ultrasonic sensors continuously monitor parking slots.
- Vehicle presence is detected based on distance measurement.
- If distance is less than 10 cm, the slot is marked Occupied.
- If distance is greater than or equal to 10 cm, the slot is marked Available.
- LED indicators update slot status.
- ESP32 sends parking data to Blynk Cloud.
- Mobile dashboard displays slot occupancy and available parking count.
| Distance Reading | Slot Status | Green LED | Red LED |
|---|---|---|---|
| < 10 cm | Occupied | OFF | ON |
| ≥ 10 cm | Available | ON | OFF |
| Virtual Pin | Description |
|---|---|
| V0 | Slot 1 Status |
| V1 | Slot 2 Status |
| V2 | Available Slots Count |
- Smart City Parking Management
- Shopping Malls
- Hospitals
- Airports
- Educational Institutions
- Office Complexes
- Public Parking Areas
Comprehensive overview of the Smart Parking System showing hardware requirements, software requirements, ultrasonic sensor integration, ESP32 connection diagram, parking slot prototype, LED status indicators, and real-time monitoring through the Blynk IoT dashboard.
System architecture of the Smart Parking System showing vehicle detection, sensor processing, cloud communication, and mobile dashboard monitoring.
Real-time demonstration of the Smart Parking System showing vehicle detection, LED slot indicators, ultrasonic sensors, and live parking status monitoring through the Blynk IoT dashboard.
The Smart Parking System successfully detects vehicle presence using ultrasonic sensors and updates parking slot availability in real time through the Blynk IoT platform. LED indicators provide visual feedback while the mobile dashboard enables remote monitoring of parking occupancy.
The HC-SR04 sensor operates at 5V logic levels. For long-term reliability, a voltage divider is recommended between the HC-SR04 ECHO pin and ESP32 GPIO input pins.
- Expand to multiple parking slots.
- Add OLED display for local monitoring.
- Implement automatic parking gate control.
- Integrate AI-based vehicle recognition.
- Enable online slot reservation.
- Store parking history using cloud databases.
This project is licensed under the MIT License.
Made with ❤️ by Baire Gowda | Chanakya University | MCA 2025–27