Pages

Pages

Monday, April 13, 2015

Digital code lock

Description.

This is a simple but effective code lock circuit that has an automatic reset facility. The circuit is made around the dual flip-flop IC CD4013.Two CD 4013 ICs are used here. Push button switches are used for entering the code number. One side of all the push button switches are connected to +12V DC. The remaining end of push buttons 2,3,6,8 is connected to clock input pins of the filp-flops. The remaining end of other push button switches are shorted and connected to the set pin of the filp-flops.

The relay coil will be activated only if the code is entered in correct sequence and if there is any variation, the lock will be resetted. Here is correct code is 2368.When you press 2 the first flip flop(IC1a) will be triggered and the value at the data in (pin9) will be transferred to the Q output (pin13).Since pin 9 is grounded the value is “0” and so the pin 13 becomes low. For the subsequent pressing of the remaining code digits in the correct sequence the “0” will reach the Q output (pin1) of the last flip flop (IC2b).This makes the transistor ON and the relay is energised.The automatic reset facility is achieved by the resistor R11 and capacitor C2.The positive end of capacitor C2 is connected to the set pin of the filp-flops.When the transistor is switched ON, the capacitor C2 begins to charge and when the voltage across it becomes sufficient the flip-flops are resetted. This makes the lock open for a fixed amount of time and then it locks automatically. The time delay can be adjusted by varying the values of R11 and C2.

Circuit diagram with Parts list

Simple Electronic Combination Lock (IC LS 7220)

Description

This is the circuit diagram of a simple electronic combination lock using IC LS 7220.This circuit can be used to activate a relay for controlling (on & off) any device when a preset combination of 4 digits are pressed.The circuit can be operated from 5V to 12V.

To set the combination connect the appropriate switches to pin 3,4,5 and 6 of the IC through the header.As an example if S1 is connected to pin 3, S2 to pin 4 , S3 to pin 5, S4 to pin 6 of the IC ,the combination will be 1234.This way we can create any 4 digit combinations.Then connect the rest of the switches to pin 2 of IC.This will cause the IC to reset if any invalid key is pressed , and entire key code has to be re entered.

When the correct key combination is pressed the out put ( relay) will be activated for a preset time determined by the capacitor C1.Here it is set to be 6S.Increase C1 to increase on time.

For the key pad, arrange switches in a 3X4 matrix on a PCB.Write the digits on the keys using a marker.Instead of using numbers I wrote some symbols!.The bad guys will be more confused by this.

Circuit Diagram

Pin Assignment of LS7220

Parts List 

C1                           1   1uF 25V Electrolytic Capacitor
C2                           1    220uF 25V Electrolytic Capacitor
R1                           1    2.2K 1/4W Resistor
Q1                          1    2N3904 NPN Transistor    2N2222
D1                           1    1N4148 Rectifier Diode    1N4001-1N4007
K1                           1    12V SPDT Relay    Any appropriate relay with 12V coil
U1                          1     LS7220 Digital Lock IC
S1-S12                   12    SPST Momentary Pushbutton    Keypad (see notes)
HD1                        1    12 Position Header