射频电路磁动触发装置 技术领域 Radio frequency circuit magnetic triggering device
本发明涉及一种射频电路磁动触发装置, 适用于射频产品的触发系统, 可应用于例如防盗锁具产品。 背景技术 The invention relates to a radio frequency circuit magnetic triggering device, which is suitable for a triggering system of a radio frequency product, and can be applied to, for example, an anti-theft lock product. Background technique
目前,一般的非触式射频电路,多用于门禁等的锁具控制系统如电控锁、 执手锁等中。 射频电路以非接触的方式读取密码卡的资料, 执行各种指令。 由于射频电路的功耗大于 20毫安, 因此系统需要使用充电电源。 如果条件 不允许使用有线充电电源, 就不能使用这种结构的射频电路, 必须使用具有 省电功能的产品。 要令系统具有省电功能, 一种可行的办法是: 在非工作状 态时使射频电路在待机时进入睡眠状态, 工作时再用触发系统启动射频电 路, 以此达到降低功耗、 省电之目的。 现有技术中, 常用的触发系统有: 红 外线触发系统、 人体感应系统两种。 红外线触发系统容易受外界因素影响, 如光线、 颜色等都容易引起误触发及电路失效。 人体感应系统(热炽)虽然 相对红外线较稳定, 但造价高, 而且也会引起误触发。 更需注意的是这两种 方案的待机状态耗电均超过 10微安, 同样存在功耗大的缺点。 发明内容 At present, the general non-contact RF circuit is mostly used in lock control systems such as door locks, such as electric locks, handle locks, and the like. The RF circuit reads the data of the password card in a non-contact manner and executes various instructions. Since the power consumption of the RF circuit is greater than 20 mA, the system needs to use a charging power source. If the condition does not allow the use of a wired charging power source, the RF circuit of this configuration cannot be used, and a product with power saving function must be used. To make the system have power-saving function, a feasible method is: when the non-working state makes the RF circuit enter the sleep state during standby, and then use the trigger system to start the RF circuit during operation, thereby reducing power consumption and saving power. purpose. In the prior art, commonly used trigger systems include: an infrared trigger system and a human body sensing system. The infrared trigger system is easily affected by external factors, such as light, color, etc., which can easily cause false triggering and circuit failure. Although the human body sensing system (hot blaze) is relatively stable relative to infrared rays, it is expensive and can cause false triggering. It is more important to note that the standby power consumption of these two schemes exceeds 10 microamps, which also has the disadvantage of large power consumption. Summary of the invention
本发明的目的在于提供一种射频电路磁动触发装置,以克服现有的红外 线触发系统、 人体感应系统存在的易引起误触发、 待机状态功耗大的缺点。 The object of the present invention is to provide a radio frequency circuit magnetic triggering device, which overcomes the shortcomings of the existing infrared triggering system, the human body sensing system, which is easy to cause false triggering, and the power consumption in the standby state is large.
为了实现上述目的, 本发明提供一种射频电路磁动触发装置, 其结构特 点是: 在射频电路模块的触发电路中设置磁动开关, 与磁动开关对应, 在密 码卡中设置磁触发体,由磁触发体驱动磁动开关完成接通或断开触发电路的 工作。 In order to achieve the above object, the present invention provides a radio frequency circuit magnetic triggering device, which has the following structural features: a magnetic switch is arranged in a trigger circuit of the radio frequency circuit module, corresponding to the magnetic switch, and a magnetic trigger body is disposed in the password card, The magnetic switch is driven by the magnetic trigger body to complete the operation of turning on or off the trigger circuit.
根据本发明的一个实施方案, 所述磁动开关由常规的干簧管构成, 与之 对应, 设置在密码卡中的磁触发体由常规的磁铁构成, 该磁铁可以是块状、 片状或粒状。 According to an embodiment of the present invention, the magnetic switch is constituted by a conventional reed switch, and correspondingly, the magnetic trigger body disposed in the code card is composed of a conventional magnet, and the magnet may be a block, a sheet or granular.
根据本发明的另一个实施方案, 所述磁动开关由常开型轻触式开关构 成, 该轻触式开关由两个金属触点和磁性弹簧片构成, 与之对应, 设置在密 码卡中的磁触发体由铁块、 铁片或铁粒构成。 According to another embodiment of the present invention, the magnetic switch is composed of a normally open type light touch switch, and the light touch switch is composed of two metal contacts and a magnetic spring piece, corresponding thereto, and is disposed in the password card. The magnetic trigger body is composed of iron, iron or iron particles.
根据本发明的另一个实施方案, 所述磁动开关由常开型轻触式开关构 成, 该轻触式开关由两个磁性触点和金属弹簧片构成, 与之对应, 设置在密 码卡中的磁角发体由铁块、 铁片或铁粒构成。
本发明具有如下突出效果: According to another embodiment of the present invention, the magnetic switch is composed of a normally open type light touch switch, and the light touch switch is composed of two magnetic contacts and a metal spring piece, corresponding thereto, and is disposed in the password card. The magnetic angle body is composed of iron, iron or iron particles. The invention has the following outstanding effects:
1、 本发明是以磁体装置触发射频电路的磁动开关。 由于构成触发回路 的元件为物理元件而非电子元件, 因此,磁动开关及整个触发回路不受外界 环境因素的影响, 性能非常稳定, 可靠性高。 待机时, 电路耗电为零, 使内 置电池在不充电状态下能延长工作时间并延长电池的使用寿命, 达到经济、 方便使用的目的。 1. The present invention is a magnetic switch that triggers a radio frequency circuit with a magnet device. Since the components constituting the trigger circuit are physical components rather than electronic components, the magnetic switch and the entire trigger circuit are not affected by external environmental factors, and the performance is very stable and highly reliable. In standby mode, the power consumption of the circuit is zero, which enables the built-in battery to prolong the working time and prolong the service life of the battery when it is not charged, achieving economical and convenient use.
2、 本发明能同时解决省电和抗干扰两方面问题, 具有结构筒单、 成本 低廉和使用方便的优点, 广泛适用于各种非触式射频电路的触发装置。 附图说明 2. The invention can solve the problems of power saving and anti-interference at the same time, and has the advantages of structural single tube, low cost and convenient use, and is widely applicable to various non-contact RF circuit triggering devices. DRAWINGS
图 1是本发明的射频电路的磁动触发开关的结构示意图; 1 is a schematic structural view of a magnetic trigger switch of a radio frequency circuit of the present invention;
图 2是本发明的密码卡的磁触发体的结构示意图; 2 is a schematic structural view of a magnetic trigger body of a PIN card of the present invention;
图 3是本发明的实施例 1的磁动开关结构示意图; Figure 3 is a schematic structural view of a magnetic switch of Embodiment 1 of the present invention;
图 4是本发明的实施例 2的磁动开关结构示意图; Figure 4 is a schematic structural view of a magnetic switch of Embodiment 2 of the present invention;
图 5是本发明的实施例 3的磁动开关结构示意图; Figure 5 is a schematic structural view of a magnetic switch of Embodiment 3 of the present invention;
图 6是本发明的红外线触发电路原理图; Figure 6 is a schematic diagram of an infrared trigger circuit of the present invention;
图 7是本发明的射频电路的原理图。 具体实施方式 Figure 7 is a schematic diagram of a radio frequency circuit of the present invention. detailed description
具体实施例 1 : Specific embodiment 1 :
参照图 1、 图 2、 图 3说明本发明的实施例 1。 Embodiment 1 of the present invention will be described with reference to Figs. 1, 2, and 3.
从图 1和图 2可知, 在射频电路模块 8的触发电路中设置磁动开关 1 , 与磁动开关 1对应, 在密码卡 9中设置磁触发体 2。 As can be seen from Fig. 1 and Fig. 2, a magnetic switch 1 is provided in the trigger circuit of the radio frequency circuit module 8, and corresponding to the magnetic switch 1, a magnetic trigger body 2 is provided in the cipher card 9.
从图 3可知, 磁动开关 1由常规的干簧管 7构成, 与之对应, 设置在密 码卡中的磁触发体 2由常规磁铁构成, 该磁铁可以呈块状、 片状或粒状。 As is apparent from Fig. 3, the magnetic switch 1 is constituted by a conventional reed switch 7, and correspondingly, the magnetic trigger body 2 provided in the cipher card is composed of a conventional magnet which may be in the form of a block, a sheet or a pellet.
具体实施例 2: Specific embodiment 2:
参照图 1、 图 2、 图 4说明本发明的实施例 2。 Embodiment 2 of the present invention will be described with reference to Figs. 1, 2, and 4.
从图 4可知, 本实施例区别于实施例 1的特点是: 磁动开关 1由常开型 轻触式开关构成。该轻触式开关由两个金属触点 3和磁性弹簧片 4构成。 与 之对应, 设置在密码卡中的磁触发体 2由铁块、 铁片或铁粒构成。 As can be seen from Fig. 4, the feature of this embodiment that is different from that of the embodiment 1 is that the magnetic switch 1 is composed of a normally open type light touch switch. The light touch switch is composed of two metal contacts 3 and a magnetic spring piece 4. Correspondingly, the magnetic trigger body 2 disposed in the password card is composed of iron, iron or iron particles.
具体实施例 3: Specific Example 3:
参照图 1、 图 2、 图 5说明本发明的实施例 3。 Embodiment 3 of the present invention will be described with reference to Figs. 1, 2, and 5.
从图 5可知, 本实施例区别于实施例 1、 2的特点是: 磁动开关 1由常 开型轻触式开关构成,该轻触式开关由两个磁性触点 5和金属弹簧片 6构成, 与之对应, 设置在密码卡中的磁触发体 2由铁块、 铁片或铁粒构成。
从图 1、 图 2、 图 3可知, 当密码卡 7靠近干簧管 7时, 密码卡中的磁 触发体 2驱动干簧管 7瞬时接通,即射频电路模块 8的触发电路中设置的磁 动开关 1瞬时接通, 触发电路驱动射频电路模块 8按设定时间工作, 在设定 工作时间之后, 射频电路模块 8处于睡眠状态。 在睡眠状态下, 触发电路断 开, 整个系统都不通电, 因此, 为零功耗。 从图 4、 图 5可知, 两种结构的 轻触式开关 3都可通过密码卡中的磁触发体 2的驱动而接通,即在磁触发体 2靠近时接通、 在磁触发体 2离开时断开, 轻触式开关 3为常开状态。 待机 时, 电路处于零耗电状态。读卡时,密码卡 9内的触发体 2以磁性触发电路, 磁动开关 1打开读卡模块的工作电路, 完成整个读卡程序。 在整个读卡过程 中, 密码卡 9与电路均以非接触式完成工作。 As can be seen from FIG. 5, the features of this embodiment that are different from those of Embodiments 1 and 2 are: The magnetic switch 1 is composed of a normally open type light touch switch, and the light touch switch is composed of two magnetic contacts 5 and a metal spring piece 6 According to the configuration, the magnetic trigger body 2 provided in the password card is composed of an iron block, an iron piece or an iron piece. As can be seen from FIG. 1, FIG. 2 and FIG. 3, when the PIN card 7 is close to the reed switch 7, the magnetic trigger body 2 in the PIN card drives the reed switch 7 to be turned on instantaneously, that is, set in the trigger circuit of the RF circuit module 8. The magnetic switch 1 is momentarily turned on, and the trigger circuit drives the radio frequency circuit module 8 to operate according to the set time. After the set working time, the radio frequency circuit module 8 is in a sleep state. In the sleep state, the trigger circuit is disconnected and the entire system is not powered, so zero power consumption. As can be seen from FIG. 4 and FIG. 5, the two-touch tactile switch 3 can be turned on by the driving of the magnetic trigger body 2 in the PIN card, that is, when the magnetic trigger body 2 approaches, the magnetic trigger body 2 is turned on. When leaving, the touch switch 3 is normally open. In standby mode, the circuit is in a zero-power state. When the card is read, the trigger body 2 in the password card 9 is magnetically triggered, and the magnetic switch 1 opens the working circuit of the card reading module to complete the entire card reading process. During the entire card reading process, both the PIN card 9 and the circuit work in a contactless manner.
本发明是利用恒磁触发射频电路工作,是物理元件在起作用,不受光线、 人体等外部条件以及元件本身损坏的影响, 具有稳定、 安全、 可靠的特点。 The invention utilizes the constant magnetic force to trigger the operation of the radio frequency circuit, and the physical component is in effect, and is not affected by external conditions such as light, human body and the damage of the component itself, and has the characteristics of stability, safety and reliability.
图 6显示的是本发明中使用的红外线触发电路,主要包括振荡电路 601、 红外发射电路 602、 红外接收和脉冲输出电路 603以及稳压电路 604。 振荡 电路 601主要由集成芯片 IC1 IC6及其外围的电阻、电容连接而成以产生振 荡信号, 芯片 IC1 IC6的型号为 74HC04。 红外发射电路 602由三极管 Ql、 Q2、 红外发射管 T1及其外围的电阻连接而成, 三极管 Ql、 Q2构成信号放 大激励电路。 红外接收和脉冲输出电路 603主要由三极管 Q3、 红外接收管 T2及其外围的电阻、 电容连接而成, Q3及其外围的电阻、 电容构成触发电 路,其输出端 M0连接至图 7的输入端 Tr。其工作原理是:由集成芯片 74HC04 为主器件的振荡电路驱动红外线管持续输出脉冲信号。当有物件靠近红外线 管时, 物件反射信号到红外接收管上, 当达到阀值时输出触发电压。 6 shows an infrared trigger circuit used in the present invention, which mainly includes an oscillation circuit 601, an infrared emission circuit 602, an infrared reception and pulse output circuit 603, and a voltage stabilization circuit 604. The oscillating circuit 601 is mainly formed by connecting the integrated chip IC1 IC6 and its peripheral resistors and capacitors to generate an oscillating signal. The chip IC1 IC6 is model 74HC04. The infrared transmitting circuit 602 is formed by connecting the transistors Q1, Q2, the infrared transmitting tube T1 and its peripheral resistors, and the transistors Q1 and Q2 constitute a signal amplification driving circuit. The infrared receiving and pulse output circuit 603 is mainly formed by a transistor Q3, an infrared receiving tube T2 and its peripheral resistors and capacitors. Q3 and its peripheral resistors and capacitors form a trigger circuit, and its output terminal M0 is connected to the input terminal of FIG. Tr. The working principle is as follows: the oscillating circuit of the integrated chip 74HC04 as the main device drives the infrared tube to continuously output the pulse signal. When an object is close to the infrared tube, the object reflects the signal to the infrared receiving tube and outputs a trigger voltage when the threshold is reached.
图 7是射频电路原理图。 图 7所示的射频电路由电源供电与控制电路 701、电机驱动电路 702、读卡模块 703、单片机微处理器 704、蜂鸣电路 705、 选通电路 706、 数据存储器 707、 充电电路 708、 指示灯电路 709连接而成。 Figure 7 is a schematic diagram of the RF circuit. The RF circuit shown in FIG. 7 is powered by a power supply and control circuit 701, a motor drive circuit 702, a card reader module 703, a microcontroller microprocessor 704, a buzzer circuit 705, a gating circuit 706, a data memory 707, a charging circuit 708, and an indication. The lamp circuits 709 are connected.
电源供电与控制电路 701主要包括可控硅 SCR和三极管 Ql、 Q2、 Q3 , 用于为整个射电路供电。其中由 PNP型三极管控制电源供电,由可控硅 SCR 控制三极管的通 /断。 The power supply and control circuit 701 mainly includes a thyristor SCR and transistors Ql, Q2, and Q3 for supplying power to the entire radio circuit. It is powered by a PNP-type triode control power supply, and the thyristor SCR controls the on/off of the triode.
电机驱动电路 702由八个三极管构成 H桥电路,控制电机 M的正反转。 读卡模块 703由集成模块 ID和电感线圈 L构成。 用 125Khz信号发生 器驱动电感线圈 L产生磁场。 当 ID卡在感应范围内感应到超过 2.5V阀值 的电压时, 向线圈 L发射信号, 该信号经过线圈 L进入读卡模块的解调线 路后变成 TTL电平信号, 送给单片机系统进行解码。 The motor drive circuit 702 is composed of eight triodes and constitutes an H-bridge circuit for controlling the forward and reverse rotation of the motor M. The card reading module 703 is composed of an integrated module ID and an inductor L. A magnetic field is generated by driving the inductor L with a 125 Khz signal generator. When the ID card senses a voltage exceeding a threshold of 2.5V in the sensing range, a signal is transmitted to the coil L, and the signal enters the demodulation line of the card reading module through the coil L, and becomes a TTL level signal, which is sent to the single chip system. decoding.
单片机系统 704 主要包括单片机芯片 AT89C2051 及其外围的晶振 OCRl。
蜂鸣电路 705包括蜂鸣器 BZ, 以形成发声装置。 它可根据单片机系统 704输出的信号发声。 The single chip microcomputer system 704 mainly includes a single chip chip AT89C2051 and its peripheral crystal oscillator OCR1. The buzzer circuit 705 includes a buzzer BZ to form a sounding device. It can be audible according to the signal output by the single chip system 704.
选通电路 706包括光耦合管 0CT1、 整流桥、 二极管、 电阻、 电容和按 键构成。 通过按键实现单片机发卡、 删卡等工作。 The gating circuit 706 includes a photocoupler 0CT1, a rectifier bridge, a diode, a resistor, a capacitor, and a push button. Through the buttons, the MCU issues cards and deletes cards.
数据存储器 707包括存储芯片 AT24C16, 用以存储相关的数据如 ID码 等。 充电电路 708包括稳压芯片 LM317及其相应的外围电路。 指示灯电路 709采用发光二极管构成。 The data memory 707 includes a memory chip AT24C16 for storing related data such as an ID code. The charging circuit 708 includes a voltage stabilizing chip LM317 and its corresponding peripheral circuit. The indicator circuit 709 is formed by a light emitting diode.
根据本发明, 当触发端 Tr的触发使得读卡模块 703通电工作时, 读卡 模块的线圈 L在其周围形成电磁场,其范围为 5-10mm左右(根据线圈大小;)。 当密码卡如 ID卡进入该区域后, ID卡内部的线圈感应电压超出其阀值时, 该卡即向读卡模块 703返回一串脉冲信号, 此信号就是该卡的唯一 ID码。 读卡模块 703中的控制单元即单片机系统 704对接收的 ID码进行处理, 并 将之与数据存储器 707里的 ID码相比较。如果此卡的 ID已存入数据存储器 707 内, 则执行开锁任务; 如果此卡的 ID不在数据存储器内, 则系统不做 出反应。
According to the present invention, when the triggering of the trigger terminal Tr causes the card reading module 703 to be energized, the coil L of the card reading module forms an electromagnetic field around it, which ranges from about 5 to 10 mm (depending on the coil size;). When the password card enters the area, such as the ID card, when the coil induction voltage inside the ID card exceeds its threshold, the card returns a series of pulse signals to the card reading module 703, and the signal is the unique ID code of the card. The control unit in the card reader module 703, i.e., the microcontroller system 704, processes the received ID code and compares it with the ID code in the data memory 707. If the ID of this card has been stored in data memory 707, the unlocking task is performed; if the ID of this card is not in the data memory, the system does not respond.