Water volume detection device, water volume detection method and computer readable storage medium

By using Hall sensors and impellers in the water volume detection device to detect the water flow and identify and filter out abnormal pulse signals, the problem of inaccurate metering when the water flow fluctuates is solved, achieving higher metering accuracy and anti-interference performance.

CN120141597APending Publication Date: 2025-06-13MUYUAN FOOD GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510291325.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

Existing pulse flowmeters are prone to generate inaccurate pulse signals when the water flow fluctuates, resulting in inaccurate water metering results.

Method used

Using at least two Hall sensors and impellers, the rotating magnets of the water flow are rotated together with the fan blades, generating a level signal, and improving the accuracy of water metering by identifying and filtering out abnormal pulse signals.

Benefits of technology

The anti-interference performance of the water volume detection device is enhanced, the accuracy of water volume metering is ensured, and the error caused by water flow fluctuations is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120141597A_ABST
    Figure CN120141597A_ABST
Patent Text Reader

Abstract

The invention discloses a water quantity detection device, a water quantity detection method and a computer readable storage medium. The water quantity detection device comprises at least two Hall sensors; the impeller comprises fan blades and magnets, and the magnets are arranged on the fan blades; when water flow passes through the impeller, the magnet and the fan blades rotate together so that the Hall sensor can generate a corresponding level signal, and the level signal is used for water quantity metering. According to the embodiment of the invention, at least two Hall sensors are arranged and used for detecting and obtaining multiple groups of level signals when the water flow passes through, and then water quantity metering is carried out after abnormal signals are identified and filtered through the multiple groups of level signals, so that the anti-interference performance of the water quantity detection device can be enhanced, and the accuracy of water quantity metering can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to the field of water flow detection technology. More specifically, this disclosure relates to a water volume detection device, a water volume detection method, and a computer-readable storage medium. Background Art

[0002] In various breeding industries, water volume detection is generally carried out in each pipeline for breeding organisms to drink water, so as to ensure that the water volume in the breeding environment is appropriate, thereby optimizing the breeding environment, reducing the risk of diseases of breeding organisms, and increasing production. Currently, for water volume detection in pipelines, a pulse flowmeter is usually used for water volume measurement. The detection principle of this type of flowmeter is that when water flows through, it drives the impeller to rotate to generate a pulse signal for water volume measurement. However, when the water flow fluctuates, the impeller may be unevenly pushed, resulting in the pulse flowmeter generating incorrect pulse signals and causing inaccurate water volume measurement results.

[0003] In view of this, there is an urgent need to provide a water volume detection device, a water volume detection method, and a computer-readable storage medium to enhance the anti-interference performance of the water volume detection device and improve the accuracy of water volume measurement. Summary of the Invention

[0004] To solve at least one or more of the above-mentioned technical problems, this disclosure proposes a water volume detection device, a water volume detection method, and a computer-readable storage medium in multiple aspects.

[0005] In a first aspect, this disclosure provides a water volume detection device, including: at least two Hall sensors; and an impeller, the impeller includes fan blades and magnets, and the magnets are arranged on the fan blades; when water flows through the impeller, the magnets and the fan blades rotate together to cause the Hall sensors to generate corresponding level signals, and the level signals are used for water volume measurement.

[0006] In some embodiments, the Hall sensors are horizontally spaced and arranged on the upper side of the impeller.

[0007] In some embodiments, the water volume detection device is communicatively connected to a terminal device using a 485 communication protocol.

[0008] In a second aspect, the present disclosure provides a water volume detection method, including: converting a first level signal and a second level signal detected by a first Hall sensor and a second Hall sensor into a first pulse signal and a second pulse signal; identifying an abnormal pulse signal in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal; filtering out the abnormal pulse signal; and calculating a water volume value by using the filtered first pulse signal or the second pulse signal.

[0009] In some embodiments, the identifying an abnormal pulse signal in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal includes:

[0010] Comparing the sequence of the induction times of the first pulse signal and the second pulse signal to determine the water flow direction, wherein among the first pulse signal and the second pulse signal, the pulse signal with an earlier induction time is a forward pulse signal, and the pulse signal with a later induction time is a reverse pulse signal;

[0011] Calculating the number of forward pulses per unit time based on the forward pulse signal, and calculating the number of reverse pulses per unit time based on the reverse pulse signal;

[0012] Forming a two-dimensional matrix with all the numbers of forward pulses and the numbers of reverse pulses;

[0013] Controlling a sliding window to slide on the two-dimensional matrix, and comparing the distribution of the number of forward pulses and the number of reverse pulses on the sliding window;

[0014] If the distribution is that the number of forward pulses and the number of reverse pulses on the sliding window are cross-distributed or do not reach a preset measurement threshold, identifying the number of forward pulses and the number of reverse pulses on the sliding window as abnormal pulse numbers.

[0015] In some embodiments, the filtering out the abnormal pulse signal includes: filtering out the abnormal pulse numbers.

[0016] In some embodiments, the calculating a water volume value by using the filtered first pulse signal or the second pulse signal includes: calculating a water volume value by using the number of forward pulses in the two-dimensional matrix.

[0017] In some embodiments, after the calculating a water volume value by using the filtered first pulse signal or the second pulse signal, it further includes: sending the water volume value to a terminal device.

[0018] In a third aspect, the present disclosure provides a water volume detection system, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the water volume detection method as described in any one of the foregoing second aspect and its multiple embodiments.

[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein when the computer program is executed by a processor, it implements the water volume detection method as described in any one of the foregoing second aspect and its multiple embodiments.

[0020] Through the water volume detection device provided as above, in the embodiments of the present disclosure, at least two Hall sensors are arranged in the water volume detection device to detect the level signal characterizing the current water volume, and then after identifying and filtering out abnormal signals through each set of level signals, water volume measurement is performed, which can enhance the anti-interference performance of the water volume detection device and ensure the accuracy of water volume measurement. Description of the Drawings

[0021] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features, and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the drawings, several embodiments of the present disclosure are shown in an exemplary rather than restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0022] Figure 1 is a structural block diagram of a water volume detection device according to some embodiments of the present disclosure;

[0023] Figure 2 is a flowchart of a water volume detection method according to some embodiments of the present disclosure;

[0024] Figure 3 is a flowchart of a water volume detection method according to some embodiments of the present disclosure;

[0025] Figure 4 is a system schematic diagram of a water volume detection system according to some embodiments of the present disclosure. Detailed Embodiments

[0026] Next, the technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present disclosure.

[0027] It should be understood that the terms "comprising" and "including" as used in the specification and claims of this disclosure indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.

[0028] It should also be understood that the terms used in this disclosure specification are for the purpose of describing particular embodiments only and are not intended to limit this disclosure. As used in this disclosure specification and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms. It should be further understood that the term "and / or" as used in this disclosure specification and claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in this specification and claims, the term "if" can be interpreted, depending on the context, as "when", "once", "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted, depending on the context, as meaning "once determined", "in response to determining", "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]".

[0030] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.

[0031] See Figure 1 , Figure 1 which is a structural block diagram of a water volume detection device according to some embodiments of this disclosure. As Figure 1 shown, the water volume detection device 100 includes: at least two Hall sensors 101; and an impeller 102, the impeller 102 including fan blades 1021 and a magnet 1022, the magnet 1022 being disposed on the fan blades 1021; wherein when water flows through the impeller 102, the magnet 1022 rotates together with the fan blades 1021 for the Hall sensors 101 to generate corresponding level signals. The level signals can be used for water volume measurement.

[0032] In some embodiments, the water volume detection device 100 may be provided with only one impeller 102. The impeller 102 includes a plurality of fan blades 1021 and magnets 1022 disposed on each fan blade 1021. As an example, one magnet 1022 may be disposed on each fan blade 1021. In other examples, multiple magnets 1022 may also be disposed on each fan blade 1021. In the embodiments of the present disclosure, by disposing the magnets 1022 on each fan blade 1021, a magnetic field is applied to the Hall sensor. When water flows through the impeller 102, the magnets 1022 rotate together with the fan blades 1021, causing the magnetic field to change. At this time, the Hall sensor 101 can detect the corresponding level signal.

[0033] A Hall sensor is a sensor that uses the Hall effect to detect a magnetic field. When a magnetic field approaches the Hall sensor, the magnetic field affects the current flowing through the inner conductor of the Hall sensor, thereby causing a Hall voltage to be generated in the vertical direction of the Hall sensor. After detecting the Hall voltage, the Hall sensor converts it into a level signal and outputs it.

[0034] In some embodiments, the water volume detection device 100 may be provided with at least two Hall sensors 101. These Hall sensors 101 may be horizontally spaced and disposed on the upper side of the impeller 102 so that when water flows through the impeller 102 for rotational movement, the Hall sensors 101 can detect the corresponding level signals. According to the foregoing settings of the embodiments of the present disclosure, when water flows through the impeller 102 for rotational movement, the water volume detection device 100 can at least detect two sets of level signals, which are respectively obtained by different Hall sensors. It should be noted that in the water pipeline, the Hall sensors are horizontally spaced along the axis of the water flow direction.

[0035] In some embodiments, the sensitive surface of the Hall sensor 101 may be disposed facing the impeller 102 so that the Hall sensor 101 can effectively detect the rotation of the impeller 102 and generate the corresponding level signal.

[0036] In some embodiments, the water volume detection device 100 may further include a controller. The controller communicates with each Hall sensor 101 through a serial port, and is used to receive the level signals detected by the Hall sensor and / or calculate the water volume value according to the level signals.

[0037] In some embodiments, the controller may include a converter for converting each group of level signals received through the serial port into pulse signals to calculate the water volume value according to the pulse signals. Each change in the level signal indicates that a pulse signal is received. Therefore, the level signal can be converted into a pulse signal through the state change of the level signal. For example, when the level signal changes from low to high, it can be defined as the start of a pulse; on the contrary, when the level signal changes from high to low, it can be defined as the end of the pulse.

[0038] In some embodiments, the controller may further include a filter for comparing groups of pulse signals detected by respective Hall sensors 101, identifying abnormal pulse signals, and then filtering out the abnormal pulse signals. According to at least two Hall sensors arranged as described above in this disclosure, at least two groups of pulse signals can be detected simultaneously, enabling the filter to identify abnormal pulse signals by comparing the groups of pulse signals, thereby filtering out the abnormal pulse signals, so that the water volume detection device 100 is protected from abnormal interferences such as abnormal rotation of the impeller 102 driven by water pressure fluctuations, enhancing the anti-interference performance of the water volume detection device and ensuring the accuracy of water volume measurement. The processing flow of the filter can be referred to the description of the water volume detection method in the following text.

[0039] In some embodiments, the controller may further include a meter for calculating the water volume value using the pulse signals. The frequency of the pulse signals is directly proportional to the flow rate of the water. For example, the greater the flow rate of the water, the more pulse signals are generated. Therefore, in some embodiments, the meter can count the number of pulse signals received within a unit time period, i.e., the number of pulses. Multiplying the number of pulses by the unit pulse amount can obtain the water volume value. Herein, the unit time period can be 1 second. As an example, the water volume corresponding to each pulse signal is 1L, and the number of pulses received within the unit time period is 100. Therefore, the product of the water volume and the number of pulses is 100L, and the current water volume value is 100L. In other embodiments, since each pulse signal corresponds to a fixed unit pulse amount, the pulse signals received within the unit time period can be directly counted, and one pulse signal corresponds to one unit pulse amount. Therefore, for each counted pulse signal, the unit pulse amount is accumulated once. Finally, the accumulated result of the unit pulse amount is the water volume value. The processing flow of the meter can be referred to the description of the water volume detection method in the following text.

[0040] In some embodiments, the water volume detection device 100 is usually placed in a closed environment such as a water pipe for measuring the water volume in the closed environment such as a water pipe. The embodiments of this disclosure do not make specific limitations in this regard, and those skilled in the art can use it for water volume measurement in different environments as needed.

[0041] In some embodiments, the water volume detection device 100 may also be communicatively connected to a terminal device using the 485 communication protocol to transmit the detected level signal and / or pulse signal and / or water volume value to the water volume detection device 100 for display based on the 485 communication protocol. The water volume detection device 100 uses the 485 communication protocol for data transmission, which not only has strong anti-interference ability but also fast data transmission efficiency. The terminal device can be an electronic device with a display screen such as a mobile phone, a computer, or a tablet. The embodiments of this disclosure do not make specific limitations in this regard.

[0042] In an embodiment of the present disclosure, at least two Hall sensors 101 are provided in the water volume detection device 100 to detect multiple groups of level signals when water flows through the impeller. Then, after identifying and filtering out abnormal signals through the multiple groups of level signals, water volume measurement is performed, which can enhance the anti-interference performance of the water volume detection device and ensure the accuracy of water volume measurement.

[0043] As described above in conjunction with Figure 1 the water volume detection device 100 of the embodiments of the present disclosure and its multiple embodiments have been described. It can be understood that the above introduction to the water volume detection device 100 is merely exemplary, and those skilled in the art can make modifications to Figure 1 the structure shown therein as needed.

[0044] Refer to Figure 2 , Figure 2 which is a flowchart of the water volume detection method in some embodiments of the present disclosure. As those skilled in the art can understand, Figure 2 the water volume detection method 20 involved can be applied to the water volume detection device described in conjunction with Figure 1 the above.

[0045] As Figure 2 shown, first at step S210, the method 20 converts the first level signal and the second level signal detected by the first Hall sensor and the second Hall sensor into a first pulse signal and a second pulse signal. Each time the level signal changes, it indicates that a pulse signal is received. Therefore, the level signal can be converted into a pulse signal through the state change of the level signal. For example, when the level signal changes from low to high, it can be defined as the start of a pulse; on the contrary, when the level signal changes from high to low, it can be defined as the end of the pulse. In an embodiment of the present disclosure, step S210 can be executed by the converter 1032 of the water volume detection device 100. It can be understood that the first Hall sensor and the second Hall sensor are the Hall sensors 101 configured for the water volume detection device 100.

[0046] Then at step S220, the method 20 identifies abnormal pulse signals in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal.

[0047] The Hall sensor closer to the water flow direction will detect the level signal earlier than the Hall sensor farther from the water flow direction. Therefore, the water flow direction can be determined according to the sequence of the induction times of the pulse signals. Determining the water flow direction also means that it can be determined which of the first pulse signal and the second pulse signal is the forward pulse signal and the reverse pulse signal. Furthermore, abnormal pulse signals in the forward pulse signal and / or the reverse pulse signal can be identified through the distribution of the forward pulse signal and the reverse pulse signal.

[0048] It should be noted that the forward pulse signal can be used for water volume measurement. Therefore, the distribution of the forward pulse signal and the reverse pulse signal is mainly used to identify abnormal pulse signals in the forward pulse signal.

[0049] In other embodiments, the water flow direction may also be determined according to the sequence of the induction times of the first level signal and the second level signal. This embodiment does not make specific limitations in this regard, and those skilled in the art can make flexible selections and modifications based on the content and teachings disclosed in this embodiment.

[0050] Subsequently, the process proceeds to step S230. At step S230, method 20 filters out the abnormal pulse signals. In the disclosed embodiment of the present disclosure, method 20 filters out the identified abnormal pulse signals, thereby avoiding the influence of abnormal pulse signals on water volume measurement and reducing the accuracy of water volume measurement. In some embodiments, steps S220 and S230 may be performed by a filter of the water volume detection device.

[0051] Finally, the process reaches step S240. At step S240, method 20 calculates the water volume value using the filtered pulse signals. In the disclosed embodiment of the present disclosure, calculating the water volume value using the forward pulse signals from which the abnormal pulse signals have been filtered can ensure the accuracy of water volume measurement.

[0052] In some embodiments, after performing step S240, method 20 may send the water volume value to the terminal device. Specifically, the water volume value may be sent to the terminal device for display using the 485 communication protocol, so that the user can monitor the water volume value in real time. In addition, method 20 may also send the level signals detected by the Hall sensor and the converted pulse signals to the terminal device for display.

[0053] As an example, refer to Figure 3 , Figure 3 is a flowchart of the water volume detection method for some embodiments of the present disclosure. Figure 3 The water volume detection method 30 shown is a specific implementation manner of steps S220, S230, and S240 described above. As Figure 3As shown, the above step S220 may include steps S301 to S305. First, at step S301, method 30 compares the sequence of induction times of the first pulse signal and the second pulse signal to determine the water flow direction. Among the first pulse signal and the second pulse signal, the pulse signal with an earlier induction time is the forward pulse signal, and the pulse signal with a later induction time is the reverse pulse signal. Then at step S302, method 30 calculates the number of forward pulses per unit time based on the forward pulse signal, and calculates the number of reverse pulses per unit time based on the reverse pulse signal. In some embodiments, the unit time can be set to 1 second. Immediately following, at step S303, method 30 forms a two-dimensional matrix with all the forward pulse numbers and reverse pulse numbers. Thus at step S304, method 30 controls the sliding window to slide on the two-dimensional matrix and determines the distribution of the forward pulse numbers and reverse pulse numbers on the sliding window. Finally, if the distribution is such that the forward pulse numbers and reverse pulse numbers on the sliding window are cross-distributed or do not reach the preset measurement threshold, then step S305 is executed. At step S305, method 30 identifies the forward pulse numbers and reverse pulse numbers on the sliding window as abnormal pulse numbers.

[0054] In the embodiments of the present disclosure, the sliding window can be set as a two-dimensional array with a window width of 5s. Those skilled in the art can change the width of the sliding window as needed. In addition, the dimension of the sliding window can also be set according to the number of Hall sensors set. For example, if the water volume detection device is provided with 3 Hall sensors, then three groups of level signals will be generated, and the dimension of the sliding window can be set to 3.

[0055] In some embodiments, the aforementioned step S230 may include step S306, and step S240 may include step S307. Specifically as Figure 3 shown, after identifying the abnormal pulse numbers, step S306 is executed. At this step S306, method 30 filters out the abnormal pulse numbers. Finally, step S307 is executed. At this time, method 30 calculates the water volume value using the forward pulse numbers in the two-dimensional matrix. It can be understood that although this embodiment can identify abnormal forward pulse numbers and reverse pulse numbers, when calculating the water volume, it is actually calculated based on the forward pulse numbers. Therefore, it is also possible to only filter out the abnormal forward pulse numbers.

[0056] In some embodiments, if the distribution is not such that the forward pulse numbers and reverse pulse numbers on the sliding window are cross-distributed or do not reach the preset measurement threshold, it indicates that there are no abnormal pulse numbers. Then step S306 is skipped and step S307 is directly executed. In some embodiments, step S307 can be executed by the meter of the water volume detection device.

[0057] Specifically, the frequency of the pulse signal is directly proportional to the flow rate of the water. Therefore, in some embodiments, the number of pulse signals received within a unit time duration, i.e., the number of pulses, can be counted. Multiplying the number of pulses by the unit pulse quantity can obtain the water volume value. In other embodiments, since each pulse signal corresponds to a fixed unit pulse quantity, the number of pulses within a unit time duration can be directly counted, and one pulse number corresponds to one unit pulse quantity. Therefore, for each counted pulse number, the unit pulse quantity is accumulated once, and the accumulated result of the unit pulse quantity is the water volume value.

[0058] In the embodiments of the present disclosure, by measuring at least two groups of pulse signals to identify abnormal pulse signals and filtering out the abnormal signals before performing water volume measurement, the accuracy and anti-interference ability of water volume measurement are improved.

[0059] The present disclosure provides a water volume detection system, including a water volume detection device, a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is configured to implement the water volume detection method as described above in combination with the foregoing.

[0060] Figure 4 is a system schematic diagram of the water volume detection system in some embodiments of the present disclosure. As Figure 4 shown, the water volume detection system 40 may include a water volume detection device 100 to implement the water volume detection method as described above in combination with Figure 2 what has been described. The water volume detection system 40 may include a CPU 4011, which may be a general-purpose CPU, a dedicated CPU, or other information processing and program execution units. Further, the water volume detection system 40 may also include a large-capacity memory 4012 and a read-only memory ROM 4013, where the large-capacity memory 4012 may be configured to store various types of data. In the embodiments of the present disclosure, it may include level signals, pulse signals, abnormal pulse signals, water volume values, etc. Additionally, the ROM 4013 may be configured to store the initialization of each functional module of the water volume detection system 40, the driver program for the basic input / output of the system, and the data required to boot the operating system.

[0061] Further, the system 40 may also include other hardware platforms or components, such as the shown machine learning unit (MLU) 4017. It can be understood that although various hardware platforms or components are shown in the system 40, this is merely exemplary and not restrictive, and those skilled in the art can add or remove corresponding hardware according to actual needs.

[0062] The water volume detection system 40 further includes a communication interface 4018, so that it can be connected to a local area network / wireless local area network (LAN / WLAN) 405 through this communication interface 4018, and then can be connected to a local server 406 or connected to the Internet ("Internet") 407 through the LAN / WLAN. Alternatively or additionally, the water volume detection system 40 of the embodiments of the present disclosure can also be directly connected to the Internet or a cellular network based on wireless communication technology through the communication interface 4018, such as wireless communication technology based on the third generation ("3G"), fourth generation ("4G") or fifth generation ("5G"). In some application scenarios, the water volume detection system 40 can also access a server 408 and a possible database 409 of an external network as needed, so as to obtain various known interactive information, and can store data such as images to be detected and detection results.

[0063] The peripheral devices of the water volume detection system 40 may include a display device 402, an input device 403, and a data transmission interface 404. In one embodiment, the display device 402 may include, for example, one or more speakers and / or one or more visual displays, which are configured to perform voice prompts and / or image and video displays on the operation process or final result of the test device of the present disclosure. The input device 403 may include, for example, a keyboard, a capture camera, or other input buttons or controls, which are configured to receive inputs for detecting call status or user instructions. The data transmission interface 404 may include, for example, a serial interface, a parallel interface, or a universal serial bus interface ("USB"), a small computer system interface ("SCSI"), serial ATA, FireWire, PCI Express, and a high-definition multimedia interface ("HDMI"), etc., which are configured for data transmission and interaction with other devices or systems. According to the solution of the present disclosure, the data transmission interface 404 can transmit interactive information, control signals, images to be detected, and detection results. The above-mentioned CPU 4011, mass storage 4012, read-only memory ROM 4013, MLU 4017, and communication interface 4018 of the water volume detection system 40 of the present disclosure can be interconnected through a bus 409, and data interaction with peripheral devices is achieved through this bus. In one embodiment, through this bus 409, the CPU 4011 can control other hardware components and their peripheral devices in the water volume detection system 40.

[0064] It should also be understood that any module, unit, component, server, computer, terminal, or device that executes the instructions of the present disclosure example may include or otherwise access a computer-readable medium, such as a storage medium, a computer storage medium, or a data storage device (removable) and / or non-removable), such as a magnetic disk, an optical disk, or a magnetic tape. The computer storage medium may include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data.

[0065] An embodiment of the present disclosure provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the water volume detection method described above.

[0066] The computer-readable storage medium provided by the embodiment of the present disclosure may be, for example, a USB flash drive, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0067] The above computer-readable storage medium may be included in the water volume detection device; or it may exist separately without being assembled into the water volume detection device.

[0068] The above computer-readable storage medium carries one or more programs, which, when executed by the water volume detection device, cause the water volume detection device to: convert the first level signal and the second level signal detected by the first Hall sensor and the second Hall sensor into a first pulse signal and a second pulse signal; identify abnormal pulse signals in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal; filter out the abnormal pulse signals; and calculate the water volume value by using the filtered first pulse signal or second pulse signal.

[0069] Although multiple embodiments of the present disclosure have been shown and described herein, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Many changes, variations, and alternative ways may occur to those skilled in the art without departing from the spirit and scope of the present disclosure. It should be understood that various alternatives to the embodiments of the present disclosure described herein may be employed in practicing the present disclosure. The appended claims are intended to define the scope of protection of the present disclosure and thus cover equivalents or alternatives within the scope of these claims.

[0070] In the embodiments of the present disclosure, the collection and acquisition of various data comply with relevant laws and regulations and are authorized by the data providers. Any organization or individual that needs to obtain external data shall obtain authorization according to law and ensure data security, and shall not illegally collect, use, process, or transmit unauthorized or unprotected data, nor illegally buy, provide, or disclose unauthorized or unprotected data.

Claims

1. A water volume detection device, characterized in that: include: At least two Hall sensors; and an impeller, the impeller comprising blades and magnets, the magnets being arranged on the blades; When water flows through the impeller, the magnet rotates together with the fan blades, so that the Hall sensor generates a corresponding level signal, and the level signal is used for water volume measurement.

2. The water volume detection device according to claim 1, characterized in that: The Hall sensors are arranged horizontally and spaced apart on the upper side of the impeller.

3. The water volume detection device according to claim 1, characterized in that: The water volume detection device and the terminal device are connected to each other by using the 485 communication protocol.

4. A water volume detection method, characterized in that: include: Converting the first level signal and the second level signal detected by the first Hall sensor and the second Hall sensor into a first pulse signal and a second pulse signal; identifying an abnormal pulse signal in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal; filtering out the abnormal pulse signal; The water volume value is calculated using the first pulse signal or the second pulse signal after filtering.

5. The water volume detection method according to claim 4, characterized in that: The identifying an abnormal pulse signal in the first pulse signal and / or the second pulse signal according to the induction time of the first pulse signal and the second pulse signal and the first pulse signal and the second pulse signal comprises: Comparing the sequence of the induction time of the first pulse signal and the second pulse signal to determine the direction of water flow, wherein in the first pulse signal and the second pulse signal, the pulse signal with an earlier induction time is a forward pulse signal, and the pulse signal with a later induction time is a reverse pulse signal; Calculating the number of forward pulses per unit time based on the forward pulse signal, and calculating the number of reverse pulses per unit time based on the reverse pulse signal; Combining all the forward pulse numbers and the reverse pulse numbers into a two-dimensional matrix; Controlling the sliding window to slide on the two-dimensional matrix, and determining the distribution of the number of forward pulses and the number of reverse pulses on the sliding window; If the distribution condition is that the number of forward pulses and the number of reverse pulses on the sliding window are cross-distributed or do not reach a preset measurement threshold, the number of forward pulses and the number of reverse pulses on the sliding window are identified as abnormal pulse numbers.

6. The water volume detection method according to claim 5, characterized in that: The filtering out of the abnormal pulse signal comprises: The abnormal pulse number is filtered out.

7. The water volume detection method according to claim 5, characterized in that: The calculating the water volume value by using the first pulse signal or the second pulse signal after filtering includes: The water amount value is calculated using the number of positive pulses in the two-dimensional matrix.

8. The water volume detection method according to claim 4, characterized in that: After calculating the water volume value by using the filtered first pulse signal or the second pulse signal, the method further includes: The water volume value is sent to the terminal device.

9. A water volume detection system, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the water quantity detection method according to any one of claims 4 to 8.

10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the steps of the water volume detection method according to any one of claims 4 to 8 are implemented.