0% found this document useful (0 votes)
480 views1 page

Password Based Door Lock System Algorithm

The algorithm describes a password-based door lock system using a microcontroller. It initializes the LCD display and keypad ports, prompts the user to enter a 5-digit password which is masked on the display, compares the entered password to the stored password, unlocks the door by setting a pin high if correct, or displays an error message if incorrect, then prompts for the password again after a delay.

Uploaded by

Sisay AD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
480 views1 page

Password Based Door Lock System Algorithm

The algorithm describes a password-based door lock system using a microcontroller. It initializes the LCD display and keypad ports, prompts the user to enter a 5-digit password which is masked on the display, compares the entered password to the stored password, unlocks the door by setting a pin high if correct, or displays an error message if incorrect, then prompts for the password again after a delay.

Uploaded by

Sisay AD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Password Based Door Lock System Algorithm:

1. Initially declare the PORT1 to LCD data pins and control pins to P3.5, P3.6 and P3.7 and
declare PORT2 to keypad. And use P3.0 to Door motor.
2. Initially display enter password on LCD.
3. Now read the five digit password from the user, while reading each digit from the keypad
display * symbol on LCD.
4. Compare the entered password with stored password.
5. If password is correct then make P3.0 pin high for some time to open the door. After that
display Door is opened on LCD.
6. If the password is wrong then display pwd is wrong on LCD.
7. After some delay again ask to enter password.

You might also like