Hi,
I'm a complete newbie to arduino and so sorry if there is a obvious answer.
I am about to build a dresser and want to have the drawers motorized so when i impute a code example 1234#1 it opens the first drawer 1234#2 it opens the second drawer etc. etc.
I have found a keypad lock tutorial on youtube How to Make a Keypad Lock With an Arduino - YouTube so i was wondering if there is a simple way to modify the code to my needs.
I only questioned the password because typing a password is tedious.
I suspect there are dozens of ways to approach this problem.
One option might be to use the first character to identify the drawer (so, 1,2,3 or 4) and the remaining characters to represent the password.
Then you could store the first character in a drawerNum variable before comparing the next 3 to the password as at present. That should require very little change to the existing code.
Before posting more code please use the AutoFormat option to lay it out clearly.