Description: This simple circuit is the electronic version of the combination lock. Using the special purpose LS7220 digital lock IC, the circuit allows a 4 digit combination of your choice to activate a relay for a set period of time. This relay can then be used to trigger a lock solenoid, enable a starter button, open a motorized door, or many other tasks that require a momentary signal.
C1 1 1uF 25V Electrolytic Capacitor
C2 1 220uF 25V Electrolytic Capacitor
R1 1 2.2K 1/4W Resistor
Q1 1 2N3904 NPN Transistor 2N2222
D1 1 1N4148 Rectifier Diode 1N4001-1N4007
K1 1 12V SPDT Relay Any appropriate relay with 12V coil
U1 1 LS7220 Digital Lock IC
S1-S12 12 SPST Momentary Pushbutton Keypad (see notes)
HD1 1 12 Position Header
Notes
To set the combination, wire the appropriate switches to U1 pins 3, 4, 5 and 6 using the header. For example if S1 was connected to pin 3, S2 to pin 4, S3 to pin 5 and S4 to pin 6, the combination would be 1,2,3,4. Now wire all other unused switches across the header to pin 2 of U1. In this way you can create any 4 digit combination you want. Pin 2 is the reset pin, so connecting all unused keys to it assures that the entire combination must be reentered if an incorrect key is pressed. When the appropriate combination is entered, the relay is activated for a period of time determined by C1. The 1uF capacitor specified in the parts list will result in an on-time of roughly 5 seconds. Increase the value of C1 to increase this time. An easy way to make a keypad is to buy 12 PC board mount pushbuttons and then etch a PC board so that the buttons are in 4 rows of 3, similar to a telephone keypad. Place this in a case and then use a label maker or transfer letters to add your numbers to the tops of the pushbuttons. You can also use a pre made keypad but keep in mind that you need a pad which provides an output for each key. Most pads available have the keys connected to provide a row and column signal when they are pressed.
The circuit operates as follows: Upon powering the circuit, the LS7220 Digital Lock IC (U1) awaits input from the keypad composed of 12 momentary pushbuttons (S1-S12). Each pushbutton corresponds to a digit in the combination. The configuration of the pushbuttons is crucial, as it determines the specific combination that will activate the relay (K1). The wiring of the pushbuttons to pins 3, 4, 5, and 6 of U1 allows for a flexible combination setup, while pin 2 serves as a reset point to ensure security; if any incorrect button is pressed, the user must start over.
When the correct sequence is entered, U1 activates the transistor (Q1), which in turn energizes the relay (K1) for a duration dictated by the timing capacitor (C1). The choice of a 1uF capacitor provides an approximate activation time of 5 seconds, which can be modified by using a larger capacitance to extend the relay's on-time. The relay can then control various devices, such as solenoids or motors, allowing for a wide range of applications from locking mechanisms to automated doors.
The additional capacitor (C2) may be used for stabilizing voltage levels in the circuit, ensuring reliable operation of the LS7220 and other components. The rectifier diode (D1) protects the circuit from potential back EMF generated by the relay coil, safeguarding the digital lock IC and other sensitive components. The inclusion of a header (HD1) facilitates easy connections for the keypad and additional components, streamlining the assembly process. Careful attention to the layout and connections will enhance the reliability and functionality of this combination lock circuit.This simple circuit is the electronic version of the combination lock. Using the special purpose LS7220 digital lock IC, the circuit allows a 4 digit combination of your choice to activate a relay for a set period of time. This relay can then be used to trigger a lock solenoid, enable a starter button, open a motorized door, or many other tasks that require a momentary signal.
C1 1 1uF 25V Electrolytic Capacitor
C2 1 220uF 25V Electrolytic Capacitor
R1 1 2.2K 1/4W Resistor
Q1 1 2N3904 NPN Transistor 2N2222
D1 1 1N4148 Rectifier Diode 1N4001-1N4007
K1 1 12V SPDT Relay Any appropriate relay with 12V coil
U1 1 LS7220 Digital Lock IC
S1-S12 12 SPST Momentary Pushbutton Keypad (see notes)
HD1 1 12 Position Header
Notes
To set the combination, wire the appropriate switches to U1 pins 3, 4, 5 and 6 using the header. For example if S1 was connected to pin 3, S2 to pin 4, S3 to pin 5 and S4 to pin 6, the combination would be 1,2,3,4.
Now wire all other unused switches across the header to pin 2 of U1. In this way you can create any 4 digit combination you want. Pin 2 is the reset pin, so connecting all unused keys to it assures that the entire combination must be reentered if an incorrect key is pressed. When the appropriate combination is entered, the relay is activated for a period of time determined by C1.
The 1uF capacitor specified in the parts list will result in an on-time of roughly 5 seconds. Increase the value of C1 to increase this time. An easy way to make a keypad is to buy 12 PC board mount pushbuttons and then etch a PC board so that the buttons are in 4 rows of 3, similar to a telephone keypad. Place this in a case and then use a label maker or transfer letters to add your numbers to the tops of the pushbuttons.
You can also use a pre made keypad but keep in mind that you need a pad which provides an output for each key. Most pads available have the keys connected to provide a row and column signal when they are pressed.
This simple combination lock accommodates codes ranging from 1 to 9 digits in length, with the only restriction being that the same digit cannot be used twice. The circuit...
A combination lock circuit can be designed using a microcontroller or a...
Dual Channel Relay Board is a simple and convenient way to interface 2 relays for switching application in your project. Input - 12 VDC @ 84 mA. Output - two SPDT relay. Relay specification - 5 A @ 230 VAC....
The integrated circuit (IC) is a quad 2-input "AND" gate, specifically a CMOS 4081. These gates output a HIGH signal only when both inputs are HIGH. When the key connected to pin E is pressed, current flows through resistor R1...
The alarm will switch off when the 4 keys connected to "A,B,C,D" are pushed in the right order. The circuit works because each gate stands upon its predecessor. If any key other than the correct key is pushed, then gate...
Many applications require a large number of keys connected to a computing system. Examples include PC keyboards, cell phone keypads, and calculators. Connecting a single key to a microcontroller unit (MCU) is straightforward; however, connecting 10 or 100 keys directly...
The figure below illustrates the use of a relay in the starting circuit. The power input connects through a resistor R, which serves two purposes: first, it prevents a large current from the capacitor C1 from affecting the power supply...
The circuit operates as a photoelectric switch utilizing a photoresistor. It exhibits high sensitivity, particularly in controlling a light relay. Under low illumination, the transistor (VT) remains non-conductive. When the illumination reaches a certain threshold, the resistance of the photoresistor...
This 7-digit combination lock can be easily hard-wired for any combination that you choose. The circuit utilizes a 4-bit, divide-by-8 Johnson counter (IC1), ten push button switches, and an NPN transistor (T1). Upon power-on, capacitor C2 connected to pin 15...
The features accessible through the keypad are detailed in the Spectrum128 Introduction Manual, which was provided with each unit sold. The service manual for the Spectrum128 is intended for repair technicians and outlines the circuitry and communication protocol utilized by...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more