Biometric Lock Help!!

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Kairouz
 
Posts: 28
Joined: Wed Sep 11, 2013 4:05 am

Re: Biometric Lock Help!!

Post by Kairouz »

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

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Biometric Lock Help!!

Post by adafruit_support_bill »

Check the wiring of your keypad.

Kairouz
 
Posts: 28
Joined: Wed Sep 11, 2013 4:05 am

Re: Biometric Lock Help!!

Post by Kairouz »

All wiring is correct

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Biometric Lock Help!!

Post by adafruit_support_bill »

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: Select all

// Define your password key sequence here
char* secretCode = "1423";

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”