security system for a bank consists of:
- LCD (4-bit mode)
- Keypad
- buzzer
-Leds
at first, a welcome message will be appeared on LCD, and then you will be asked to enter password
you will enter the password via keypad, and every time you press a button on keypad it will appear on LCD
=> if password is correct a message will appear on LCD, and a green led will turn on.
==> else (password not correct), you have 3 chances to enter the password
-- if you entered the password wrong 3 times A bomb will explode (the buzzer will make a sound and a red led will blink)
when you press a button on keypad it will appear as (*) on LCD
when you enter password 3 times wrong, a 7-seg will count down from 9 to 0 before explosion