Professional Documents
Culture Documents
A2 18BEC043 Pragya
A2 18BEC043 Pragya
Introduction:
This circuit has 4 digit security code that is hardware selectable. It can have as many wrong inputs but
only 4 correct digits. One digit cannot be more than once in the code. Four D flip flops are serially
connected. Each correct key press will activate/set the D flip flop. When the fourth flip flop is set, the
relay will be armed through the PNP transistor. Whenever a wrong key is pressed all the four flip flops
will RESET and the code must be entered from the beginning. This takes advantage of the asynchronous
set-reset in the IC as irrespective of any inputs to the IC whenever SET or RESET is applied output
changes accordingly.
Table 1 components
Circuit Diagram:
Verilog Code:
module ckt(a,b,c,d,e,f,g,h,o);
input a,b,c,d,e,f,g,h;
output reg o;
always @(*)
begin
if(a==1) //comparing for correct password keys
begin
if (c==1)
begin
if (e==1)
begin
if (g==1)
begin
end
end
end
end
o=0;
end
endmodule
Conclusion:
The purpose of this project was to make code lock circuit that could take real time inputs from the
keypad and indicate if the system is unlocked.
References:
http://pcbheaven.com/circuitpages/Simple_Keycode_Lock
www.tesla-institute.com
http://www.circuitstoday.com/digital-code-lock
https://www.mousa-simple-projects.com/2015/03/how-to-run-electric-device-by-password.html?m=1