Professional Documents
Culture Documents
MUHAMMAD
AIZAT
BIN
SELAMAT
EE091622
THEERAN A/L SHANMUGAM
EE091619
SECTION NO
05
COURSE
DIGITAL
EEEB161
LOGIC
LAB
SEMESTER
(2013/14)
DATE OF SUBMISSION
: 8/7/2013
OBJECTIVES
INTRODUCTION
Regarding the few burglary cases that happen in our
apartment, we have come out with an idea to design a simple
low cost security system for our apartment. This security
system consists of a door contact sensor and a loud buzzer. The
door contact sensor will be placed on the apartments front
door meanwhile the loud buzzer will be installed on the
apartments wall. The system operates when the sensor is
activated. For example, when someone opens the door, the
sensor will transmit a signal to the buzzer. Thus, the buzzing
noise will then alert the nearby residents.
While creating this security system, we found out that this
security system is still not good enough as we need to be able
to open the door without triggering the buzzer. Hence, we came
up with the idea of adding a password entry system which
requires a correct 4-digit password. When a correct password is
entered, we can activate and deactivate the sensor as we leave
or enter the apartment. The 4-digit password is obtained from
the last four digits of our student ID number. In order to enter
the password, a 12-button (6x2) matrix keypad is used as
inputs to the circuit.
Apart from that, we have also included a Sensor Activation
(A) as input switch and two LEDs outputs which are green (G)
and red (R). When the door is activated by applying logic 1 or
deactivated by applying logic 0 to input A, the green LED will
light on (logic 1). The green LED must light on (logic 1),
indicating the password entered is correct. Otherwise, the
sensor will remain its current state. When the door sensor is
active, the red LED will light on (logic 1).
METHODOLOGY
In this password-based door sensor activation circuit,
there are 3 main parts which are keypad encoder, password
comparator and activation circuit. For keypad encoder, the
encoder accepts the inputs from K[0] until K[7] which is entered
by using the 12-button (6x2) matrix keypad and encodes the 8bit input to 4-bit output. This can be done by using 16-line-to-4line encoder by cascading two 74148 chips as demonstrated in
the figure 1(result). From figure 1(in result), all the outputs that
will be connected to the input of the password comparator are
assumed to be encoded into 4-bit codes. Table 1 below shows
the input from the keypad encoder and the corresponding
encoded output.
*Notice that ENT and CLR buttons are encoded to 1011 and 1100 respectively.
Keypad Button
1
2
3
4
5
6
7
8
9
0
ENT
Encoder Input
10100000
10010000
10001000
10000100
10000010
01100000
01010000
01001000
01000100
01000010
10000001
Encoder Output
0001
0010
0011
0100
0101
0110
0111
1000
1001
0000
1010
CLR
01000001
1011
Table 1
RESULTS
Encoder Circuit
Figure 1
Encoder Waveform
Figure 2
Comparator Circuit
Figure 3
DISCUSSION
COMPONENT ANALYSIS
COST ANALYSIS
CONCLUSION
In a nutshell, we have designed a simple low cost security
system for our apartment. By this security system, we can
prevent from burglary cases which are increasing drastically in
our Amanah apartment. We have come out with sophisticated
circuit consisting three main parts which are keypad encoder,
password checker and activation circuit. This security system is
able to perform its task as it has been verified by using Alteras
Quartus II and ModelSim-Altera softwares.