This is a password-based door locking system based on two ATMega32 Microcontrollers.
The HMI is the first ECU interfacing with LCD and Keypad for the end user to enter the password. The other one is the Controller used to store the data in an external EEPROM, control the DC motor to open the door and the buzzer used to fire the alarm if unauthorized user tries to open the door.
The user will be prompted to enter a password and confirm it using the keypad.
If the passwords match, the password will be transmitted to the controller ECU to be saved in the external EEPROM and a friendly message will be displayed on the LCD to confirm that the password is successfully saved. Otherwise, a message will be displayed to inform the user that the passwords mismatch and the whole process will be repeated again.
The user will be prompted to enter his password using the keypad.
If the password is correct, the supported operations menu will be displayed to the user on the LCD to choose the action he wants to perform, he could either request to open the door or change the password.
However, if the password is incorrect the user can enter the password maximum of 3 times then the system will freeze and trigger the alarm.
If the controller ECU (actuator) receives a signal to open the door, it will rotate the motor in clockwise direction opening the door, wait for few minutes then close the door again.
If the user chooses to change the password, he will be prompted to enter a password and confirm it using the keypad. then it will be sent to the controller to store it instead of the old one.
- LCD
- Keypad
- DIO
- UART
- DC Motor
- External EEPROM
- Buzzer
- DIO
- I2C
- UART
- Timer1