Water pump self-adaptive control method and system based on single sensor

By using a single sensor to detect water pressure in real time and dynamically update the shutdown reference value, the problem of water flow switches in the water pump system being easily affected by impurities is solved, ensuring stable operation of the water pump when water pressure fluctuates, improving water comfort and reducing hardware costs.

CN121007142APending Publication Date: 2025-11-25TAIZHOU FUSHIKANG ELECTRIC APPLIANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511165628.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-20
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

In existing automatic water pump systems, magnetic flow switches are easily affected by impurities in tap water pipes, leading to decreased sensitivity or malfunction, making it impossible to effectively monitor water pressure changes and affecting water comfort.

Method used

A single sensor is used to detect water pressure in real time. The pressure sensor converts the value into a digital display value, dynamically updates the operating value and shutdown reference value, and combines protection and power failure recovery mechanisms to ensure that the water pump stops in time when the water pressure fluctuates.

Benefits of technology

It enables stable operation of the water pump under fluctuating water pressure, improves water usage comfort, reduces hardware costs, and avoids sensor malfunction issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121007142A_ABST
    Figure CN121007142A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent control, in particular to a water pump self-adaptive control method based on a single sensor, which comprises the following steps: S1, detecting water pressure in real time through a pressure sensor, and converting the water pressure into a nixie tube display value; s2, if the starting is the initial starting, when the operating pressure is greater than or equal to a first pressure threshold value, recording the maximum display value within a plurality of times as an initial operating value, and when the display value rises to meet a shutdown verification mechanism and shutdown is effective, judging that the shutdown value is an initial shutdown reference value, and calculating an original pressure difference value; and S3, if not starting for the first time, dynamically updating the operation values to obtain a first operation value, a second operation value and a third operation value, synchronously calculating a first shutdown reference value, a second shutdown reference value and a third shutdown reference value according to the original pressure difference value, setting the value after the last shutdown as an original shutdown value, and triggering shutdown when the water pressure reaches any shutdown value. One sensor is used for detecting data, the cost is reduced, and intelligent control is achieved according to a dynamic threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent control technology, and in particular to an adaptive control method, system, device and storage medium for a water pump based on a single sensor. Background Technology

[0002] In everyday water usage scenarios, water pressure issues are a common factor affecting user experience, mainly manifested in two aspects: Firstly, users often face insufficient water pressure due to factors such as water supply pipe design, building height, and water supply distance. In such cases, the water flow is slow and the water volume is small, failing to meet basic water needs such as showering, washing vegetables, and laundry. To solve this problem, most users choose to purchase and install automatic water pumps to increase the water pressure in the pipes and achieve normal water usage standards. Secondly, there is the problem of unstable water pressure. The "instability" of fluctuating water pressure is even more troublesome for users, especially during peak water usage periods such as summer. Frequent fluctuations in water pressure in the tap pipes can lead to sudden changes in water temperature during showers, frequent start-ups and shutdowns of water heaters, and inconsistent water flow from faucets, severely reducing water comfort. Therefore, households generally rely on automatic water pumps to stabilize the water flow.

[0003] Currently, most automatic water pumps on the market operate by using a combination of flow switches and pressure sensors. The flow switch detects the presence of water flow in the pipes (determining if the user is using water), while the pressure sensor monitors real-time water pressure. The pump activates to increase pressure when water usage is low and stops operating when water usage ends or the pressure reaches the required level. However, this technology has a significant drawback: the core component of the flow switch is a magnetic element, and tap water pipes inevitably contain impurities such as rust, sediment, and scale. The magnetic element easily attracts these impurities, leading to decreased switch sensitivity, false triggering, or complete malfunction, ultimately affecting the normal operation of the water pump and even requiring frequent repairs and replacements. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a single-sensor-based adaptive control method for water pumps, comprising the following steps: S1: The water pressure is detected in real time by a pressure sensor and converted into a value displayed on a digital tube. S2: If it is the first start-up, when the operating pressure reaches or exceeds the first pressure threshold, the maximum digital tube display value within a certain period of time is recorded as the initial operating value. When the display value rises to meet the shutdown verification mechanism and the shutdown is effective, the shutdown value is determined to be the initial shutdown reference value, and the original pressure difference value is calculated automatically at the same time. S3: If it is not the first start, the running value is dynamically updated to obtain the first running value, the second running value and the third running value. Simultaneously, the first shutdown reference value, the second shutdown reference value and the third shutdown reference value are calculated based on the original pressure difference value. The last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any shutdown value among the original shutdown value, the first shutdown reference value, the second shutdown reference value or the third shutdown reference value, the shutdown is triggered.

[0005] Preferably, in step S2, when the displayed value rises to meet the shutdown verification mechanism and a valid shutdown occurs, the shutdown value is determined to be the initial shutdown reference value, further including: If, after the water pump stops, the displayed value rises to a value greater than the initial operating value, and the water pressure does not drop to a percentage threshold or below the stop value within the shutdown time after the stop, it is determined to be a valid stop. The stop value is the initial stop reference value. If the water pressure drops to or below the percentage threshold of the shutdown display value within the shutdown time after the water pump stops, or if it restarts within the shutdown time, the shutdown is deemed invalid, and the shutdown value is not the initial shutdown reference value.

[0006] Preferably, in step S2, the original differential pressure value is calculated synchronously and autonomously, further including: The original differential pressure value is calculated by subtracting the initial operating value from the initial shutdown reference value of the first effective shutdown. Initial differential pressure = Initial shutdown reference value - Initial operating value The original differential pressure value is a fixed parameter.

[0007] Preferably, in step S3, dynamically updating the running value to obtain a first running value, a second running value, and a third running value further includes: Once the water pump starts, the maximum value detected by the pressure sensor within a certain period of time will be updated as the first operating value. When the pressure sensor detects that the current pressure value is less than the first operating value after a certain period of time, it updates it to the second operating value. The second operating value can only be updated downwards. When the pressure sensor detects that the current pressure value is greater than the first operating value after a certain period of time, it updates it to the third operating value, wherein the third operating value can only be updated upwards.

[0008] Preferably, in step S3, calculating the first shutdown reference value, the second shutdown reference value, and the third shutdown reference value further includes: The first shutdown reference value is calculated based on the first operating value and the original differential pressure value, as shown below: First shutdown reference value = First operating value + Initial differential pressure value; The second shutdown reference value is calculated based on the second operating value and the original differential pressure value, as shown below: Second shutdown reference value = Second operating value + Original differential pressure value; The third shutdown reference value is calculated based on the third operating value and the original differential pressure value, as shown below: Third shutdown reference value = Third operating value + Original differential pressure value.

[0009] Preferably, it includes a protection mechanism and a power outage recovery mechanism: The protection mechanism includes: If the current pressure value remains less than or equal to the first pressure threshold after the water pump starts, and the time reaches the water shortage duration, the pump will be forcibly shut down and the water shortage indicator will be activated. If the current pressure value is greater than the second pressure threshold, the overpressure protection will be activated, the machine will be shut down immediately and a fault code will be displayed. If the current pressure value drops to less than or equal to the second pressure threshold, the fault status will be automatically cleared. If the water pump is shut down for the duration of rust prevention, then rust prevention protection should be performed. The power outage recovery mechanism includes: If the faucet is on, and the value displayed on the digital tube is a percentage threshold of the original shutdown value or below, the water pump will perform the initial start-up steps. The original shutdown value has a memory function. If the faucet is closed, the value displayed on the digital tube will not drop to the percentage threshold of the original shutdown value or below, and the water pump will not start running, and will automatically restore the original pressure difference value. If the faucet is closed, the value displayed on the digital tube will drop to the percentage threshold of the original shutdown value or below, and the water pump will start running. If the original shutdown value is reached or exceeded and the pump is effectively shut down within a certain period of time, the original pressure difference value will be automatically restored. If the water pump is effectively shut down after a certain period of time and the value is less than the original shutdown value, the original pressure difference value will also be automatically restored and set as the new original shutdown value.

[0010] Based on the same concept, the present invention also provides a single-sensor-based adaptive control system for a water pump, comprising: Pressure sensor, which monitors water pipe pressure in real time and outputs pressure signal; The digital tube display is used to show the current water pressure value and status code; The control module determines whether the water pump is starting for the first time. If it is starting for the first time, when the operating pressure reaches or exceeds a first pressure threshold, it records the maximum digital tube display value over a certain period of time as the initial operating value. When the displayed value rises to meet the shutdown verification mechanism and the pump shuts down effectively, the shutdown value is determined to be the initial shutdown reference value, and the original differential pressure value is calculated automatically. If it is not starting for the first time, the operating value is dynamically updated to obtain the first operating value, the second operating value, and the third operating value. The first shutdown reference value, the second shutdown reference value, and the third shutdown reference value are calculated simultaneously based on the original differential pressure value, and the last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any one of the original shutdown value, the first shutdown reference value, the second shutdown reference value, or the third shutdown reference value, the pump is shut down.

[0011] Preferably, it includes two physical buttons: Press and hold the A button to disable water shortage protection, and press it briefly to restore operation after a water shortage shutdown. B key: Press briefly to force shutdown and set the current water pressure data to the new original shutdown value.

[0012] Based on the same concept, the present invention also provides a computer device, including a memory and one or more processors, wherein the memory stores computer code, and when the computer code is executed by the one or more processors, causes the one or more processors to perform the steps of the single-sensor-based adaptive control method for a water pump as described in any one of the embodiments.

[0013] Based on the same concept, the present invention also provides a computer-readable storage medium storing computer code, which, when executed, performs the steps of the single-sensor-based adaptive control method for a water pump as described in any one of the embodiments.

[0014] Compared with the prior art, the beneficial effects of the present invention are: This invention uses a pressure sensor to detect the current pressure value in real time, thereby reducing hardware costs by using only one sensor to detect data. This invention dynamically updates the operating value to obtain a first operating value, a second operating value, and a third operating value when not starting for the first time. By setting the second and third operating values, water pressure changes are monitored in real time. This invention also simultaneously calculates a first shutdown reference value, a second shutdown reference value, and a third shutdown reference value, and sets the last value after the last shutdown as the original shutdown value. When the water pressure reaches any of the original shutdown value, the first shutdown reference value, the second shutdown reference value, or the third shutdown reference value, it ensures that the system can shut down in a timely manner under any condition where the tap water pressure fluctuates, thereby improving the user's water comfort. Attached Figure Description

[0015] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention.

[0016] Figure 1 This is a flowchart of a water pump adaptive control method based on a single sensor according to the present invention. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Obviously, the described embodiments are only some, not all, of the embodiments described in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without creative effort are within the scope of protection of this application.

[0018] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a” and “an” used herein, and “the”, may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0019] First Embodiment This embodiment is equipped with an indicator light to display the water pump status. If the water pump starts running, the blue light will be on; if the water pump stops running, the blue light will be off. If it is determined that the water source is short of water, the water pump will stop running and the blue light will flash slowly.

[0020] Please see Figure 1 As shown in the figure, this embodiment provides a water pump adaptive control method based on a single sensor, which includes the following steps: S1: The water pressure is detected in real time by a pressure sensor and converted into a value displayed on a digital tube. Specifically, in this embodiment, the digital tube equipped with a pressure sensor detects signals through 6 infrared elements (in the order of 123456). The state of each element (1 represents a high level, the infrared element receives a signal, and there is no object blocking it; 0 represents a low level, the infrared element does not receive a signal, and there is an object blocking it) exists. This code exists with the 2-digit value displayed on the digital tube -- that is, the "code" and the "mapping between the digital tube displayed value". In other embodiments, the sensor can also use voltage signals, current signals, electromagnetic signals, etc. for transmission.

[0021] The mapping pattern between encoding and numerical values ​​is as follows: 111111 (No component obstruction) Display 00 111110 (Component 6 only obscured) Display 06 111100 (Components 5 and 6 are obstructed) Display 08 110100 displays 30 000000 (All components blocked) displays FF (overpressure).

[0022] This embodiment uses only one sensor to detect data, reducing hardware costs, eliminating the magnetic flow switch, and completely avoiding sensor malfunction caused by the adsorption of impurities in the water.

[0023] S2: If it is the first start-up, when the operating pressure reaches or exceeds the first pressure threshold, the maximum digital tube display value within a certain period of time is recorded as the initial operating value. When the displayed value rises to meet the shutdown verification mechanism and the shutdown is effective, the shutdown value is determined to be the initial shutdown reference value, and the original pressure difference value is calculated automatically at the same time. Specifically, in this embodiment, the initial operating value is the maximum value (e.g., 30) displayed by the digital tube after the water pump starts running and the digital tube value is equal to or greater than 10 (first pressure threshold) for another 8 seconds. When the subsequent operating value is greater than the initial operating value and remains stable for 3 seconds, the effective shutdown is triggered. This value is the initial shutdown reference value (e.g., 46). The initial shutdown reference value 46 is not set by the program at the beginning, but is the data obtained by the water pump during operation based on the signals received by the sensor, which is the water pressure data obtained after the effective shutdown.

[0024] Preferably, in step S2, when the displayed value rises to meet the shutdown verification mechanism and a valid shutdown occurs, the shutdown value is determined to be the initial shutdown reference value, further including: When the water pump stops, if the displayed value rises to a value greater than the initial operating value, and the water pressure does not drop to a percentage threshold of the stop value or below within the shutdown time after the stop, it is determined to be a valid stop. The stop value is the initial stop reference value. Specifically, in this embodiment, if the water pressure does not drop to 70% or below the stop value within 2 seconds after the stop, it is determined to be a valid stop. If the water pressure drops to or below the percentage threshold of the shutdown display value within the shutdown time after the water pump stops, or if it restarts within the shutdown time, the shutdown is deemed invalid, and the shutdown value is not the initial shutdown reference value.

[0025] Preferably, in step S2, the original differential pressure value is calculated synchronously and autonomously, further including: The original differential pressure value is calculated by subtracting the initial operating value from the initial shutdown reference value during the first effective shutdown. Initial differential pressure = Initial shutdown reference value - Initial operating value The original differential pressure value is a fixed parameter. Specifically, in this embodiment, the original differential pressure value is 16.

[0026] On the first execution: After turning on the faucet and plugging in the power, the digital display sequentially shows F0, then F1 after 1 second, and then F2 after another 1 second. After completing the system self-test, the water pump starts. Initially, the value obtained from the sensor is displayed on the digital display, for example, 00 in this case. As the water pump starts, the pressure sensor converts the received signal into a digital value displayed on the digital display. When the value displayed on the digital display is equal to or greater than 10, the water pump runs for 8 seconds and then stops. For example, if the value displayed before stopping the water pump is 30, then after the water pump stops, the value on the digital display will drop from 30 to 70% of 30 (i.e., to 20 or less) within 2 seconds. The water pump then restarts, and the value of 30 at this point is the initial operating value.

[0027] When the water pump restarts, if the value displayed on the digital tube is greater than 30 (e.g., 36), the pump will stop running after 3 seconds. If, after the pump stops running, the value on the digital tube drops from 36 to 70% of 36 (i.e., 24 or lower) within 2 seconds, and the pump restarts, it indicates that 36 is not the initial stop reference value for the pump.

[0028] When the water pump restarts, if the digital display shows a value greater than 36 and equal to 46, the pump will stop running after 3 seconds. At this moment, the value displayed on the digital display will not drop to 70% of 46 (i.e., 32 or below) within 3 seconds. This indicates that 46 is the stop value for this pump operation, which is the initial stop reference value. The determined initial operating value is 30. The original pressure difference value is calculated synchronously, i.e., the initial stop reference value 46 minus the initial operating value 30 equals the original pressure difference value 16.

[0029] Here's a specific explanation: If the initial startup value of the water pump is 30, and the subsequent values ​​decrease to 28 or below, the water pump does not need to be stopped. Only when the value is greater than 30 will the water pump stop operating to determine the initial shutdown reference value.

[0030] In short, the last displayed value after the water pump stops serves as a reference for whether to continue shutting down or restarting the pump. If the value drops to 70% or less of the shutdown data within 2 seconds, and the pump restarts, this indicates that the value is not the shutdown reference value. Conversely, if the value does not drop to 70% or less of the shutdown data within 2 seconds, this value is the shutdown reference value, and it is confirmed that this value is the initial shutdown reference value.

[0031] As time passes, the stop value displayed on the digital tube will decrease. For example, when it changes from 46 to 42, the reference value for the next pump start-up percentage is 46, not 42.

[0032] This embodiment eliminates the need for users or installers to manually input initial water pressure parameters. The equipment learns autonomously upon initial operation and generates initial operating values, initial shutdown reference values, and original differential pressure values, thus lowering the barrier to entry. In this embodiment, the initial shutdown reference value is generated based on the determination of an effective shutdown state, and the original differential pressure value is calculated based on the initial shutdown reference value and initial operating value obtained during the pump's initial operation. These three values ​​form a logical association, preventing parameter disconnect caused by fixed thresholds.

[0033] S3: If this is not the initial startup, the operating values ​​are dynamically updated to obtain the first, second, and third operating values. Simultaneously, the first, second, and third shutdown reference values ​​are calculated based on the original pressure difference value. The last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any one of the original shutdown value, the first shutdown reference value, the second shutdown reference value, or the third shutdown reference value, shutdown is triggered. Specifically, in this embodiment, the pump shutdown reference value is not fixed in the program at the beginning, but is calculated by the pump during operation based on the operating value signal received by the sensor, the original pressure difference value, and the water pressure data from the last effective pump shutdown.

[0034] More preferably, if the pressure reading before the pump stopped was 46, when the tap is opened (partially open), the pressure will instantly drop to 70% or less of 46, triggering the pump to start. Since the tap is partially open, the pressure after the pump starts is 40 (the first operating value). Based on this first operating value plus the original pressure difference, the first shutdown reference value is calculated to be 56. However, when the tap is closed, the pressure will always remain at 46 (the previous shutdown value) and will not rise to 56, potentially causing the pump to fail to stop. This embodiment addresses this issue by setting an original shutdown value.

[0035] Preferably, in step S3, dynamically updating the running value to obtain a first running value, a second running value, and a third running value further includes: When the water pump is started, the value detected by the pressure sensor is updated to the first operating value within a certain period of time. Specifically, in this embodiment, the value obtained within 3 seconds after the water pump is started for the second time is the first operating value. When the pressure sensor detects that the current pressure value is less than the first operating value after a certain period of time, it updates it to the second operating value. The second operating value can only be updated downwards. Specifically, in this embodiment, if the value displayed on the digital tube is less than the first operating value 3 seconds after the water pump starts, it becomes the second operating value. If the operating value displayed on the digital tube is less than the second operating value during the subsequent operation of the water pump, the original second operating value is replaced by the new second operating value, and the current operating value becomes the second operating value. After opening the second tap, if the value decreases (e.g., 26) within N time (3 seconds) of subsequent water pump operation, then 26 becomes the second operating value. After opening the third tap, the displayed second operating value changes from 26 to 22. After opening the fourth tap, the displayed second operating value changes from 22 to 18 after 3 seconds. The second operating value can cope with continuous low pressure scenarios. When the pressure sensor detects that the current pressure value is greater than the first operating value after a certain period of time, it updates it to the third operating value. The third operating value can only be updated upwards. Specifically, in this embodiment, if the value displayed on the digital tube is greater than the first operating value 3 seconds after the water pump starts, this becomes the third operating value. If, during the subsequent operation of the water pump, the operating value displayed on the digital tube is greater than the third operating value, then the original third operating value is replaced by the new third operating value, and the current operating value becomes the third operating value (e.g., 40). A third shutdown reference value is generated simultaneously. It should be noted that after the digital tube value changes from 30 to 40, there is no need to use the shutdown method to confirm the shutdown value. This is the biggest difference from the initial start-up of the water pump. The water pump will only stop operating when the value reaches the first shutdown reference value of 46 or higher, or any one of the second, third, or original shutdown reference values. The third operating value can handle sudden high-pressure fluctuations.

[0036] Preferably, in step S3, calculating the first shutdown reference value, the second shutdown reference value, and the third shutdown reference value further includes: The first shutdown reference value is calculated based on the first operating value and the original differential pressure value, as shown below: First shutdown reference value = First operating value + Initial differential pressure value; The second shutdown reference value is calculated based on the second operating value and the original differential pressure value, as shown below: Second shutdown reference value = Second operating value + Original differential pressure value. Specifically, in this embodiment, the second operating value is less than the first operating value, and the second shutdown reference value is simultaneously less than the first shutdown reference value. The third shutdown reference value is calculated based on the third operating value and the original differential pressure value, as shown below: Third shutdown reference value = Third operating value + Original differential pressure value. Specifically, in this embodiment, the third operating value is greater than the first operating value, and the third shutdown reference value is simultaneously greater than the first shutdown reference value.

[0037] In existing technologies, the shutdown value is a fixed threshold. For example, if the pump's boost pressure is 40, and the current shutdown value is 46, this value is based on an initial water pressure of 6 (40 + 6 = 46). When the initial water pressure drops to 0, the next shutdown value will only be the original boost pressure of 40, but the actual shutdown value will remain 46. Therefore, the pump will not stop after the tap is turned off. This embodiment uses a dynamic threshold, including the initial shutdown value, a first shutdown reference value, a second shutdown reference value, or a third shutdown reference value, to ensure timely shutdown under any water pressure conditions.

[0038] Preferably, it includes a protection mechanism and a power outage recovery mechanism: Protection mechanisms include: If the current pressure value remains less than or equal to the first pressure threshold after the water pump starts, and the time reaches the water shortage duration, the pump will be forcibly stopped and the water shortage indicator will be activated. Specifically, in this embodiment, if the value is 10 or below after the water pump starts, and the current pressure value has not risen after 4 minutes, it is judged as a water shortage phenomenon, the blue light will flash slowly, the water pump will stop running, and the water shortage protection will be activated to force a shutdown. If the current pressure value is greater than the second pressure threshold, the overpressure protection is activated, the pump is immediately shut down, and a fault code is displayed. If the current pressure value drops to less than or equal to the second pressure threshold, the fault status is automatically cleared. Specifically, in this embodiment, when the value displayed on the digital tube is greater than 70 during the operation of the water pump, the water pump should stop operating immediately, the digital tube displays FF, and flashes once every 0.3 seconds; if the current pressure value drops to less than or equal to 70, the fault status is automatically cleared.

[0039] If the water pump is stopped for the time required for rust prevention, rust prevention protection will be implemented. Specifically, in this embodiment, if the water pump has not been started for 72 hours, it will automatically start running for 8 seconds. During these 8 seconds, a blue light will illuminate to achieve the rust prevention function.

[0040] Power outage recovery mechanisms include: If the faucet is open, the digital display will show a value of 70% or less of the original shutdown value, and the water pump will then start. The process is the same as when the water pump is first powered on. It should be noted that the original shutdown value has a memory function.

[0041] If the faucet is closed①, the value displayed on the digital tube will not drop to 70% or below the original shutdown value, the water pump will not start running, and the original pressure difference value will automatically recover.

[0042] If the faucet is closed (②), the value displayed on the digital tube will drop to 70% or less of the original stop value, and the water pump will start. If the original stop value is reached or exceeded and the pump stops effectively within any time between 0 and 8 seconds, the original pressure difference value will be restored automatically. If the water pump stops effectively after 8 seconds and the value is less than the original stop value, the original pressure difference value will also be restored automatically, and this value will be set as the new original stop value.

[0043] The second and subsequent runs: When the value on the digital display drops from 46 to 70% or below, the water pump immediately starts operating. Within 3 seconds of starting, the maximum value displayed on the digital display is the first operating value, such as 30. After 3 seconds of operation, if the value decreases, such as to 26, this decrease is the second operating value. If the value increases as the pump continues to run, such as to 40, then 40 is the third operating value. It's important to note that after the digital display value changes from 30 to 40, there's no need to use the shutdown method to confirm the stop value; this is the biggest difference from the initial pump startup. The pump will only stop operating when the value reaches any one of the original stop value, the first stop reference value, the second stop reference value, or the third stop reference value. Furthermore, the pump generates the first stop reference value simultaneously with the first operating value during operation. Similarly, it generates the second stop reference value simultaneously with the second operating value, and the third stop reference value simultaneously with the third operating value. The initial shutdown value is the value of the last effective shutdown of the water pump, which shows that this value will change.

[0044] The starting and stopping procedures for the water pumps for the third and subsequent times are the same as for the second time.

[0045] Example of operating four faucets by gradually opening and then gradually closing them: The water tap is gradually opened as follows (the initial differential pressure of this water pump is 16, and the reference value for the first shutdown is 46): After the first tap is turned on, when the value on the digital display drops from the previous stop value (e.g., 46) to 70% or less, i.e. less than 32, the water pump will start immediately. The value of 30 displayed within 3 seconds of starting is the first operating value. After turning on the second tap, the water pressure decreased, and the displayed second operating value was 26. After the third tap was turned on, the water pressure dropped again, and the displayed second operating value changed from 26 to 22. When the fourth tap is turned on, the water pressure drops again, and the displayed second operating value changes from 22 to 18.

[0046] The tap is gradually turned off as follows: After the fourth tap is turned off, three taps are still open. At this moment, the displayed running value increases from 18 to 22. According to the program settings, when the second running value increases, it does not change, so the second running value is still 18, and so on. When the third and second taps are closed, and the first tap is still open, the operating value is 30. The water pump will only stop running when the value reaches the second operating value 18 + 16 (original pressure difference value) = 34, which is the second shutdown reference value. At this time, the operating value is only 30, which does not reach 34, so the water pump is still running. After the first tap is closed, the water pump stops running after 3 seconds when the value reaches a level greater than the second stop reference value of 34, equal to the first stop reference value and the original stop value of 46. Here, the first stop reference value and the original stop value data overlap.

[0047] The above describes how to turn on four faucets simultaneously and then gradually turn them off. The same procedure applies to turning on three or two faucets and then turning them off.

[0048] For the initial water pressure rise in a sudden water pressure scenario: Based on the previous shutdown value of 46, two scenarios may occur after the water pump restarts: Scenario 1: Water pressure has already increased before startup: If the initial tap water pressure has already risen by 6 before the water pump starts, and the pressure drops to 70% of 46 (32 or below) when the tap is opened, the initial operating pressure of the pump after startup (30) plus the initial tap water pressure of 6 will result in an initial operating pressure of 36. 1. After closing the tap, under the combined effect of the pump's operating pressure and the initial water pressure, the water pressure rises to 52. The initial operating pressure of 36 + the initial pressure difference of 16 = 52, which is greater than the original shutdown pressure of 46, causing the pump to stop. 2. If the tap is not completely closed while using water, the water pressure rises to 46, the same as the original shutdown pressure. After 3 seconds, the pump stops, and the pressure drops instantly to 70% of 46 (32 or below), at which point the pump restarts. This allows the user to continue using water without disruption until the tap is completely closed, at which point the pressure rises to 52 and the pump stops.

[0049] Scenario 2: Water pressure rises after startup: When the tap is turned on, the water pressure drops to 70% of 46 (32 or below), and the water pump starts. The first operating value is displayed as 30. During water use, the original tap water pressure rises by 6, generating a third operating value of 36, and simultaneously generating a third shutdown reference value of 52 (third operating value 36 + original pressure difference 16). When the tap is turned off, the water pressure rises to 52, which is greater than the first shutdown reference value, the original shutdown value of 46, and the same as the third shutdown reference value. The water pump then stops. If the tap is not completely turned off during water use, a small flow will reach 40, which will not reach the first shutdown reference value, the original shutdown value of 46, or the third shutdown reference value of 52, so the water pump continues to run.

[0050] For the initial water pressure drop in a sudden water pressure scenario: The previous pump shutdown value was 52, which was obtained after the initial water pressure rose. This value automatically changed to the initial shutdown value after the pump started running. If the initial water pressure had already dropped to 0 before the pump started, opening the tap would cause the pressure to drop to 70% or below 52, ​​at which point the pump would start. Because the initial water pressure had already dropped to 0, the initial operating value was 30. After closing the tap, the pressure reached 46, reaching the new initial operating value of 30 + the initial pressure difference of 16 = 46, the first shutdown reference value. Therefore, the pump stopped after 3 seconds.

[0051] In general, the pump should stop when the lowest of the original stop value, the first stop reference value, the second stop reference value, and the third stop reference value is reached. If the pump restarts within 2 seconds of stopping, it indicates that the value was not the true stop value. Furthermore, the operating values ​​and stop reference values ​​generated each time the pump starts and stops are different.

[0052] This embodiment responds to water pressure changes in real time using a first operating value, a second operating value, a third operating value, an original shutdown value, a first shutdown reference value, a second shutdown reference value, and a third shutdown reference value. When the water pressure decreases, the shutdown threshold is automatically lowered (second shutdown reference value < first shutdown reference value) to prevent failure to shut down due to low pressure. When the water pressure increases, the shutdown threshold is automatically raised (third shutdown reference value > first shutdown reference value) to prevent water usage failure under low flow conditions. This completely solves the problem of water pumps using a single sensor failing to shut down after the user turns off the tap during peak water usage periods due to sudden water pressure changes, and also addresses the issue of stable operation even under low water flow conditions.

[0053] Second Embodiment Based on the same concept, this embodiment provides a single-sensor-based adaptive control system for a water pump, including: Pressure sensor, which monitors water pipe pressure in real time and outputs pressure signal; The digital tube display is used to show the current water pressure value and status code; The control module determines whether the water pump is starting for the first time. If it is starting for the first time, when the operating pressure reaches or exceeds the first pressure threshold, it records the maximum digital display value over a certain period of time as the initial operating value. When the displayed value rises to meet the shutdown verification mechanism and the pump shuts down effectively, the shutdown value is determined to be the initial shutdown reference value, and the original differential pressure value is calculated automatically. If it is not starting for the first time, the operating value is dynamically updated to obtain the first operating value, the second operating value, and the third operating value. The first shutdown reference value, the second shutdown reference value, and the third shutdown reference value are calculated simultaneously based on the original differential pressure value, and the last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any one of the original shutdown value, the first shutdown reference value, the second shutdown reference value, or the third shutdown reference value, the pump is shut down.

[0054] Preferably, it includes two physical buttons: The A button, when pressed and held, disables the water shortage protection function, and when pressed briefly, resumes operation after a water shortage shutdown. Specifically, in this embodiment, the A button is configured such that when the water pump water shortage protection function is activated, pressing the button for a long press will not activate the water pump water shortage protection function, and when the water pump water shortage protection function is activated, pressing the button briefly will restart the water pump. Key B: A short press forces the pump to stop and sets the current water pressure to a new initial stop value. Specifically, in this embodiment, key B is configured so that when the pump is running, a short press of this button will forcibly stop the pump.

[0055] Even better, if the water pump cannot stop automatically due to some reason during operation and manual intervention is required, a short press of the touch button will immediately stop the water pump, and the value at this moment will be the new original shutdown value.

[0056] Third Embodiment In this embodiment, a computer device is provided, including a memory and one or more processors. The memory stores computer code, and when the computer code is executed by one or more processors, the one or more processors cause the one or more processors to perform the steps of the water pump adaptive control method based on a single sensor in the first embodiment.

[0057] In some embodiments of this application, a computer-readable storage medium is also provided, wherein the computer-readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of the single-sensor-based adaptive control method for a water pump as described in any of the first embodiments.

[0058] It is understood that, for the aforementioned single-sensor-based adaptive control of water pumps, if all are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer server or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0059] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0060] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A water pump adaptive control method based on a single sensor, characterized in that, Includes the following steps: S1: The water pressure is detected in real time by a pressure sensor and converted into a value displayed on a digital tube. S2: If it is the first start-up, when the operating pressure reaches or exceeds the first pressure threshold, the maximum digital tube display value within a certain period of time is recorded as the initial operating value. When the display value rises to meet the shutdown verification mechanism and the shutdown is effective, the shutdown value is determined to be the initial shutdown reference value, and the original pressure difference value is calculated automatically at the same time. S3: If it is not the first start, the running value is dynamically updated to obtain the first running value, the second running value and the third running value. Simultaneously, the first shutdown reference value, the second shutdown reference value and the third shutdown reference value are calculated based on the original pressure difference value. The last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any shutdown value among the original shutdown value, the first shutdown reference value, the second shutdown reference value or the third shutdown reference value, the shutdown is triggered.

2. The water pump adaptive control method based on a single sensor according to claim 1, characterized in that, In step S2, when the displayed value rises to meet the shutdown verification mechanism and a valid shutdown occurs, the shutdown value is determined to be the initial shutdown reference value, further including: If, after the water pump stops, the displayed value rises to a value greater than the initial operating value, and the water pressure does not drop to a percentage threshold or below the stop value within the shutdown time after the stop, it is determined to be a valid stop. The stop value is the initial stop reference value. If the water pressure drops to or below the percentage threshold of the shutdown display value within the shutdown time after the water pump stops, or if it restarts within the shutdown time, the shutdown is deemed invalid, and the shutdown value is not the initial shutdown reference value.

3. The water pump adaptive control method based on a single sensor according to claim 2, characterized in that, In step S2, the original differential pressure value is calculated synchronously and autonomously, further including: The original differential pressure value is calculated by subtracting the initial operating value from the initial shutdown reference value of the first effective shutdown. Initial differential pressure = Initial shutdown reference value - Initial operating value The original differential pressure value is a fixed parameter.

4. The water pump adaptive control method based on a single sensor according to claim 1, characterized in that, In step S3, the dynamic update of the running value yields a first running value, a second running value, and a third running value, further including: Once the water pump starts, the maximum value detected by the pressure sensor within a certain period of time will be updated to the first operating value. When the pressure sensor detects that the current pressure value is less than the first operating value after a certain period of time, it updates it to the second operating value. The second operating value can only be updated downwards. When the pressure sensor detects that the current pressure value is greater than the first operating value after a certain period of time, it updates it to the third operating value, wherein the third operating value can only be updated upwards.

5. The water pump adaptive control method based on a single sensor according to claim 4, characterized in that, In step S3, the first shutdown reference value, the second shutdown reference value, and the third shutdown reference value are calculated based on the original differential pressure value, further including: The first shutdown reference value is calculated based on the first operating value and the original differential pressure value, as shown below: First shutdown reference value = First operating value + Initial differential pressure value; The second shutdown reference value is calculated based on the second operating value and the original differential pressure value, as shown below: Second shutdown reference value = Second operating value + Original differential pressure value; The third shutdown reference value is calculated based on the third operating value and the original differential pressure value, as shown below: Third shutdown reference value = Third operating value + Original differential pressure value.

6. The water pump adaptive control method based on a single sensor according to claim 1, characterized in that, Including protection mechanisms and power outage recovery mechanisms: The protection mechanism includes: If the current pressure value remains less than or equal to the first pressure threshold after the water pump starts, and the time reaches the water shortage duration, the pump will be forcibly shut down and the water shortage indicator will be activated. If the current pressure value is greater than the second pressure threshold, the overpressure protection will be activated, the machine will be shut down immediately and a fault code will be displayed. If the current pressure value drops to less than or equal to the second pressure threshold, the fault status will be automatically cleared. If the water pump is shut down for the duration of rust prevention, then rust prevention protection should be performed. The power outage recovery mechanism includes: If the faucet is on, and the value displayed on the digital tube is a percentage threshold of the original shutdown value or below, the water pump will perform the initial start-up steps, wherein the original shutdown value has a memory function; If the faucet is closed, the value displayed on the digital tube will not drop to the percentage threshold of the original shutdown value or below, and the water pump will not start running, and will automatically restore the original pressure difference value. If the faucet is closed, the value displayed on the digital tube will drop to the percentage threshold of the original shutdown value or below, and the water pump will start running. If the original shutdown value is reached or exceeded and the pump is effectively shut down within a certain period of time, the original pressure difference value will be automatically restored. If the water pump is effectively shut down after a certain period of time and the value is less than the original shutdown value, the original pressure difference value will also be automatically restored and set as the new original shutdown value.

7. A water pump adaptive control system based on a single sensor, characterized in that, include: Pressure sensor, which monitors water pipe pressure in real time and outputs pressure signal; The digital tube display is used to show the current water pressure value and status code; The control module determines whether the water pump is starting for the first time. If it is starting for the first time, when the operating pressure reaches or exceeds the first pressure threshold, it records the maximum digital tube display value within a certain period of time as the initial operating value. When the display value rises to meet the shutdown verification mechanism and the pump is effectively shut down, the shutdown value is determined to be the initial shutdown reference value, and the original pressure difference value is calculated automatically at the same time. If it is not the first startup, the running value is dynamically updated to obtain the first running value, the second running value, and the third running value. Simultaneously, the first shutdown reference value, the second shutdown reference value, and the third shutdown reference value are calculated based on the original pressure difference value. The last value after the last shutdown is set as the original shutdown value. When the water pressure reaches any shutdown value among the original shutdown value, the first shutdown reference value, the second shutdown reference value, or the third shutdown reference value, shutdown is triggered.

8. The water pump adaptive control system based on a single sensor according to claim 7, characterized in that, Includes two physical buttons: Press and hold the A button to disable water shortage protection, and press it briefly to restore operation after a water shortage shutdown. B key: Press briefly to force shutdown and set the current water pressure data to the new original shutdown value.

9. A computer device comprising a memory and one or more processors, the memory storing computer code that, when executed by the one or more processors, causes the one or more processors to perform the steps of the single-sensor-based adaptive control method for a water pump as described in any one of claims 1-6.

10. A computer-readable storage medium storing computer code, wherein when the computer code is executed, the steps of the single-sensor-based adaptive control method for a water pump as described in any one of claims 1-6 are performed.