Simple Code Lock

13,666

Circuit Image

The cycle is repeated only when the S7 switch at the Q1 output is pressed within the designated time frame. When all keys are pressed in the correct order and within the specified time, Q7 goes high for approximately 4 seconds, enabling the operation of the unlock circuitry, such as a relay driver for an automatic door opener. Central to the circuit is the Type 4022 octal counter. In its non-active state, capacitor C2 is charged through resistor R5, keeping the reset (R) input of the counter at a logic high level. This results in output Qc being activated, while all other outputs remain at logic low. When switch S1 is pressed, transistor T1 is turned on via a debouncing network comprising resistor R2 and capacitor C1, resulting in a clock pulse being sent to IC1. Additionally, capacitor C2 is discharged through resistor R4 and diode D1, which ends the reset state of the counter and allows it to advance. The code for the lock, as illustrated in the circuit diagram, is 1704570; this is merely an example, and the combination code can be easily modified by rearranging the connections between the counter outputs and the switches. Consequently, the number of possible combinations is 109 instead of 107. The quiescent current consumption of the code lock is negligible at 0.5 µA, making its operation feasible. The circuit functions effectively with any supply voltage between 6 and 15 V.

The described electronic circuit utilizes a Type 4022 octal counter, which is pivotal in the operation of a secure locking mechanism. The circuit is designed to ensure that a specific sequence of key presses must be adhered to for the unlocking process to occur. The S7 switch acts as a trigger that initiates the unlocking sequence only when pressed at the correct time. The output Q7, when activated, provides a signal that can drive an external relay, which in turn can operate an automatic door opener.

In its idle state, the circuit maintains the reset input of the octal counter in a high state through the charging of capacitor C2 via resistor R5. This configuration ensures that only output Qc is active while all other outputs remain low, establishing a stable starting condition for the counter. The pressing of switch S1 introduces a clock pulse to the counter by activating transistor T1 through a debouncing network, which is crucial for preventing false triggering due to switch bounce. The discharge of capacitor C2 through resistor R4 and diode D1 effectively resets the counter, allowing it to count up in response to subsequent key presses.

The locking mechanism's security is enhanced by the flexibility of the combination code, which can be changed by simply altering the connections between the counter outputs and the corresponding switches. This adaptability increases the number of possible combinations, thereby improving security. The circuit's low power consumption of 0.5 µA allows it to be powered by a wide range of supply voltages, making it suitable for various applications where battery life is a concern. The entire design reflects a balance of functionality, security, and efficiency, making it an effective solution for automatic locking systems.The above cycle is therefore repeated only when S7 at the Q1 output is pressed in time. When all keys have been pressed in time and in the correct order, Q7 goes 5 high for about 4 seconds to enable driving the unlock circuitry, e. g. a relay driver for an j automatic door opener. At the i heart of the circuit is the `Type 4022 octal counter. In th e non- active state, Cz is charged via R5, so that the reset (R) input of the counter is kept logic high. This causes output Qc to be actuated, while all other outputs are logic low. When S1 is pressed, T1 is switched on via debouncing network Rz ”C1, and IC1 receives a clock pulse. Also, Cz is discharged via R4-D1, ending the reset state of the counter and enabling it to I advance.

The 5 code for the lock shown in the T circuit diagram is 1704570: this is but an example, however, and i the combination code is readily Y altered by swapping connections between the counter out- puts and the switches. This means that the number of combinations is 109 instead of 107. The quiescent current consumption of the code lock ` negligible at 0. 5 JA, so that the operation is feasible. The circuit works well from any supply between 6 and 15V 🔗 External reference