Site icon Circuit Ideas for You

Simple Electronic Code Lock Circuit

This is easy and Simple Electronic Code Lock Circuit.

To open door or box no need of key we can use special code instead.

This circuit uses buttons and code to the open lock.

Only correct code can open and wrong code will not work.

Circuit Working:

Parts List:

ComponentQuantity
Resistors (1/4 watt) 1k 2
Semiconductors
Transistor BC5471
Diode 1N40071
Relays1
Mini switches (ON/OFF)8

This code lock circuit is famous because design is very simple.

It uses smart code with only one main part and 8 push buttons.

How this lock circuit work?

To turn ON the relay we must press all 4 buttons S1, S2, S3, S4 together.

If we press any wrong button like S5 to S8 relay will not work and lock will stay closed.

Very important: power supply voltage must be same like relay voltage.

Small transistor like BC547 can take current up to 50mA.

If relay needs more power then use transistor like 2N2222 it can take 0.2A.

Formulas:

Relay Coil Current is tool for finding how much resistor (R) needed for BJT transistor to turn ON relay coil.

Lets see what is inside the formula:

R = (Us – 0.6) × hFE / Relay Coil Current

Relay Coil Current is how much current is in Amps A which is needed to turn ON the relay.

How to use this formula:

Voltage Drop:

(Us – 0.6) means voltage drop at base emitter of BJT.

Most BJT have drop of 0.6V so we subtract it from power supply.

This give us voltage for base resistor.

Base Current Gain:

hFE show how much transistor multiply base current.

Bigger hFE = less base current needed to turn ON relay.

Ohms Law:

Use formula R = V / I.

This will help find correct resistor R so enough current goes in base of BJT which is not too much.

In simple words:

This formula help choose good resistor so transistor work correct and switches ON relay coil with right amount of current.

How to Build:

To build a Simple Electronic Code Lock Circuit following steps are used for connections:

Identify Parts:

Make Circuit:

Button Connection (S1 to S8):

Use Resistors:

LED (Optional):

Soldering Work:

Test Circuit:

Be Safe:

Conclusion:

Simple Electronic Code Lock Circuit are better than old key locks.

We can change code easily and can see who entered and how are connected with other security systems.

This type of circuits are used in homes, offices, factories and more.

References:

Development of a Programmable Electronic Digital Code lock system

Exit mobile version