Liquid level detection device based on magnetic sensor
By using multiple magnetic sensor modules in the liquid level detection device to form a daisy chain ring topology, the problems of difficult sensing of liquid level detection signals and high power consumption in large liquid tanks are solved, and high-precision, low-cost liquid level measurement is achieved. Detection effect.
Patent Information
- Application Number
- CN202420087800.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2034-01-12
AI Technical Summary
The existing liquid level detection device has difficulty in sensing signals in large liquid tanks and consumes a lot of power, and the sensor cost is high and cannot effectively solve the problems of range and accuracy.
Multiple magnetic sensor modules are used to form a daisy chain ring topology. Each module works in turn and is connected end to end through the daisy chain ring topology to control the startup time of the magnetic sensor module and only activate one module when needed to avoid power overload and The problem of high costs.
It achieves high-precision liquid level detection in large liquid tanks, reduces power consumption and costs, avoids circuit disorder and sensor abnormalities, is simple to operate, and does not require a separate cycle work cycle.
Smart Images

Figure CN221630841U
Abstract
Description
Technical Field
[0001] The utility model relates to a liquid level detection device, in particular to a liquid level detection device based on a magnetic sensor. Background Art
[0002] At present, the working principle of the liquid level detection device is as follows: usually there is a float inside the liquid tank, the float contains a magnet, and floats up and down with the change of liquid level. The liquid level detection module is used to determine the position of the float in real time to detect the liquid level in the tank.
[0003] Specifically, the structure of the traditional liquid level detection device is as follows:
[0004] Solution 1: Use a single 3D HALL (Hall effect magnetic sensor) to sense the liquid level. The advantage is that fewer magnetic sensors are required and the cost is low. The disadvantage is that the measuring range is short. The larger the volume of the liquid tank, the longer the distance between the lowest liquid level and the 3D magnetic sensor. The smaller the signal that the magnetic sensor can sense, the liquid level may not even be detected, and the accuracy is also low.
[0005] Solution 2: Use multiple HALLs (Hall effect magnetic sensors) in series to detect the liquid level and solve the range problem. One detection cycle is divided into working time and sleep time. Working time detection and sleep time reduce overall power consumption. The disadvantage is that the working current of the HALL is relatively large, basically at the milliampere level. Multiple HALLs working at the same time will divide more power supply current, causing voltage fluctuations and causing circuit operation disorder. At the same time, excessive current will also cause excessive voltage drop between the series-connected HALLs, which may cause output errors.
[0006] Solution 3: Use N TMRs (tunnel magnetoresistance sensors) in series. The working current of TMR is small, which can solve the problem of large working current of HALL series. However, the cost of TMR is high, and because its own current is small, external current fluctuations have a greater impact on the TMR circuit, which may cause a single TMR to be abnormal and the liquid level detection to fail. Utility Model Content
[0007] The utility model aims to provide a liquid level detection device based on a magnetic sensor to reduce the cost and avoid burdening the power supply.
[0008] In order to achieve the above-mentioned purpose, the utility model provides a liquid level detection device based on a magnetic sensor, which is used to measure the liquid level of a liquid container. A magnetic float is provided in the liquid container, which is composed of a plurality of magnetic sensor modules connected in series, and the sensing elements of the plurality of magnetic sensor modules are arranged in sequence in a direction perpendicular to the liquid surface; each magnetic sensor module has a start port and an end port, and different magnetic sensor modules are connected end to end in sequence through the start port and the end port, thereby forming a daisy chain ring topology structure, and the start time of each magnetic sensor module is controlled by connecting the daisy chain ring topology structure end to end.
[0009] The magnetic sensor module is configured such that: when the start port receives a start signal indicating start, the magnetic sensor module works; when the magnetic sensor module works, it detects whether a float is nearby; when the magnetic sensor module finishes working, the end port sends a start signal indicating start.
[0010] Each magnetic sensor module also has an output port; the output port of the first magnetic sensor module is connected to a module current source and a voltage detection module; except for the last magnetic sensor module, the output port of each magnetic sensor module is connected to the output port of the next magnetic sensor module through its external resistor, and the output port of the last magnetic sensor module is grounded through its external resistor;
[0011] When the magnetic sensor module is working and the float is nearby, its output port outputs a low level, thereby short-circuiting the external resistor to the ground; when the magnetic sensor module is not working or working but the float is not nearby, its output port outputs a high resistance.
[0012] The voltage detection module is used to detect the voltage value and determine the resistance R between the ground position and the current source according to the formula VQ / IR=R, IR is the current value of the module current source, VQ is the detected voltage value, and the number of grounded external resistors is determined according to the resistance between the ground position and the current source, and then the ordinal number of the magnetic sensor module with the output port grounded is determined. The position of the Hall element of the magnetic sensor module with the output port grounded is the liquid level.
[0013] Each magnetic sensor module also has a power port and a ground port. The power port of each magnetic sensor module is connected to a power source, and the ground port is grounded.
[0014] The magnetic sensor module is based on a Hall effect magnetic sensor, which includes a first current source connected to a power supply port, a first switch tube whose gate is connected to a start port, whose drain is connected to the first current source and whose source is grounded, a Hall element, a Hall signal processing module and a hysteresis comparison output module connected in sequence, a second switch tube whose gate is connected to the hysteresis comparison output module, whose drain is connected to an output port and whose source is grounded, and an oscillator, and the Hall element is used as a sensing element; or, the magnetic sensor module is based on an anisotropic magnetoresistance sensor.
[0015] Each magnetic sensor module also has an enable port. The first magnetic sensor module receives a start signal through the enable port, and the enable ports of other magnetic sensor modules are grounded. When the enable port receives a start signal indicating startup, the magnetic sensor module works.
[0016] When the current magnetic sensor module fails to receive the start signal of the previous magnetic sensor module within a sleep-wake-up cycle, the magnetic sensor module pulls up the start port to the power supply to force the wake-up operation and refreshes the timer time of the sleep-wake-up cycle; when the current magnetic sensor module is not forcibly awakened, the circuit where the pull-up resistor is located is disconnected.
[0017] The number of the magnetic sensor modules is at least 3.
[0018] The liquid level detection device based on the magnetic sensor of the utility model uses a plurality of magnetic sensor modules of daisy chain ring topology structure connected in series. A single magnetic sensor module can be based on HALL or AMR, and has a low cost. The daisy chain ring topology structure can solve the problem of large working current of HALL or AMR magnetic sensors. Each magnetic sensor module works in turn. At the same time, only one magnetic sensor module of the entire liquid level detection module is running, which will not cause a burden on the power supply. The magnetic sensor modules in the daisy chain work in a cycle, that is, after the magnetic sensor module at the tail of the daisy chain is completed, the magnetic sensor module at the head of the daisy chain will be enabled to work. In other words, the liquid level detection module only needs a start signal when working, and there is no need to set a cycle working period separately when no fault occurs, and the operation is simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The present invention is a simplified circuit diagram of a liquid level detection device based on a magnetic sensor according to an embodiment of the present invention.
[0020] Figure 2 Yes Figure 1 The circuit diagram of a single magnetic sensor module of a magnetic sensor-based liquid level detection device is shown.
[0021] Figure 3 This is a timing diagram of the liquid level detection device based on the magnetic sensor of the utility model when it is working. DETAILED DESCRIPTION
[0022] The present invention is further described below in conjunction with specific embodiments. It should be understood that the following embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0023] like Figure 1 The figure shows a liquid level detection device based on a magnetic sensor according to an embodiment of the utility model, which is used to measure the liquid level of a liquid container. Usually, a magnetic float is provided in the liquid container, and the magnetic float contains a magnet, which floats up and down with the change of the liquid level. The liquid level detection device based on a magnetic sensor is composed of a plurality of magnetic sensor modules connected in series. Each magnetic sensor module includes a sensing element, and the sensing elements of the plurality of magnetic sensor modules are arranged in sequence in a direction perpendicular to the liquid surface.
[0024] The number N of magnetic sensor modules is determined by the actual required accuracy and range, and N is at least 3. In this embodiment, the number N of magnetic sensor modules is 3, including the first magnetic sensor module N1, the second magnetic sensor module N2, and the third magnetic sensor module N3 arranged in sequence in a direction perpendicular to the liquid surface. The three magnetic sensors are set to simplify the description. In other embodiments of actual applications, the number N of magnetic sensor modules can be more, and N is normally used in hundreds, and the number is determined by the actual required accuracy and range.
[0025] Each magnetic sensor module has 6 ports, including a power port VDD, a ground port GND, an enable port EN, a start port START, an end port END and an output port OUT. The magnetic sensor module is configured to: when the enable port EN or the start port START receives a start signal indicating start, the magnetic sensor module works; when the magnetic sensor module works, it detects whether the float is nearby; when the magnetic sensor module finishes working, the end port END sends a start signal indicating start. Thus, the position of the float in the liquid tank can be measured by multiple magnetic sensor modules.
[0026] Different magnetic sensor modules are connected end to end in sequence through the start port START and the end port END (i.e., the end port END of each magnetic sensor module is connected to the start port START of the next magnetic sensor module, and the end port END of the last magnetic sensor module is connected to the start port START of the first magnetic sensor module N1), thereby forming a daisy chain ring topology structure, and the start time of each magnetic sensor module is controlled by connecting the daisy chain ring topology structure end to end. Therefore, the liquid level detection device based on the magnetic sensor of the utility model is connected end to end through the ring topology structure, and only one start signal is needed under normal working conditions to cycle work, without setting a cycle working period.
[0027] Therefore, except for the start signal indicating the start received by the enable port EN at the beginning, the operation of other time sensors depends on when the start port START receives the start signal, the enable port EN of the first magnetic sensor module N1 receives the start signal indicating the start, the first magnetic sensor module N1 works, the first magnetic sensor module N1 finishes working, the start port START of the second magnetic sensor module N2 receives the start signal sent by the end port END of the first magnetic sensor module N1, the second magnetic sensor module N2 works, the second magnetic sensor module N2 finishes working, the start port START of the third magnetic sensor module N3 receives the start signal sent by the end port END of the second magnetic sensor module N2, the third magnetic sensor module N3 works, the third magnetic sensor module N3 finishes working, the start port START of the first magnetic sensor module N1 receives the signal sent by the end port END of the third magnetic sensor module N3, the first magnetic sensor module N1 works... and so on. This sequential working time sequence can ensure that only one magnetic sensor module is working at the same time, reduce power consumption, and will not cause a large burden on the power supply. At the same time, each magnetic sensor module detects whether the float in the liquid tank is close during its respective working time, so that the position of the float in the liquid tank is determined through the work of multiple magnetic sensor modules.
[0028] In this embodiment, the first magnetic sensor module N1 receives a start signal through the enable port EN, and the enable ports EN of the other magnetic sensor modules N2 and N3 are grounded. In addition, the power port VDD of each magnetic sensor module is connected to the power supply, and the ground port GND is grounded. The output port OUT of the first magnetic sensor module N1 is connected to a module current source IR and a voltage detection module (not shown). Except for the last magnetic sensor module, the output port OUT of each magnetic sensor module (such as N1, N2) is connected to the output port OUT of the next magnetic sensor module through its external resistor (such as external resistors R1, R2). And the output port OUT of the last magnetic sensor module N3 is grounded through its external resistor. The module current source IR is a constant current source, which is used to supply power to the external resistor, thereby assisting in liquid level detection.
[0029] like Figure 2As shown, in order to make the magnetic sensor module have a start port START and an end port END, the magnetic sensor module is based on HALL (Hall effect magnetic sensor), which includes a pull-up resistor R0 connected between the power port VDD and the start port START, a first current source I0 connected to the power port VDD, a first switch tube M1 whose gate is connected to the start port START, whose drain is connected to the first current source I0 and whose source is grounded to the port GND, a work enable module En1 connected to the drain of the first switch tube M1, a Hall element H1, a Hall signal processing module H2 and a hysteresis comparison output module H3 connected in sequence, a second switch tube M2 whose gate is connected to the hysteresis comparison output module H3, whose drain is connected to the output port OUT and whose source is grounded to the port GND, an oscillator OSC, and an end port END, and the Hall element H1 is used as a sensing element. In other embodiments, the magnetic sensor module can be based on other types of magnetic sensors such as AMR (anisotropic magnetoresistance sensor), and accordingly, the Hall element H1 can be replaced with other types of sensing elements.
[0030] The work enable module En1 is connected to the enable port EN, which is configured so that when the magnetic sensor module receives a start signal indicating startup through the enable port EN, the start signal indicating startup is connected to the work enable module En1 to wake up the entire work circuit. The enable port EN is an external startup signal interface, and the external connection circuit is selected according to the actual usage scenario.
[0031] The enable port EN is an external startup signal interface, and the connection circuit is selected according to the actual usage scenario.
[0032] The function of the oscillator OSC is to time the operation cycle and sleep / wake-up cycle of the magnetic sensor. The oscillator works continuously during the detection cycle. When the magnetic sensor receives the start signal and starts working, it stops working after the working time reaches the specified operation cycle. The magnetic sensor enters the sleep cycle and outputs the END port signal without additional circuit processing. The sleep / wake-up cycle will be described in detail below.
[0033] Therefore, when the magnetic sensor module is working and the float is nearby, the second switch tube M2 at its output port OUT is pulled down, so that the output port OUT outputs a low level, thereby short-circuiting the connected external resistor to the ground; on the contrary, when the magnetic sensor module is not working or is working but the float is not nearby, its output port OUT outputs a high resistance.
[0034] like Figure 3 As shown, the working principle of the liquid level detection device based on the magnetic sensor of the utility model is as follows:
[0035] When the power is turned on and the entire liquid level detection device based on the magnetic sensor starts to work, the enable port EN of the magnetic sensor module at the head of the daisy chain (i.e., the first magnetic sensor module N1) will receive the enable signal, and the EN ports of other magnetic sensor modules are grounded. The first magnetic sensor module N1 starts to work. After completing a whole working cycle, the end port END of the first magnetic sensor module N1 sends an end mark signal (i.e., a start signal indicating startup), which is transmitted to the start port START of the next magnetic sensor module (i.e., the second magnetic sensor module N2). The second magnetic sensor module N2 receives the start signal indicating startup and starts. After another working cycle, the end mark signal is also transmitted to the next magnetic sensor module through the end port END, and so on, until it is transmitted to the magnetic sensor at the tail of the daisy chain (i.e., the third magnetic sensor module N3 in this embodiment). After the third magnetic sensor module N3 finishes working, it transmits the end mark signal to the start port START of the head magnetic sensor N1, and the first magnetic sensor module N1 starts, starting a new liquid level detection cycle, and thus circulates until the power-off work ends.
[0036] Figure 3 middle, I on is the magnetic sensor operating current, I off is the sleep current of the magnetic sensor, both are obtained by measuring the current at the power supply port VDD. Both show the working time of each magnetic sensor module.
[0037] In the liquid level detection working cycle, any magnetic sensor module detects the approach of the float within the working time, the second switch tube M2 at the output port OUT is pulled down, the output port OUT outputs a low level, the external resistor connected to the output port OUT is short-circuited to the ground, and the voltage detection module detects the voltage of the daisy chain head resistor (i.e. Figure 1 The voltage at the middle node Q) can determine the liquid level according to the voltage value detected by the voltage detection module, wherein the daisy chain head resistor voltage refers to the voltage of the output port OUT of the first magnetic sensor module N1. The principle of determining the liquid level according to the voltage value detected by the voltage detection module is that the current value IR of the module current source IR is known, VQ is the detected voltage value, VQ / IR=R, and the resistance value between the grounding position and the current source can be obtained. The number of grounded external resistors is determined according to the resistance value between the grounding position and the current source, and then the ordinal number of the magnetic sensor module with the output port OUT grounded is determined. The position of the Hall element of the magnetic sensor module with the output port OUT grounded is the liquid level.
[0038] In addition, when an abnormal situation occurs inside the daisy chain, such as a magnetic sensor module in which the work is abnormal and cannot normally output the end mark from the end port END to the next magnetic sensor module, the pull-up resistor R0 inside the next magnetic sensor module of the faulty magnetic sensor module (i.e., the magnetic sensor module without the start signal) will directly connect the start port START of the magnetic sensor module without the start signal to the power supply, and the magnetic sensor module without the start signal will work in the custom sleep and wake-up cycle inside the chip, and the system will skip the cycle operation of the faulty magnetic sensor. As mentioned above, the clock signal of this sleep and wake-up cycle is also provided by the oscillator.
[0039] That is to say, each magnetic sensor module is also configured as follows: when the previous magnetic sensor module of the current magnetic sensor module fails, that is, when the current magnetic sensor module fails to receive the start signal of the previous magnetic sensor module within a sleep-wake-up cycle, the magnetic sensor module uses the pull-up resistor R0 to pull up the start port START to the power supply to force the wake-up operation; at the same time, the timer time of the sleep-wake-up cycle is refreshed. When the magnetic sensor module is not forcibly awakened, the pull-up resistor R0 is located in the circuit, but has no actual effect (that is, the circuit where the pull-up resistor R0 is located is provided with a pull-up resistor switch, and the pull-up resistor switch is disconnected during normal operation, so that the circuit where the pull-up resistor R0 is located is disconnected). The other working modes of the magnetic sensor module are the same as before, that is, after the work is completed, the magnetic sensor module sends the start signal sent by the end port END to the next magnetic sensor module, thereby starting a new cycle of work. This is equivalent to passively skipping the operation of the faulty magnetic sensor.
[0040] In this embodiment, assuming that N2 fails, N3 does not receive the start signal sent by the end port END of N2 within a sleep wake-up cycle time. The magnetic sensor N3 will pull up the resistor R0 to the power supply, and N3 will start working to refresh the sleep wake-up cycle time. After the work is completed, the output END signal will continue to be transmitted to the N1 magnetic sensor, thereby continuing the cycle, and N2 will be passively skipped each time it works.
[0041] The liquid level detection device based on the magnetic sensor of the utility model uses a plurality of magnetic sensor modules of a daisy chain ring topology structure connected in series, and a single magnetic sensor module can be based on HALL or AMR (anisotropic magnetoresistive sensor), and the cost is relatively low; the daisy chain ring topology structure can solve the problem of large working current of the HALL or AMR magnetic sensor, and each magnetic sensor module works in turn, and at the same time, only one magnetic sensor module of the entire liquid level detection module is running, which will not cause a burden on the power supply; and the magnetic sensors in the daisy chain work in a cycle, that is, after the magnetic sensor module at the tail of the daisy chain is completed, the magnetic sensor module at the head of the daisy chain will be enabled to work, that is, the liquid level detection module only needs a start signal when working, and there is no need to set a cyclic working period separately when no fault occurs, and the operation is simple.
[0042] The above is only a preferred embodiment of the utility model, and is not intended to limit the scope of the utility model. The above embodiments of the utility model can also be modified in various ways. All simple, equivalent changes and modifications made according to the claims and the contents of the specification of the utility model application fall within the scope of protection of the claims of the utility model patent. The conventional technical contents are not described in detail in the utility model.
Claims
1. A liquid level detection device based on a magnetic sensor, which is used to measure the liquid level of a liquid container, wherein a magnetic float is provided in the liquid container, characterized in that: It is composed of a plurality of magnetic sensor modules connected in series, and the sensing elements of the plurality of magnetic sensor modules are arranged in sequence in a direction perpendicular to the liquid surface; Each magnetic sensor module has a start port and an end port. Different magnetic sensor modules are connected end to end in sequence through the start port and the end port to form a daisy chain ring topology structure. The start time of each magnetic sensor module is controlled by connecting end to end in the daisy chain ring topology structure.
2. The liquid level detection device based on a magnetic sensor according to claim 1, characterized in that: The magnetic sensor module is configured such that: when the start port receives a start signal indicating start, the magnetic sensor module works; when the magnetic sensor module works, it detects whether a float is nearby; when the magnetic sensor module finishes working, the end port sends a start signal indicating start.
3. The liquid level detection device based on a magnetic sensor according to claim 1, characterized in that: Each magnetic sensor module also has an output port; the output port of the first magnetic sensor module is connected to a module current source and a voltage detection module; except for the last magnetic sensor module, the output port of each magnetic sensor module is connected to the output port of the next magnetic sensor module through its external resistor, and the output port of the last magnetic sensor module is grounded through its external resistor; When the magnetic sensor module is working and the float is nearby, its output port outputs a low level, thereby short-circuiting the external resistor to the ground; when the magnetic sensor module is not working or working but the float is not nearby, its output port outputs a high resistance.
4. The liquid level detection device based on a magnetic sensor according to claim 3, characterized in that: The voltage detection module is used to detect the voltage value and determine the resistance R between the ground position and the current source according to the formula VQ / IR=R, IR is the current value of the module current source, VQ is the detected voltage value, and the number of grounded external resistors is determined according to the resistance between the ground position and the current source, and then the ordinal number of the magnetic sensor module with the output port grounded is determined. The position of the Hall element of the magnetic sensor module with the output port grounded is the liquid level.
5. The liquid level detection device based on a magnetic sensor according to claim 3, characterized in that: Each magnetic sensor module also has a power port and a ground port. The power port of each magnetic sensor module is connected to a power source, and the ground port is grounded.
6. The liquid level detection device based on a magnetic sensor according to claim 5, characterized in that: The magnetic sensor module is based on a Hall effect magnetic sensor, which includes a first current source connected to a power supply port, a first switch tube with a gate connected to a start port, a drain connected to the first current source and a source ground port, a Hall element, a Hall signal processing module and a hysteresis comparison output module connected in sequence, a second switch tube with a gate connected to the hysteresis comparison output module, a drain connected to an output port and a source ground port, and an oscillator, wherein the Hall element is used as a sensing element; Alternatively, the magnetic sensor module is based on an anisotropic magnetoresistive sensor.
7. The liquid level detection device based on a magnetic sensor according to claim 1, characterized in that: Each magnetic sensor module has an enable port, the first magnetic sensor module receives a start signal through the enable port, and the enable ports of other magnetic sensor modules are grounded; when the enable port receives a start signal indicating startup, the magnetic sensor module works.
8. The liquid level detection device based on a magnetic sensor according to claim 1, characterized in that: The magnetic sensor module includes a pull-up resistor connected between the power port and the start port; Each magnetic sensor module is further configured to: when the current magnetic sensor module fails to receive the start signal of the previous magnetic sensor module within a sleep-wake-up cycle, the magnetic sensor module pulls up the start port to the power supply to force the wake-up operation and refresh the timer time of the sleep-wake-up cycle; when the current magnetic sensor module is not forcibly awakened, the circuit where the pull-up resistor is located is disconnected.
9. The liquid level detection device based on a magnetic sensor according to claim 1, characterized in that: The number of the magnetic sensor modules is at least 3.
Citation Information
Cited By
Liquid level detection device based on magnetic sensor
CN122631184A
