A method for detecting water deficiency and water flow of a water pump
By winding coils into the water pump pipeline and utilizing a controllable pulse generation circuit and a water flow detection circuit, the problems of flow influence and high cost complexity caused by sensors and probes are solved, achieving low-cost and accurate water shortage and water flow detection.
Patent Information
- Application Number
- CN202511785086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2045-12-01
AI Technical Summary
Existing methods for detecting water shortage and water flow in water pumps suffer from problems such as flow interference, high cost, system complexity, and susceptibility to failure due to the use of sensors and probes.
It employs a controllable pulse generation circuit and a water flow detection circuit. By winding a coil on the inlet or outlet pipe of the water pump, it uses oscillation signals and voltage changes to determine water shortage and water flow. Only electrical components such as dual-input NAND gate ICs need to be set on the controller circuit board, avoiding the use of sensors and probes.
It achieves low-cost and simple detection of water pump shortage and water flow, avoids the influence of flow and misjudgment, improves the accuracy of judgment, is easy to install and the system is not complicated.
Smart Images

Figure CN121229385B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of water pump technology, and specifically refers to a method for detecting water shortage and water flow in a water pump. Background Technology
[0002] Water pump flow detection typically uses flow switches or impeller-type flow sensors. Both flow switches and impeller-type flow sensors add moving parts to the pipeline, which can affect water flow and increase pipeline resistance; furthermore, various impurities in the water can cause detection failure. Water shortage detection generally requires a combination of pressure and flow sensors, or a float or probe approach. Using multiple sensors is costly and complex; a float approach requires an external float, which is inconvenient; and a probe approach involves placing a metal probe in the water to measure water resistance. However, because the probe is submerged, electrical isolation must be considered, and the probe is susceptible to corrosion and impurity buildup, which can also lead to failure. Summary of the Invention
[0003] The purpose of this invention is to provide a method for detecting water pump shortage and water flow. This method eliminates the need for sensors, floats, and probes inside the pipeline, and avoids the problems associated with these devices, such as affecting water flow, inconvenience in use, and failure due to corrosion or impurities. It also avoids the high cost and system complexity associated with multiple sensors. This invention's detection method does not affect water flow, is low-cost, has a simple system, and is easy to install.
[0004] This invention is implemented as follows:
[0005] A method for detecting water pump shortage and water flow includes the following steps:
[0006] S1. Initialize the microcontroller, set the frequency reference value f0, the time T1 to turn on the controllable pulse generation circuit, the time T2 to turn off the controllable pulse generation circuit, the number of pulses M, the oscillation voltage value U1, and the no-oscillation voltage value U2.
[0007] S2, handle other processes;
[0008] S3. Turn on the controllable pulse generation circuit to generate an oscillation signal;
[0009] S4. The microcontroller captures the oscillation signal generated by the controllable pulse generation circuit;
[0010] S5. When the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water and step S6 is executed; otherwise, it is determined that there is no water and step S2 is executed.
[0011] S6, Number of detections i=0;
[0012] S7. Turn on the controllable pulse generation circuit for time T1.
[0013] S8. The microcontroller captures and saves the voltage value output by the water flow detection circuit;
[0014] S9. Turn off the controllable pulse generation circuit for time T2;
[0015] S10. The microcontroller captures and saves the voltage value output by the water flow detection circuit;
[0016] S11, Number of detections i = i + 1;
[0017] S12. Determine whether the number of detections i is greater than or equal to the number of detections M. If yes, proceed to step S13; otherwise, proceed to step S7.
[0018] S13. When the controllable pulse generation circuit is turned on, if the difference between the voltage value output by the water flow detection circuit and the oscillation voltage value U1 is greater than 0.1 volts more than 10% of the time, and when the controllable pulse generation circuit is turned off, if the difference between the voltage value output by the water flow detection circuit and the non-oscillation voltage value U2 is greater than 0.1 volts more than 10% of the time, then there is water flow. If the number of times there is water flow is more than half, then it is determined that there is water flow, and step S2 is executed; otherwise, it is determined that there is no water flow, and step S2 is executed.
[0019] The controllable pulse generation circuit includes a dual-input NAND gate IC4 and a coil L2. The water flow detection circuit includes a coil L1. Both coil L1 and coil L2 are wound around the water pump's inlet pipe, or both coil L1 and coil L2 are wound around the water pump's outlet pipe. The oscillation signal of coil L1 coupled with coil L2 generates an induced electromotive force.
[0020] In the above-mentioned method for detecting water shortage and water flow in a water pump, in step S8, the microcontroller captures the oscillation signal generated by the controllable pulse generation circuit. Step S1 is added between step S8 and step S9. When the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water and step S9 is executed; otherwise, it is determined that there is no water and step S2 is executed.
[0021] In the above-mentioned method for detecting water pump shortage and water flow, the controllable pulse generation circuit further includes a starting resistor R5, an adjusting resistor R6, and a π-type frequency selection network. The π-type frequency selection network is composed of capacitor C4, capacitor C5, and coil L2, with capacitors C4 and C5 having fixed values.
[0022] In the above-mentioned method for detecting water pump shortage and water flow, the oscillation signal generated by the controllable pulse generation circuit is shaped by the pulse shaping circuit and then transmitted to the microcontroller. The pulse shaping circuit includes a dual-input NAND gate IC3.
[0023] In the above-mentioned method for detecting water pump shortage and water flow, the water flow detection circuit further includes an operational amplifier chip IC2, a resistor R4, and a capacitor C3.
[0024] In the above-mentioned method for detecting water shortage and water flow in a water pump, coil L1 and coil L2 are wound on the same frame with a gap between them. The frame is fitted onto the water pump's inlet pipe or onto the water pump's outlet pipe.
[0025] To avoid the metal tubing affecting the test results, the tubing for coils L1 and L2 is made of plastic.
[0026] The outstanding advantages of this invention compared to the prior art are:
[0027] This invention generates an oscillation signal through a controllable pulse generation circuit, and determines the presence of water by using this oscillation signal and a water flow detection circuit. It only requires electrical components such as a dual-input NAND gate IC4 on the controller's circuit board, and coils L1 and L2 installed in the water pump's inlet or outlet pipes. It eliminates the need for sensors, floats, and probes inside the pipes, avoiding the problems of affecting water flow, inconvenience, corrosion, and impurity buildup that can lead to failure. It also avoids the high cost and system complexity associated with multiple sensors. This invention's detection method does not affect water flow, is low-cost, simple, and easy to install. When the voltage fluctuation of the controllable pulse generation circuit is greater than 0.1 volts when both are turned on and off, water flow is determined, effectively avoiding false alarms and improving accuracy. This invention uses multiple detections and comparisons to ultimately determine the presence of water flow, effectively avoiding false alarms caused by individual errors and ensuring accurate judgment. Attached Figure Description
[0028] Figure 1 This is a control flowchart of Embodiment 1 of the present invention.
[0029] Figure 2 This is a control flowchart of Embodiment 2 of the present invention.
[0030] Figure 3 This is a schematic diagram of the principle of the present invention.
[0031] Figure 4 This is the circuit schematic diagram of the present invention.
[0032] Figure 5 This is a schematic diagram of the coil mounting structure of the present invention. Detailed Implementation
[0033] The present invention will be further described below with reference to specific embodiments. See also: Figure 1 —5:
[0034] Example 1: See Figure 1 , 3 -5:
[0035] A method for detecting water pump shortage and water flow includes the following steps:
[0036] S1. Initialize the microcontroller, set the frequency reference value f0, the time T1 to turn on the controllable pulse generation circuit, the time T2 to turn off the controllable pulse generation circuit, the number of pulses M, the oscillation voltage value U1, and the no-oscillation voltage value U2.
[0037] S2, handle other processes;
[0038] S3. Turn on the controllable pulse generation circuit to generate an oscillation signal;
[0039] S4. The microcontroller captures the oscillation signal generated by the controllable pulse generation circuit;
[0040] S5. When the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water and step S6 is executed; otherwise, it is determined that there is no water and step S2 is executed.
[0041] S6, Number of detections i=0;
[0042] S7. Turn on the controllable pulse generation circuit for time T1.
[0043] S8. The microcontroller captures and saves the voltage value output by the water flow detection circuit;
[0044] S9. Turn off the controllable pulse generation circuit for time T2;
[0045] S10. The microcontroller captures and saves the voltage value output by the water flow detection circuit;
[0046] S11, Number of detections i = i + 1;
[0047] S12. Determine whether the number of detections i is greater than or equal to the number of detections M. If yes, proceed to step S13; otherwise, proceed to step S7.
[0048] S13. When the controllable pulse generation circuit is turned on, if the difference between the voltage value output by the water flow detection circuit and the oscillation voltage value U1 is greater than 0.1 volts more than 10% of the time, and when the controllable pulse generation circuit is turned off, if the difference between the voltage value output by the water flow detection circuit and the non-oscillation voltage value U2 is greater than 0.1 volts more than 10% of the time, then there is water flow. If the number of times there is water flow is more than half, then it is determined that there is water flow, and step S2 is executed; otherwise, it is determined that there is no water flow, and step S2 is executed.
[0049] The controllable pulse generation circuit includes a dual-input NAND gate IC4 and a coil L2. The water flow detection circuit includes a coil L1. Both coil L1 and coil L2 are wound around the water pump's inlet pipe, or both coil L1 and coil L2 are wound around the water pump's outlet pipe. The oscillation signal of coil L1 coupled with coil L2 generates an induced electromotive force.
[0050] In this invention, coils L1 and L2 are both wound around the inlet pipe of the water pump, or coils L1 and L2 are both wound around the outlet pipe of the water pump. The controllable pulse generation circuit includes a dual-input NAND gate IC4 and coil L2. The water flow detection circuit includes coil L1. After the controllable pulse generation circuit is turned on to generate an oscillation signal, the oscillation signal generated by the microcontroller's controllable pulse generation circuit, coupled with the oscillation signal of coil L1 and coil L2, generates an induced electromotive force. The water flow detection circuit outputs a voltage value to the microcontroller.
[0051] When there is no water in the pipeline, the frequency of the oscillation signal is at a relatively high frequency. When there is water in the pipeline, the oscillation frequency will be affected because water has a certain conductivity. The frequency of the oscillation signal when there is water is lower than the frequency when there is no water. Therefore, the presence or absence of water in the pipeline can be determined by the change in the frequency of the oscillation signal.
[0052] In this embodiment, when there is no water in the pipeline, the frequency of the oscillation signal is 220 kHz; when there is water in the pipeline, the frequency of the oscillation signal is 200 kHz, and the frequency reference value f0 is set to 210 kHz.
[0053] When the controllable pulse generation circuit is turned on to generate an oscillation signal, the water flow detection circuit outputs a higher voltage value. When the controllable pulse generation circuit is turned off to generate an oscillation signal, the water flow detection circuit still outputs a lower voltage value. When there is no water flow in the pipeline, the fluctuations of both voltage values are small; when there is water flow in the pipeline, the water flow affects coil L1, and the fluctuations of the two voltage values are larger. Therefore, the presence or absence of water flow in the pipeline can be determined by the magnitude of the voltage fluctuations.
[0054] In this embodiment, the oscillation voltage value U1 is 3 volts, and the non-oscillation voltage value U2 is 0.5 volts. When there is no water flow in the pipeline and the controllable pulse generation circuit is turned on to generate an oscillation signal, the difference between the voltage value output by the water flow detection circuit and the oscillation voltage value U1 is less than or equal to 0.1 volts. When there is no water flow in the pipeline and the controllable pulse generation circuit is turned off to generate an oscillation signal, the difference between the voltage value output by the water flow detection circuit and the non-oscillation voltage value U2 is less than or equal to 0.1 volts. When there is water flow in the pipeline and the controllable pulse generation circuit is turned on to generate an oscillation signal, the difference between the voltage value output by the water flow detection circuit and the oscillation voltage value U1 is greater than 0.1 volts. When there is water flow in the pipeline and the controllable pulse generation circuit is turned off to generate an oscillation signal, the difference between the voltage value output by the water flow detection circuit and the non-oscillation voltage value U2 is greater than 0.1 volts.
[0055] The working principle of this invention is as follows: Figure 1 , 3 As shown in Figure 5, the present invention first activates the controllable pulse generation circuit to generate an oscillation signal, and uses the oscillation signal to determine whether there is water. When there is water, it continues to determine whether there is water flow. Then, it uses the voltage value output by the water flow detection circuit to determine whether there is water flow. When there is no water, water flow detection is not performed.
[0056] This invention generates an oscillation signal through a controllable pulse generation circuit, and determines the presence of water by using this oscillation signal and a water flow detection circuit. It only requires electrical components such as a dual-input NAND gate IC4 on the controller's circuit board, and coils L1 and L2 installed in the water pump's inlet or outlet pipes. It eliminates the need for sensors, floats, and probes inside the pipes, avoiding the problems of affecting water flow, inconvenience, corrosion, and impurity buildup that can lead to failure. It also avoids the high cost and system complexity associated with multiple sensors. This invention's detection method does not affect water flow, is low-cost, simple, and easy to install. When the voltage fluctuation of the controllable pulse generation circuit is greater than 0.1 volts when both are turned on and off, water flow is determined, effectively avoiding false alarms and improving accuracy. This invention uses multiple detections and comparisons to ultimately determine the presence of water flow, effectively avoiding false alarms caused by individual errors and ensuring accurate judgment.
[0057] The specific pipe on which coils L1 and L2 are installed depends on the characteristics of the water pump. For example, it is more appropriate to install them on the inlet pipe for a regular household water pump, while it is more appropriate to install them on the outlet pipe for a submersible pump.
[0058] The specific structure of the controllable pulse generation circuit is as follows: Figure 4 As shown, the controllable pulse generation circuit also includes a starting resistor R5, an adjusting resistor R6, and a π-type frequency selection network. The π-type frequency selection network consists of capacitors C4 and C5 and coil L2, with capacitors C4 and C5 having fixed values. Since capacitors C4 and C5 have fixed values, the frequency of the oscillation signal generated by the controllable pulse generation circuit only changes with the inductance of coil L2. When there is water, the inductance of coil L2 changes, and the frequency of the oscillation signal also changes accordingly. Therefore, the change in oscillation frequency can reflect whether there is water.
[0059] The starting resistor R5 ensures that the circuit can start oscillating, and the adjusting resistor R6 adjusts the signal to a suitable frequency.
[0060] When a low-level signal is applied to pin 2 of the dual-input NAND gate IC4, the controllable pulse generation circuit stops working; when a high-level signal is applied to pin 2 of the dual-input NAND gate IC4, the controllable pulse generation circuit starts working and generates an oscillation signal.
[0061] To facilitate signal detection by the microcontroller, such as Figure 4 As shown, the oscillation signal generated by the controllable pulse generation circuit is shaped by the pulse shaping circuit and then transmitted to the microcontroller. The pulse shaping circuit includes a dual-input NAND gate IC3.
[0062] The dual-input NAND gate IC3 and dual-input NAND gate IC4 can be a single IC containing two dual-input NAND gates, or they can be separate chips.
[0063] The specific structure of the water flow detection circuit is as follows: Figure 4 As shown, the water flow detection circuit also includes an operational amplifier chip IC2, a resistor R4, and a capacitor C3. The operational amplifier chip IC2 is used to detect the signal across the coil L1, and the resistor R4 and capacitor C3 filter the amplified signal.
[0064] The differential operational amplifier circuit, consisting of operational amplifier chip IC2, coil L1, and auxiliary components, is used to detect water flow. When detecting water flow, an oscillation circuit consisting of dual-input NAND gate IC4 and coil L2 is required to provide an oscillation signal. Therefore, the oscillation circuit corresponding to dual-input NAND gate IC4 is used as a controllable pulse generation circuit when performing water flow detection.
[0065] Furthermore, such as Figure 3 , 4 As shown, IC1 is a microcontroller responsible for signal processing. The controllable pulse generation circuit generates oscillation signals, while the pulse shaping circuit processes the signals for the microcontroller to detect. The water flow detection circuit amplifies and processes the signals before sending them to the microcontroller for detection.
[0066] When detecting the presence of water, the controllable pulse generation circuit is also the water detection circuit; when detecting the presence of water flow, the controllable pulse generation circuit is used to generate the oscillation signal required for water flow detection.
[0067] To facilitate the installation of coils L1 and L2, coils L1 and L2 are wound on the same frame with a gap between them. The frame is fitted onto the water pump's inlet pipe or the water pump's outlet pipe.
[0068] To avoid the metal coils L1 and L2 affecting the judgment results of this invention, the tubing for coils L1 and L2 is made of plastic.
[0069] Example 2: Participation Figure 2 :
[0070] A method for detecting water pump shortage and water flow includes the following steps:
[0071] S1. Initialize the microcontroller, set the frequency reference value f0, the time T1 to turn on the controllable pulse generation circuit, the time T2 to turn off the controllable pulse generation circuit, the number of pulses M, the oscillation voltage value U1, and the no-oscillation voltage value U2.
[0072] S2, handle other processes;
[0073] S3. Turn on the controllable pulse generation circuit to generate an oscillation signal;
[0074] S4. The microcontroller captures the oscillation signal generated by the controllable pulse generation circuit;
[0075] S5. When the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water and step S6 is executed; otherwise, it is determined that there is no water and step S2 is executed.
[0076] S6, Number of detections i=0;
[0077] S7. Turn on the controllable pulse generation circuit for time T1.
[0078] S8. The microcontroller captures and saves the voltage value output by the water flow detection circuit, and captures the oscillation signal generated by the controllable pulse generation circuit.
[0079] SA, when the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water and step S9 is executed; otherwise, it is determined that there is no water and step S2 is executed.
[0080] S9. Turn off the controllable pulse generation circuit for time T2;
[0081] S10. The microcontroller captures and saves the voltage value output by the water flow detection circuit;
[0082] S11, Number of detections i = i + 1;
[0083] S12. Determine whether the number of detections i is greater than or equal to the number of detections M. If yes, proceed to step S13; otherwise, proceed to step S7.
[0084] S13. When the controllable pulse generation circuit is turned on, if the difference between the voltage value output by the water flow detection circuit and the oscillation voltage value U1 is greater than 0.1 volts more than 10% of the time, and when the controllable pulse generation circuit is turned off, if the difference between the voltage value output by the water flow detection circuit and the non-oscillation voltage value U2 is greater than 0.1 volts more than 10% of the time, then there is water flow. If the number of times there is water flow is more than half, then it is determined that there is water flow, and step S2 is executed; otherwise, it is determined that there is no water flow, and step S2 is executed.
[0085] The controllable pulse generation circuit includes a dual-input NAND gate IC4 and a coil L2. The water flow detection circuit includes a coil L1. Both coil L1 and coil L2 are wound around the water pump's inlet pipe, or both coil L1 and coil L2 are wound around the water pump's outlet pipe. The oscillation signal of coil L1 coupled with coil L2 generates an induced electromotive force.
[0086] In this invention, each time the controllable pulse generation circuit T1 is activated, the microcontroller captures the voltage value output by the water flow detection circuit and simultaneously captures the oscillation signal generated by the controllable pulse generation circuit. If it determines that there is no water, the water flow judgment ends and returns to the judgment of whether there is water, thus avoiding misjudgment caused by the absence of water affecting the water flow detection result.
[0087] The above embodiments are merely one of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Therefore, all equivalent changes made in accordance with the shape, structure and principle of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for detecting water shortage and water flow in a water pump, the method comprising: The method comprises the following steps: S1, initializing the single-chip microcomputer, setting a frequency reference value f0, a time T1 for starting the controllable pulse generating circuit, a time T2 for stopping the controllable pulse generating circuit, a number M, an oscillation voltage value U1, and a non-oscillation voltage value U2; S2, processing other procedures; S3, starting the controllable pulse generating circuit to generate an oscillation signal; S4, the single-chip microcomputer capturing the oscillation signal generated by the controllable pulse generating circuit; S5, when the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water, and step S6 is executed; otherwise, it is determined that there is no water, and step S2 is executed; S6, detecting the number i=0; S7, starting the controllable pulse generating circuit for the time T1; S8, the single-chip microcomputer capturing and saving the voltage value output by the water flow detection circuit; S9, stopping the controllable pulse generating circuit for the time T2; S10, the single-chip microcomputer capturing and saving the voltage value output by the water flow detection circuit; S11, detecting the number i=i+1; S12, judging whether the number i is greater than or equal to the number M, if yes, step S13 is executed; otherwise, step S7 is executed; S13, when the controllable pulse generating circuit is started, the number of the voltage values output by the water flow detection circuit which are greater than the oscillation voltage value U1 by more than 0.1 volt and account for more than 10% is greater than 0, and when the controllable pulse generating circuit is stopped, the number of the voltage values output by the water flow detection circuit which are greater than the non-oscillation voltage value U2 by more than 0.1 volt and account for more than 10% is greater than 0, it is determined that there is water flow this time; if the number of times of water flow accounts for more than half, it is determined that there is water flow, and step S2 is executed; otherwise, it is determined that there is no water flow, and step S2 is executed. The controllable pulse generating circuit comprises a double-input NAND gate IC4 and a coil L2, and the water flow detection circuit comprises a coil L1; the coil L1 and the coil L2 are both wound on the water inlet pipeline of the water pump, or the coil L1 and the coil L2 are both wound on the water outlet pipeline of the water pump; the coil L1 couples the oscillation signal of the coil L2 to generate an induced electromotive force.
2. The method of claim 1, wherein: In step S8, the single-chip microcomputer captures the oscillation signal generated by the controllable pulse generating circuit, and a step SA is added between step S8 and step S9; when the frequency of the oscillation signal is lower than the frequency reference value f0, it is determined that there is water, and step S9 is executed; otherwise, it is determined that there is no water, and step S2 is executed. The controllable pulse generating circuit further comprises a starting resistor R5, an adjusting resistor R6, and a π-type frequency selection network composed of a capacitor C4 and a capacitor C5.
3. The method of claim 1, wherein: The oscillation signal generated by the controllable pulse generating circuit is transmitted to the single-chip microcomputer after being shaped by a pulse shaping circuit; the pulse shaping circuit comprises a double-input NAND gate IC3.
4. The method of claim 1, wherein: The water flow detection circuit further comprises an operational amplifier chip IC2, a resistor R4, and a capacitor C3.
5. The method of claim 1, wherein: The coil L1 and the coil L2 are wound on the same skeleton and leave a gap between each other; the skeleton is sleeved on the water inlet pipeline of the water pump, or the skeleton is sleeved on the water outlet pipeline of the water pump.
6. The method of claim 1, wherein: The material of the pipeline on which the coil L1 and the coil L2 are sleeved is plastic.
7. The method of claim 1, wherein:
Citation Information
Patent Citations
Water cutting-off protector
CN200949519Y
Water flow detection sensor
JP2006071296A