Page 1 of 1

Creating electronic lock

Posted: Mon May 23, 2011 5:57 pm
by tompzone
hi i am trying to create a electronic lock, using a keypad, using 3 numbers (170 by the way), but i am not able to "memorize" each pulse and it's value, and i dont know how to make the comparison so it can accept or reject the password, (i am using 2 leds as outputs)

Re: Creating electronic lock

Posted: Mon May 23, 2011 7:06 pm
by medelec35
Here is a four digit version:
http://www.matrixmultimedia.com/mmforum ... 253#p19233

It can be adapted for 3 digits, instead of four.
Have a go at altering it, as that's the best way to learn.
Someone will help you when you get stuck.

Martin

Re: Creating electronic lock

Posted: Tue May 24, 2011 9:29 am
by DavidA
Hello,

Sean also did an article on an electronic door lock with a MIAC. It may be of some use to you.

http://www.matrixmultimedia.com/article.php?a=53

Re: Creating electronic lock

Posted: Tue May 31, 2011 8:05 am
by tompzone
thanks alot!

Re: Creating electronic lock

Posted: Thu Jun 30, 2011 3:29 am
by SkeeterB11
I created an electronic lock that uses 3 digits. It's got a simple bit where it reads the code stored in the EEPROM of the uC and compares it to the one you just entered. If the code is correct, you get the door unlocked , a green LED illuminated, and a prompt to enter quickly before it returns to its previous state. It's also got a remote open function where it unlocks if the pushbutton is depressed. It also clears the variables in order to increase the security of the lock.