The connection is very simple. Just connect the keypad output pins to any digital pins of the Arduino. However it’s better if the pins are connected in order for example I have used pin 4 to pin 7 for the rows and pin 0 to pin 3 for the columns of the keypad matrix. LCD has also been connected to display the numbers whenever a key is pressed.
Note: In my keypad ( / represent A, x represent B, - represent C, + represent D and = represent # ) in line with what is written in my code
As a user, I should run the code first and copy the path after verifying, then open proteus and paste the path to the Arduino and run it. Then I should enter a password "4-char" using the keypad, then press the '*' key. If it is correct, the yellow led will light. To change the password, I have to press ‘#’. When I do so, it will ask for the current password. If I enter the correct password it will ask for the new one.
- LiquidCrystal
- Keypad
- Proteus 8
- Arduino 1.8.16
- Eng. Ahmed Al-Nahhal
