Site icon Homemade Circuit Projects

Password Lock Circuit Using IC 4017

In this post I will show how to construct a general purpose password based electronic lock circuit without any involvement of microcontroller. You can use this circuit for numerous applications where a basic level of security is required for turning a circuit ON.

The proposed project is built using an IC 4017 and the circuit requires a 5 digit pin number. The relay gets activated when you enter the correct pin and the relay gets deactivated when you press the reset button or turn off the circuit.  

Circuit diagram:

Default Password: 21345

Circuit Description:

The proposed electronic lock circuit consists of just few components; an IC 4017 which is the heart of the circuit, 11 push buttons for entering the pin number, 5 diodes to prevent short-circuit between output pins, couple of LEDs for indicating the status whether the circuit is locked or unlocked, couple of pull-down resistors, couple of current limiting resistors and a low power NPN transistor for triggering the 5V relay. The whole circuit operates on 5V supply.

The relay we are going to use in the circuit comes in a breakout board and the input of the relay is active low, meaning if we apply GND signal to the input terminal the relay gets activated. 

Keypad layout:

How the circuit works:

To understand how the circuit functions, we need to know the pin configuration of IC 4017 and how the IC functions:

By now you should have some understanding how IC 4017 functions, now let’s see how the sequential output can be developed into an electronic password lock circuit.

The above mentioned process works only if the correct buttons are pressed in the correct sequence, otherwise the relay will not turn ON. 

In the circuit diagram all the buttons present at the left hand side are real where we need to enter the correct pin number. The buttons present at the right hand side are decoys and are electrically connected to reset pin.

When an unauthorized person tries to guess the password there is a very high probability that he / she may press one of the decoy buttons while guessing which will reset the IC.

In conclusion there are two layers of security, the first one is password that must be entered in the correct sequence only then the relay gets activated, the other layer is decoy buttons.

Even when someone is able to guess the first few numbers correctly, pressing any one decoy button will reset the IC which makes the first few correct pin numbers useless.

How to set a new password / change password:

To change the password, you need to make changes to your circuit setup physically, since there no involvement of microcontroller or software. 

The default password is “21345” only if you match the push button’s number on the circuit diagram with the keypad layout’s number. 

You can rearrange the wiring of the buttons at pin numbers 3, 2, 4, 7 and 10 of IC 4017 and don’t change the number order on the keypad which is illustrated on the keypad layout diagram. 

Note: Use button “R” (Reset) for deactivating the relay or to re-enter the password in case you entered an incorrect password.

Exit mobile version