Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Smart City – Smart Parking System (ESP32 + HC-SR04 + Blynk)

Real-Time Parking Monitoring Using ESP32, Ultrasonic Sensors and Blynk IoT Platform

Platform: ESP32 Framework: Arduino Cloud: Blynk Sensor: HC-SR04 License: MIT

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.


🚀 Key Features

  • 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.


🎯 Problem Statement

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.


🛠️ Hardware Requirements & Wiring

Components

  1. ESP32 Development Board
  2. HC-SR04 Ultrasonic Sensors (2)
  3. Green LEDs (2)
  4. Red LEDs (2)
  5. 220Ω Resistors
  6. Breadboard
  7. Jumper Wires
  8. USB Cable
  9. Mobile Device with Blynk App

Pin Mapping

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

🏗️ System Architecture

Vehicle ↓ HC-SR04 Ultrasonic Sensor ↓ ESP32 Controller ↓ WiFi Network ↓ Blynk Cloud ↓ Mobile Dashboard


⚙️ Working Principle

  1. Ultrasonic sensors continuously monitor parking slots.
  2. Vehicle presence is detected based on distance measurement.
  3. If distance is less than 10 cm, the slot is marked Occupied.
  4. If distance is greater than or equal to 10 cm, the slot is marked Available.
  5. LED indicators update slot status.
  6. ESP32 sends parking data to Blynk Cloud.
  7. Mobile dashboard displays slot occupancy and available parking count.

📊 Parking Detection Logic

Distance Reading Slot Status Green LED Red LED
< 10 cm Occupied OFF ON
≥ 10 cm Available ON OFF

Blynk Datastreams

Virtual Pin Description
V0 Slot 1 Status
V1 Slot 2 Status
V2 Available Slots Count

🌍 Applications

  • Smart City Parking Management
  • Shopping Malls
  • Hospitals
  • Airports
  • Educational Institutions
  • Office Complexes
  • Public Parking Areas

📸 Project Demonstration

🏗️ Complete Smart Parking System Design and Implementation

image

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

Screenshot 2026-06-22 222739

System architecture of the Smart Parking System showing vehicle detection, sensor processing, cloud communication, and mobile dashboard monitoring.

📸 Smart Parking System Prototype and Live Blynk Dashboard

image

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.

📈 Results

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.


⚠️ Hardware Note

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.


🔮 Future Enhancements

  • 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.

📄 License

This project is licensed under the MIT License.


Made with ❤️ by Baire Gowda | Chanakya University | MCA 2025–27

About

A Smart City IoT project that detects vehicle occupancy using ultrasonic sensors, displays parking availability through LED indicators, and provides real-time remote monitoring via the Blynk IoT platform.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages