COMPONENTS USED
Arduino Nano board, LSD 16*2 display, 4*3 keyboard, FRM 10A scanner, two buttons, RGB LED, low-level relay for controlling the lock.
The device is powered both from the mains and from 18650 batteries when the mains voltage disappears.
LOGIC OF OPERATION AS I SEE IT
A person who wants to enter the room approaches the door and presses a button on the keyboard to exit the waiting mode. The screen lights up and asks the person to enter a 4-digit password while the process of entering the password is displayed on the screen with hidden characters-*. The password confirmation button is -#. The person must enter 4 digits; if the password is incorrect, a message appears on the screen indicating this and a new message about retrying to enter the password. If the password is entered incorrectly 3 times, a message is displayed - access is blocked, and the lock returns to waiting mode. If the password is correct, a message is displayed on the screen indicating this and a new message asking to verify the fingerprint. If the fingerprint is in the database and the password matches, the lock opens for three seconds, and a message about the lock opening is displayed on the screen. If the fingerprint is not found in the database, a message is displayed on the screen - fingerprint not identified, and we give one more attempt to verify the fingerprint. If the fingerprint is found, we open the lock; if not, we display a message on the screen - access is blocked and return the lock to waiting mode and start again from entering the password. Moving on, the person has entered the room; they just need to close the door behind them, and the lock will automatically catch onto the metal arch, meaning no additional actions are needed to close the door. For the person to exit the room, a button inside is needed to simply open the lock. Now about the LED. The red blinks if there is 25% charge left on the batteries. The blue signals entry into the password/fingerprint change menu and stays lit until we complete all actions. The second button opens a menu that is controlled from the keyboard. Menu items: 1. Change password for entry (the password is recorded in EPROM) 2. Add fingerprint by ID. 3. Delete fingerprint. 4. Exit the menu.
I have already done some work on this project but have hit a dead end. I provide photos and can provide the pinout of the elements, power scheme, and detail the logic during the discussion.