Site icon Circuit Ideas for You

Digital Code Lock Circuit using IC 4017

Security plays a very important role in todays world, therefore electronic code locks are very useful.

This Digital Code Lock Circuit using IC 4017 is a simple.

It uses push buttons, diodes, resistors, capacitor and IC CD 4017 .

Moreover, it is low cost and easy to build and it works on 9V power supply.

Also, it is good for students and beginners.

Circuit Working:

Digital Code Lock Circuit Diagram using IC 4017

Parts List:

Components ValueQuantity
Resistors100k 2
10k, 1k1 each
Capacitor Electrolytic 100uF 25V1
Transistor BC5471
IC CD 40171
Diodes 1N40076
LED any color1
Push Button Switch10
Relay 9V DC 1
Battery 9V1

This circuit uses IC CD 4017 and it is a decade counter IC.

There are 10 push buttons with some buttons are correct keys and some buttons are wrong keys.

A relay is used as output switch and a transistor drives the relay.

Diodes are used for logic isolation and an LED shows output status.

At first, the power is applied, so CD 4017 resets to Q0.

Then correct keys must be pressed in order and each correct key sends a clock pulse.

Therefore, output shifts step by step.

Wrong keys are connected to reset and so if wrong key is pressed then IC resets.

After last correct key the output goes high and thus transistor turns ON.

Relay gets energized and the load is switched ON.

LED also glows and so user knows lock is opened.

When power is removed the system resets again.

Code Explanation:

If my code is ABCD then:

After RESET:

Pin 3 (Q0) is HIGH then B is the start state

Press Key A:

Clock pulse applied

Output moves from Pin 3 to Pin 2

So, A = Pin 2 becomes HIGH

Press Key B:

Next, clock pulse

Output moves from Pin 2 to Pin 4

So, B = Pin 4 becomes HIGH

Press Key C:

Next, clock pulse

Output moves from Pin 4 to Pin 7

So, C = Pin 7 becomes HIGH

Press Key D:

Next, clock pulse

Output moves from Pin 7 to Pin 10

So, D = Pin 10 becomes HIGH (Relay ON)

How to Build:

To build a Digital Code Lock Circuit using IC 4017 follow the below steps:

Conclusion:

To conclude, this Digital Code Lock Circuit using IC 4017 is very useful.

It is simple and reliable and it provides good security.

Moreover, it is easy to build at home and students can learn digital logic from this project.

Finally, this circuit is perfect for basic electronic security systems.

References:

Simple Key code lock switch circuit using IC-4017 

Exit mobile version