The flow chart shows the overall process of the prototype from the locked panel door to unlock it (Looped Flow), embedded with two-step authentication, which are Card Scanning and Password Input.
First, when the client need to open the door, he/she will scan the RFID-RC522 with the RFID Tag that can conveniently attached with his/her car key or other key. Alternately, he/she can use RFID Card. When he/she uses a correct card, the system will redirect the user to enter the password. Otherwise, when the card is unknown, the buzzer will be activated for 5 Times (0.2 Second Each) indicate that the card is unknown (return to Scan Card Input after 3 Seconds).
Second, when the user enter the correct password, the door will be unlocked, LED will display "Welcome" and buzzer triggered 1 time (1 Second). It will then return to Scan Card Input after 3 Seconds. Otherwise, when the password is incorrect, the system will send signal to ESP32C3 and ESP32-CAM, take the invador's picture, as well as send WhatsApp notification to the client as an alert. At the same time, the buzzer will be activated for 5 Times (0.2 Second Each) indicate that the password is incorrect (return to Scan Card Input after 3 Seconds).
These are the first layout of our coding that use Keil Cloud Studio Environment (C++ Languange) in Mbed Software.
These codes specifically work on managing LCD, RFID & Keypad. The final code for Layout I is compiled below.
These are the second layout of our coding that use ESP-IDF Environment (C Languange) in VS Code Software.
These codes specifically work on managing Camera & Web Server. The final code for Layout II is compiled below.
These are the third layout of our coding that use ESP-IDF Environment (C Languange) in VS Code Software.
These codes specifically work on managing WhatsApp Notification that alerts the client when someone is trying to invade the house. The final code for Layout III is compiled below.
Panel door is locked.
Client scans RFID-RC522 using RFID tag or RFID card.
System checks if the scanned card is valid.
If card is valid, proceed to Step 5.
If card is invalid:
Activate buzzer for 5 times (0.2 second each).
Wait for 3 seconds.
Return to Step 2.
Prompt user to enter password.
System checks if the entered password is correct.
If password is correct:
Unlock panel door.
Display "Welcome" on LED.
Activate buzzer for 1 second.
Wait for 3 seconds.
Return to Step 2.
If password is incorrect:
Activate buzzer for 5 times (0.2 second each).
Send signal to ESP32C3 and ESP32-CAM to capture image.
Send WhatsApp notification to client.
Wait for 3 seconds.
Return to Step 2.