工业控制 | 能源技术 | 汽车电子 | 通信网络 | 安防监控 | 智能电网 | 移动手持 | 无线技术 | 家用电器 | 数字广播 | 消费电子 | 应用软件 | 其他方案

4字控制键盘电路

作者:dolphin时间:2009-07-06

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.

ImgLoad(document.getElementById("BodyLabel"));


关键词: 控制 键盘

评论

技术专区