With the values of C4 & R4 as shown - and with R4 set to its maximum - the relay will de-energized about one minute after "D" is released. However - if you replace C4 with a 100nF capacitor - and replace R4 with a 4k7 fixed resistor - the relay will de-energize the moment "D" is released.
Any keys not wired to "A B C & D" are connected to the base of Q2. Whenever one of these "Wrong" keys is pressed - Q2 takes pin 1 low and the code entry fails. Similarly, if "C" or "D" is pressed out of sequence - Q4 or Q3 will take pin 1 low and the code entry will fail. If you make a mistake while entering the code - simply start again.
The Keypad must be the kind with a common terminal and a separate connection for each key. On a 12-key pad, look for 13 terminals. The matrix type with 7 or 8 terminals will NOT do. A 12-key pad has eight "Wrong" keys connected to "E". If you need a more secure code - use a bigger keypad with more "Wrong" keys.
The Support Material for this circuit includes a step-by-step guide to the construction of the circuit board, a parts list, a detailed circuit description and more.
Veroboard LayoutCircuit Exchange International | Return to Switching Circuits | https://www.cxi1.co.uk |