Course: Instrumentation and Measurement
Institution: Amirkabir University of Technology (Tehran Polytechnic) — Department of Electrical Engineering
| Member Name | GitHub Profile |
|---|---|
| Mahbod BemaniCham | @Mahbodbe |
| Erfan Ashkesh | @THEEA8 |
| Mani Mohammadi | @loManiol |
The Smart Parking DAQ System is an end-to-end IoT and Instrumentation solution engineered for automated multi-story parking structures. It seamlessly integrates multi-sensor physical data acquisition (RFID, Ultrasonic, Hall Effect, Temperature/Humidity, IR Break-beam), continuous-time closed-loop barrier gate control via a PID-tuned servo motor, automated two-factor vehicle authentication (ANPR + RFID), and real-time telemetry streaming over a central Python web dashboard and a Telegram notification bot.
- Two-Factor Vehicle Authentication: High-security dual-layer verification combining an RC522 13.56MHz RFID card UID check with an ANPR Camera system (license plate validation & vehicle color matching).
- Automated Nearest-Slot Allocation: Real-time database query executing an optimized algorithm to prioritize the closest vacant parking slot sorted dynamically by floor level:
-
Multi-Layer Hardware Redundancy:
- Dual Occupancy Sensing: Cross-verification via HC-SR04 Ultrasonic Distance Sensors and A3144 Hall Effect Sensors.
- Dual Power Supply: Seamless hardware switchover between the main AC Grid and an Online UPS Battery backup.
- Dual Data Persistence: Centralized SQLite/PostgreSQL cloud sync backed up by local ESP32 EEPROM/SD Card buffering to prevent data loss during network outages.
-
Closed-Loop Servo Gate Control: Precise PID-driven barrier arm positioning (
$%OS < 5%$ ,$T_s < 0.32\text{s}$ ) paired with an active anti-pinch IR break-beam threshold safety trigger. - Interactive Web GUI & Telemetry Dashboard: Live KPI tracking cards, a 60-slot visual grid layout, real-time Chart.js environmental telemetry updates, and live access logging.
- Proteus Hardware Co-Simulation: Full-scale structural hardware simulation inside Proteus interconnected with the physical ESP32 MCU via a COMPIM virtual serial bridge.
[!CRITICAL] Wi-Fi & Server Credentials Configuration
Before flashing the microcontroller firmware located inside thearduinocode/orrc522sevorgbwifi/directories, you MUST update your local network configurations and Central Python Server IP address inside the primary source code file (.ino/.cpp):// Replace these placeholders with your actual network parameters: const char* ssid = "YOUR_WIFI_SSID"; const char* password = "YOUR_WIFI_PASSWORD"; const char* serverUrl = "http://YOUR_SERVER_IP:8000/api/gate/";
smart-parking/
├── arduinocode/ # ESP32 Main Firmware (Sensors, Servo, LCD, Wi-Fi Drivers)
├── rc522sevorgbwifi/ # Isolated Hardware Test Modules (RFID & RGB LED)
├── proteus-simulation/ # Proteus Hardware Co-Simulation Schematic Files (.pdsprj)
└── report/ # Technical Engineering Documentation & Assets
├── dashboard-kpi-occupancy-telemetry.jpg
├── dashboard-live-access-logs.jpg
├── instr-parking-final-report.pdf # Full Comprehensive Technical Report (Persian)
└── instr-parking-final-report-en.pdf # Full Comprehensive Technical Report (English)
For detailed mathematical modeling, PID loop transfer functions, signal conditioning circuit schematics (including 10kΩ pull-up calculations), and system security topologies, please consult the complete PDF reports located inside the report/ directory.

