Skip to content

A **Smart Parking System** that uses an **ESP32** and **IR sensors** to monitor parking slot occupancy in real-time. The system displays available slots on a screen at the entrance and controls the gate, preventing entry when the lot is full. Users can also check availability online through a web interface.

Notifications You must be signed in to change notification settings

saichaitanya-c/smart-parking-system_iot-Based

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

smart-parking-system_iot-Based

Description The Smart Parking System is an IoT-based solution developed using ESP32 and IR sensors to optimize the management of parking spaces. The system allows real-time monitoring of parking slot availability both locally and online, providing users with up-to-date information before entering a parking area. The system automates gate control based on parking slot occupancy and displays available spaces on an entrance display.

This project features a combination of Arduino-based programming for the ESP32 module and a simple web interface for online monitoring. It aims to make parking management more efficient, reducing congestion and saving users time by avoiding fully occupied parking lots.

Key Features Real-time Parking Slot Monitoring: IR sensors in each parking slot detect the presence of vehicles. This data is processed by the ESP32 and used to monitor slot availability. Automated Gate Control: The entrance gate will automatically open or close depending on the availability of parking spaces. If the lot is full, the gate will remain closed. Display at Entrance: A display at the parking entrance shows the number of available slots in real-time, helping users quickly determine if parking is available. Online Monitoring: Users can check parking availability through an online platform. The web interface updates in real-time and can be accessed via a browser.

WiFi-Enabled ESP32 Module: The ESP32 module connects to a local WiFi network, allowing the system to communicate with the web server and display real-time data both locally and online.

System Components

  1. ESP32 Module: Central controller responsible for processing data from the IR sensors and controlling the entrance gate. It also serves as the communication bridge between the sensors and the web server.
  2. IR Sensors: Each parking slot is equipped with an IR sensor to detect whether the slot is occupied or free.
  3. Entrance Gate Control: Automatically controlled by the ESP32 based on slot availability. If no slots are available, the gate remains closed to prevent entry.
  4. Display Panel: Positioned at the entrance, this panel shows the current number of available parking slots.
  5. Web Interface: An online dashboard that allows users to remotely check the parking lot's status in real-time.

Hardware Requirements

  • ESP32 Development Board: Acts as the central controller.
  • IR Sensors: One sensor per parking slot.
  • Entrance Gate Mechanism: A simple servo or motor mechanism controlled by ESP32 to open and close the gate.
  • WiFi Connection: For ESP32 to connect to the web server and enable online monitoring.

Software Requirements

  • Arduino IDE: To upload the code to the ESP32 module.
  • ESPAsyncWebServer Library: For handling HTTP requests.
  • HTML, CSS, and JavaScript: For the web interface to display parking information online.

How It Works

  1. Slot Detection: Each IR sensor continuously monitors the parking slot. When a vehicle enters or exits a slot, the sensor detects this change.
  2. Data Processing: The ESP32 gathers data from all the IR sensors, updates the count of available parking slots, and sends this data to the display at the entrance and the online monitoring system.
  3. Entrance Gate Automation: Based on slot availability, the ESP32 controls the entrance gate. If parking is full, the gate will not open.
  4. Online Monitoring: The ESP32 hosts a simple web server that allows users to view real-time parking slot availability from any device connected to the internet.

Project Structure

  • Arduino Code: Manages sensor data and gate control.
  • Web Interface: Displays the available parking slots online, with updates every few seconds.
  • Circuit Diagrams: Guides for wiring the IR sensors and ESP32 module.

##How to Use: Connect the ESP32 to Your WiFi:

Replace your-ssid and your-password in the code with your actual WiFi credentials. IR Sensors Setup:

Connect your IR sensors to the defined GPIO pins (e.g., GPIO 2, 3, 4, 5, and 6 in this example). Modify the irSensors array to match the actual pin connections for your IR sensors. Gate Control:

The GATE_PIN (GPIO 12 in this case) controls the gate. You can connect a servo, motor, or any mechanism to this pin. When the parking lot is full (i.e., no slots available), the gate will remain closed (LOW). When there are available slots, the gate will open (HIGH). Web Interface:

The ESP32 runs a simple web server that shows the number of available parking slots. To access the webpage: Once the ESP32 is connected to WiFi, check the Serial Monitor for the IP address of the ESP32 (it will be displayed as IP Address: xxx.xxx.xxx.xxx). Enter this IP address in the browser of any device connected to the same network (e.g., http://192.168.x.x). You’ll see a simple web page showing the number of available slots.

About

A **Smart Parking System** that uses an **ESP32** and **IR sensors** to monitor parking slot occupancy in real-time. The system displays available slots on a screen at the entrance and controls the gate, preventing entry when the lot is full. Users can also check availability online through a web interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages