You are on page 1of 11

HITEC UNIVERSITY TAXILA CANTT

Electrical department

DIGITAL LOGIC DESIGNS PROJECT


REPORT
KEYCODE ELECTRONIC LOCK

SUBMITTED TO:
LECTURER: DR JAMEEL
AHMED.
LAB ENGINEER: ENGR JAWAD
AHMED.

HITEC UNIVERSITY TAXILLA CANTT 1


TABLE OF CONTENTS:

• Group members.
3
• Introduction.
4
• Background.
4
• Abstract
5
• Method of procedure.
6
1. Circuit diagram.
6
2. List of components.
7
3. Pre-assembling on breadboard.
8

HITEC UNIVERSITY TAXILLA CANTT 2


PCB making and soldering
4.

components.8
5. Working.
8
6. Construction of model.
9
7. Results.
9

• Conclusion.
9
• Refrencess

simple Digital Key Coded Lock

HITEC UNIVERSITY TAXILLA CANTT 3


GROUP MEMBERS:
ZEESHAN KHAN (EE-151).
ZEESHAN MOHSIN (EE-150).

INTRODUCTION:
It is a simple key code lock which only work when we enter our selected code and
when each correct key will press it will SET the flip-flop . When the 4th flip-flop is SET,
the relay will be armed through the PNP transistor. Whenever a wrong button is
pressed, all 4 flip-flops will be RESET and code must be entered again from the
beginning. This lock can be used according to user’s requirement you can operate

HITEC UNIVERSITY TAXILLA CANTT 4


various function, here we use the lock to open the door of our model (house) with the
help of a motor, so when we enter the right code then the door of our model will open

BACKGROUND:
We got the idea of this project while reading the flip-flop,which actually store data,
various flip-flop has various conditions for output but normally when the FF is set
(positive edge trigger) it give high(1) output at the Q and here we use the same case
and we use D flip-flop for that purpose.

ABSTRACT:
HITEC UNIVERSITY TAXILLA CANTT 5
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, CD 4081, CD4072 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 5v DC. The selected push buttons 2,3,6,8( we
supposed these are the selected keys) is connected to set input pins of the filp-flops.
The remaining end of other push button switches are shorted and connected to the
reset 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 (pin
6) will be transferred to the Q output (pin 1)and an inverted value is assigned to Q bar
.Since pin 6 is connected to 5v dc so the value of Q bar will be “0” and so the pin 2
becomes low.
For the subsequent pressing of the remaining code digits in the correct sequence the
“0” will reach the Q bar output (pin 2) of the last flip flop (IC2B).This makes the
transistor ON and the relay is energised.The automatic reset facility is achieved by
the IC3A,B,C(4081) and IC4A(4072).The ic 4081 is actually a ic of “and” gate, as the Q
bar is connected to its input so its output is low(o) and the output of these ics are
connected to ic 4072 which is “OR” gate .one of its input is connected to rest of
buttons and when any button is pressed all the ics are reset and the whole system
will rest and then we are again supposed to enter the correct code.

HITEC UNIVERSITY TAXILLA CANTT 6


METHOD OF PROCEDURE:
This section include all the steps and the action we do for the making of our project
and it also cover the method we adopt during the complication of our project.

 CIRCUIT DIAGRAM:
The circuit we use for this project is given below.

HITEC UNIVERSITY TAXILLA CANTT 7


LIST OF COMPONENTS:
These are components that are required for our project

• Q1 2N2907 journal purpose amplifier and switching transistor.

• IC1 CD4013 dual flip flop.

• IC2,C3,C4 4013 dual D type flip flop.

• IC5,6,7 CD4081 two input and gate.

• IC8 CD4072 five input or gate

• L1 Relay DSDP miniature 5v relay.

• R1, R2, R3, R4, R5, R6, R7, R8, R9, R10 47KΩ ¼ WATT 5 % carbon film.

• R11 4.7kΩ ¼ WATT 5 % carbon film.

• 12/9 v dc supply

• Voltage regulator 7805

HITEC UNIVERSITY TAXILLA CANTT 8


• PCB

• Soldering iron and soldering wire

• Ic holders

• wiroboard

• Keypad.

PRE-ASSEMBLING ON BREADBOARD :
Before making the circuit on the pcb or on wiro-board make it on the breadboard and
we also make it on the logic trainer in our DLD LAB and our lab engineer had also
checked it

 PCB MAKING AND SOLDERING


COMPONENTS :
IF your circuit work on the breadboard .Then the next step is to make the circuit on
the pcb or on wiroboard . Here I make the keypad on the pcb while the other circuit is
made on the wiroboard. For pcb making recall all the steps involved in pcb designing
and make ,first mount the circuit image on the pcb and do the etching after this
solder the components on pcb and also the components on the wiroboard.

 WORKING :

HITEC UNIVERSITY TAXILLA CANTT 9


So when we enter the right code (set code) we get the output voltage . The circuit is
made around the dual flip-flop IC CD4013, CD 4081, CD4072 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 5v DC. The selected push buttons 2,3,6,8( we
supposed these are the selected keys) is connected to set input pins of the filp-flops.
The remaining end of other push button switches are shorted and connected to the
reset 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 (pin
6) will be transferred to the Q output (pin 1)and an inverted value is assigned to Q bar
.Since pin 6 is connected to 5v dc so the value of Q bar will be “0” and so the pin 2
becomes low.
For the subsequent pressing of the remaining code digits in the correct sequence the
“0” will reach the Q bar output (pin 2) of the last flip flop (IC2B).This makes the
transistor ON and the relay is energised.The automatic reset facility is achieved by
the IC3A,B,C(4081) and IC4A(4072).The ic 4081 is actually a ic of “and” gate, as the Q
bar is connected to its input so its output is low(o) and the output of these ics are
connected to ic 4072 which is “OR” gate .one of its input is connected to rest of
buttons and when any button is pressed all the ics are reset and the whole system
will rest and then we are again supposed to enter the correct code.

 CONSTRUCTION OF MODEL :
HERE we are using this output voltage to run a motor to open the door of the house
.for the house we make a model of somewhat like a house with a help of the
cardboard and fixed a motor at its door so when we enter the right code the door will
open.

RESULTS AND OBERVATIONS :


HERE we simply observe the working of a flip-flop, when we enter the right code we
get the output voltage ,through which we open the door.

HITEC UNIVERSITY TAXILLA CANTT 10


REFRENCESS :
I collected the data from the mention below sites our teachers and our text book also
helps a lot.

 www.youtube.com

 www.pcbheaven.com/simple key code lock.

 www.circuittoday.com

HITEC UNIVERSITY TAXILLA CANTT 11

You might also like