CN110618380A - Hall switch valve detection circuitry that targets in place - Google Patents

Hall switch valve detection circuitry that targets in place Download PDF

Info

Publication number
CN110618380A
CN110618380A CN201910794686.9A CN201910794686A CN110618380A CN 110618380 A CN110618380 A CN 110618380A CN 201910794686 A CN201910794686 A CN 201910794686A CN 110618380 A CN110618380 A CN 110618380A
Authority
CN
China
Prior art keywords
hall sensor
circuit
microprocessor
hall
valve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910794686.9A
Other languages
Chinese (zh)
Other versions
CN110618380B (en
Inventor
张赓炜
蒋韦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goldcard Smart Group Co Ltd
Original Assignee
Goldcard Smart Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goldcard Smart Group Co Ltd filed Critical Goldcard Smart Group Co Ltd
Priority to CN201910794686.9A priority Critical patent/CN110618380B/en
Publication of CN110618380A publication Critical patent/CN110618380A/en
Application granted granted Critical
Publication of CN110618380B publication Critical patent/CN110618380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16KVALVES; TAPS; COCKS; ACTUATING-FLOATS; DEVICES FOR VENTING OR AERATING
    • F16K37/00Special means in or on valves or other cut-off apparatus for indicating or recording operation thereof, or for enabling an alarm to be given
    • F16K37/0025Electrical or magnetic means
    • F16K37/0041Electrical or magnetic means for measuring valve parameters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • G01R31/3277Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

本发明涉及智能燃气表领域,尤其涉及一种霍尔开关阀到位检测电路,包括:霍尔传感器,用于检测设置在阀门上的磁钢所发出的磁信号,并根据检测到的磁信号输出到位信号;与霍尔传感器电路连接的微处理器,用于发出开阀驱动信号或者关阀驱动信号驱动阀门的行进,还用于接收霍尔传感器发出的到位信号,根据到位判断信号判断阀门是否开阀到位或者关阀到位;与微处理器以及霍尔传感器电路连接的电源适配电路,用于接收微处理器发出的开阀驱动信号或者关阀驱动信号,所述微处理器通过电源适配电路为霍尔传感器供电,同时为霍尔传感器电路提供参考地连接。本发明具备以下有益效果:实现阀门开阀到位和关阀到位的检测;电路结构简单,降低了产品的成本。

The present invention relates to the field of smart gas meters, in particular to a Hall switch valve in-position detection circuit, comprising: a Hall sensor, used to detect the magnetic signal sent by the magnetic steel arranged on the valve, and output according to the detected magnetic signal In-position signal; the microprocessor connected to the Hall sensor circuit is used to send the valve opening drive signal or the valve closing drive signal to drive the valve to advance, and is also used to receive the in-position signal sent by the Hall sensor, and judge whether the valve is in place according to the in-position judgment signal. The valve is opened to the right position or the valve is closed to the right position; the power adapter circuit connected with the microprocessor and the Hall sensor circuit is used to receive the valve opening drive signal or the valve closing drive signal sent by the microprocessor. The distribution circuit supplies power to the Hall sensor and provides a reference ground connection for the Hall sensor circuit. The invention has the following beneficial effects: the detection of valve opening and closing positions is realized; the circuit structure is simple, and the cost of the product is reduced.

Description

一种霍尔开关阀到位检测电路A Hall switch valve in-position detection circuit

技术领域technical field

本发明涉及智能燃气表领域,尤其涉及一种霍尔开关阀到位检测电路。The invention relates to the field of intelligent gas meters, in particular to a Hall switch valve in-position detection circuit.

背景技术Background technique

随着人们生活水平和生活质量的提高,现代化家庭所需要的智能化产品需求,将促使智能燃气表朝着安全性、可靠性、智能方便性方向发展。目前国内的智能燃气表主要有IC卡智能燃气表、CPU卡智能燃气表、射频卡智能燃气表、有线远传表、无线远传表、物联网智能燃气表等这几大类。而实现燃气表智能化的应用不只有单片机芯片,有线、无线通信模组,还有一个关键零部件是“燃气表电机阀门”。智能燃气表可通过远程控制其阀门开或关,实现远程控制异常用户家庭天然气使用的开通与关断,从而保证天然气的安全、合理的使用。With the improvement of people's living standards and quality of life, the demand for intelligent products required by modern families will promote the development of smart gas meters in the direction of safety, reliability, and smart convenience. At present, domestic smart gas meters mainly include IC card smart gas meters, CPU card smart gas meters, radio frequency card smart gas meters, wired remote meters, wireless remote meters, and Internet of Things smart gas meters. The application to realize the intelligentization of gas meters is not only the single-chip microcomputer chip, wired and wireless communication modules, but also a key component is the "gas meter motor valve". The smart gas meter can remotely control the opening or closing of its valve to realize the remote control of the opening and closing of the natural gas use of abnormal users' homes, so as to ensure the safe and reasonable use of natural gas.

为提高智能燃气表的安全性和可靠性,对燃气表电机阀门的开或关到位信号检测至关重要。如果阀门关阀不到位,将会导致出现漏气的情况,给国家和人民财产带来重大损失;阀门开阀不到位,将会导致不能满足用户家庭的正常使用。所以智能燃气表阀门的开或关到位与否,直观影响了智能燃气表的产品性能质量。In order to improve the safety and reliability of the smart gas meter, it is very important to detect the open or close position signal of the gas meter motor valve. If the valve is not closed in place, it will cause air leakage, which will bring great losses to the country and people's property; if the valve is not opened in place, it will not meet the normal use of the user's family. Therefore, whether the smart gas meter valve is opened or closed in place directly affects the product performance and quality of the smart gas meter.

当前的工商业及家庭民用燃气表使用的到位检测装置及其电子电路霍尔传感器电路,多与电机阀门做成一体,以保证检测的准确性、时效性。目前使用的霍尔开关阀到位检测电路,是应用电机阀门运转时一起带动连杆上磁钢组件运动,当磁钢运转至霍尔传感器的磁性运行工作点(BOP)时,触发霍尔传感器输出低电平信号反馈给单片机处理,并判定电机阀门关阀到位,而无法实现阀门的开阀到位检测。此外,现有的霍尔传感器电路使用的电源与参考地,与主控电路板都是使用单独的导线连接,再加上霍尔传感器输出的一根信号线,以及电机阀门开关阀两根控制导线,共使用5根导线。电机阀门与主控电路板通过线束连接,电机阀门的驱动信号线和传感器检测电路与主控电路板部分都是分离设计,与主控电路板的连接使用多根外置导线连接与进行数据交互;而对于电子产品来说,外置导线连接交互的信号线的数量越多,导致产品失效的变量因素也将增多;对于大批量生产的产品而言,连接导线越多,接插件的成本也会逐针增加,从而增加了生产成本,与此同时也降低了产品生产的效率。The in-position detection device and its electronic circuit Hall sensor circuit used in the current industrial, commercial and domestic civil gas meters are mostly integrated with the motor valve to ensure the accuracy and timeliness of the detection. The currently used Hall switch valve in-position detection circuit uses the motor valve to drive the magnetic steel assembly on the connecting rod to move together. When the magnetic steel rotates to the magnetic operating point (BOP) of the Hall sensor, the Hall sensor output is triggered. The low-level signal is fed back to the single-chip microcomputer for processing, and it is judged that the valve closing position of the motor valve is in place, but the detection of the valve opening position of the valve cannot be realized. In addition, the power supply and reference ground used in the existing Hall sensor circuit are connected to the main control circuit board using separate wires, plus a signal line output by the Hall sensor, and two control valves for the motor valve switch valve. Wire, a total of 5 wires are used. The motor valve is connected to the main control circuit board through a wire harness. The drive signal line of the motor valve and the sensor detection circuit are designed separately from the main control circuit board. The connection with the main control circuit board uses multiple external wires to connect and perform data interaction. ; For electronic products, the more the number of external wires connecting the interactive signal lines, the more variable factors will lead to product failure; for mass-produced products, the more connecting wires, the higher the cost of connectors. It will increase needle by needle, thereby increasing the production cost, and at the same time reducing the efficiency of product production.

发明内容Contents of the invention

为解决上述问题,本发明提出一种霍尔开关阀到位检测电路,以实现阀门关阀、开阀到位检测,同时连接导线少,成本低。In order to solve the above problems, the present invention proposes a Hall switch valve in-position detection circuit to realize valve closing and valve opening in-position detection, and at the same time, there are fewer connecting wires and low cost.

一种霍尔开关阀到位检测电路,包括:A Hall switch valve in-position detection circuit, comprising:

霍尔传感器,用于检测设置在阀门上的磁钢所发出的磁信号,并根据检测到的磁信号输出到位信号;The Hall sensor is used to detect the magnetic signal sent by the magnet set on the valve, and output the in-position signal according to the detected magnetic signal;

与霍尔传感器电路连接的微处理器,用于发出开阀驱动信号或者关阀驱动信号驱动阀门的行进,还用于接收霍尔传感器发出的到位信号,根据到位判断信号判断阀门是否开阀到位或者关阀到位;The microprocessor connected with the hall sensor circuit is used to send the valve opening drive signal or the valve closing drive signal to drive the valve to move forward, and is also used to receive the in-position signal from the Hall sensor, and judge whether the valve is in place according to the in-position judgment signal Or close the valve in place;

与微处理器以及霍尔传感器电路连接的电源适配电路,用于接收微处理器发出的开阀驱动信号或者关阀驱动信号,所述微处理器通过电源适配电路为霍尔传感器供电,同时为霍尔传感器电路提供参考地连接。The power adapter circuit connected to the microprocessor and the Hall sensor circuit is used to receive the valve opening drive signal or the valve close drive signal sent by the microprocessor, and the microprocessor supplies power to the Hall sensor through the power adapter circuit, Also provide a reference ground connection for the Hall sensor circuit.

优选的,所述电源适配电路包括:三极管Q1、Q2、二极管D1、D2,Preferably, the power adaptation circuit includes: transistors Q1, Q2, diodes D1, D2,

所述三极管Q1的基极连接微处理器,三极管Q1的发射极连接微处理器,三极管Q1的集电极连接参考地,所述三极管Q2的基极连接微处理器,三极管Q2的发射极连接微处理器,三极管Q2的集电极连接参考地,所述二极管D1的正极连接微处理器,二极管D1的负极连接参考地以及霍尔传感器电路的电源输入端,所述二极管D2的正极连接微处理器,二极管D2的负极连接参考地以及霍尔传感器电路的电源输入端。The base of the triode Q1 is connected to the microprocessor, the emitter of the triode Q1 is connected to the microprocessor, the collector of the triode Q1 is connected to the reference ground, the base of the triode Q2 is connected to the microprocessor, and the emitter of the triode Q2 is connected to the microprocessor. processor, the collector of the transistor Q2 is connected to the reference ground, the anode of the diode D1 is connected to the microprocessor, the cathode of the diode D1 is connected to the reference ground and the power input terminal of the Hall sensor circuit, and the anode of the diode D2 is connected to the microprocessor , the cathode of the diode D2 is connected to the reference ground and the power input terminal of the Hall sensor circuit.

优选的,所述电源适配电路还包括:电阻R1、R2、R3,Preferably, the power adaptation circuit further includes: resistors R1, R2, R3,

所述电阻R1的一端连接微处理器,电阻R1的另一端连接三极管Q1的基极,所述电阻R2的一端连接微处理器,电阻R2的另一端连接三极管Q2的基极,所述电阻R3的一端连接二极管D1的负极以及二极管D2的负极,电阻R3的另一端连接霍尔传感器电路。One end of the resistor R1 is connected to the microprocessor, the other end of the resistor R1 is connected to the base of the transistor Q1, one end of the resistor R2 is connected to the microprocessor, the other end of the resistor R2 is connected to the base of the transistor Q2, and the resistor R3 One end of the resistor R3 is connected to the cathode of the diode D1 and the cathode of the diode D2, and the other end of the resistor R3 is connected to the Hall sensor circuit.

优选的,所述霍尔传感器电路包括:霍尔传感器以及电容C1,Preferably, the Hall sensor circuit includes: a Hall sensor and a capacitor C1,

所述霍尔传感器的电源输入端连接电源适配电路的输出端,霍尔传感器的接地端连接参考地,霍尔传感器的输出端连接微处理器,电容C1的一端连接霍尔传感器的电源输入端,电容C1的另一端连接霍尔传感器的接地端。The power input terminal of the Hall sensor is connected to the output terminal of the power adapter circuit, the ground terminal of the Hall sensor is connected to the reference ground, the output terminal of the Hall sensor is connected to the microprocessor, and one end of the capacitor C1 is connected to the power input of the Hall sensor end, and the other end of capacitor C1 is connected to the ground end of the Hall sensor.

优选的,所述霍尔传感器电路包括:至少两个安装在不同方位霍尔传感器以及与霍尔传感器数量相同的电容,Preferably, the Hall sensor circuit includes: at least two Hall sensors installed in different orientations and the same number of capacitors as the Hall sensors,

所述霍尔传感器的电源输入端均连接电源适配电路的输出端,霍尔传感器的接地端均连接参考地,霍尔传感器的输出端均连接微处理器,霍尔传感器电源输入端与霍尔传感器的接地端之间连接有电容。The power input terminals of the Hall sensors are all connected to the output terminals of the power adapter circuit, the ground terminals of the Hall sensors are connected to the reference ground, the output terminals of the Hall sensors are connected to the microprocessor, and the power input terminals of the Hall sensors are connected to the Hall sensor. A capacitor is connected between the ground terminals of the sensor.

优选的,还包括:连接在霍尔传感器电路的输出端,用于霍尔传感器电路输出到位信号电平转换的电平转换模块,所述电平转换模块的输出端连接微处理器。Preferably, it also includes: a level conversion module connected to the output end of the Hall sensor circuit, used for level conversion of the output of the Hall sensor circuit to the bit signal, and the output end of the level conversion module is connected to the microprocessor.

优选的,所述电平转换模块包括:与霍尔传感器数量相同的第一电平转换电路,所述第一电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,所述第一电平转换电路的输出端连接微处理器。Preferably, the level shifting module includes: a first level shifting circuit having the same number as the Hall sensor, and the first level shifting circuit is connected to the output terminal of the Hall sensor, and is used for the Hall sensor to output an in-position signal The level conversion of the first level conversion circuit, the output end of the first level conversion circuit is connected to the microprocessor.

优选的,所述第一电平转换电路包括:电阻R4以及二极管D3,Preferably, the first level conversion circuit includes: a resistor R4 and a diode D3,

所述电阻R4的一端连接电源端,电阻R4的另一端连接微处理器以及二极管D3的正极,所述二极管D3的负极连接霍尔传感器的输出端。One end of the resistor R4 is connected to the power supply terminal, the other end of the resistor R4 is connected to the microprocessor and the anode of the diode D3, and the cathode of the diode D3 is connected to the output end of the Hall sensor.

优选的,所述电平转换模块包括:第二电平转换电路,所述第二电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,所述第二电平转换电路的输出端连接微处理器,Preferably, the level conversion module includes: a second level conversion circuit, the second level conversion circuit is connected to the output terminal of the Hall sensor, and is used for level conversion of the Hall sensor output to the position signal, and the The output end of the second level conversion circuit is connected to the microprocessor,

所述第二电平转换电路包括:二极管D4、D5以及电阻R5,所述二极管D4的负极连接霍尔传感器的输出端,二极管D5的正极连接微处理器、电阻R5的一端以及二极管D5的正极,所述电阻R5的另一端连接电源端,所述二极管D5的负极连接霍尔传感器的输出端。The second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of the diode D4 is connected to the output terminal of the Hall sensor, the anode of the diode D5 is connected to the microprocessor, one end of the resistor R5 and the anode of the diode D5 , the other end of the resistor R5 is connected to the power supply end, and the cathode of the diode D5 is connected to the output end of the Hall sensor.

优选的,还包括:与霍尔传感器数量相同的输出电路,所述输出电路连接在霍尔传感器的输出端,包括:电阻R6以及电容C2,Preferably, it also includes: an output circuit having the same number as the Hall sensor, and the output circuit is connected to the output terminal of the Hall sensor, including: a resistor R6 and a capacitor C2,

所述电阻R6的一端连接霍尔传感器的输出端,另一端连接微处理器以及电容C2的一端,所述电容C2的另一端连接参考地。One end of the resistor R6 is connected to the output end of the Hall sensor, the other end is connected to the microprocessor and one end of the capacitor C2, and the other end of the capacitor C2 is connected to the reference ground.

本发明具备以下有益效果:The present invention has the following beneficial effects:

1.电路运行安全、可靠,实现较少的与主控板之间的连接导线数量,只需要两根驱动信号线以及与阀门开、关到位后,霍尔传感器检测输出的一根输出信号线,并接入微处理器中进行信号处理,不需要再单独从主控板接入VCC电源线和GND参考地线,降低了产品失效变量因素,降低了产品的成本。同时使用浮地设计,抑制了主控板上干扰信号的接入,提升了电路抗干扰性能。1. The operation of the circuit is safe and reliable, and the number of connecting wires to the main control board is reduced. Only two driving signal wires and one output signal wire for the Hall sensor to detect the output after the valve is opened and closed are in place. , and connected to the microprocessor for signal processing, it is not necessary to connect the VCC power line and the GND reference ground line separately from the main control board, which reduces the variable factors of product failure and reduces the cost of the product. At the same time, the floating ground design is used to suppress the access of interference signals on the main control board and improve the anti-interference performance of the circuit.

2.对于阀门的开阀、关阀到位都可以实现独立检测,微处理器输出的驱动信号在高低电平转换中,总会有一个高电平信号导通正向二极管,为后面霍尔传感器电路提供电源使其工作;2. Independent detection can be realized for the opening and closing of the valve. During the high-low level conversion of the driving signal output by the microprocessor, there will always be a high-level signal that conducts the forward diode, which is used for the rear Hall sensor. The circuit provides power to make it work;

3.霍尔传感器电路由于直接取用电源适配电路的高电平电压而供电工作,可保证霍尔传感器的动作响应时间,同时当没有驱动信号时,霍尔传感器没有工作电源,此时霍尔开关阀到位检测电路的静态功耗为零功耗,提升了使用寿命;3. The Hall sensor circuit is powered by the high-level voltage of the power adapter circuit directly, which can ensure the action response time of the Hall sensor. At the same time, when there is no driving signal, the Hall sensor has no working power. The static power consumption of the switch valve in-position detection circuit is zero power consumption, which improves the service life;

4.在霍尔传感器电路中增加多个霍尔传感器,霍尔传感器置于不同方位来实现对磁钢磁性的检测,从多个空间方位的检测来提高检测的灵敏度,还可以实现对长行程阀门开通或关断到位信号的判断;4. Add multiple Hall sensors to the Hall sensor circuit. The Hall sensors are placed in different orientations to detect the magnetism of the magnetic steel. The detection sensitivity can be improved from the detection of multiple spatial orientations, and the long-stroke distance can also be realized. Judgment of valve opening or closing in place signal;

5.第二电平转换电路对霍尔传感器电路输出的信号进行多次判断,以实现对于阀门到位信号两次判断,以防止误判。5. The second level conversion circuit performs multiple judgments on the signal output by the Hall sensor circuit to realize two judgments on the valve in-position signal to prevent misjudgment.

附图说明Description of drawings

下面结合附图和具体实施方式对本发明作进一步详细的说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

图1是本发明实施例一一种霍尔开关阀到位检测电路的模块连接示意图;Fig. 1 is a schematic diagram of module connection of a Hall switch valve in-position detection circuit according to an embodiment of the present invention;

图2是本发明实施例一一种霍尔开关阀到位检测电路中电源适配电路和霍尔传感器电路的电路原理图;Fig. 2 is a schematic circuit diagram of a power supply adaptation circuit and a Hall sensor circuit in a Hall switch valve in-position detection circuit according to an embodiment of the present invention;

图3是本发明实施例二一种霍尔开关阀到位检测电路的电路原理图;3 is a schematic circuit diagram of a Hall switch valve in-position detection circuit in Embodiment 2 of the present invention;

图4是本发明实施例三一种霍尔开关阀到位检测电路的电路原理图;Fig. 4 is a schematic circuit diagram of a Hall switch valve in-position detection circuit according to Embodiment 3 of the present invention;

图5是本发明实施例四一种霍尔开关阀到位检测电路的电路原理图;5 is a schematic circuit diagram of a Hall switch valve in-position detection circuit according to Embodiment 4 of the present invention;

图6是本发明实施例五一种霍尔开关阀到位检测电路的电路原理图。Fig. 6 is a schematic circuit diagram of a Hall switch valve in-position detection circuit according to Embodiment 5 of the present invention.

具体实施方式Detailed ways

以下结合附图,对本发明的技术方案作进一步的描述,但本发明并不限于这些实施例。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings, but the present invention is not limited to these embodiments.

实施例一Embodiment one

本发明实施例一的基本思想是通过电源适配电路为霍尔传感器电路提供电源以及参考地连接,只保留微处理器输出的第一驱动信号、第二驱动信号以及霍尔传感器电路输出信号对应的3根导线,降低了产品失效变量因素,降低了产品的成本;微处理器输出的驱动信号在高低电平转换中,总会有一个高电平信号导通正向二极管,为后面霍尔传感器电路提供电源使其工作,从而实现对于阀门的开阀、关阀到位都可以实现独立检测。The basic idea of Embodiment 1 of the present invention is to provide power supply and reference ground connection for the Hall sensor circuit through the power adapter circuit, and only keep the correspondence between the first drive signal and the second drive signal output by the microprocessor and the output signal of the Hall sensor circuit. The 3 wires reduce the variable factors of product failure and reduce the cost of the product; during the high-low level conversion of the drive signal output by the microprocessor, there will always be a high-level signal that conducts the forward diode, which is used for the later Hall The sensor circuit provides power to make it work, so as to realize the independent detection of the valve opening and closing position.

基于上述构想,本发明实施例一提出一种霍尔开关阀到位检测电路,如图1所示,包括:霍尔传感器,用于检测设置在阀门上的磁钢所发出的磁信号,并根据检测到的磁信号输出到位信号;与霍尔传感器电路连接的微处理器,用于发出开阀驱动信号或者关阀驱动信号驱动阀门的行进,还用于接收霍尔传感器发出的到位信号,根据到位判断信号判断阀门是否开阀到位或者关阀到位;与微处理器以及霍尔传感器电路连接的电源适配电路,用于接收微处理器发出的开阀驱动信号或者关阀驱动信号,所述微处理器通过电源适配电路为霍尔传感器供电,同时为霍尔传感器电路提供参考地连接。Based on the above ideas, Embodiment 1 of the present invention proposes a Hall switch valve in-position detection circuit, as shown in Figure 1, including: a Hall sensor, used to detect the magnetic signal sent by the magnetic steel installed on the valve, and according to The detected magnetic signal outputs an in-position signal; the microprocessor connected to the Hall sensor circuit is used to send a valve-opening drive signal or a valve-closing drive signal to drive the valve to advance, and is also used to receive the in-position signal sent by the Hall sensor. The in-position judgment signal judges whether the valve is fully opened or closed; the power adapter circuit connected to the microprocessor and the Hall sensor circuit is used to receive the valve-opening drive signal or the valve-closing drive signal sent by the microprocessor. The microprocessor supplies power to the Hall sensor through the power adapter circuit, and at the same time provides a reference ground connection for the Hall sensor circuit.

当需要开通阀门或者关断阀门时,微处理器给电源适配电路发送开阀或关阀的驱动信号;电源适配电路接收微处理器发出的驱动信号并将驱动信号的电平电压作为霍尔传感器的电源,同时为霍尔传感器电路提供参考地连接;而此时的霍尔传感器电路,直接使用电源适配电路输出的开通或关断驱动信号的电平电压作为电源;当阀门行进至可以感应到磁钢的磁场时,并达到霍尔传感器的磁性工作点时,霍尔传感器电路输出到位信号,并反馈到微处理器处理,微处理器根据到位信号判断阀门是否开阀到位或者关阀到位,同时微处理器停止给电源适配电路发送开阀或关阀指令,从而驱动信号也消失,阀门的开通或关断动作停止,最终完成阀门开阀或关阀的到位检测工作。When the valve needs to be opened or closed, the microprocessor sends a drive signal to the power adapter circuit to open or close the valve; the power adapter circuit receives the drive signal sent by the microprocessor and uses the level voltage of the drive signal as the Huo Hall sensor power supply, while providing a reference ground connection for the Hall sensor circuit; at this time, the Hall sensor circuit directly uses the level voltage of the on or off drive signal output by the power adapter circuit as the power supply; when the valve travels to When the magnetic field of the magnetic steel can be sensed and the magnetic working point of the Hall sensor is reached, the Hall sensor circuit outputs an in-position signal, which is fed back to the microprocessor for processing. The microprocessor judges whether the valve is open or closed according to the in-position signal. When the valve is in place, the microprocessor stops sending the valve opening or closing command to the power adapter circuit at the same time, so the driving signal also disappears, the opening or closing action of the valve stops, and finally completes the in-position detection of the valve opening or closing.

下面结合附图2分别对霍尔传感器电路以及电源适配电路进行详细说明。The Hall sensor circuit and the power adaptation circuit will be described in detail below in conjunction with FIG. 2 .

电源适配电路包括:三极管Q1、Q2、二极管D1、D2、电阻R1、R2、R3。三极管Q1的基极连接电阻R1的一端,电阻R1的另一端连接微处理器输出的第一驱动信号FA_ON,三极管Q1的发射极连接微处理器输出的第二驱动信号FA_OFF,三极管Q1的集电极连接参考地GND。三极管Q2的基极连接电阻R2的一端,所述电阻R2的另一端连接处理器输出的第二驱动信号FA_OFF,三极管Q2的发射极连接处理器输出的第一驱动信号FA_ON,三极管Q2的集电极连接参考地GND。二极管D1的正极连接处理器输出的第一驱动信号FA_ON,二极管D1的负极连接电阻R3的一端,电阻R3的另一端连接霍尔传感器电路。二极管D2的正极连接处理器输出的第二驱动信号FA_OFF,二极管D2的负极连接电阻R3的一端。The power supply adaptation circuit includes: transistors Q1, Q2, diodes D1, D2, resistors R1, R2, R3. The base of the transistor Q1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to the first drive signal FA_ON output by the microprocessor, the emitter of the transistor Q1 is connected to the second drive signal FA_OFF output by the microprocessor, and the collector of the transistor Q1 Connect to reference ground GND. The base of the transistor Q2 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the second drive signal FA_OFF output by the processor, the emitter of the transistor Q2 is connected to the first drive signal FA_ON output by the processor, and the collector of the transistor Q2 Connect to reference ground GND. The anode of the diode D1 is connected to the first drive signal FA_ON output by the processor, the cathode of the diode D1 is connected to one end of the resistor R3, and the other end of the resistor R3 is connected to the Hall sensor circuit. The anode of the diode D2 is connected to the second drive signal FA_OFF output by the processor, and the cathode of the diode D2 is connected to one end of the resistor R3.

霍尔传感器电路包括霍尔传感器U1、电容C1。霍尔传感器U1的电源输入端VCC连接电阻R3的输出端,霍尔传感器的接地端GND连接参考地GND,霍尔传感器U1的输出端Vout连接微处理器。电容C1的一端连接霍尔传感器的电源输入端,电容C1的另一端连接霍尔传感器的接地端,用于滤波。The Hall sensor circuit includes a Hall sensor U1 and a capacitor C1. The power input terminal VCC of the Hall sensor U1 is connected to the output terminal of the resistor R3, the ground terminal GND of the Hall sensor is connected to the reference ground GND, and the output terminal Vout of the Hall sensor U1 is connected to the microprocessor. One end of the capacitor C1 is connected to the power input end of the Hall sensor, and the other end of the capacitor C1 is connected to the ground end of the Hall sensor for filtering.

当微处理器输出开阀驱动信号时:第一驱动信号FA_ON输出为高电平,经限流电阻R1,接入三极管Q1的基极;第二驱动信号FA_OFF输出为低电平,故三极管Q1发射极为低电平信号;由于第一驱动信号FA_ON为高电平时,二极管D1导通,第一驱动信号FA_ON继续经过限流电阻R3与滤波电容C1接入到参考地GND,并连通至三极管Q1的集电极,此时三极管Q1的集电极电压信号由于第一驱动信号FA_ON高电平信号在通过二极管D1时存在导通压降,故其电压低于三极管Q1基极电压值,但高于三极管Q1发射极电压值,从而三极管Q1三极管为饱和导通态;三极管Q2发射极电压由于是第一驱动信号FA_ON为高电平信号,三极管Q2的基极电压由于是第二驱动信号FA_OFF为低电平信号,所以三极管Q2为截止态。故第一驱动信号FA_ON网络为高电平、第二驱动信号FA_OFF网络为低电平时,二极管D1导通,二极管D2不导通,高电平信号经限流电阻R3,以及滤波电容C1还给霍尔传感器U1供电。此时若阀门未运转至,因感应磁钢的磁场而达到霍尔传感器U1的磁性工作点时,霍尔传感器U1输出的高电平信号;若阀门运转至,因感应磁钢磁场而达到霍尔传感器U1的磁性工作点时,霍尔传感器U1输出低电平信号,也就是到位信号,微处理器根据霍尔传感器U1输出的信号并判断阀门是否开阀到位及控制驱动信号的发出。When the microprocessor outputs the valve opening drive signal: the output of the first drive signal FA_ON is high level, and is connected to the base of the transistor Q1 through the current limiting resistor R1; the output of the second drive signal FA_OFF is low level, so the output of the transistor Q1 Transmitting a very low-level signal; when the first drive signal FA_ON is at a high level, the diode D1 is turned on, and the first drive signal FA_ON continues to be connected to the reference ground GND through the current limiting resistor R3 and the filter capacitor C1, and connected to the transistor Q1 At this time, the collector voltage signal of the transistor Q1 has a conduction voltage drop when the high-level signal of the first drive signal FA_ON passes through the diode D1, so its voltage is lower than the base voltage of the transistor Q1, but higher than that of the transistor Q1 Q1 emitter voltage value, so that the transistor Q1 transistor is in a saturated conduction state; the emitter voltage of the transistor Q2 is a high level signal due to the first drive signal FA_ON, and the base voltage of the transistor Q2 is low due to the second drive signal FA_OFF Flat signal, so the transistor Q2 is in the cut-off state. Therefore, when the network of the first drive signal FA_ON is at high level and the network of the second drive signal FA_OFF is at low level, the diode D1 conducts and the diode D2 does not conduct, and the high level signal is returned to the circuit through the current limiting resistor R3 and the filter capacitor C1. Hall sensor U1 is powered. At this time, if the valve is not running, when the magnetic field of the Hall sensor U1 is reached due to the induction of the magnetic field of the magnetic steel, the high-level signal output by the Hall sensor U1; When the magnetic working point of the Hall sensor U1 is reached, the Hall sensor U1 outputs a low-level signal, that is, the in-position signal. The microprocessor judges whether the valve is in place and controls the sending of the drive signal according to the signal output by the Hall sensor U1.

相反,当微处理器输出阀门关阀驱动信号时:与当微处理器输出阀门开阀驱动信号时的区别之处是:第一驱动信号FA_ON输出为低电平,第二驱动信号FA_OFF输出为高电平,从而三极管Q1截止,三极管Q2饱和导通;二极管D1截止,二极管D2正向导通,并为其后级电路供电,由微处理器进行信号处理后,作出关阀到位信号判断与控制工作。On the contrary, when the microprocessor outputs the valve closing drive signal: the difference from when the microprocessor outputs the valve opening drive signal is: the output of the first drive signal FA_ON is low level, and the output of the second drive signal FA_OFF is High level, so that the transistor Q1 is cut off, and the transistor Q2 is saturated and turned on; the diode D1 is cut off, and the diode D2 is forward-conducting, and supplies power to its subsequent circuit. Work.

本实施例一种霍尔开关阀到位检测电路的电路设计简单,电路运行安全、可靠,实现较少的与主控板之间的连接导线数量,只需要第一驱动信号FA_ON、第二驱动信号FA_OFF的两根驱动信号线以及与阀门开、关到位后,霍尔传感器U1检测到的一根输出信号线,并接入微处理器中进行信号处理,不需要再单独从主控板接入VCC电源线和GND参考地线,降低了产品失效变量因素,降低了产品的成本。同时使用浮地设计,抑制了主控板上干扰信号的接入,提升了电路抗干扰性能。In this embodiment, the circuit design of a Hall switch valve in-position detection circuit is simple, the circuit operation is safe and reliable, and the number of connecting wires with the main control board is reduced, and only the first drive signal FA_ON and the second drive signal are required. The two drive signal lines of FA_OFF and the output signal line detected by the Hall sensor U1 after the valve is opened and closed are in place, and connected to the microprocessor for signal processing, no need to be connected separately from the main control board The VCC power line and the GND reference ground line reduce the variable factors of product failure and reduce the cost of the product. At the same time, the floating ground design is used to suppress the access of interference signals on the main control board and improve the anti-interference performance of the circuit.

本实施例一种霍尔开关阀到位检测电路根据第一驱动信号FA_ON、第二驱动信号FA_OFF可以实现对于阀门的开阀、关阀动作都可以独立检测,第一驱动信号FA_ON、第二驱动信号FA_OFF的高低电平转换中,总会有一个高电平信号导通正向二极管,为后面霍尔传感器电路提供电源使其工作。According to the first drive signal FA_ON and the second drive signal FA_OFF, a Hall switch valve in-position detection circuit in this embodiment can independently detect the opening and closing actions of the valve. The first drive signal FA_ON and the second drive signal During the high-to-low transition of FA_OFF, there will always be a high-level signal that turns on the forward diode to provide power for the subsequent Hall sensor circuit to make it work.

本实施例一种霍尔开关阀到位检测电路中的霍尔传感器电路由于直接取用电源适配电路的高电平电压而供电工作,可保证霍尔传感器的动作响应时间。同时当没有驱动信号时,霍尔传感器U1没有工作电源,此时霍尔开关阀到位检测电路的静态功耗为零功耗,提升了使用寿命。In this embodiment, the Hall sensor circuit in the Hall switch valve in-position detection circuit directly uses the high-level voltage of the power adapter circuit for power supply, which can ensure the action response time of the Hall sensor. At the same time, when there is no driving signal, the Hall sensor U1 has no working power, and at this time the static power consumption of the Hall switch valve position detection circuit is zero, which improves the service life.

实施例二Embodiment two

实施例二在实施例一的基础上,在霍尔传感器电路中增加多个霍尔传感器。霍尔传感器置于不同方位来实现对磁钢磁性的检测,从多个空间方位的检测来提高检测的灵敏度。此外,针对长行程阀门开、关行程较长,超出了霍尔传感器的磁特性工作点检测范围的情况,可以将至少两个霍尔传感器置于阀门全行程中的开始和结尾等处,最终实现对长行程阀门开通或关断到位信号的判断。Embodiment 2 On the basis of Embodiment 1, multiple Hall sensors are added to the Hall sensor circuit. The Hall sensor is placed in different orientations to realize the detection of the magnetism of the magnetic steel, and the detection sensitivity of the detection is improved from the detection of multiple spatial orientations. In addition, for long-stroke valves with long opening and closing strokes that exceed the detection range of the magnetic characteristic operating point of the Hall sensor, at least two Hall sensors can be placed at the beginning and end of the valve's full stroke, and finally Realize the judgment of the long-stroke valve opening or closing in-position signal.

在本实施例中,以霍尔传感器电路包括两个霍尔传感器为例进行说明。如图3所示,霍尔传感器电路包括:两个安装在不同方位霍尔传感器U1和U1’以及与霍尔传感器数量相同的电容C1和C1’,霍尔传感器U1和U1’的电源输入端VCC均连接电源适配电路的输出端,霍尔传感器U1和U1’的接地端GND均连接参考地,霍尔传感器的输出端Vout均连接微处理器,霍尔传感器电源输入端VCC与霍尔传感器的接地端GND之间连接有电容。In this embodiment, the Hall sensor circuit includes two Hall sensors as an example for illustration. As shown in Figure 3, the Hall sensor circuit includes: two Hall sensors U1 and U1' installed in different orientations and the same number of capacitors C1 and C1' as the Hall sensors, and the power input terminals of the Hall sensors U1 and U1' VCC is connected to the output terminal of the power adapter circuit, the ground terminals GND of the Hall sensors U1 and U1' are connected to the reference ground, the output terminal Vout of the Hall sensor is connected to the microprocessor, and the power input terminal VCC of the Hall sensor is connected to the Hall sensor. A capacitor is connected between the ground terminals GND of the sensor.

本实施例未描述的其他内容可参考上述实施例一。For other content not described in this embodiment, reference may be made to the first embodiment above.

实施例三Embodiment Three

实施例三在实施例二的基础上,在霍尔传感器电路的输出端,连接用于霍尔传感器电路输出到位信号电平转换的电平转换模块,电平转换模块的输出端连接微处理器。电平转换模块包括:与霍尔传感器数量相同的第一电平转换电路,所述第一电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,第一电平转换电路的输出端连接微处理器。霍尔传感器的输出端设计有电平转换电路,可直接应用于阀门驱动信号电压值与微处理器工作电压不同的电路中,扩展了应用范围。Embodiment 3 On the basis of Embodiment 2, the output terminal of the Hall sensor circuit is connected to a level conversion module for level conversion of the Hall sensor circuit output-to-position signal, and the output terminal of the level conversion module is connected to the microprocessor . The level conversion module includes: a first level conversion circuit having the same number as the Hall sensor, the first level conversion circuit is connected to the output terminal of the Hall sensor, and is used for the level conversion of the output signal of the Hall sensor, The output end of the first level conversion circuit is connected to the microprocessor. The output end of the Hall sensor is designed with a level conversion circuit, which can be directly applied to a circuit whose voltage value of the valve driving signal is different from the operating voltage of the microprocessor, expanding the application range.

如图4示,一第一电平转换电路包括:电阻R4以及二极管D3,所述电阻R4的一端连接电源端,电阻R4的另一端连接微处理器以及二极管D3的正极,所述二极管D3的负极连接霍尔传感器的输出端。另一第一电平转换电路包括:电阻R4’以及二极管D3’,电阻R4’的一端连接电源端,电阻R4’的另一端连接微处理器以及二极管D3’的正极,二极管D3’的负极连接霍尔传感器的输出端。As shown in Figure 4, a first level conversion circuit includes: a resistor R4 and a diode D3, one end of the resistor R4 is connected to the power supply terminal, the other end of the resistor R4 is connected to the microprocessor and the anode of the diode D3, the diode D3 The negative pole is connected to the output terminal of the Hall sensor. Another first level conversion circuit includes: a resistor R4' and a diode D3', one end of the resistor R4' is connected to the power supply terminal, the other end of the resistor R4' is connected to the microprocessor and the positive pole of the diode D3', and the negative pole of the diode D3' is connected to The output terminal of the Hall sensor.

当微处理器输出阀门开通驱动信号时:若阀门未运转至,因感应磁钢磁场而达到霍尔传感器U1的磁性工作点时,霍尔传感器U1输出的高电平信号,二极管D3反向截止,但由于电源端VCC使用电阻R3上拉,故电平转换电路输出高电平信号,输入至微处理器;若阀门运转至,因感应磁钢磁场而达到霍尔传感器U1的磁性工作点时,霍尔传感器U1输出的低电平信号,二极管D3导通,从而电平转换电路输出低电平信号,并输入至微处理器,微处理器进行信号处理并作出开阀到位判断信号与控制工作。When the microprocessor outputs the valve opening drive signal: if the valve is not running, when the magnetic working point of the Hall sensor U1 is reached due to the induction of the magnetic steel magnetic field, the high level signal output by the Hall sensor U1, and the diode D3 reverses the cut-off , but because the power supply terminal VCC is pulled up by the resistor R3, the level conversion circuit outputs a high-level signal, which is input to the microprocessor; , the low-level signal output by the Hall sensor U1, the diode D3 is turned on, so that the level conversion circuit outputs a low-level signal, and input to the microprocessor, the microprocessor performs signal processing and makes a judgment signal and control of valve opening in place Work.

当微处理器输出阀门关断驱动信号时,电平转换电路的输出信号与当微处理器输出阀门开通驱动信号时所输出的信号相反,其具体工作过程不再赘述。When the microprocessor outputs the valve-off driving signal, the output signal of the level conversion circuit is opposite to that output when the microprocessor outputs the valve-opening driving signal, and its specific working process will not be repeated.

本实施例未描述的其他内容可参考上述实施例二。For other content not described in this embodiment, reference may be made to the second embodiment above.

实施例四Embodiment four

实施例四在实施例二的基础上,在霍尔传感器电路的输出端,连接用于霍尔传感器电路输出到位信号电平转换的电平转换模块,电平转换模块的输出端连接微处理器。电平转换模块包括:第二电平转换电路,所述第二电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,所述第二电平转换电路的输出端连接微处理器。Embodiment 4 On the basis of Embodiment 2, the output terminal of the Hall sensor circuit is connected to a level conversion module for level conversion of the Hall sensor circuit output-to-position signal, and the output terminal of the level conversion module is connected to the microprocessor . The level conversion module includes: a second level conversion circuit, the second level conversion circuit is connected to the output terminal of the Hall sensor, and is used for the level conversion of the output signal of the Hall sensor, and the second level conversion circuit The output terminal of the circuit is connected with the microprocessor.

如图5所示,第二电平转换电路包括:二极管D4、D5以及电阻R5,二极管D4的负极连接霍尔传感器U1的输出端,二极管D5的正极连接微处理器、电阻R5的一端以及二极管D5的正极,电阻R5的另一端连接电源端,二极管D5的负极连接霍尔传感器U1’的输出端。As shown in Figure 5, the second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of diode D4 is connected to the output terminal of Hall sensor U1, the anode of diode D5 is connected to the microprocessor, one end of resistor R5 and the diode The anode of D5 is connected to the power supply terminal with the other end of the resistor R5, and the cathode of the diode D5 is connected to the output terminal of the Hall sensor U1'.

在本实施例中,第二电平转换电路对霍尔传感器电路输出的信号进行两次判断,也就是对霍尔传感器U1和U1’输出的信号分别进行判断,以实现对于阀门到位信号两次判断,以防止误判。In this embodiment, the second level conversion circuit judges the signal output by the Hall sensor circuit twice, that is, judges the signals output by the Hall sensor U1 and U1' respectively, so as to realize the valve in-position signal twice. Judgment to prevent misjudgment.

本实施例未描述的其他内容可参考上述实施例二。For other content not described in this embodiment, reference may be made to the second embodiment above.

实施例五Embodiment five

实施例五在实施例二的基础上,在霍尔传感器电路的输出端连接输出电路。输出电路与霍尔传感器数量相同。本实施例中不使用电平转换电路,直接将多组霍尔传感器输出的检测信号经过电阻R6以及电容C2组成的滤波电路,输入至微处理器进行信号处理。Embodiment 5 On the basis of Embodiment 2, an output circuit is connected to the output terminal of the Hall sensor circuit. The output circuit is the same as the number of Hall sensors. In this embodiment, no level conversion circuit is used, and the detection signals output by multiple groups of Hall sensors are directly input to the microprocessor for signal processing through the filter circuit composed of the resistor R6 and the capacitor C2.

如图6所示,一输出电路连接在霍尔传感器U1的输出端,包括:电阻R6以及电容C2,电阻R6的一端连接霍尔传感器U1的输出端,另一端连接微处理器以及电容C2的一端,电容C2的另一端连接参考地GND;另一输出电路连接在霍尔传感器U1’的输出端,包括:电阻R6’以及电容C2’,电阻R6’的一端连接霍尔传感器U1’的输出端,另一端连接微处理器以及电容C2’的一端,电容C2’的另一端连接参考地GND。As shown in Figure 6, an output circuit is connected to the output end of the Hall sensor U1, including: a resistor R6 and a capacitor C2, one end of the resistor R6 is connected to the output end of the Hall sensor U1, and the other end is connected to the microprocessor and the capacitor C2 One end, the other end of the capacitor C2 is connected to the reference ground GND; the other output circuit is connected to the output end of the Hall sensor U1', including: a resistor R6' and a capacitor C2', and one end of the resistor R6' is connected to the output of the Hall sensor U1' terminal, the other terminal is connected to the microprocessor and one terminal of the capacitor C2', and the other terminal of the capacitor C2' is connected to the reference ground GND.

本实施例未描述的其他内容可参考上述实施例二。For other content not described in this embodiment, reference may be made to the second embodiment above.

本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。Those skilled in the art to which the present invention belongs can make various modifications or supplements to the described specific embodiments or adopt similar methods to replace them, but they will not deviate from the spirit of the present invention or go beyond the definition of the appended claims range.

Claims (10)

1.一种霍尔开关阀到位检测电路,其特征在于,包括:1. A Hall switch valve in-position detection circuit, characterized in that, comprising: 霍尔传感器,用于检测设置在阀门上的磁钢所发出的磁信号,并根据检测到的磁信号输出到位信号;The Hall sensor is used to detect the magnetic signal sent by the magnet set on the valve, and output the in-position signal according to the detected magnetic signal; 与霍尔传感器电路连接的微处理器,用于发出开阀驱动信号或者关阀驱动信号驱动阀门的行进,还用于接收霍尔传感器发出的到位信号,根据到位信号判断阀门是否开阀到位或者关阀到位;The microprocessor connected to the Hall sensor circuit is used to send the valve opening drive signal or the valve closing drive signal to drive the valve to move forward, and is also used to receive the in-position signal from the Hall sensor, and judge whether the valve is in place or not according to the in-position signal. Close the valve in place; 与微处理器以及霍尔传感器电路连接的电源适配电路,用于接收微处理器发出的开阀驱动信号或者关阀驱动信号,所述微处理器通过电源适配电路为霍尔传感器供电,同时为霍尔传感器电路提供参考地连接。The power adapter circuit connected to the microprocessor and the Hall sensor circuit is used to receive the valve opening drive signal or the valve close drive signal sent by the microprocessor, and the microprocessor supplies power to the Hall sensor through the power adapter circuit, Also provide a reference ground connection for the Hall sensor circuit. 2.根据权利要求1所述的一种霍尔开关阀到位检测电路,其特征在于,所述电源适配电路包括:三极管Q1、Q2、二极管D1、D2,2. A Hall switch valve in-position detection circuit according to claim 1, characterized in that the power adapter circuit comprises: transistors Q1, Q2, diodes D1, D2, 所述三极管Q1的基极连接微处理器,三极管Q1的发射极连接微处理器,三极管Q1的集电极连接参考地,所述三极管Q2的基极连接微处理器,三极管Q2的发射极连接微处理器,三极管Q2的集电极连接参考地,所述二极管D1的正极连接微处理器,二极管D1的负极连接参考地以及霍尔传感器电路的电源输入端,所述二极管D2的正极连接微处理器,二极管D2的负极连接参考地以及霍尔传感器电路的电源输入端。The base of the triode Q1 is connected to the microprocessor, the emitter of the triode Q1 is connected to the microprocessor, the collector of the triode Q1 is connected to the reference ground, the base of the triode Q2 is connected to the microprocessor, and the emitter of the triode Q2 is connected to the microprocessor. processor, the collector of the transistor Q2 is connected to the reference ground, the anode of the diode D1 is connected to the microprocessor, the cathode of the diode D1 is connected to the reference ground and the power input terminal of the Hall sensor circuit, and the anode of the diode D2 is connected to the microprocessor , the cathode of the diode D2 is connected to the reference ground and the power input terminal of the Hall sensor circuit. 3.根据权利要求2所述的一种霍尔开关阀到位检测电路,其特征在于,所述电源适配电路还包括:电阻R1、R2、R3,3. A Hall switch valve in-position detection circuit according to claim 2, characterized in that the power adapter circuit further comprises: resistors R1, R2, R3, 所述电阻R1的一端连接微处理器,电阻R1的另一端连接三极管Q1的基极,所述电阻R2的一端连接微处理器,电阻R2的另一端连接三极管Q2的基极,所述电阻R3的一端连接二极管D1的负极以及二极管D2的负极,电阻R3的另一端连接霍尔传感器电路。One end of the resistor R1 is connected to the microprocessor, the other end of the resistor R1 is connected to the base of the transistor Q1, one end of the resistor R2 is connected to the microprocessor, the other end of the resistor R2 is connected to the base of the transistor Q2, and the resistor R3 One end of the resistor R3 is connected to the cathode of the diode D1 and the cathode of the diode D2, and the other end of the resistor R3 is connected to the Hall sensor circuit. 4.根据权利要求1所述的一种霍尔开关阀到位检测电路,其特征在于,所述霍尔传感器电路包括:霍尔传感器以及电容C1,4. A Hall switch valve in-position detection circuit according to claim 1, characterized in that, the Hall sensor circuit comprises: a Hall sensor and a capacitor C1, 所述霍尔传感器的电源输入端连接电源适配电路的输出端,霍尔传感器的接地端连接参考地,霍尔传感器的输出端连接微处理器,电容C1的一端连接霍尔传感器的电源输入端,电容C1的另一端连接霍尔传感器的接地端。The power input terminal of the Hall sensor is connected to the output terminal of the power adapter circuit, the ground terminal of the Hall sensor is connected to the reference ground, the output terminal of the Hall sensor is connected to the microprocessor, and one end of the capacitor C1 is connected to the power input of the Hall sensor end, and the other end of capacitor C1 is connected to the ground end of the Hall sensor. 5.根据权利要求1所述的一种霍尔开关阀到位检测电路,其特征在于,所述霍尔传感器电路包括:至少两个安装在不同方位霍尔传感器以及与霍尔传感器数量相同的电容,5. A Hall switch valve in-position detection circuit according to claim 1, characterized in that the Hall sensor circuit comprises: at least two Hall sensors installed in different orientations and the same number of capacitors as the Hall sensors , 所述霍尔传感器的电源输入端均连接电源适配电路的输出端,霍尔传感器的接地端均连接参考地,霍尔传感器的输出端均连接微处理器,霍尔传感器电源输入端与霍尔传感器的接地端之间连接有电容。The power input terminals of the Hall sensors are all connected to the output terminals of the power adapter circuit, the ground terminals of the Hall sensors are connected to the reference ground, the output terminals of the Hall sensors are connected to the microprocessor, and the power input terminals of the Hall sensors are connected to the Hall sensor. A capacitor is connected between the ground terminals of the sensor. 6.根据权利要求4或5所述的一种霍尔开关阀到位检测电路,其特征在于,还包括:连接在霍尔传感器电路的输出端,用于霍尔传感器电路输出到位信号电平转换的电平转换模块,所述电平转换模块的输出端连接微处理器。6. A Hall switch valve in-position detection circuit according to claim 4 or 5, further comprising: connected to the output terminal of the Hall sensor circuit, used for level conversion of the output signal level of the Hall sensor circuit A level conversion module, the output end of the level conversion module is connected to the microprocessor. 7.根据权利要求6所述的一种霍尔开关阀到位检测电路,其特征在于,所述电平转换模块包括:与霍尔传感器数量相同的第一电平转换电路,所述第一电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,所述第一电平转换电路的输出端连接微处理器。7. A Hall switch valve in-position detection circuit according to claim 6, characterized in that, the level shifting module comprises: a first level shifting circuit having the same number as the Hall sensors, and the first level shifting circuit The level conversion circuit is connected to the output terminal of the Hall sensor, and is used for level conversion of the Hall sensor output to the bit signal, and the output terminal of the first level conversion circuit is connected to the microprocessor. 8.根据权利要求7所述的一种霍尔开关阀到位检测电路,其特征在于,所述第一电平转换电路包括:电阻R4以及二极管D3,8. A Hall switch valve in-position detection circuit according to claim 7, characterized in that the first level conversion circuit comprises: a resistor R4 and a diode D3, 所述电阻R4的一端连接电源端,电阻R4的另一端连接微处理器以及二极管D3的正极,所述二极管D3的负极连接霍尔传感器的输出端。One end of the resistor R4 is connected to the power supply terminal, the other end of the resistor R4 is connected to the microprocessor and the anode of the diode D3, and the cathode of the diode D3 is connected to the output end of the Hall sensor. 9.根据权利要求6所述的一种霍尔开关阀到位检测电路,其特征在于,所述电平转换模块包括:第二电平转换电路,所述第二电平转换电路连接在霍尔传感器的输出端,用于霍尔传感器输出到位信号的电平转换,所述第二电平转换电路的输出端连接微处理器,9. A Hall switch valve in-position detection circuit according to claim 6, characterized in that, the level shifting module comprises: a second level shifting circuit, the second level shifting circuit is connected to the Hall The output terminal of the sensor is used for the level conversion of the Hall sensor output to the position signal, and the output terminal of the second level conversion circuit is connected to the microprocessor, 所述第二电平转换电路包括:二极管D4、D5以及电阻R5,所述二极管D4的负极连接霍尔传感器的输出端,二极管D5的正极连接微处理器、电阻R5的一端以及二极管D5的正极,所述电阻R5的另一端连接电源端,所述二极管D5的负极连接霍尔传感器的输出端。The second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of the diode D4 is connected to the output terminal of the Hall sensor, the anode of the diode D5 is connected to the microprocessor, one end of the resistor R5 and the anode of the diode D5 , the other end of the resistor R5 is connected to the power supply end, and the cathode of the diode D5 is connected to the output end of the Hall sensor. 10.根据权利要求4或5所述的一种霍尔开关阀到位检测电路,其特征在于,还包括:与霍尔传感器数量相同的输出电路,所述输出电路连接在霍尔传感器的输出端,包括:电阻R6以及电容C2,10. A Hall switch valve in-position detection circuit according to claim 4 or 5, further comprising: an output circuit having the same number as the Hall sensor, and the output circuit is connected to the output terminal of the Hall sensor , including: resistor R6 and capacitor C2, 所述电阻R6的一端连接霍尔传感器的输出端,另一端连接微处理器以及电容C2的一端,所述电容C2的另一端连接参考地。One end of the resistor R6 is connected to the output end of the Hall sensor, the other end is connected to the microprocessor and one end of the capacitor C2, and the other end of the capacitor C2 is connected to the reference ground.
CN201910794686.9A 2019-08-27 2019-08-27 A Hall switch valve in-position detection circuit Active CN110618380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910794686.9A CN110618380B (en) 2019-08-27 2019-08-27 A Hall switch valve in-position detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910794686.9A CN110618380B (en) 2019-08-27 2019-08-27 A Hall switch valve in-position detection circuit

Publications (2)

Publication Number Publication Date
CN110618380A true CN110618380A (en) 2019-12-27
CN110618380B CN110618380B (en) 2025-05-13

Family

ID=68922065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910794686.9A Active CN110618380B (en) 2019-08-27 2019-08-27 A Hall switch valve in-position detection circuit

Country Status (1)

Country Link
CN (1) CN110618380B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176496A (en) * 2021-04-16 2021-07-27 廊坊科森电器有限公司 Non-contact key switch detection method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2240746Y (en) * 1995-03-22 1996-11-20 昆明七五零高新技术公司 Electricity disc (IC disc) gas fee controller
JP2010226844A (en) * 2009-03-23 2010-10-07 Mitsuba Corp Hall sensor abnormality detector and motor drive
CN202280930U (en) * 2011-11-02 2012-06-20 北京京仪海福尔自动化仪表有限公司 Hall type valve position measuring device
US20160341571A1 (en) * 2014-08-08 2016-11-24 Johnson Electric S.A. Electronic device and magnetic sensor integrated circuit
CN107221924A (en) * 2017-07-31 2017-09-29 江苏省电力试验研究院有限公司 A kind of primary cut-out fracture induced voltage suppression circuit, method and test system
CN210863962U (en) * 2019-08-27 2020-06-26 金卡智能集团股份有限公司 Hall switch valve detection circuitry that targets in place

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2240746Y (en) * 1995-03-22 1996-11-20 昆明七五零高新技术公司 Electricity disc (IC disc) gas fee controller
JP2010226844A (en) * 2009-03-23 2010-10-07 Mitsuba Corp Hall sensor abnormality detector and motor drive
CN202280930U (en) * 2011-11-02 2012-06-20 北京京仪海福尔自动化仪表有限公司 Hall type valve position measuring device
US20160341571A1 (en) * 2014-08-08 2016-11-24 Johnson Electric S.A. Electronic device and magnetic sensor integrated circuit
CN107221924A (en) * 2017-07-31 2017-09-29 江苏省电力试验研究院有限公司 A kind of primary cut-out fracture induced voltage suppression circuit, method and test system
CN210863962U (en) * 2019-08-27 2020-06-26 金卡智能集团股份有限公司 Hall switch valve detection circuitry that targets in place

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪洋,谢宗宝: "霍尔元件在阀门阀位监测中的运用", 化工管理, no. 2017, 31 July 2017 (2017-07-31), pages 192 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176496A (en) * 2021-04-16 2021-07-27 廊坊科森电器有限公司 Non-contact key switch detection method

Also Published As

Publication number Publication date
CN110618380B (en) 2025-05-13

Similar Documents

Publication Publication Date Title
CN101621854A (en) Intelligent dwelling environment integrated system based on wireless sensor network
CN104596041B (en) The intelligent power saving operating control device and its control method of air-conditioning
CN104425184A (en) Control device for switching on and switching off relay and air conditioner
CN201054090Y (en) Water resource radio monitoring and managing system
CN210863962U (en) Hall switch valve detection circuitry that targets in place
CN110618380A (en) Hall switch valve detection circuitry that targets in place
CN202201609U (en) Novel wireless elevator door controller
CN106450871A (en) Intelligent energy-saving socket
CN201867443U (en) Home appliance and mains supply strong current signal detection circuit thereof
CN206708501U (en) A kind of valve controling circuit of heating system and the control system using the circuit
CN209590617U (en) Universal valve intelligent controller
CN209877285U (en) Circuit for judging running state of compressor
CN101609120B (en) Intelligent power supply for detecting solenoid valve
CN208396980U (en) Control the control system of rotation speed of the fan
CN205644173U (en) Controlling means through single live wire communication
CN206020363U (en) Two-wire bus detector
CN210864387U (en) A kind of automobile generator control system based on single chip microcomputer
CN2582271Y (en) Infrared, remote control and wall type switch
CN111427825B (en) Serial port level conversion circuit
CN104990197B (en) Air conditioner, outdoor unit and its electric power supply control system
CN203561856U (en) Control chip for soybean milk machine
CN110267417B (en) An explosion-proof circuit control device and explosion-proof lamp
CN209765078U (en) Human body existence type induction device
CN208508981U (en) A kind of long distance wireless solenoid valve control system based on Internet of Things
CN205484163U (en) Smoke signal measuring circuit of prepackage type transformer substation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant