ESP32-based parking system with license plate recognition. The system is connected in real time to the AdafruitIO IoT platform via MQTT and uses the Plate Recognizer platform to perform OCR on license plates. The system is divided into two separate circuits: one responsible for card reading and opening the barrier, and the other exclusively for capturing license plate images.
For the firmware to work and properly utilize the board's available resources, apply these settings in the Arduino IDE or your preferred IDE. Failure to use these settings will result in the firmware malfunctioning.
- Reads the card and checks if it has a valid ID in the system. If authorized, a blue LED will light up and a gate represented by a servo motor will open. If the card is declined 3 times, an alarm will sound and a red LED will flash.
- When the car approaches the space, an infrared sensor will detect its presence and start a counter. If x amount of time passes, an image will be captured and sent to the Plate Recognizer platform.
- The data collected by the sensors and camera will be sent in real time via MQTT to the AdafruitIO platform
| Compenent | Component Pin | ESP32 Pin |
|---|---|---|
| RFID-RC522 | SDA | GPIO05 |
| RFID-RC522 | SCK | GPIO18 |
| RFID-RC522 | MOSI | GPIO23 |
| RFID-RC522 | MISO | GPIO19 |
| RFID-RC522 | RST | GPIO27 |
| RFID-RC522 | VCC | 3.3V |
| LCD 16x2 (I2C) | SDA | GPIO21 |
| LCD 16x2 (I2C) | SCL | GPIO22 |
| LCD 16x2 (I2C) | VCC | 5V |
| Servo | SCL | GPIO13 |
| Servo | VCC | 5V |
| Buzzer | + | GPIO26 |
| LED (Blue) | + | GPIO12 |
| LED (Red) | + | GPIO14 |
| Compenent | Component Pin | ESP32 Pin |
|---|---|---|
| OV2640 | XCLK | GPIO15 |
| OV2640 | SIOD | GPIO04 |
| OV2640 | SIOC | GPIO05 |
| OV2640 | Y9 | GPIO16 |
| OV2640 | Y8 | GPIO17 |
| OV2640 | Y7 | GPIO18 |
| OV2640 | Y6 | GPIO12 |
| OV2640 | Y5 | GPIO10 |
| OV2640 | Y4 | GPIO08 |
| OV2640 | Y3 | GPIO09 |
| OV2640 | Y2 | GPIO11 |
| OV2640 | VSYNC | GPIO06 |
| OV2640 | HREF | GPIO07 |
| OV2640 | PCLK | GPIO13 |
| IR-Sensor | OUT | GPIO40 |
| IR-Sensor | VCC | 5V |


