4字控制键盘电路

时间:2007-04-29

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 terminals will NOT do. The Alarm is set by pressing a single key. Choose the key you want to use and wire it to 'E'. Choose the four keys you want to use to switch the alarm off, and connect them to 'A B C & D'. Your code can include the non-numerIC symbols. With a 12-key pad, over 10 000 different codes are available. Wire the common to R1 and all the remaining keys to 'F'. When 'E' is pressed, current through D2 and R9 switches Q5 on. The relay energises, and then holds itself on by providing base current for Q5 through R10. The 12-volt output is switched from the "off " to the "set " terminal, and the LED lights. To switch the Alarm off again it is necessary to press A, B, C & D in the right order. The IC is a quad 2-input AND gate, a Cmos 4081. These gates only produce a high output when both inputs are high. Pin 1 is held high by R5. This 'enables' gate 1, so that when 'A' is pressed, the output at pin 3 will go high. This output does two jobs. It locks itself high using R2 and it enables gate 2 by taking pin 5 high. The remaining gates operate in the same way, each locking itself on through a resistor and enabling its successor. If the correct code is entered, pin 10 will switch Q4 on and so connect the base of Q5 to ground. This causes Q5 to switch off and the relay to drop out. Any keys not wired to 'A B C D or E' are connected to the base of Q3 by R7. Whenever one of these 'wrong' keys is pressed, Q3 takes pin 1 low. This removes the 'enable' from gate 1,



  
上一篇:基于CH365的PIC通信卡的设计
下一篇:用LM324等设计的低成本高温度测量电路

免责声明: 凡注明来源本网的所有作品,均为本网合法拥有版权或有权使用的作品,欢迎转载,注明出处。非本网作品均来自互联网,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。

相关技术资料