This project implements a Smart Parking System using an ESP8266 microcontroller, infrared sensors, and servos. It allows monitoring parking spaces, controlling entry and exit gates, and communicating status updates via WebSocket.
- ESP8266 microcontroller
- Infrared sensors
- Servos
- Power supply
- Gates (for entry and exit)
Servo.h
: Arduino Servo library for controlling servos.ESP8266WiFi.h
: ESP8266WiFi library for connecting to WiFi networks.WebSocketsServer.h
: WebSocketsServer library for WebSocket communication.
- Connect the hardware components as per the provided schematic.
- Upload the provided code to the ESP8266 microcontroller.
- Ensure the infrared sensors are appropriately positioned to detect vehicle presence.
- Adjust the gate servo positions if necessary for proper opening and closing.
- Set the WiFi network credentials in the code:
const char *ssid = "Smart Parking"; const char *pass = "m123456789";
- Ensure correct pin assignments for IR sensors, servos, and gate control pins.
- The system monitors parking spaces and gate entrances/exits continuously.
- WebSocket communication allows real-time updates on parking space occupancy and gate status.
- The system automatically opens gates upon vehicle detection and closes them after a delay.
- A companion Flutter application is available for monitoring and controlling the Smart Parking System.
- Repository link: Smart Parking App
- See the Smart Parking System in action: Demo Video
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.