A Hall switch valve in-position detection circuit

By designing the Hall switch valve in-position detection circuit, the valve opening and valve closing detection of valves is achieved using Hall sensors and microprocessors, the problem of the inability to realize valve opening and valve opening and valve opening and valve opening and position detection in-position detection in-position in-position is solved in the existing technology, reducing product costs and improving the anti-interference performance of the circuit.

CN110618380BActive Publication Date: 2025-05-13GOLDCARD HIGH TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910794686.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-27
Publication Date
2025-05-13
Estimated Expiration
2039-08-27

AI Technical Summary

Technical Problem

The existing Hall switch valve in-position detection circuit cannot realize valve opening and in-position detection of valves, and due to the many wire connections, the product cost and low efficiency are high.

Method used

A Hall switch valve in-place detection circuit is designed, including Hall sensor, microprocessor and power adaptation circuit. The drive signal output by the microprocessor and the in-place signal of the Hall sensor are detected to realize the valve opening and closing valve in-place detection, and reduce the wire connection through floating design.

Benefits of technology

The valve opening and closing valve in-place detection is realized, which reduces the number of connected wires with the main control board, reduces product cost and failure variable factors, and improves the anti-interference performance and service life of the circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110618380B_ABST
    Figure CN110618380B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent gas meters, and in particular to a Hall switch valve in-position detection circuit, comprising: a Hall sensor, used to detect a magnetic signal emitted by a magnetic steel arranged on a valve, and output an in-position signal according to the detected magnetic signal; a microprocessor connected to the Hall sensor circuit, used to emit a valve opening drive signal or a valve closing drive signal to drive the movement of the valve, and also used to receive an in-position signal emitted by the Hall sensor, and judge whether the valve is in the in-position or in-position according to the in-position judgment signal; a power adapter circuit connected to the microprocessor and the Hall sensor circuit, used to receive the valve opening drive signal or the valve closing drive signal emitted by the microprocessor, and the microprocessor supplies power to the Hall sensor through the power adapter circuit, and provides a reference ground connection for the Hall sensor circuit. The present invention has the following beneficial effects: realizing the detection of valve opening and valve closing; the circuit structure is simple, and the cost of the product is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of intelligent gas meters, and in particular to a Hall switch valve in-position detection circuit. Background Art

[0002] With the improvement of people's living standards and quality of life, the demand for intelligent products in modern families will promote the development of smart gas meters in the direction of safety, reliability, intelligence and convenience. At present, the smart gas meters in China 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 of gas meter intelligence is not only single-chip microcomputer chips, wired and wireless communication modules, but also a key component is the "gas meter motor valve". Smart gas meters can remotely control the opening or closing of their valves to achieve remote control of the opening and closing of natural gas use in abnormal users' homes, thereby ensuring the safe and reasonable use of natural gas.

[0003] In order to improve the safety and reliability of smart gas meters, it is very important to detect the open or closed position signal of the gas meter motor valve. If the valve is not closed properly, it will cause gas leakage, causing significant losses to the country and people's property; if the valve is not opened properly, it will not meet the normal use of the user's family. Therefore, whether the smart gas meter valve is opened or closed directly affects the product performance and quality of the smart gas meter.

[0004] The in-place detection devices and their electronic circuits and Hall sensor circuits used in current industrial, commercial and household gas meters are mostly integrated with motor valves to ensure the accuracy and timeliness of detection. The Hall switch valve in-place detection circuit currently used uses the motor valve to drive the magnetic steel assembly on the connecting rod to move together. When the magnetic steel runs to the magnetic operating point (BOP) of the Hall sensor, the Hall sensor is triggered to output a low-level signal to feed back to the single-chip microcomputer for processing, and it is determined that the motor valve is in place, but the valve opening detection 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 wires for the motor valve switch valve, a total of 5 wires are used. The motor valve is connected to the main control circuit board through a wiring harness. The drive signal line and sensor detection circuit of the motor valve are separated from the main control circuit board. The connection with the main control circuit board uses multiple external wires for connection and data exchange. For electronic products, the more signal lines are connected and interacted with by external wires, the more variable factors that may cause product failure. For mass-produced products, the more connecting wires there are, the cost of connectors will increase pin by pin, thereby increasing production costs and reducing product production efficiency. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a Hall switch valve position detection circuit to realize valve closing and opening position detection, while requiring fewer connecting wires and having low cost.

[0006] A Hall switch valve in-position detection circuit, comprising:

[0007] The Hall sensor is used to detect the magnetic signal emitted by the magnet installed on the valve, and output a position signal according to the detected magnetic signal;

[0008] 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 movement of the valve, and is also used to receive an in-position signal sent by the Hall sensor, and judge whether the valve is in the in-position opening position or the in-position closing position according to the in-position judgment signal;

[0009] 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 provides a reference ground connection for the Hall sensor circuit.

[0010] Preferably, the power adapter circuit includes: transistors Q1, Q2, diodes D1, D2,

[0011] The base of the transistor Q1 is connected to the microprocessor, the emitter of the transistor Q1 is connected to the microprocessor, and the collector of the transistor Q1 is connected to the reference ground. The base of the transistor Q2 is connected to the microprocessor, the emitter of the transistor Q2 is connected to the microprocessor, and the collector of the transistor Q2 is connected to the reference ground. The anode of the diode D1 is connected to the microprocessor, and the cathode of the diode D1 is connected to the reference ground and the power input end of the Hall sensor circuit. The anode of the diode D2 is connected to the microprocessor, and the cathode of the diode D2 is connected to the reference ground and the power input end of the Hall sensor circuit.

[0012] Preferably, the power adapter circuit further includes: resistors R1, R2, and R3,

[0013] One end of the resistor R1 is connected to the microprocessor, and 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, and the other end of the resistor R2 is connected to the base of the transistor Q2. 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.

[0014] Preferably, the Hall sensor circuit comprises: a Hall sensor and a capacitor C1,

[0015] The power input end of the Hall sensor is connected to the output end of the power adapter circuit, the ground end of the Hall sensor is connected to the reference ground, the output end of the Hall sensor 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.

[0016] Preferably, the Hall sensor circuit comprises: at least two Hall sensors installed in different positions and capacitors having the same number as the Hall sensors,

[0017] The power input terminals of the Hall sensors are 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 a capacitor is connected between the power input terminals of the Hall sensors and the ground terminals of the Hall sensors.

[0018] Preferably, it further comprises: a level conversion module connected to the output end of the Hall sensor circuit and used for converting the output of the Hall sensor circuit to a level of a signal, wherein the output end of the level conversion module is connected to a microprocessor.

[0019] Preferably, the level conversion module includes: a first level conversion circuit having the same number as the Hall sensors, the first level conversion circuit being connected to the output end of the Hall sensor and used for level conversion of the Hall sensor output to a bit signal, and the output end of the first level conversion circuit being connected to a microprocessor.

[0020] Preferably, the first level conversion circuit comprises: a resistor R4 and a diode D3,

[0021] One end of the resistor R4 is connected to the power supply end, the other end of the resistor R4 is connected to the microprocessor and the positive electrode of the diode D3, and the negative electrode of the diode D3 is connected to the output end of the Hall sensor.

[0022] Preferably, the level conversion module includes: a second level conversion circuit, the second level conversion circuit is connected to the output end of the Hall sensor, and is used for level conversion of the Hall sensor output to a bit signal, and the output end of the second level conversion circuit is connected to the microprocessor.

[0023] The second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of the diode D4 is connected to the output end 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.

[0024] Preferably, it further comprises: an output circuit having the same number as the Hall sensor, the output circuit being connected to the output end of the Hall sensor and comprising: a resistor R6 and a capacitor C2,

[0025] One end of the resistor R6 is connected to the output end of the Hall sensor, and the other end is connected to the microprocessor and one end of the capacitor C2. The other end of the capacitor C2 is connected to the reference ground.

[0026] The present invention has the following beneficial effects:

[0027] 1. The circuit runs safely and reliably, and the number of connecting wires to the main control board is reduced. Only two drive signal lines and an output signal line detected by the Hall sensor after the valve is opened and closed are required, and connected to the microprocessor for signal processing. There is no need to connect the VCC power line and GND reference ground line from the main control board separately, which reduces the product failure variable factor 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.

[0028] 2. The opening and closing of the valve can be detected independently. When the drive signal output by the microprocessor is converted between high and low levels, there will always be a high-level signal that turns on the forward diode, providing power for the Hall sensor circuit behind to make it work;

[0029] 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 supply. At this time, the static power consumption of the Hall switch valve in place detection circuit is zero, which improves the service life;

[0030] 4. Add multiple Hall sensors to the Hall sensor circuit. The Hall sensors are placed in different positions to detect the magnetism of the magnet. The detection sensitivity can be improved by detecting multiple spatial positions. It can also determine the opening or closing position signal of the long-stroke valve.

[0031] 5. The second level conversion circuit makes multiple judgments on the signal output by the Hall sensor circuit to achieve two judgments on the valve in place signal to prevent misjudgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0033] Figure 1 This is a schematic diagram of module connection of a Hall switch valve in-position detection circuit according to a first embodiment of the present invention;

[0034] Figure 2 It is a circuit schematic diagram of a power adapter circuit and a Hall sensor circuit in a Hall switch valve in-position detection circuit according to a first embodiment of the present invention;

[0035] Figure 3This is a circuit schematic diagram of a Hall switch valve in-position detection circuit according to a second embodiment of the present invention;

[0036] Figure 4 This is a circuit schematic diagram of a Hall switch valve in-position detection circuit according to a third embodiment of the present invention;

[0037] Figure 5 This is a circuit schematic diagram of a Hall switch valve in-position detection circuit according to a fourth embodiment of the present invention;

[0038] Figure 6 It is a circuit schematic diagram of a Hall switch valve in-position detection circuit according to a fifth embodiment of the present invention. DETAILED DESCRIPTION

[0039] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited to these embodiments.

[0040] Embodiment 1

[0041] The basic idea of ​​the first embodiment of the present invention is to provide power and reference ground connection for the Hall sensor circuit through a power adapter circuit, and only retain the first drive signal output by the microprocessor, the second drive signal and the three wires corresponding to the output signal of the Hall sensor circuit, thereby reducing the product failure variable factor and reducing the cost of the product; in the high-low level conversion of the drive signal output by the microprocessor, there is always a high-level signal that turns on the forward diode, providing power for the subsequent Hall sensor circuit to make it work, thereby realizing independent detection of the opening and closing of the valve.

[0042] Based on the above concept, the first embodiment of the present invention proposes a Hall switch valve in-position detection circuit, such as Figure 1 As shown, it includes: a Hall sensor, which is used to detect a magnetic signal emitted by a magnet arranged on the valve, and output a position signal according to the detected magnetic signal; a microprocessor connected to the Hall sensor circuit, which is used to send a valve opening drive signal or a valve closing drive signal to drive the movement of the valve, and is also used to receive the position signal emitted by the Hall sensor, and judge whether the valve is in the position of opening or closing according to the position judgment signal; a power adapter circuit connected to the microprocessor and the Hall sensor circuit, which is used to receive the valve opening drive signal or the valve closing drive signal emitted by the microprocessor, and the microprocessor supplies power to the Hall sensor through the power adapter circuit, and provides a reference ground connection for the Hall sensor circuit.

[0043] When it is necessary to open or close the valve, the microprocessor sends a drive signal for opening or closing the valve to the power adapter circuit; the power adapter circuit receives the drive signal sent by the microprocessor and uses the level voltage of the drive signal as the power supply of the Hall sensor, and provides a reference ground connection for the Hall sensor circuit at the same time; at this time, the Hall sensor circuit directly uses the level voltage of the opening or closing drive signal output by the power adapter circuit as the power supply; when the valve moves to the point where it can sense the magnetic field of the magnet and reaches the magnetic working point of the Hall sensor, the Hall sensor circuit outputs an in-position signal and feeds it back to the microprocessor for processing. The microprocessor determines whether the valve is in position to open or close according to the in-position signal, and at the same time, the microprocessor stops sending the valve opening or closing command to the power adapter circuit, so that the drive signal disappears, and the valve opening or closing action stops, finally completing the valve opening or closing in-position detection work.

[0044] The following is combined with Figure 2 The Hall sensor circuit and the power adapter circuit are described in detail respectively.

[0045] The power adapter circuit includes: transistors Q1, Q2, diodes D1, D2, resistors R1, R2, and 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 is connected to the 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 is connected to the reference ground GND. The positive electrode of the diode D1 is connected to the first drive signal FA_ON output by the processor, the negative electrode 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 positive electrode of the diode D2 is connected to the second drive signal FA_OFF output by the processor, and the negative electrode of the diode D2 is connected to one end of the resistor R3.

[0046] 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 terminal of the Hall sensor, and the other end of the capacitor C1 is connected to the ground terminal of the Hall sensor for filtering.

[0047] When the microprocessor outputs the valve opening drive signal: the first drive signal FA_ON is output as a high level, and is connected to the base of the transistor Q1 through the current limiting resistor R1; the second drive signal FA_OFF is output as a low level, so the emitter of the transistor Q1 is a low level signal; because 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 is connected to the collector of 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 value of the transistor Q1, but higher than the emitter voltage value of the transistor Q1, so that the transistor Q1 is in a saturated conduction state; the emitter voltage of the transistor Q2 is a high level signal of the first drive signal FA_ON, and the base voltage of the transistor Q2 is a low level signal of the second drive signal FA_OFF, so the transistor Q2 is in a cut-off state. Therefore, when the first drive signal FA_ON is at a high level and the second drive signal FA_OFF is at a low level, the diode D1 is turned on and the diode D2 is not turned on. The high-level signal is fed back to the Hall sensor U1 through the current-limiting resistor R3 and the filter capacitor C1. At this time, if the valve has not been operated to the point where the magnetic working point of the Hall sensor U1 is reached due to the magnetic field of the induced magnetic steel, the Hall sensor U1 outputs a high-level signal; if the valve is operated to the point where the magnetic working point of the Hall sensor U1 is reached due to the magnetic field of the induced magnetic steel, the Hall sensor U1 outputs a low-level signal, that is, an in-position signal. The microprocessor determines whether the valve is in-position according to the signal output by the Hall sensor U1 and controls the issuance of the drive signal.

[0048] 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 first drive signal FA_ON is output as a low level, and the second drive signal FA_OFF is output as a 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-conducted and supplies power to its subsequent circuit. After the microprocessor processes the signal, it makes a valve closing signal judgment and control work.

[0049] The circuit design of the Hall switch valve in-position detection circuit of this embodiment is simple, the circuit operation is safe and reliable, and the number of connecting wires between the main control board and the main control board is reduced. Only two drive signal lines of the first drive signal FA_ON and the second drive signal FA_OFF are required, and an output signal line detected by the Hall sensor U1 after the valve is opened and closed, and connected to the microprocessor for signal processing, and no longer need to be connected to the VCC power line and GND reference ground line from the main control board separately, which reduces the product failure variable factor 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.

[0050] In the present embodiment, a Hall switch valve in-position detection circuit can independently detect the opening and closing actions of the valve according to the first drive signal FA_ON and the second drive signal FA_OFF. In the high-low level conversion of the first drive signal FA_ON and the second drive signal FA_OFF, there is always a high-level signal that turns on the forward diode, providing power to the subsequent Hall sensor circuit to enable it to work.

[0051] The Hall sensor circuit in the Hall switch valve in-position detection circuit of this embodiment 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 U1 has no working power supply. At this time, the static power consumption of the Hall switch valve in-position detection circuit is zero, which increases the service life.

[0052] Embodiment 2

[0053] Embodiment 2 Based on Embodiment 1, multiple Hall sensors are added to the Hall sensor circuit. The Hall sensors are placed in different positions to detect the magnetism of the magnetic steel, and the sensitivity of detection is improved by detecting multiple spatial positions. In addition, for the case where the opening and closing strokes of the long-stroke valve are long and exceed the detection range of the magnetic characteristic working point of the Hall sensor, at least two Hall sensors can be placed at the beginning and end of the full stroke of the valve, and finally the judgment of the opening or closing position signal of the long-stroke valve can be realized.

[0054] In this embodiment, the Hall sensor circuit includes two Hall sensors as an example for description. Figure 3 As shown, the Hall sensor circuit includes: two Hall sensors U1 and U1' installed in different orientations and capacitors C1 and C1' with the same number as the Hall sensors, the power input terminals VCC of the Hall sensors U1 and U1' are both connected to the output terminal of the power adapter circuit, the ground terminals GND of the Hall sensors U1 and U1' are both connected to the reference ground, the output terminals Vout of the Hall sensors are both connected to the microprocessor, and a capacitor is connected between the power input terminal VCC of the Hall sensor and the ground terminal GND of the Hall sensor.

[0055] For other contents not described in this embodiment, please refer to the above-mentioned embodiment 1.

[0056] Embodiment 3

[0057] Embodiment 3 Based on Embodiment 2, a level conversion module for converting the level of the output of the Hall sensor circuit to a signal in place is connected to the output end of the Hall sensor circuit, and the output end of the level conversion module is connected to a microprocessor. The level conversion module includes: a first level conversion circuit having the same number as the Hall sensor, the first level conversion circuit being connected to the output end of the Hall sensor, and being used for converting the level of the output of the Hall sensor to a signal in place, and the output end of the first level conversion circuit being connected to a microprocessor. The output end of the Hall sensor is designed with a level conversion circuit, which can be directly applied to a circuit in which the voltage value of the valve drive signal is different from the operating voltage of the microprocessor, thereby expanding the scope of application.

[0058] like Figure 4 As shown, 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 end, the other end of the resistor R4 is connected to the microprocessor and the positive electrode of the diode D3, and the negative electrode of the diode D3 is connected to the output end 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 end, the other end of the resistor R4' is connected to the microprocessor and the positive electrode of the diode D3', and the negative electrode of the diode D3' is connected to the output end of the Hall sensor.

[0059] When the microprocessor outputs a valve opening drive signal: if the valve has not been operated, the Hall sensor U1 will output a high-level signal due to the induction of the magnetic steel magnetic field and the magnetic operating point of the Hall sensor U1 will be reached, and the diode D3 will be reversely cut off. However, since the power supply terminal VCC is pulled up by the resistor R3, the level conversion circuit outputs a high-level signal and is input to the microprocessor; if the valve is operated and the magnetic operating point of the Hall sensor U1 is reached due to the induction of the magnetic steel magnetic field, the Hall sensor U1 will output a low-level signal and the diode D3 will be turned on, so that the level conversion circuit outputs a low-level signal and is input to the microprocessor. The microprocessor processes the signal and makes a valve opening judgment signal and controls the operation.

[0060] When the microprocessor outputs a valve closing drive signal, the output signal of the level conversion circuit is opposite to the signal output when the microprocessor outputs a valve opening drive signal, and the specific working process is not repeated here.

[0061] For other contents not described in this embodiment, please refer to the above-mentioned embodiment 2.

[0062] Embodiment 4

[0063] Embodiment 4 Based on Embodiment 2, a level conversion module for converting the level of the Hall sensor circuit output to a signal level is connected to the output end of the Hall sensor circuit, and the output end of the level conversion module is connected to a microprocessor. The level conversion module includes: a second level conversion circuit, which is connected to the output end of the Hall sensor and is used for converting the level of the Hall sensor output to a signal level, and the output end of the second level conversion circuit is connected to the microprocessor.

[0064] like Figure 5 As shown, the second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of the diode D4 is connected to the output end of the Hall sensor U1, 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 U1'.

[0065] 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 sensors U1 and U1' respectively, so as to judge the valve in place signal twice to prevent misjudgment.

[0066] For other contents not described in this embodiment, please refer to the above-mentioned embodiment 2.

[0067] Embodiment 5

[0068] Embodiment 5 Based on Embodiment 2, an output circuit is connected to the output end of the Hall sensor circuit. The number of output circuits is the same as that of the 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 a filter circuit composed of a resistor R6 and a capacitor C2.

[0069] like Figure 6 As shown, one 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 one end of the capacitor C2, and the other end of the capacitor C2 is connected to the reference ground GND; another 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 one end of the capacitor C2', and the other end of the capacitor C2' is connected to the reference ground GND.

[0070] For other contents not described in this embodiment, please refer to the above-mentioned embodiment 2.

[0071] Those skilled in the art to which the present invention relates may make various modifications or additions to the specific embodiments described or replace them in a similar manner, but they will not deviate from the spirit of the present invention or exceed the scope defined by the attached claims.

Claims

1. A Hall switch valve in-position detection circuit, characterized in that: include: The Hall sensor is used to detect the magnetic signal emitted by the magnet installed on the valve and output a position signal according to the detected magnetic 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 movement of the valve, and is also used to receive an in-position signal sent by the Hall sensor, and judge whether the valve is in the in-position opening position or the in-position closing position according to the in-position signal; A power adapter circuit connected to the microprocessor and the Hall sensor circuit, used to receive a valve opening drive signal or a valve closing drive signal sent by the microprocessor. The microprocessor supplies power to the Hall sensor through the power adapter circuit and provides a reference ground connection for the Hall sensor circuit. The power adapter circuit includes: transistors Q1, Q2, diodes D1, D2, The base of the transistor Q1 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, the collector of the transistor Q1 is connected to the reference ground, the base of the transistor Q2 is connected to the second drive signal FA_OFF output by the microprocessor, the emitter of the transistor Q2 is connected to the first drive signal FA_ON output by the microprocessor, the collector of the transistor Q2 is connected to the reference ground, the anode of the diode D1 is connected to the first drive signal FA_ON output by the microprocessor, the cathode of the diode D1 is connected to the reference ground and the power input terminal of the Hall sensor circuit, the anode of the diode D2 is connected to the second drive signal FA_OFF output by the microprocessor, and the cathode of the diode D2 is connected to the reference ground and the power input terminal of the Hall sensor circuit; The Hall sensor circuit comprises a Hall sensor, a power input terminal of the Hall sensor is connected to an output terminal of a power adapter circuit, a ground terminal of the Hall sensor is connected to a reference ground, and an output terminal of the Hall sensor is connected to a microprocessor.

2. A Hall switch valve in-position detection circuit according to claim 1, characterized in that: The power adapter circuit also includes: resistors R1, R2, and R3, One end of the resistor R1 is connected to the microprocessor, and 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, and the other end of the resistor R2 is connected to the base of the transistor Q2. 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.

3. A Hall switch valve in-position detection circuit according to claim 1, characterized in that: The Hall sensor circuit further includes: a capacitor C1, 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.

4. 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 positions and capacitors having the same number as the Hall sensors. The power input terminals of the Hall sensors are 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 a capacitor is connected between the power input terminals of the Hall sensors and the ground terminals of the Hall sensors.

5. A Hall switch valve in-position detection circuit according to claim 3 or 4, characterized in that: Also includes: A level conversion module connected to the output end of the Hall sensor circuit is used to convert the output of the Hall sensor circuit to a level of a signal, and the output end of the level conversion module is connected to a microprocessor.

6. A Hall switch valve in-position detection circuit according to claim 5, characterized in that: The level conversion module includes: first level conversion circuits with the same number as the Hall sensors, the first level conversion circuits are connected to the output ends of the Hall sensors and are used for level conversion of the Hall sensor output to a bit signal, and the output ends of the first level conversion circuits are connected to a microprocessor.

7. A Hall switch valve in-position detection circuit according to claim 6, characterized in that: The first level conversion circuit includes: a resistor R4 and a diode D3, One end of the resistor R4 is connected to the power supply end, the other end of the resistor R4 is connected to the microprocessor and the positive electrode of the diode D3, and the negative electrode of the diode D3 is connected to the output end of the Hall sensor.

8. The Hall switch valve in-position detection circuit according to claim 5 is characterized in that: The level conversion module includes: a second level conversion circuit, the second level conversion circuit is connected to the output end of the Hall sensor, and is used for level conversion of the Hall sensor output to a bit signal, and the output end of the second level conversion circuit is connected to the microprocessor. The second level conversion circuit includes: diodes D4, D5 and resistor R5, the cathode of the diode D4 is connected to the output end 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.

9. A Hall switch valve in-position detection circuit according to claim 3 or 4, characterized in that: Also includes: The output circuit has the same number as the Hall sensor, and the output circuit is connected to the output end of the Hall sensor, including: a resistor R6 and a capacitor C2, One end of the resistor R6 is connected to the output end of the Hall sensor, and the other end is connected to the microprocessor and one end of the capacitor C2. The other end of the capacitor C2 is connected to the reference ground.

Citation Information

Patent Citations

  • Hall switch valve in-place detection circuit

    CN210863962U