I tried multiple number sequences in the code and none worked. Most frequently the one orginally provided ("1423")
So as soon as i press the number "1" that error message appears
Biometric Lock Help!!
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Biometric Lock Help!!
Check the wiring of your keypad.
-
- Posts: 28
- Joined: Wed Sep 11, 2013 4:05 am
Re: Biometric Lock Help!!
All wiring is correct
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Biometric Lock Help!!
If the wiring is correct and you have not made changes to the original code, then it will work. The keypad library can only return values that are encoded here:
<code>
// Keypad key matrix:
const byte rows = 4;
const byte cols = 3;
char keys[rows][cols] =
{
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
[/code]
As long as your code consists of only those keys, you should be able to enter a valid code:
<code>
// Keypad key matrix:
const byte rows = 4;
const byte cols = 3;
char keys[rows][cols] =
{
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
[/code]
As long as your code consists of only those keys, you should be able to enter a valid code:
Code: Select all
// Define your password key sequence here
char* secretCode = "1423";
Please be positive and constructive with your questions and comments.