Water pump output control method, device, electronic device, storage medium and product
By obtaining the water pump temperature and the amount of water to be taken, and using the water effluent model to determine the control signal and the water effluent rate, the problem of the water effluent accuracy of the water pump being affected by temperature is solved, and low-cost and efficient water effluent control is achieved.
Patent Information
- Application Number
- CN202510714171.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2045-05-30
AI Technical Summary
The water outlet accuracy of the existing water pump is affected by factors such as the inlet temperature and ambient temperature, resulting in a water outlet deviation, and the calibration method in the prior art is inefficient or high cost.
By obtaining the temperature value of the water pump and the amount of water to be taken, the control signal and the rate of water outlet are determined using the water outlet model, the water outlet operation is controlled by combining the water outlet duration, and the algorithm is used to adapt to different working conditions and automatically correct the water outlet error.
It realizes low-cost and efficient control of the water outlet volume of the water pump, avoids the influence of inlet temperature and ambient temperature factors, and meets the user's accuracy requirements for the water outlet volume.
Smart Images

Figure CN120231727B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of water pump control technology, and in particular to a water pump output control method, device, electronic device, storage medium and product. Background Art
[0002] With the widespread use of water treatment equipment, strict control of water output is required in various water-using environments. For example, the requirements for water output accuracy are increasing for devices such as coffee machines, smart water dispensers, and pipeline water dispensers. However, the water output accuracy of current water pumps is affected by factors such as inlet water temperature and ambient temperature. Even with the same control signal, the water output can vary significantly. In related technologies, calibrating the pump output by collecting the corresponding water output for each control signal individually is time-consuming and inefficient. Using high-precision water flow sensors to collect the water output rate in real time is also costly. Summary of the Invention
[0003] In view of this, the embodiments of the present application provide a water pump water output control method, device, electronic device, storage medium and product, which aim to control the water output of the water pump at low cost and high efficiency, avoid the water output error caused by factors such as the water inlet temperature and ambient temperature, and make the water output of the water pump meet user needs.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for controlling water output of a water pump, comprising:
[0006] Obtaining a first temperature value of the water pump and a water intake amount to be taken;
[0007] Determining a control signal for driving the water pump based on the water intake;
[0008] determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and a water discharge model;
[0009] Determining the water delivery time of the water pump based on the water delivery rate and the water intake;
[0010] The operation of the water pump is controlled based on the control signal and the water discharge duration.
[0011] In some embodiments, the water outlet model is determined based on at least a first mapping relationship of water pumps at three different temperatures;
[0012] The first mapping relationship represents the mapping relationship between the standard water output rate of the water pump and the control signal.
[0013] In some embodiments, determining a control signal for driving the water pump based on the water intake includes:
[0014] determining the control signal based on the water intake and the second mapping relationship;
[0015] The second mapping relationship represents the mapping relationship between the preset water intake volume and the control signal.
[0016] In some embodiments, the method further comprises:
[0017] Get the temperature value of the water to be taken;
[0018] Adjusting the second mapping relationship based on the temperature value of the water to be taken;
[0019] The control signal is determined based on the water intake and the adjusted second mapping relationship.
[0020] In some embodiments, the method further comprises:
[0021] In response to a calibration instruction for calibrating the water outlet model, obtaining a second temperature value of the water pump;
[0022] Obtaining an actual water output rate of the water pump under a current control signal at a second temperature value;
[0023] Determining a standard water discharge rate of the water pump under a current control signal based on the second temperature value and the water discharge model;
[0024] The water output model is updated based on the actual water output rate and the standard water output rate.
[0025] In some embodiments, obtaining the actual water output rate of the water pump under the current control signal at the second temperature value includes:
[0026] Obtain the water output and water output duration of the water pump under the current control signal at the second temperature value;
[0027] The actual water output rate is determined based on the water output amount and water output time of the water pump under the current control signal at the second temperature value.
[0028] In some embodiments, updating the water output model based on the actual water output rate and the standard water output rate includes:
[0029] determining an error parameter based on a ratio of the actual water output rate to the standard water output rate;
[0030] The water outlet model is updated based on the error parameter.
[0031] In a second aspect, an embodiment of the present application provides a water pump water output control device, the device comprising:
[0032] An acquisition module, configured to acquire a first temperature value of the water pump and a water intake amount to be taken;
[0033] a determination module, configured to determine a control signal for driving the water pump based on the water intake;
[0034] determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and a water discharge model;
[0035] Determining the water delivery time of the water pump based on the water delivery rate and the water intake;
[0036] The control module is used to control the operation of the water pump based on the control signal and the water output duration.
[0037] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein when the processor is used to run the computer program, it executes the steps of the method described in the first aspect.
[0038] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a controller, the steps of the method described in the first aspect are implemented.
[0039] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, which, when executed by a controller, implements the steps of the method described in the first aspect.
[0040] The technical solution provided by the embodiment of the present application determines the control signal of the water pump based on the water intake required by the user, and uses the ambient temperature of the water pump and the water outlet model to determine the water outlet rate of the water pump at the current temperature when this control signal is used, determines the water outlet time of the water pump based on the water outlet rate and the water intake required by the user, and controls the operation of the water pump based on the control signal and the water outlet time. In this way, the solution provided by the embodiment of the present application takes into account that the water pump is affected by factors such as the inlet water temperature and the ambient temperature, which may cause water outlet errors, and uses the current temperature of the water pump in combination with the water outlet model to obtain the current water outlet rate of the water pump, thereby being able to accurately calculate the water outlet time according to the water intake required by the user, and being able to control the water outlet of the water pump at low cost and high efficiency, avoiding water outlet errors caused by factors such as the inlet water temperature and the ambient temperature, so that the water outlet of the water pump meets the needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of a method for controlling water output of a water pump according to an embodiment of the present application;
[0042] Figure 2A schematic diagram showing the relationship between the control signal and the water output per unit time of the water pump provided in the application example of this application;
[0043] Figure 3 Schematic diagram of the flow chart for water pump output calibration provided for the application example of this application;
[0044] Figure 4 This is a schematic structural diagram of a water pump water output control device according to an embodiment of the present application;
[0045] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] The present application will be described in further detail below with reference to the accompanying drawings and embodiments.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.
[0048] With the widespread application of water treatment equipment, the water output needs to be strictly controlled in various water-using environments. For example, the requirements for water output accuracy of equipment such as coffee machines, smart water dispensers, and pipeline machines are increasing. However, the water output accuracy of current water pumps is affected by factors such as the inlet water temperature and ambient temperature. Even if the control signals are the same, there will be large deviations in the water output. In related technologies, if the water output of the water pump corresponding to each control signal is collected one by one for calibration, it will take a long time and the efficiency will be too low; if a high-precision water flow sensor is used to collect the water output rate in real time, the cost will be too high. Based on this, the embodiment of the present application adopts an algorithm to adapt to different working conditions and automatically correct the water output error to meet the user's control requirements for water output accuracy.
[0049] In various embodiments of the present application, a control signal for a water pump is determined based on the user's desired water intake. The control signal may include a pulse width modulation (PWM) wave with different duty cycles or frequencies. The water output rate of the water pump at the current temperature in response to the control signal is determined using the ambient temperature of the water pump and a water output model. The water output duration of the water pump is determined based on the water output rate and the user's desired water intake, and the operation of the water pump is controlled based on the control signal and the water output duration. Thus, the solution provided by the embodiments of the present application takes into account that the water pump may be affected by factors such as the inlet water temperature and the ambient temperature, which may cause water output errors. The solution utilizes the current temperature of the water pump in combination with the water output model to determine the current water output rate of the water pump, thereby accurately calculating the water output duration based on the user's desired water intake. This allows for cost-effective and efficient control of the water output of the water pump, avoids water output errors caused by factors such as the inlet water temperature and the ambient temperature, and ensures that the water output of the water pump meets user needs.
[0050] The present application provides a method for controlling the water output of a water pump. Figure 1 As shown, the method includes:
[0051] Step 101, obtaining a first temperature value of the water pump and a water intake amount to be taken;
[0052] Here, a temperature sensor provided on the water pump can be used to obtain the current ambient temperature value of the water pump, and the first temperature value is the current ambient temperature value of the water pump; the water intake amount can be manually input by the user on the water intake device and sent to the electronic device provided in the embodiment of the present application, or the water intake amount can be determined based on the user's last habit of using the water intake device, or the user can press buttons representing different water intake amounts to determine it. The embodiment of the present application does not limit the specific method for obtaining the water intake amount to be taken.
[0053] Step 102, determining a control signal for driving the water pump based on the water intake;
[0054] Here, a control signal for driving the water pump is determined based on the acquired water volume to be drawn, combined with a preset mapping relationship between the water volume and the control signal. Generally speaking, the greater the water volume to be drawn, the higher the water delivery rate will be to save time, and thus the control signal should also be larger. The control signal can be a PWM wave with different duty cycles or frequencies. The water delivery rate of the water pump can increase as the duty cycle or frequency of the PWM waveform increases. The specific form of the control signal is not limited in this embodiment of the application. For example, when the duty cycle of the PWM wave is 30%, the water delivery rate of the water pump is 200 milliliters per minute (ml / min); when the duty cycle of the PWM wave is 70%, the water delivery rate of the water pump is 500 ml / min. Similarly, when the frequency of the PWM wave is 100 hertz (Hz), the water delivery rate of the water pump is 200 ml / min; when the frequency of the PWM wave is 300 Hz, the water delivery rate of the water pump is 500 ml / min. When the control signal is a PWM wave with different duty cycles or different frequencies, the duty cycle or frequency of the control signal can increase linearly as the water intake increases, the duty cycle or frequency of the control signal can increase exponentially as the water intake increases, and the duty cycle or frequency of the control signal can also increase linearly in a segmented manner as the water intake increases. The specific mapping relationship between the preset water intake and the control signal can be set according to actual needs.
[0055] Step 103: determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and the water discharge model;
[0056] Here, based on the first temperature value of the water pump and the water outlet model, the mapping relationship between the water pump water outlet rate and the control signal when the water pump is at the first temperature value can be obtained, and the water outlet rate corresponding to the water pump working under the control signal can be obtained according to the determined control signal.
[0057] Step 104: determining the water delivery time of the water pump based on the water delivery rate and the water intake;
[0058] Here, the water output time of the water pump can be determined based on the water output rate and the water intake. For example, when the water output rate is 500 ml / min, the water intake required by the user is 1000 milliliters (ml), and the water output time of the water pump is 2 minutes (min).
[0059] Step 105: Control the operation of the water pump based on the control signal and the water output duration.
[0060] Here, the water pump is controlled to operate based on the determined control signal and the water discharge time, and the water pump is controlled to stop operating when the water discharge of the water pump reaches the determined water discharge time.
[0061] It is understandable that, considering that the water pump is affected by factors such as the inlet water temperature and the ambient temperature, which will cause water output errors, the current temperature of the water pump is combined with the water output model to obtain the current water output rate of the water pump, so that the water output time can be accurately calculated according to the water intake required by the user, and the water output of the water pump can be controlled at low cost and high efficiency, avoiding the water output errors caused by factors such as the inlet water temperature and the ambient temperature, so that the water output of the water pump meets user needs.
[0062] It's important to note that a pump's water output rate is not only affected by the control signal but also closely related to the ambient temperature. For example, changes in ambient temperature or the temperature of the water flowing through the pump can cause the pump material to expand and contract, and motor efficiency to fluctuate, thereby changing the mapping between the water output rate and the control signal. Related technologies control pumps based solely on a set of mappings between water output rate and control signals. Consequently, a product that's been debugged in the summer will experience significantly lower water output in the winter. Similarly, a product that's been debugged indoors will experience significantly higher water output when used outdoors, making it difficult to ensure consistent water output.
[0063] Based on this, in some embodiments, the water outlet model is determined based on at least three first mapping relationships of water pumps at different temperatures;
[0064] The first mapping relationship represents the mapping relationship between the standard water output rate of the water pump and the control signal.
[0065] Here, the standard water output rate of the water pump is the water output rate of the standard water pump sample during the production process of the water pump, which can also be called the standard water output rate of the standard water pump sample; according to the first mapping relationship of the water pump at at least three different temperatures, the relationship between the standard water output rate and temperature of the standard water pump sample under different control signals can be fitted. When the water pump is just shipped from the factory, it can be regarded as the water pump has not been affected by factors such as device aging. At this time, the water output rate of the water pump can be determined according to the relationship between the standard water output rate and temperature.
[0066] For example, the corresponding relationship between the control signal and the water outlet rate of the standard water pump sample under normal temperature conditions (such as 20°C) can be collected, the water outlet rate under normal temperature conditions is named Gn, and a curve with the control signal as the independent variable and the water outlet rate Gn as the dependent variable is fitted; then the corresponding relationship between the control signal and the water outlet rate under high temperature conditions (such as 35°C) and low temperature conditions (such as 5°C) is sampled respectively, and the water outlet rates under high temperature conditions and low temperature conditions are named Gh and Gl respectively, and curves with the control signal as the independent variable and the water outlet rates Gh and Gl as the dependent variables are fitted respectively; use Gn, Gh, and Gl to fit A function of K, where K is a function associated with temperature T, can be designed as Specifically, under each control signal, Gn, Gh, and Gl corresponding to the control signal are substituted into G, and the temperature values Tn (20°C), Th (35°C), and Tl (5°C) corresponding to Gn, Gh, and Gl are substituted into T, respectively. Three equations can be determined, including: , , ;in, The simultaneous equations can be used to determine the values of coefficients a, b, and c in the function K under each control signal. The water discharge model is then: , where each control signal has corresponding values of a, b, and c. Based on this water discharge model, we can determine the mapping relationship between the standard water discharge rate of a standard water pump sample at the current temperature and the control signal, based on the temperature of the water pump. This is also the mapping relationship between the water discharge rate of a freshly manufactured water pump at the current temperature and the control signal.
[0067] Here, assuming that the control signal is a PWM wave with a duty cycle of 50%, under this control signal, Gn is 110 ml / min, Gh is 130 ml / min, and Gl is 70 ml / min. Substitute Gn, Gh, and Gl into G, and substitute the corresponding temperatures Tn (20°C), Th (35°C), and Tl (5°C) of Gn, Gh, and Gl into T, respectively. Three equations can be determined, including: , , ;in, The simultaneous three-variable linear equation system can be used to determine that when the control signal is a PWM wave with a duty cycle of 50%, the coefficients a, b, and c in function K are -0.0004, 0.0343, and 0.4747, respectively. At this time, the water outlet model is , and since each control signal has corresponding Gn, Gh, Gl and Tn, Th, Tl, the values of a, b, and c corresponding to each control signal can be calculated, that is, each control signal has a corresponding water outlet model.
[0068] It is understandable that in actual application, the first mapping relationship of the standard water pump sample under more temperature conditions can be collected, such as adding temperature sampling points (such as 5°C, 15°C, 25°C, 35°C, and 45°C). In this way, the relationship between the standard water discharge rate and temperature of the standard water pump sample can be more accurately fitted. The embodiment of the present application does not limit the number and numerical value of the temperature sampling points. The operating condition corresponding to Gn in the water discharge model can be a normal temperature operating condition or other operating conditions, that is, the temperature value corresponding to Gn in the water discharge model can be 20°C or other temperature values. The embodiment of the present application does not limit the temperature value corresponding to Gn in the water discharge model. In addition, the values of coefficients a, b, and c in the function K can change with the change of the control signal, that is, the values of a, b, and c are different under different control signals; however, the values of a, b, and c under different control signals can also be the same, that is, the values of a, b, and c remain unchanged. The embodiment of the present application does not limit this. Here, if the values of a, b, and c remain unchanged, the error function can be fitted using the least squares method based on the first mapping relationship of the standard water pump samples collected at different temperatures and the water outlet model. The error function E(a, b, c) can be expressed by the following formula (1):
[0069] (1)
[0070] Among them, S i represents the control signal, m represents the total number of control signals; T j represents the collected temperature value, and n represents the total number of temperature points; Indicates that in S i Under the control signal, T j The standard water output rate of the standard water pump sample at temperature, Indicates that in S i The water discharge rate Gn under normal temperature conditions under the control signal. By minimizing the error function E(a, b, c), a global set of a, b, and c values is ultimately fitted to minimize the overall error in the water discharge rate calculated by the water discharge model under all control signals. The specific implementation process of fitting the global a, b, and c values using the least squares method can be understood by referring to related technologies and will not be repeated here.
[0071] Based on the above example, assuming that the control signal is a PWM wave with a duty cycle of 50%, K=-0.0004T 2 +0.0343T+0.4747; and according to the corresponding relationship between the control signal and the water discharge rate of the standard water pump sample at normal temperature (such as 20°C), the standard water discharge rate at a duty cycle of 50% is obtained. Assuming it is 300ml / min, the actual water discharge rate of the water pump at a temperature of 30°C when it leaves the factory can be calculated to be 300×(-0.0004×30 2+0.0343×30+0.4747), which is approximately 343 ml / min. Assuming the user inputs a water volume of 500 ml, the calculated water delivery time is approximately 1.46 minutes. Based on a control signal with a 50% duty cycle and a 1.46-minute water delivery duration, the pump is controlled to operate and stop when the water delivery reaches 1.46 minutes. Here, when the values of a, b, and c vary under different control signals, if the control signal changes to a PWM wave with a different duty cycle, such as a 70% duty cycle, the values of the coefficients a, b, and c in function K will change. When the values of a, b, and c remain unchanged under different control signals, if the control signal changes to a 70% duty cycle PWM wave, the values of the coefficients a, b, and c in function K remain -0.0004, 0.0343, and 0.4747, respectively.
[0072] In actual application, the control signal of the water pump needs to be determined according to the water intake. If the amount of water required by the user is large, the control signal of the water pump will also increase accordingly. If the amount of water required by the user is small, in order to prevent the water from flowing out too fast and causing water to splash or overflow from the user's water cup, the control signal of the water pump will also decrease accordingly.
[0073] Based on this, in some embodiments, determining a control signal for driving the water pump based on the water intake includes:
[0074] determining the control signal based on the water intake and the second mapping relationship;
[0075] The second mapping relationship represents the mapping relationship between the preset water intake volume and the control signal.
[0076] Here, the second mapping relationship represents the mapping relationship between the preset water intake and the control signal. The second mapping relationship can be linear or nonlinear. The second mapping relationship can be a mapping table in which the water intake values correspond to the control signal values. The specific mapping relationship between the preset water intake and the control signal can be set according to actual needs and is not limited in this embodiment of the present application.
[0077] For example, if the water intake volume input by the user is 1000ml, the control signal is determined to be a PWM wave with a duty cycle of 100% according to the second mapping relationship; if the water intake volume input by the user is 100ml, the control signal is determined to be a PWM wave with a duty cycle of 20% according to the second mapping relationship.
[0078] In actual application, the temperature of the water to be drawn needs to be taken into account when determining the control signal; when the user draws a large amount of water and the temperature is high, if the water pump uses a large water output rate, it is easy for the heating device of the water-drawing equipment to not have time to heat the water to the temperature required by the user, affecting the user's experience.
[0079] Based on this, in some embodiments, the method further includes:
[0080] Get the temperature value of the water to be taken;
[0081] Adjusting the second mapping relationship based on the temperature value of the water to be taken;
[0082] The control signal is determined based on the water intake and the adjusted second mapping relationship.
[0083] Here, when the user's water intake temperature is high, the second mapping relationship can be appropriately adjusted, that is, the control signal can be appropriately reduced when the water intake volume is large, so that the water intake device heats the water to the temperature required by the user before discharging the water.
[0084] For example, if the user inputs a water volume of 1000ml and a water temperature of 55°C, the mapping relationship between the water volume and the control signal is adjusted to determine that the control signal is a PWM wave with an 80% duty cycle. If the user inputs a water volume of 1000ml and a water temperature of 90°C, the control signal is determined to be a PWM wave with a 50% duty cycle based on the second mapping relationship. The specific adjusted second mapping relationship can be determined based on actual needs (such as the heating power of the water device's heating device). It is sufficient that the control signal at each water temperature satisfies the water device's ability to heat the water to the user's desired temperature in a timely manner. This embodiment of the present application does not limit the specific adjusted second mapping relationship.
[0085] Exemplarily, Table 1 is the second mapping relationship before adjustment, and Table 2 is the second mapping relationship after adjustment.
[0086] Table 1
[0087]
[0088] Table 2
[0089]
[0090] Here, as shown in Table 2, when the user's water intake temperature changes from low to high, in order to avoid the situation where the user's water intake is large and the temperature is high, resulting in the heating device not being able to heat the water in time, and the user being unable to obtain the desired water temperature, based on the second mapping relationship before adjustment shown in Table 1, the duty cycle of the PWM wave is appropriately reduced, that is, the water output rate is reduced, so that the water intake device can heat the water to the user's desired temperature in a timely manner; when the user's water intake is small, since the water intake device can already heat the water to the user's desired temperature in a timely manner, the duty cycle of the PWM wave can be kept unchanged, or the reduction can be small. The reduction can be determined based on the heating power of the water intake device and the actual debugging situation. This application does not limit the specific adjustment method of the second mapping relationship.
[0091] In addition to adjusting the second mapping relationship in the manner of Table 2, the second mapping relationship before adjustment in Table 1 can also be defined as a benchmark function, the water intake temperature is divided into multiple stages, and an adjustment function is matched to each water intake temperature stage. Each adjustment function is obtained by multiplying the benchmark function by an adjustment coefficient. The adjustment coefficient is related to the stage of the water intake temperature. The higher the water intake temperature, the smaller the adjustment coefficient. Multiple adjustment functions together constitute the adjusted second mapping relationship. As shown in Table 3 below, the water intake temperature is divided into 0℃-35℃, 35℃-70℃ and 70℃-100℃. When the water intake temperature is 0℃-35℃, the adjustment coefficient corresponds to 100%, and the adjusted PWM wave duty cycle is obtained by multiplying the duty cycle before adjustment in Table 1 by 100%. When the water intake temperature is 35℃-70℃, the adjustment coefficient corresponds to 80%, and the adjusted PWM wave duty cycle is obtained by multiplying the duty cycle before adjustment in Table 1 by 80%. When the water intake temperature is 70℃-100℃, the adjustment coefficient corresponds to 70%, and the adjusted PWM wave duty cycle is obtained by multiplying the duty cycle before adjustment in Table 1 by 70%.
[0092] Table 3
[0093]
[0094] The performance of a water pump deteriorates over time. For example, after a period of use, factors such as mechanical wear, aging of components, and scale clogging of the water path can cause the actual water delivery rate of the pump to deviate from the water delivery rate calculated by the delivery model, and this deviation can gradually increase.
[0095] Based on this, in some embodiments, the method further includes:
[0096] In response to a calibration instruction for calibrating the water outlet model, obtaining a second temperature value of the water pump;
[0097] Obtaining an actual water output rate of the water pump under a current control signal at a second temperature value;
[0098] Determining a standard water discharge rate of the water pump under a current control signal based on the second temperature value and the water discharge model;
[0099] The water output model is updated based on the actual water output rate and the standard water output rate.
[0100] Here, in actual application, after the user has used the water pump for a period of time, in response to the calibration instruction for calibrating the water outlet model, the user obtains the current ambient temperature value of the water pump, that is, the second temperature value; and obtains the actual water outlet rate of the water pump under the current control signal, and the current control signal can be any control signal; the second temperature value is substituted into the water outlet model to obtain the first mapping relationship of the water pump at the second temperature value, that is, the mapping relationship between the standard water outlet rate of the water pump and the control signal, and the standard water outlet rate of the water pump under the current control signal is obtained according to the current control signal, and the water outlet model is updated based on the actual water outlet rate and the standard water outlet rate.
[0101] It is understood that the calibration instruction can be actively input by the user, such as by pressing a calibration button, or can be automatically calibrated periodically by a processor in the electronic device provided in the embodiments of the present application. The embodiments of the present application do not limit the specific method of receiving the calibration instruction. The current control signal can be any control signal, or a control signal specifically used to update the water output model, referred to as a standard control signal, can be set. The embodiments of the present application do not limit the specific size of the standard control signal.
[0102] In order to ensure the accuracy of the actual water output rate, it is necessary to calculate the actual water output rate based on the actual water output.
[0103] Based on this, in some embodiments, obtaining the actual water output rate of the water pump under the current control signal at the second temperature value includes:
[0104] Obtain the water output and water output duration of the water pump under the current control signal at the second temperature value;
[0105] The actual water output rate is determined based on the water output amount and water output time of the water pump under the current control signal at the second temperature value.
[0106] Here, the user obtains the actual water output of the water pump under the current control signal. Specifically, the user can use a graduated cup to determine the actual water output, and input the actual water output on the water intake device, so that the electronic device provided in the embodiment of the present application can obtain the actual water output, and calculate the actual water output rate based on the water output time. The water output time can be obtained from a timer, and the timer can be set in the electronic device, or set on the water intake device, and the water output time is sent to the electronic device for calculating the actual water output rate. It is understandable that the actual water output rate can also be collected by a sensor, for example, by after-sales personnel using a sensor.
[0107] Introducing error parameters into the water discharge model can accurately reflect the errors caused by mechanical wear, seal aging and other factors in the water pump.
[0108] Based on this, in some embodiments, updating the water output model based on the actual water output rate and the standard water output rate includes:
[0109] determining an error parameter based on a ratio of the actual water output rate to the standard water output rate;
[0110] The water outlet model is updated based on the error parameter.
[0111] Based on the above example, after the user has used the water pump for a period of time, the user inputs a calibration instruction. In response to the calibration instruction for calibrating the water outlet model, the user obtains the current ambient temperature value of the water pump (such as 25°C). The water pump discharges water for a certain water outlet time (such as 1 minute) under a standard control signal (such as a PWM wave with a duty cycle of 50%). After the water outlet is completed, the user inputs the actual water outlet volume obtained according to the graduated cup into the water intake device. The water intake device sends the actual water outlet volume to the electronic device provided in the embodiment of the present application. The processor of the electronic device calculates the actual water outlet rate based on the water outlet time and the actual water outlet volume; substitutes the current ambient temperature value (25°C) into the water outlet model. The mapping relationship G between the standard water output rate of the water pump and the control signal at 25°C is obtained. The standard water discharge rate at room temperature (e.g., 20°C) when the control signal is a PWM wave with a duty cycle of 50% is multiplied by the function K with a value of 1.0822 to obtain the standard water discharge rate of the water pump at 25°C. The error parameter e is determined by the ratio of the actual water discharge rate to the standard water discharge rate, such as 0.8. The error parameter e is saved and used to update the water discharge model. At this time, the water discharge model is , that is .
[0112] Based on the above example, after the water outlet model is updated, when the user uses the water intake device, if the input water intake volume is 1000 ml, the water intake temperature is 55°C, and the ambient temperature of the water pump is 30°C, then according to the second mapping relationship, the control signal is determined to be a PWM wave with a duty cycle of 80%. If the values of a, b, and c in the water outlet model remain unchanged as the control signal changes, the values of coefficients a, b, and c in function K remain -0.0004, 0.0343, and 0.4747 respectively. At this time, K=0.8×(-0.0004T 2 +0.0343T+0.4747); and according to the corresponding relationship between the control signal and the water discharge rate of the standard water pump sample at normal temperature (such as 20°C), the standard water discharge rate when the duty cycle is 80% is obtained. Assuming it is 400 ml / min, the water discharge rate of the water pump at a temperature of 30°C can be calculated as 400×0.8×(-0.0004×30 2+0.0343×30+0.4747), which is approximately 366 ml / min. Based on the user-entered water volume of 1000 ml, the water delivery time is calculated to be approximately 2.73 minutes. Based on a control signal with an 80% duty cycle and a water delivery time of 2.73 minutes, the pump is controlled to operate and stop when the water delivery time reaches 2.73 minutes.
[0113] It should be noted that during the production and manufacturing process of the water pump, it may also be affected by product batches, structural tolerances, errors in components such as motors, etc., resulting in water output errors. Therefore, in some embodiments, an error calibration can be performed before the water pump leaves the factory. Specifically, the production and manufacturing personnel can use an external sensor to measure the actual water output rate of the water pump, and use the ratio of the actual water output rate to the standard water output rate to determine the error parameter e, such as 0.9. This error parameter e is saved, and the error parameter e is used to update the water output model so that the water output model is After the water pump leaves the factory, the user can control the water output based on this water output model.
[0114] The water output control method of the water pump provided in the embodiment of the present application determines the control signal of the water pump based on the water intake required by the user, and uses the ambient temperature of the water pump and the water output model to determine the water output rate of the water pump at the current temperature when this control signal is used, determines the water output time of the water pump based on the water output rate and the water intake required by the user, and controls the operation of the water pump based on the control signal and the water output time. In this way, the solution provided in the embodiment of the present application takes into account that the water pump is affected by factors such as the inlet water temperature and the ambient temperature, which may cause water output errors, and uses the current temperature of the water pump in combination with the water output model to obtain the current water output rate of the water pump, thereby being able to accurately calculate the water output time according to the water intake required by the user, and being able to control the water output of the water pump at low cost and high efficiency, avoiding water output errors caused by factors such as the inlet water temperature and the ambient temperature, so that the water output of the water pump meets the needs of the user.
[0115] The present application is described in further detail below with reference to application examples.
[0116] In an application example of this application, the relationship between the control signal and the water output per unit time of the water pump is as follows: Figure 2 As shown in the figure, as the control signal increases, the water output per unit time (i.e., the water output rate) also increases; and as the temperature increases, the water output per unit time under the same control signal also increases.
[0117] The application example provided in this application is a flow chart of the water pump output calibration process, as shown in Figure 3 As shown, the following steps are included:
[0118] In step 301, data on different control quantities (i.e., the control signals) and the corresponding water output rates are collected; then the next step, step 302, is executed; the water output rate here is the water output rate of the standard water pump sample, and the control quantities and corresponding water output rates of the standard water pump samples at at least three different temperatures can be collected.
[0119] Step 302: Establish the corresponding relationship between the control amount and the water output rate based on the sampling data, and fit the control curves: Gn, Gh, Gl; then proceed to the next step, i.e., step 303;
[0120] Step 303: Establish a standard control model (i.e., the above-mentioned water outlet model) based on the control curve. , ; Then execute the next step, that is, step 304; Here, according to the control curves: Gn, Gh, Gl, the values of coefficients a, b, and c in K under each control amount can be calculated.
[0121] Step 304: Add the error e to the standard model to establish a universal control model ; Then execute the next step, i.e. step 306;
[0122] Step 305: Press the button to enter the background calibration mode, and the system will automatically calibrate after 10 seconds. If the device is aging or has been working for a long time, and scale is generated in the pipes, resulting in water output errors, the user can press the calibration button to enter the calibration mode and proceed to the next step, i.e., step 306.
[0123] Step 306: During the production process or maintenance process (in response to the calibration instruction of step 305), the error e is calibrated. ; Then execute the next step, i.e. step 307;
[0124] Here, the ambient temperature of the water pump is substituted into T to obtain the mapping relationship between the standard water output rate of the water pump at the current temperature and the control signal. , and obtain the standard water output rate of the water pump under the control signal according to the standard control signal , Gn1 is the standard water output rate of the Gn curve under the standard control signal. During the production process, an external sensor can be used to measure the actual water output rate G of the water pump under the standard control signal. During the maintenance process, the electronic device provided by the embodiment of the present application can calculate the actual water output rate G based on the actual water output of the water pump under the standard control signal input by the user; then, the error parameter e is determined by using the ratio of the actual water output rate G to the standard water output rate. , save the error parameter e, and use the error parameter e to update the water outlet model. At this time, the water outlet model is , that is .
[0125] Step 307, determine whether the error e is within the standard range; if so, execute step 308, if not, execute step 309;
[0126] Step 308 , complete the calibration and save the error e; here, the water pump can be controlled to discharge water according to the water discharge model with the updated error e.
[0127] Step 309: Determine whether the number of calibrations is greater than 2. If the error is too large, consider whether the product has quality issues. If the number of calibrations is greater than 2, proceed to step 310. If the number of calibrations is less than or equal to 2, proceed to step 306 and calibrate again.
[0128] Step 310: Determine the product as defective and remove it. If the error e exceeds the standard range after more than two calibrations during the production process, it can be determined that the product has a quality problem. Alternatively, if the error e exceeds the standard range after more than two calibrations during the maintenance process, it can be determined that the water pump is damaged.
[0129] As can be seen from the above description, each water pump is calibrated in the above steps before leaving the factory, overcoming the systematic errors caused by differences in structure, components, and assembly. Each water pump has its own error parameters, ensuring that there is no water output error in each product when it reaches the user. This application example uses an automatic adjustment method to model the water pump error and correct the error for each product before leaving the factory. As the product ages or the water pump components are damaged, the user can calibrate it again. It can meet the long-term requirements of accurate water output in various environments and various working conditions.
[0130] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a water pump water output control device, which corresponds to the above-mentioned water output control method, and each step in the above-mentioned water output control method embodiment is also fully applicable to the embodiment of this device.
[0131] like Figure 4 As shown, an embodiment of the present application provides a water pump water output control device, which includes: an acquisition module 401, a determination module 402, and a control module 403.
[0132] An acquisition module 401 is used to acquire a first temperature value of the water pump and a water intake amount to be taken;
[0133] A determination module 402 is configured to determine a control signal for driving the water pump based on the water intake;
[0134] determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and a water discharge model;
[0135] Determining the water delivery time of the water pump based on the water delivery rate and the water intake;
[0136] The control module 403 is used to control the operation of the water pump based on the control signal and the water output duration.
[0137] In some embodiments, the water outlet model is determined based on at least a first mapping relationship of water pumps at three different temperatures;
[0138] The first mapping relationship represents the mapping relationship between the standard water output rate of the water pump and the control signal.
[0139] In some embodiments, the determining module 402 is specifically configured to:
[0140] determining the control signal based on the water intake and the second mapping relationship;
[0141] The second mapping relationship represents the mapping relationship between the preset water intake volume and the control signal.
[0142] In some embodiments, the acquisition module 401 is further used to: acquire the temperature value of the water to be taken;
[0143] The determining module 402 is further configured to: adjust the second mapping relationship based on the temperature value of the water to be taken; and determine the control signal based on the water intake amount and the adjusted second mapping relationship.
[0144] In some embodiments, the determining module 402 is further configured to:
[0145] In response to a calibration instruction for calibrating the water outlet model, obtaining a second temperature value of the water pump;
[0146] Obtaining an actual water output rate of the water pump under a current control signal at a second temperature value;
[0147] Determining a standard water discharge rate of the water pump under a current control signal based on the second temperature value and the water discharge model;
[0148] The water output model is updated based on the actual water output rate and the standard water output rate.
[0149] In some embodiments, the acquisition module 401 is further configured to: acquire the water output and water output duration of the water pump under the current control signal at the second temperature value;
[0150] The determining module 402 is specifically configured to determine the actual water output rate based on the water output amount and water output duration of the water pump under the current control signal at the second temperature value.
[0151] In some embodiments, the determining module 402 is specifically configured to:
[0152] Determining an error parameter based on a ratio of the actual water output rate to the standard water output rate;
[0153] The water outlet model is updated based on the error parameter.
[0154] It should be noted that the water pump output control device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the water output control. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-described processing. In addition, the water output control device provided in the above embodiment and the embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0155] Based on the hardware implementation of the above program modules, and in order to implement the water pump water output control method of the embodiment of the present application, the embodiment of the present application also provides an electronic device, such as Figure 5 As shown, the electronic device 500 includes: at least one processor 501, a memory 502, a user interface 503 and at least one network interface 504. The various components in the server 500 are coupled together via a bus system 505. It can be understood that the bus system 505 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not described in detail. Figure 5 Various buses are labeled as bus system 505.
[0156] The user interface 503 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0157] The memory 502 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 500. Examples of such data include: any computer program used to operate on the electronic device 500.
[0158] The embodiments disclosed herein can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step may be completed by hardware integrated logic circuits within processor 501 or by software instructions. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application may be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software modules may be located in a storage medium located in memory 502. Processor 501 reads information from memory 502 and, in conjunction with its hardware, completes the steps provided in the embodiments of this application.
[0159] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0160] It is understood that memory 502 can be volatile memory or non-volatile memory, or can include both volatile and non-volatile memory. Non-volatile memory can include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), EEPROM, ferromagnetic random access memory (FRAM), flash memory, magnetic surface storage, optical disk, or compact disc read-only memory (CD-ROM); magnetic surface storage can include magnetic disk storage or magnetic tape storage. Volatile memory can include random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 501 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0161] In an exemplary embodiment, the present application also provides a storage medium, namely, a computer storage medium, which can be a computer-readable storage medium, for example, including a memory 502 storing a computer program. The computer program can be executed by a processor 501 of an electronic device 500 to complete the steps of the water pump output control method of the present application embodiment. The computer-readable storage medium can be a memory such as a ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0162] In an exemplary embodiment, the embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the processor 501 of the electronic device 500 to complete the steps described in the method of the embodiment of the present application.
[0163] It should be noted that the terms "first," "second," etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. As used herein, the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus.
[0164] In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
[0165] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.
Claims
1. A method for controlling water output of a water pump, characterized in that: include: Obtaining a first temperature value of the water pump and a water intake amount to be taken; Determining a control signal for driving the water pump based on the water intake; determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and a water discharge model; Determining the water delivery time of the water pump based on the water delivery rate and the water intake; Controlling the operation of the water pump based on the control signal and the water discharge duration; The water outlet model is determined based on at least a first mapping relationship of water pumps at three different temperatures; The first mapping relationship represents the mapping relationship between the standard water output rate of the water pump and the control signal.
2. The method according to claim 1, characterized in that The control signal for driving the water pump based on the water intake is determined, including: determining the control signal based on the water intake and the second mapping relationship; The second mapping relationship represents the mapping relationship between the preset water intake volume and the control signal.
3. The method according to claim 2, characterized in that The method further comprises: Get the temperature value of the water to be taken; Adjusting the second mapping relationship based on the temperature value of the water to be taken; The control signal is determined based on the water intake and the adjusted second mapping relationship.
4. The method according to claim 1, wherein The method further comprises: In response to a calibration instruction for calibrating the water outlet model, obtaining a second temperature value of the water pump; Obtaining an actual water output rate of the water pump under a current control signal at a second temperature value; Determining a standard water discharge rate of the water pump under a current control signal based on the second temperature value and the water discharge model; The water output model is updated based on the actual water output rate and the standard water output rate.
5. The method according to claim 4, characterized in that The obtaining of the actual water output rate of the water pump under the current control signal at the second temperature value includes: Obtain the water output and water output duration of the water pump under the current control signal at the second temperature value; The actual water output rate is determined based on the water output amount and water output time of the water pump under the current control signal at the second temperature value.
6. The method according to claim 4, characterized in that The updating of the water output model based on the actual water output rate and the standard water output rate includes: determining an error parameter based on a ratio of the actual water output rate to the standard water output rate; The water outlet model is updated based on the error parameter.
7. A water pump water output control device, characterized in that: include: An acquisition module, configured to acquire a first temperature value of the water pump and a water intake amount to be taken; A determination module, configured to determine a control signal for driving the water pump based on the water intake; determining a water discharge rate corresponding to the operation of the water pump based on the first temperature value, the control signal, and a water discharge model; Determining the water delivery time of the water pump based on the water delivery rate and the water intake; A control module, configured to control the operation of the water pump based on the control signal and the water discharge duration; The water outlet model is determined based on at least a first mapping relationship of water pumps at three different temperatures; The first mapping relationship represents the mapping relationship between the standard water output rate of the water pump and the control signal.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Quantitative water outlet control method and water dispenser
CN112220355A
Temperature estimating device for cooling system
JP2003227337A