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.

Digital Combination Lock!

Digital Combination Lock!
 

I've always wondered how did electronic locks work, so once i finished the basic digital electronics course I decided to build one myself. And I´ll help you to build your own!

 

You could connect it to anything from 1v to 400v(or maybe more that depends on the RELAY), DC or AC, so you could use it to control another circuit, or even to electrify a fence!! (please dont try that, really dangerous)… I connected a mini chrismas tree to the output (110v) cause I hadnt taken the holydays decoration off my lab, so it was around at the time i finished the proyect.

 

Here are some pictures of the finished System, and a video too, so you can see it working.

 
Remove these adsRemove these ads by Signing Up
 

Step 1How does it work?

How does it work?
 
 
First I thought in what was needed to be processed and how. So i drew this diagram as a map to guide me as i build each part of the proyect. Heres a summary of how it works.
  • First we need a circuit to decode the 10 possible inputs (0-9) to its 4 output BCD (Binary Coded Decimal), and another output that tells us when any button is pressed.
  •  Then we need to build the circuit for our two 7-segments displays to work properly, with 4 inputs for a BCD number and of course 7 outs for our displays, ( I used the IC 74LS47)
  • Then a circuit to save each pressed number and toggle between displays
  • As well as an internal memory for our password
  • And, the hearth of our lock, the comparator (its 8 bits ´cause there are 4 bits per digit in the display, meaning that if you want to do a 4 digit lock you will need two of this connected together.) This will tell us if the numbers in the displays are the same as the password saved in the internal memories.
  • And finally a circuit to keep the OPEN or CLOSE signal for an undetermined time, and of course an output (thats whatever you want to control with your lock)
« Previous StepDownload PDFView All StepsNext Step »
21 comments
May 7, 2012. 1:06 PMGopesh gopu says:
ma chudayo tum
Nov 1, 2011. 11:56 AMnikitasamsukha says:
nice
Apr 25, 2011. 7:08 PMUranio23 says:
Hola que tal veo que este proyecto lo hiciste hace tiempo, tengo algunas dudas, me estoy "inspirando" en tu circuito para hacer un proyecto de electronica, no nos dejan usar micro ni nada de eso puras compuertas y cosas basicas.

Me preguntaba si podrias darme mas info sobre el circuito, mi problema esta a la hora de querer hacerlo de 4 numeros la clave, no se como cambiar de memoria cada que pulso un boton... Tu lo haces con el J-K pero como seria para 4 ?

Gracias y espero que puedas responder
Feb 12, 2011. 1:30 PMEngineeringShock says:
Nice
The LS7220 or LS7222 chips are designed so that you can do the majority of this, minus the displays. I remember when I did this project from scratch. I designed it very similarily.
=)
May 17, 2010. 10:25 PMdjmudslide says:
 hey amigo... he intentado tu circuito con un amigo, y tenemos multiples fallas! ...será posible q envies algo de info extra a mi correo? irv_c45@hotmail.com... sobre todo los mapas de conexiones, tengo dudas sobre los puentes q aparecen en el primer mapa, y si existe una sustitucion de los diodos, o cual funcion cumplen (leí como un OR)... gracias d ante mano!
Mar 31, 2010. 7:48 PM3nigmat1c says:
It may or may not be interesting, but use of a CD74hc4511 chip will free up a lot of board space (it's a all in one 7-segment to bcd decoder with flip flop and latch).  That way you can support up to 7 displays with a chip per segment and a single 8-3 multiplexer.  That can easily go from 7 to 15 with an additional multiplexer and only need 4 lines for data (always), and 3 lines for addressing (1 extra per new multiplexer). 

Nice project, this was very similar to the Digital Systems final Project I had to do in college.
Feb 25, 2010. 11:36 AMAndrewGarza says:
 Impressive. I always wanted to make a clock out of low level logic like this. Just seems like a lot of work. It is amazing how much easier/cheaper using a micro controller for something like this.
Mar 4, 2010. 1:50 PMamando96 says:
 indeed, arduino + keypad, + seven segment displays and some code...
thats actually my next project, for a weather station.
Jan 24, 2010. 5:41 AMHarveyH44 says:
Quite an impressive job, both the project and the write up.  The only project I ever attempted like that on a breadboard, was a digital clock, which kept terrible time.  It took months to wire up, and figure out what went wrong.  I've since switched to microcontrollers.  So much easier to debug code, and you can take it anywhere to work on.

Might also look into making PCB at home.  It's not very expensive, and pretty easy with a laser printer.  Although, got a hunch your project would still take sometime to layout, and drilling so many holes...

Really nice work, though don't imagine very many people will build this, maybe a class project.
Feb 8, 2010. 4:42 PMElmoRoyD says:
Saludos desde Monterrey, yo soy de Sabinas y estudie en el CBTIS 20 hace ya rato. Es bueno ver gente de la región entrando a estas cosas
Jan 25, 2010. 11:47 PMthatoneguydavid says:
i would suggest Cypress Semiconductor PSoC -3   (programmable system on chip)  with a little practice writing C you can implement really complex systems with very few external components.  they take an FPGA and various analog circuits and wrap them up with a microprocessor on one chip.
Jan 25, 2010. 12:15 PMdrhoff says:
 I agree with Luminous. Arduino is really great for beginners. If you can make a project like this, then you will have no trouble with it at all. Great Instructible.
Jan 24, 2010. 3:17 PMLuminousObject says:
For a beginner, I would definitely suggest Arduino. You just plug it into the computer and go. No need for any fancy programmers or any of that. Just a USB port and a cable.
Feb 15, 2010. 12:44 PMawsomehighvoltage says:
why is there a white led there in the middle?
Jan 27, 2010. 5:44 PMpeblairman says:
Great job! Not trying to flame it or anything, but it looks kinda like a bomb lol
Jan 24, 2010. 11:46 PMUdon says:

This is really good! It's a lot of info to put together.

I'm starting a Digital Electronics course in Feb. so I'd love to try build this.


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!
4
Followers
1
Author:Nino123