This project involves modifying an RFID reader Product
and implementing a door lock control system using ESP32. The goal is to have full control over the device, enabling it to connect to a backend server for RFID validation and monitoring user activities on installed doors.
- RFID Validation: The modified RFID reader
Product
can request access validation from a backend server. - Door Control: The ESP32-based door lock can react to incoming backend responses, allowing for secure door control.
- User Activity Tracking: The system logs and tracks user activities on the installed doors.
- RFID Reader
Product
- ESP32 microcontroller
- Arduino for coding
// pin configuration
#define RESET 26 // reset button
#define LEDS 25 // front leds
#define SWITCH 27 // relay for door lock
#define BUZZER 14 // buzzer for sound reactions
#define WD0 33 // data_0 for Weigand
#define WD1 32 // data_1 for Weigand
-
Clone the repository:
git clone https://github.com/Mboukhal/DOOR_LOCK_FULL_ESP32_HACK.git
-
Install necessary libraries:
Wiegand:
cd arduino/libraries git clone https://github.com/monkeyboard/Wiegand-Protocol-Library-for-Arduino.git Wiegand
ArduinoJson:
- Sketch > Include Library > Manage Libraries...
-
Upload the code to your ESP32.
- Access the web interface using the following credentials:
- WiFi AP:
1337-DOORLOCK-CONFIG
- Password:
+@@1337@@+
- IP:
192.168.13.37
- WiFi AP:
- Use the web interface to configure the device.
- Ensure the RFID reader
Product
and ESP32 are properly connected. - Power on the system.
- Access the web interface using the provided WiFi AP, password, and IP.
- Configure the device with the desired backend endpoint and default code.
- Users with valid RFID cards will have access granted, and their activities will be logged.
- The device can be reset to default configuration using the original reset button.
- Buzzer, front light, and relay door lock are all controlled in the modified version.
Feel free to contribute to the project by opening issues or submitting pull requests.
This project is licensed under the MIT License.