com/fyp/
1
DIGITAL DOOR L0CK SYSTEM
ΒΛΟΧΚ ∆ Ι Α Γ Ρ ΑΜ ΟΦ ∆ Ι Γ Ι Τ Α Λ ∆ ΟΟ
KEYBOARD
3 DIGIT DISPLAY
SHFIT REGISTERS U
S
LOGIC CIRCUITS
FLIP-FLOP
FLIOP-FLOP M
CHAPTER 1 ENCODER
FIG 1.1
Block diagram of the encoder
Figure 1.2 shows the common type of encoder –the decimal to BCD
encoder the switches are push-button switches like those of a pocket calculator.
D C B A
FIG 1.2
The figure 1.2 shows the logic diagram of the decimal to BCD
converter using the TLL OR gates, A, B, C, and D are the outputs of the circuit in
the From of BCD (Binary Coded Decimal)
ABCD = 0101
When switch 9 is pressed
ABCD = 1001
D C B A
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
NUMERIC KEYBOARD
FIG 1.3
The operations of the key board same as the decimal to BCD converter. As
shown logic diagram 1.2. If any decimal number is pressed output is digital form.
For example before pressing any number all OR gate inputs gating zero voltage
through the resistors, all the resistors are connected to ground i.e. no inputs to
the 74LS34 IC’s as shown in schematic circuit diagram 1.5 number ‘2’ is pressed
PIN 14 IS +VCC
PIN 7 IS GROUND
PIN ‘S 1,2 INPUT LOGIC (OR GATE INPUTS) PIN ‘S 13,12 INPUT LOGIC (OR GATE
INPUTS)
PIN 3 S OUTPUT (OR GATE OUTPUT) PIN 11 IS OUTPUT (OR GATE OUTPUT)
PIN’S 4,5 INPUT LOGIC (OR GATE INPUTS) PIN’S 10,9 INPUT LOGIC (OR GATE INPUTS)
PIN 6 IS OUTPUT (OR GATE OUTPUT) PIN 8 IS OUTPUT (OR GATE OUTPUT)
CHAPTER 2
NIBBLE MULTIPLEXERS
Y3 Y2 Y1 Y0 = A3 A2 A1 A0
When SELECT is high, the four NAND gates on the right are active, and
Y3 Y2 Y1 Y0 = B3 B2 B1 B0
The keyboard as been locked when the input is low to the SELECT
input. When the counter resets form the lock key and the SELECT input gating
high Signal and the keyboard operated proper operations
Y1 Y2 Y3 Y4
Figure 2.2
CHAPTER 3
SHIFT RESGITERS
Q0 Q2 Q3 Q4
The figure 3.1 shows the block diagram parallel in---parallel out
shift register, in pipo shift register accept the data in parallel and produced the
information in the form of parallel outputs, the block diagram shows the 4 bit pipo
shift register, assume the parallel data is 0100 to be registered the flip-flop are
cleared i.e. all flip-flop contains 0’s. The parallel data applying to parallel input lines
The data sheet for 7495A describes it as a4-bit ,parallel access shift
register .It also has serial data input and can be used to shift the data right and
opposite direction ----to he left, The DIP pinout diagram as shown in fig 3.2
Fig 3.2
The parallel data outputs are simply the Q sides of each the four flip-
flops in the register. In fact, note that the output Qd could be used to serial output
when data is shifted from left to right though the register (right shift)
When MODE CONTROL input line is high, the AND gate on the right
When MODE CONTROL input line is low, the AND gate on the right
Input to each NOR gate is disabled while the left AND gate is enabled. The data
input to flip-flop QA is now at SERIAL INPUT: the data inputs QB is QA and so on
down the line .On each negative transition, the data bit is entered serially into the
register at the first flip-flop QA, and each stored data bit is shifted one flip-flop to
the right
(towards the last fl-flop Qd ). This the serial input of data (at SERIAL INPUT ), and
also the right shift operation .
The 7495 IC internal logic diagram as shown in figure 3.3 .the output IC
74157 is connected to inputs of 7495 IC i.e. parallel input lines A, B,C, D, .The
outputs of the 7495 i.e. parallel data lines QA, QB, QC, QD. Are connected to IC
74LS47 as explained in the next chapter
CHAPTER 4
Fig 4.1
Seven segment indicator may be common – anode type where all anodes are
common connected as shown in the figure 4.2 or the common cathode type of
shown in fig 4.3.With a common anode type fig 4.2, you have to connect a current
limiting resistor between each LED and ground ,The size of resistor determines
How mach current flows though the LED. The common cathode type of fig. 4.3
Uses the current limiting resistors between the each LED and +Vcc.s
CHAPTER 5
BUFFER
The logic level of output is the same as the input ; The fig a shows
the tri-state buffer ,When enable line is low, the circuit function as buffer;
otherwise it stay in high impedance state .The buffer is use to increase the driving
capability of the data .
The74LS244 two ICs are using to block the follow of data shift register
to BCD decoder before pressing the enter button . enable inputs two IC are
Connected to common terminal , this terminal is connected to the enter button
,When enter button is pressed the both IC are output is enabled blocked data
is transferred to BCD decoders
EN B
U ?
2 1 8
4 1 A 1 1 Y 1 16
6 1 A 2 1 Y 1 24
8 1 A 3 1 Y 1 32
1 1 1 A 4 1 Y 9 4
1 3 2 A 1 2 Y 7 1
1 5 2 A 2 2 Y 5 2
1 7 2 A 3 2 Y 3 3
2 A 4 2 Y 4
Fig 5. 3 1 Fig 5.4
74LS244 IC CHIP DIAGRAM 1 9 1 G BLOCK DIAGRAM
74LS244
2 G
7 4 L S 2 4 4
CHAPTER 6
4 2 9
To anyone using the BCD codes. 0100 0010 1001 is equivalent to 429
DEMULTIPLEXERS
demultiplexer
1 to 16 Demultiplexer
ABCD = 0000
The upper and gates are enabled while all other AND gates are disabled.
Therefore, data bit D is transmitted only to the Y0 output , giving. If low , Y0 is low
If D is high.
Y0 is high . As you can see, the value of y0 dependes on the value of the D. All
other outputs are in the low state.
ABCD = 1111
All the gates are disabled expect the bottom AND gate. Then , D is transmitted
only to the Y15 output, and
Y15 = D
A B C D
Yo
Y1
Y2
Y15
! OF 16 DECODER
IF you check the other ABCD possibilities ( 0000 to 1111) , you will find that
the subscript of the high output is always equals to the decimal equivalent of
ABCD. For this reason, the circuit some times called binary to decimal decoder.
Because it has 4input lines and 16 output lines, the circuit also called 4 to 16
decoders.
Normally, you would be not build a decoder with separate inverter and
AND gates as shown in circuit diagram ( figure 6.3) . instead , you would use a IC
such as the 74154 . The 74154 is called as a decoder – demultiplexer. because it
can be used either as a decoder or a demultiplexer . To use 74154 IC as decoder,
all you have to do is ground the DATA and STROBE inputs. The selected output
line is in the low sate ( see the truth table ). They remained the output line is low
when it active or selected. For instance, if the binary input is.
ABCD = 0111
Then the Y7 output is low, while all other outputs are high.
S D A B C D Y 00 Y 01 Y 02 Y 03 Y 04 Y 05 Y 06 Y 07 Y 08 Y 09 Y 10 Y 1 1 Y 12 Y 13 Y 14 Y 15
L L L L L L L H H H H H H H H H H H H H H H
L L L L L H H L H H H H H H H H H H H H H H
L L L L H L H H L H H H H H H H H H H H H H
L L L L H H H H H L H H H H H H H H H H H H
L L L H L L H H H H L H H H H H H H H H H H
L L L H L H H H H H H L H H H H H H H H H H
L L .L H H L H H H H H H L H H H H H H H H H
L L L H H H H H H H H H H L H H H H H H H H
L L H L L L H H H H H H H H L H H H H H H H
L L H L L H H H H H H H H H H L H H H H H H
L L H L H L H H H H H H H H H H L H H H H H
L L H L H H H H H H H H H H H H H L H H H H
L L H H L L H H H H H H H H H H H H L H H H
L L H H L H H H H H H H H H H H H H H L H H
L L H H H L H H H H H H H H H H H H H H L H
L L H H H H H H H H H H H H H H H H H H H L
H H X X X X H H H H H H H H H H H H H H H H
H H X X X X H H H H H H H H H H H H H H H H
H H X X X X H H H H H H H H H H H H H H H H
THE 74154
The 74154is 1 of 16 demultiplexer or 4 of decoder with pin diagram
as shown in figure 6.3 pin 18 is for the input data D, and pin 20 to 23 are control
input bits ABCD . pins 1 to 11 and 13 to 17 are for the output bits Y0 toY15. Pin 19
is for the strobe , again an active – low input . finally, pin 24 for Vcc and pin 12 for
ground.
The above table shows the truth table of a 74154. First, notice the
STROBE input . it has to be low to active the 74154. When the STROBE is low, the
control input ABCD determines which of the output lines is low. When the data
input is high , all output lines are high. Similarly , when the STROBE is high , all
the lines are high
It is used in the project to select the desired code, Each SW DIP 8 is used to
select one digit code
CHAPTER 7
FLIP - FLOP
The output of the digital circuits are dependent entirely on the inputs to
these circuits ; that is, if the inpu6t changes, the output also changes. However,
there are requirements for a digital device or a circuit whose output remains
unchanged , once set , even if there is a change in input. Such a device could be
used, for example, to store a binary number. A flip-flop is one such circuit , and
characteristics of the most common types of flip-flops used in digital system, in
this project only D type flip-flop is used , D type flip-flop is considered in this
chapter,
D FLIP - FLOP
The D flip – flop, a circuit needs only a single data input . figure 7.1
shows the a simple way to build a delay D flip-flop . this kind of flip-flop prevents
the value of D from reaching the Q outputs until a clock pulse occurs. The action
of the circuit is straightforward. As follows, when clock is low , both AND gates
are disabled ; therefore, D can change value without affecting the value of Q. on
the other hand, when the clock is high, both AND gates are enabled . In this case,
Q is forced the value of D. When the clock again goes low, Q remains or store the
last value of D. a D flip-flop is a bitable circuit whose D input is transferred to the
output after a clock pulse is received.
Fig 7.1
A D flip - flop
THE 74LS74 IC
TRUTH TABLE
0 X Q n 1 0 0
1 1 1 1 1 1
1 0 0 1 1 0
1 0 0 0 1 1
Set Input
Reset input
COUNTER
DECADE COUNTER
TRUTH TABLE
D C B A COUNT
Fig 7.4
The 54/7490 is a TLL MSI decade counter .its logic diagram truth table
and pinout are given in figure a careful examination will reveal that the flip flop
QB.QC and QD form a mode 5 –counter exactly like on in figure. Notice that
however ,that flip flop QD in the 7490A is an RS flip flop that has a direct
connection from its Q output back to its R input the net result is in this case is that
Qd behaves exactly like Jk flip flop .If the system clock applied at input A and QA
is connected to a input B ,we have a true to binary decade counter exactly in
figure .on the other hand if the system block is applied at input B and QD is
connected to input A ,we have the bi quinary counter as discussed in example
Take time to study the logic diagram and truth table for the 90A ,it is widely used in
industry and time spent will be well worth your while .
The decade counter is used for the blocking the keyboard circuit , the
counter counts the number of enter pulses ,these pulses are generated by
pressing the ENTER button in the keyboard when the counter count 9 pulses the
output D is high when counter counts 8 and 9 pulses ,the high output is
connected to the flip-flop through the inverter, to the set input of the flip-flop as
explained in the next chapter
reset
SECAB A”S MALIK SANDAL POLYTECHNIC BIJAPUR
DEPARTMENT OF
Input A ELECTRONICS AND COMMUNICATION ENGINEERING
Q
A
Input B QB
www.final-yearprojects.co.cc www.troubleshoot4free.com/fyp/
32
DIGITAL DOOR L0CK SYSTEM
QC
QD
Set input
Β ΛΟΧΚ ∆ Ι Α Γ Ρ ΑΜ ΟΦ ∆ Ι Γ Ι Τ Α Λ ∆ ΟΟ
Ρ Λ ΟΧΚ ΟΠ ΕΝ Σ Ψ Σ Τ ΕΜ
KEYBOARD
SECAB A”S MALIK SANDAL POLYTECHNIC BIJAPUR
DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING
www.final-yearprojects.co.cc www.troubleshoot4free.com/fyp/
34
DIGITAL DOOR L0CK SYSTEM
3 DIGIT DISPLAY
SHFIT REGISTERS U
S
LOGIC CIRCUITS
FLIP-FLOP
FLIOP-FLOP M
The nibble multiplexer transmits the signals when the SELECT input
is high to the 74157 IC this high signal coming form the counter, when the
SELECT input is low data transmission keyboard to the shift resister, is blocked.
When the SELECT input is high 74157 IC as operate as normal data lines between
the keyboard and shift register.
The shift register receive the BCD data form the keyboard when the
decimal button +shifting button, like this 3 digit as bin shifted and stored in the 3
shift register it is the parallel data entry in the register, the stored data is present in
the output lines of the shift register the out put of the shift register is connected to
the input seven segment decoder, the decoder decodes the BCD signal to seven
segment indicator. The store data of the 3-shift register are displayed in the seven-
segment indicator. The stored data of the 3 shift register 12 bit i.e. each register
output is 4bit. These data is also sending to the (12 bit data) tri state buffers ,
The 74244 IC is the 8bit tri state buffers (4bitA 4bitB) with two output
enable pins (active low inputs) . from the 12 bit, 8bit of the data is connected to the
inputs 74244 (4bit A 4bit B) and other 4bit is connected to another 74244 IC (4bit A)
When the enter button is pressed the input data is available on the output lines of
the 74244 IC’s, when the output enable pin is active low input form the enter
button . The output 74244’s are connected to the input of the 74154 IC, the 74154 is
BCD to decimal decoder, the decoder decode the BCD input signal (4 bit for each
IC) i.e. the 3 decoder IC’s. The output decoder is the decimal form as bin entered in
the shift register and displayed on 3 digit seven-segment indicators. The output
decoder is connected to 3 code selectors switches .the output selector is
connected to the logic circuit, the output logic is connected flip- flop To set Q of
the flip-flop is connected to the motor through the relay
CHAPTER 8
Draw the PCB track layout, using a CAD program or a standard drawing
program. Remember to reverse the image before printing. Most drawing programs
have a 'flip horizontal' function. Print the image on normal A4 paper to make sure
that it is the correct size. Check the layout carefully.
PCB LAYOUT
Use a laser printer to print the image on the glossy side of the photo paper. Clean
the copper clad board with steel wool or very fine wet sandpaper. Dry the board
thoroughly. Make sure that the board is clean and free from fingerprints. Place the
photo paper face down on the copper clad board. Use masking tape to hold the
paper in position. Don't use vinyl tape. Place the board on a flat surface. You will
be using a very hot iron, so don't use the dining room table. I use the back of an
old telephone directory. Use a hot clothes iron to transfer the track pattern from
the paper to the copper board. Don't be afraid to use lots of heat and pressure.
Allow the board to cool. Don't be tempted to lift the paper. Put the board in a
BEFORE ETCHING
Etch the board in a Ferric Chloride etching solution. You can buy the etchant in
liquid form or as anhydrous Ferric Chloride powder. Follow the instructions.
NEVER add water to dry Ferric Chloride. Don't get any on your clothes.
AFTER ETCHING
After etching, rinse the board under a cold tap. Remove the etch resist with some
steel wool. Dry the board. Use a 0.8 or 1.0 mm drill to make the holes for
component leads.
PCB
CLOSE UP
The close up picture shows that the tracks are not as clear and well defined as
they would be if the board was produced by photographic methods.
The procedure for making double sided boards is a bit tedious. Coat one side of
the board with aerosol paint or clear lacquer. Etch the other side of the board as
for a single sided board. Remove the paint or lacquer. Drill the component lead
holes. Paint the etched side of the board. Then etch the unetched side of the
board as for a single sided board. It is difficult to line up the two sides correctly.
Use the component holes as a guide.
END RESULT
I have used this method to make PCB's for both DIL and surface mount IC's with
0.05 Inch pin spacing. My laser printer is an old Apple LaserWriter II NTX (300dpi.)
If you don't have access to a laser printer, use an inkjet printer to print the layout
on ordinary paper, then copy the image to the Epson paper, using a photo copier. I
haven't tried this method but it should work.
APPLICATIONS
1 it is used to lock and open multi doors by using other interfacing circuits
and code selector switches
it is also used to locks the multi doors at a time i.e. center lock
2 it also can be used in to control the multistage buildings lights and other
appliances ,for example heater, AC, water pumps, lights, .A circuit is
shown for two stage building ,assume that the first floor having the 10
lights and second floor having the 20 lights .if we want to ON the first floor
4 number light first enter floor number i.e. 1 and second number is the
1 4 0
floor no light no
for the second floor having 20 lights if you want ON the 2 floor light no 15
enter the first floor no and enter the light no as shown bellow
2 1 5
REFENCES
ISBN : 0-07-462231-8
ISBN : 81-900828-76