Electronic lock using the 4022 octal counter

8,698

Circuit Image

The heart of the lock is the 40022 octal counter. When first powered C2 is charged via R5 so the reset input of the counter is kept high. That causes output Q to go high while all the other outputs are low. With the switches wired as shown, when S4 is pressed, the BS170 mosfet is switched on via debouncing network R2/C1, and the 4022 receives a clock pulse. Also, C2 is discharged via R4 and D1, removing the reset signal of the counter, allowing it to advance. The time required for C2 to charge via R5 is the maximum time that can lapse before the next key is pressed in time. When all keys have been pressed in time and in the correct order, Q7 goes high for about four seconds to drive the unlocking relay etc. You can change the code by reviewing the switches. The code for the lock shown in image is 4-8-0-1-5-7-0. However, the 4022 octal counter can be replaced by a 4017 divide by 10 counter that will make it possible to add two more digits to the combination code.

The described electronic lock system utilizes a 40022 octal counter as its core component, which functions to manage the input sequence for unlocking. Upon powering the system, capacitor C2 is initially charged through resistor R5, ensuring that the reset input of the counter remains high. This configuration results in output Q being activated while all other outputs remain low, establishing the initial state of the lock.

The input mechanism includes a set of switches, with S4 designated as the primary switch for initiating the unlocking sequence. When S4 is engaged, it triggers the BS170 MOSFET, which is part of a debouncing network formed by resistor R2 and capacitor C1. This action sends a clock pulse to the 4022 octal counter, facilitating its operation. Concurrently, capacitor C2 discharges through resistor R4 and diode D1, effectively removing the reset signal from the counter and allowing it to increment its count.

The timing for the charging of C2 through R5 is critical; it determines the maximum allowable interval before the next key press is registered. This design ensures that the system is responsive to user input, requiring a specific sequence of key presses to achieve unlocking.

Once the correct sequence of keys has been entered within the designated time frame, output Q7 is activated for a duration of approximately four seconds. This output is connected to an unlocking relay, which physically disengages the lock mechanism. The system is designed to allow for reprogramming of the unlock code by altering the configuration of the switches. The default sequence provided is 4-8-0-1-5-7-0.

Furthermore, the design permits the substitution of the 4022 octal counter with a 4017 decade counter. This modification enables the inclusion of two additional digits in the combination code, enhancing the security and flexibility of the locking mechanism. The overall architecture of the circuit is conducive to both robustness and user adaptability, making it suitable for various applications requiring secure access control.The heart of the lock is the 40022 octal counter. When first powered C2 is charged via R5 so the reset input of the counter is kept high. That causes output Q to go high while all the other outputs are low. With the switches wired as shown, when S4 is pressed, the BS170 mosfet is switched on via debouncing network R2/C1, and the 4022 recieves a clock pulse. Also C2 is discharged via R4 and D1, removing the reset signal of the counter, allowing it to advance.

The time required for C2 to charge via R5 is the maximum time that can lapse before the next key is pressed in time. When all keys have been pressed in time and in the correct order, Q7 goes high for about four seconds to drive the unlocking relay etc. You can change the code by reviewing the switches. The code for the lock shown in image is 4-8-0-1-5-7-0. However, the 4022 octal counter can be replaced by a 4017 divide by 10 counter that will make it possible to add two more digits to the combination code.

🔗 External reference