• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Security and Alarm / Simplest Combination Lock Circuit Explained

Simplest Combination Lock Circuit Explained

Last Updated on January 2, 2024 by Swagatam 14 Comments

A electronic combination lock is a device which is designed to activate an electrical solenoid locking system whenever the correct combination of numbers are entered into an attached keypad.

Table of Contents
  • Simple Combination Lock
  • Combination Lock with Delay
  • Solenoid
  • Rotary Switches
  • Simple Two Button Electronic Solenoid Lock Circuit

To build this type of electronic combination lock, normally an electronic circuit with a keypad is used.

In the design I have explained in this article, however, no complex electronic circuits or ICs or keypads are used, rather the system uses a few mechanical rotary switches, and a cheap solenoid, and that's all is needed to build this cheap yet very effective simplest combination lock circuit.

Simple Combination Lock

The basic structure exhibited in most combination locks is based on the simple design as shown in the following figure.

simple combination lock using rotary switches

This requires just three ten-way rotary switches arranged in such a manner that if the right combination is entered on them, they will connect electricity to the relay or solenoid (the code being 6-4-5 in this case).

This simple circuit is rarely used in reality since adjusting the switches through all 1,000 potential combinations (0-0-0 to 9-9-9 inclusive) in a rational manner takes just a few seconds.

Combination Lock with Delay

One of the simplest and most effective solutions is to incorporate a delay circuit into the device as shown in the following figure, which prevents power from being delivered to the solenoid or relay until the proper combination has been engaged for a few seconds.

simple combination lock using rotary switches and delay time

Working through all of the available combinations hastily becomes ineffective at "cracking" the system because the delay circuit prevents the device from reacting even when the proper combination is held for a short instant.

Whoever attempting to "hack" the device is unlikely to succeed unless they are aware of the delay circuit and are willing to spend a significant amount of time figuring out the proper combination.

A time delay circuit dependent on FET semiconductor Q1 is included in the following circuit. C1 will be discharged when the right combination of SW1 to SW3 is adjusted and power is applied to the circuit, providing Q1 zero gate bias. As a result, Q1 is turned off, and no considerable current is sent to the relay or solenoid that serves as its drain load.

C1 charges gradually through R1, after around 4 seconds, the charge voltage on C1 is high enough to bias Q1 into conduction and turn on the relay or solenoid.

When the circuit is reset, R2 discharges C1, allowing it to immediately resume normal operation. The highest gate voltage of Q1 is limited by R2 to around half the supply voltage, however this is more than enough to bias the device hard into conduction and is of no practical significance.

D1 prevents probable harm to Q1 by suppressing the strong back EMF produced across the relay or solenoid when it goes off.

Solenoid

The solenoid can be any spring loaded type, with a shaft that would stretch outward in the absence of power supply, and pull inside as soon as power is supplied to it.

One popular type with matching specifications is shown in the following image.

12V solenoid lock

Rotary Switches

The 3 rotary switches shown in the above diagrams can be any ordinary 11 position rotary switch, such as the one shown in the image below:

Rotary switch 11 position

Applications

The simple combination lock explained can be effectively used as a fail-proof security lock in various applications such as, table drawers, jewelry box, home doors, safe doors etc.

The code can be changed anytime simply by changing the wire positions across the 3 rotary switch contacts.

Simple Two Button Electronic Solenoid Lock Circuit

electronic lock circuit

In this simple electronic solenoid lock circuit, the solenoid lock will unlock only when the S1 and S2 switches are pressed simultaneously.

Initially when power is switched ON, the situation will be like this:

Input of U1a being connected to ground, its output will be high. This will cause the U1b output to be low.

With U1b output low, U1c output will be high, which will cause U1d output to be low.

With U1d output low, the MOSFET will be turned OFF.

As long as the MOSFET is OFF the solenoid lock shaft will be projected outward, which will enable its locking feature. Thus anything which needs to be locked will remain locked in this situation.

Now, if S1 and S2 are pressed simultaneously, U1a inputs will go high together, causing its output to go low.

This will cause U1b output to go high, causing U1c output to go low. When U1c output goes low, it will cause U1d output to go high.

When U1d output goes high, it will activate the MOSFET and the solenoid latch. The solenoid latch shaft will withdraw inward causing the lock to open.

In this way the solenoid can be opened by simultaneously pressing S1 and S2 together.

C3 and R7 decides for how long the solenoid will remain in the open condition, until it restores to its original locking condition.

You'll also like:

  • 1.  Wireless Home Security Circuit – Solar Powered
  • 2.  7 Interesting IC 555 Siren and Alarm Circuits
  • 3.  How Laser Microphones or Laser Bugs Work
  • 4.  Flashlight Activated Burglar Alarm Circuit
  • 5.  Simple Motorcycle Security Alarm Circuit
  • 6.  Security Alarm Circuit using RCWL-0516 Microwave Radar Sensor

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Password Lock Circuit Using IC 4017
Next Post: Medical Store LED Cross Sign Circuit [Plus Sign] »

Reader Interactions

Comments

  1. Ashok Sarin says

    January 16, 2022 at 7:44 pm

    Thanks for the electronic lock. Please interested in a push button electronic lock wherein the combination lock can be changed whenever required. I am sure You must have designed this type of circuit, if yes please help me how to get to it.
    Thanks
    Regards
    Ashok Sarin

    Reply
    • Swagatam says

      January 16, 2022 at 8:45 pm

      Thank you Ashok, yes I have a few keypad based designs in this blog. You can check out the following link for more info on this:

      https://www.homemade-circuits.com/?s=code+lock

      Reply
  2. Hnin Moe says

    January 13, 2022 at 7:33 am

    It’s very good project.
    Thanks

    Reply
    • Swagatam says

      January 13, 2022 at 9:18 am

      Thank you very much!

      Reply
  3. Hauerit says

    January 12, 2022 at 8:49 pm

    hello, wonderful circuit thank you very much. you are a source of inspiration for us

    Reply
    • Swagatam says

      January 13, 2022 at 12:12 pm

      Thank you, it’s my pleasure!

      Reply
  4. Ramesh says

    January 12, 2022 at 6:57 pm

    Very nice simple useful project.
    Keep posting such interesting simple electronic circuits.

    Reply
    • Swagatam says

      January 12, 2022 at 7:39 pm

      Thank you and glad you liked the project!

      Reply
  5. Patrick Chapman says

    January 12, 2022 at 5:27 pm

    Yes, a very simple and easy to build combination lock. But it does leave itself open to somebody leaving the combination open. So I prefer your previous circuit using push buttons switches.
    Please don’t stop publishing your circuits, I have found many of the useful over the years.
    Best regards

    Reply
    • Swagatam says

      January 12, 2022 at 5:39 pm

      Thanks for your interesting feedback, I agree with you!

      Reply
    • Ramesh says

      January 12, 2022 at 6:55 pm

      Yes you are absolutely correct. need a push button to open it by manually.if this project is using in room.

      Reply
      • Swagatam says

        January 12, 2022 at 7:38 pm

        when the code is applied the lock will get powered and it will open and get unlocked. As long as the code is not applied, the solenoid will not receive any power and will remain locked.

        Reply
  6. Md GOLAM RASUL says

    January 12, 2022 at 5:03 pm

    Many many thank to serve the electronic world.

    Reply
    • Swagatam says

      January 12, 2022 at 5:38 pm

      You are most welcome!

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on Understanding SG3525 IC Pinouts
  • Dan on Understanding SG3525 IC Pinouts
  • Swagatam on High Current Wireless Battery Charger Circuit
  • Swagatam on Timer Based Cell Phone Charger Circuit
  • Nitesh Agrawal on Timer Based Cell Phone Charger Circuit

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations