3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Hardware-Based Keypad Lock

Hardware-Based Keypad Lock
    Here is a six-digit keypad lock I made that is completely implemented in hardware (no programming). If you like this project please vote for it in the Epilog Challenge.
Theory of operation:
     You set the code with the headers you see at the bottom left of the board in the picture. If you hit a wrong button, the part of the code you have entered correct so far will be reset. If you mess up a certain amount of times the keypad will lock and can only be unlocked by pressing the button you see at the bottom right corner of the large board. The count of how many times the code has been entered incorrectly is reset once you enter the correct code. Each time you press the correct button the corresponding red LED will light.
Things I would like to improve:
    The only thing I would like to change about this lock is to make it so that you can't enter the code in any order. For example, as the circuit is now, if the code was 2, 1 you could also enter it as 1, 2.
Further Notes:
   I had to substitute some components that I did not have for others. For example, instead of an AND gate, I used a NAND gate in conjunction with a NOT gate at its output.

 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts/Tools List

Parts:
(3) 74HC74
(1) CD4017
(2) Triple three input NAND gate ICs + (1) 74HC04 hex inverter OR (2) triple three input AND gates such as the 74HC11
(1) 74HC04 hex inverter
(1) 74HC30 8-input NAND gate
(2) CD4077 quad 2 input XNOR gate
(6) 555 timers
(6) 100μF electrolytic capacitors
(6) 0.01μF ceramic capacitors
(6) 1K ohm resistors
(6) 2n2907 PNP transistors
(16) 2n2222 NPN transistors
(1) 5V SPDT relay
(1) 1N4001 diode
(36) 10K ohm resistors
(7) 100K ohm resistors
(7) 470 ohm resistors
(7) Momentary push button switches
(6) Red LEDs
(1) White LED
(2) 6 pin male headers
5V power source such as a cell phone charger
Perfboard
Various colors of wire
Tools:
Soldering iron
Rosin core solder
(optional) Desoldering iron


« Previous StepDownload PDFView All StepsNext Step »
6 comments
Jun 25, 2011. 9:51 AMRITESH KAKKAR says:
nice work man.....................
Mar 23, 2011. 6:36 PMrtty21 says:
I love this. Your schematic is AWESOME!!!!!!!!
Mar 20, 2011. 7:07 AMbogdanfirst says:
Your design is much much too complicated. There is a simple design that comes from an Elektor magazine(i think) that uses just a counter and a transistor. I've built it when i was a kid.
I've found some schmeatics here: http://www.scribd.com/doc/51140395/Simple-ic-projects under 'security door key 1'.
Mar 18, 2011. 7:12 PMmwagner63 says:
how do you program the code in the lock. also its cool and all but does it just turn on an led cause if it does why not just hook an led to a switch and hide it somewhere. hmmmm

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
8
Followers
7
Author:trumpkin(Hacker's Workbench)