-
State 1 : Running the system for the first time
-
State 2 : Main Options
-
State 3 : Change Password
- Enter the password
- If the entered password is matched with the one saved in EEPROM, State 1 will be in action
- If not matched , State 3 will be repeated
- In case entering a wrong password 5 times then State 5 will be in action .
-
State 4 : Open Door
- Enter the password
- If the entered password is matched with the one saved in EEPROM : Motor will be rotated Clockwise for 15 seconds ( Door is opening ) then Anti-Clockwise ( Door is closing ) for the same amount of time
- In case entering a wrong password 5 times then State 5 will be in action .
-
State 5 : Password mismatch
- Lock the system for 1.5 minutes