Control methods, control devices, electronic equipment, and storage media for water effluent equipment
By correcting the reference outflow rate at least once, and determining the target outflow rate based on the corrected reference outflow rate and the target outflow rate, the accuracy of the outflow rate of the water discharge equipment is improved.
Patent Information
- Application Number
- CN202510006210.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-01-02
AI Technical Summary
Traditional water outlet equipment has limitations in accuracy and cannot meet the precise control requirements for water output in modern industry and daily life.
The water outlet equipment is controlled by correcting the reference outlet flow rate at least once and determining the target duration based on the corrected reference outlet flow rate and the target outlet flow rate.
The control method for the reference water outlet equipment has been improved, thereby increasing the accuracy of the water outlet equipment and the water output accuracy of the equipment.
Smart Images

Figure CN119882847B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water outlet equipment technology, and in particular to a control method, control device, electronic equipment and storage medium for water outlet equipment. Background Technology
[0002] In modern industry and daily life, water dispensing equipment that precisely controls water flow has a wide range of applications, such as beverage bottling, chemical formulation, and agricultural irrigation. Traditional water dispensing equipment typically relies on mechanical flow meters or electronic scales to control the water flow. While these methods can meet basic water dispensing needs to some extent, they have limitations in terms of accuracy.
[0003] Therefore, improving the accuracy of water output from water outlet equipment is an urgent problem to be solved. Summary of the Invention
[0004] The present invention aims to at least partially solve one of the technical problems in the related art.
[0005] Therefore, the first objective of this invention is to provide a control method for a water outlet device. This method improves the water outlet accuracy by correcting a reference water outlet flow rate at least once, determining a target duration based on the corrected reference water outlet flow rate and the target water outlet flow rate, and controlling the water outlet device according to the target duration.
[0006] The second objective of this invention is to provide a control device for a water outlet device.
[0007] The third objective of this invention is to provide an electronic device.
[0008] The fourth objective of this invention is to provide a computer-readable storage medium.
[0009] To achieve the above objectives, a first aspect of the present invention provides a control method for a water outlet device, comprising: S1: upon receiving a start command containing a target water outlet volume M, controlling the water outlet device to start discharging water; S2: acquiring a set time period T; S3: when the water outlet duration t reaches the set time period T, acquiring the corresponding actual water outlet volume m, and calculating the expected water outlet volume M' based on the reference water outlet flow rate Q of the water outlet device and the set time period T; S4: correcting the reference water outlet flow rate Q based on the difference between the actual water outlet volume m and the expected water outlet volume M'; S5: acquiring the next set time period, repeating steps S3 to S5 until there is no next set time period; S6: determining the target water outlet duration based on the corrected reference water outlet flow rate Q and the target water outlet volume M.
[0010] According to the control method of the water outlet device of the present invention, the following steps are performed: Step S1, after receiving a start command containing a target water output M, the water outlet device is controlled to start discharging water; Step S2, a set time period T is obtained; Step S3, when the water discharging duration t reaches the set time period T, the corresponding actual water output m is obtained, and the expected water output M' is calculated based on the reference water output flow rate Q of the water outlet device and the set time period T; Step S4, the reference water output flow rate Q is corrected based on the difference between the actual water output m and the expected water output M'; Step S5, the next set time period is obtained, and steps S3 to S5 are repeated until there is no next set time period; Step S6, the target water discharging duration is determined based on the corrected reference water output flow rate Q and the target water output M. This method controls the water outlet device by determining the target duration based on the corrected reference water output flow rate and the target water output, which can improve the water discharging accuracy of the water outlet device.
[0011] In addition, the control method for the water outlet device proposed in the first aspect embodiment of the present invention may also have the following additional technical features:
[0012] In one embodiment of the present invention, correcting the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M' includes:
[0013] Based on the expected water output M' and the set deviation water output, the expected water output range is determined; wherein, the lower limit of the expected water output range is the difference between the expected water output M' and the set deviation water output, and the upper limit of the expected water output range is the sum of the expected water output M' and the set deviation water output.
[0014] Determine whether the actual water output m falls within the expected water output range;
[0015] In response to the actual water output m being less than the lower limit of the expected water output range, or in response to the actual water output being greater than the upper limit of the expected water output range, the actual water output flow rate is calculated based on the actual water output m and the set time period T, and the reference water output flow rate Q is corrected to the actual water output flow rate.
[0016] In response to the actual water output m being greater than or equal to the lower limit of the expected water output range, and the actual water output m being less than or equal to the upper limit of the expected water output range, the reference water output flow rate Q is maintained unchanged.
[0017] In one embodiment of the present invention, after correcting the reference effluent flow rate Q, the method further includes:
[0018] When the actual water output m is less than the lower limit of the expected water output range, the actual water flow rate is calculated based on the actual water output m and the set time period T, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to keep displaying the expected water output for a preset time after the set time period.
[0019] After the preset time period, the display unit is controlled to update the display in real time based on the actual water flow rate and the corresponding water flow duration, until the water flow time reaches the next set time period.
[0020] Alternatively, when the actual water output m is greater than or equal to the lower limit of the expected water output range and the actual water output m is less than or equal to the upper limit of the expected water output range, and the reference water output flow rate Q is kept constant, the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0021] Alternatively, when the actual water output exceeds the upper limit of the expected water output range, the actual water flow rate is calculated based on the actual water output and the set time period, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to update the display in real time based on the water output rate calculated by the actual water flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0022] In one embodiment of the present invention, the method further includes:
[0023] In response to the actual water output m being equal to 0, the reference water output flow rate is kept constant, and the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate Q and the corresponding water output duration.
[0024] In one embodiment of the present invention, the step of determining the reference effluent flow rate Q is as follows:
[0025] The weight of an object of known weight is obtained by an electronic scale in the water outlet device and used as a standard weight value.
[0026] The actual water discharge time required for the water from the water outlet device to reach the standard weight value is obtained;
[0027] The reference outflow rate Q is determined based on the standard weight value and the actual outflow time.
[0028] In one embodiment of the present invention, determining the target discharge duration based on the modified reference discharge flow rate Q and the target discharge flow rate M includes:
[0029] Obtain the last set time period T and its corresponding actual water output;
[0030] The target water discharge duration = (the target water discharge volume M - the actual water discharge volume corresponding to the last set time period T) / the corrected reference water discharge flow rate Q + the last set time period T;
[0031] In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
[0032] In another embodiment of the present invention, determining the target discharge duration based on the modified reference discharge flow rate Q and the target discharge flow rate M includes:
[0033] The target water discharge duration = the target water discharge volume / the corrected reference water discharge flow rate Q;
[0034] In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
[0035] To achieve the above objectives, a second aspect of the present invention provides a control device for a water outlet device, comprising: a control module, configured to control the water outlet device to start discharging water upon receiving a start command containing a target water discharge volume M; a first acquisition module, configured to acquire a set time period T; a calculation module, configured to acquire the corresponding actual water discharge volume m when the water discharge duration t reaches the set time period T, and calculate the expected water discharge volume M' based on the reference water discharge flow rate Q of the water outlet device and the set time period T; a correction module, configured to correct the reference water discharge flow rate Q based on the difference between the actual water discharge volume m and the expected water discharge volume M'; a second acquisition module, configured to acquire the next set time period, and work in conjunction with the calculation module and the correction module until there is no next set time period; and a determination module, configured to determine the target water discharge duration based on the corrected reference water discharge flow rate Q and the target water discharge volume M.
[0036] According to an embodiment of the present invention, the control device for a water outlet device, upon receiving a start command containing a target water output M, controls the water outlet device to begin discharging water. A first acquisition module acquires a set time period T. A calculation module acquires the corresponding actual water output m when the water output duration t reaches the set time period T. Based on the reference water output flow rate Q and the set time period T, the expected water output M' is calculated. A correction module corrects the reference water output flow rate Q based on the difference between the actual water output m and the expected water output M'. A second acquisition module acquires the next set time period and works in conjunction with the calculation and correction modules until no next set time period is available. Finally, a determination module determines the target water output duration based on the corrected reference water output flow rate Q and the target water output M. This device controls the water outlet device by determining the target duration based on the corrected reference water output flow rate and the target water output, thereby improving the water output accuracy of the water outlet device.
[0037] In addition, the control device for the water outlet equipment proposed in the second aspect embodiment of the present invention may also have the following additional technical features:
[0038] In one embodiment of the present invention, when the correction module is used to correct the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M', it includes:
[0039] Based on the expected water output M' and the set deviation water output, the expected water output range is determined; wherein, the lower limit of the expected water output range is the difference between the expected water output M' and the set deviation water output, and the upper limit of the expected water output range is the sum of the expected water output M' and the set deviation water output.
[0040] Determine whether the actual water output m falls within the expected water output range;
[0041] In response to the actual water output m being less than the lower limit of the expected water output range, or in response to the actual water output being greater than the upper limit of the expected water output range, the actual water output flow rate is calculated based on the actual water output m and the set time period T, and the reference water output flow rate Q is corrected to the actual water output flow rate.
[0042] In response to the actual water output m being greater than or equal to the lower limit of the expected water output range, and the actual water output m being less than or equal to the upper limit of the expected water output range, the reference water output flow rate Q is maintained unchanged.
[0043] In one embodiment of the present invention, the control module is further configured to:
[0044] When the actual water output m is less than the lower limit of the expected water output range, the actual water flow rate is calculated based on the actual water output m and the set time period T, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to keep displaying the expected water output for a preset time after the set time period.
[0045] After the preset time period, the display unit is controlled to update the display in real time based on the actual water flow rate and the corresponding water flow duration, until the water flow time reaches the next set time period.
[0046] Alternatively, when the actual water output m is greater than or equal to the lower limit of the expected water output range and the actual water output m is less than or equal to the upper limit of the expected water output range, and the reference water output flow rate Q is kept constant, the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0047] Alternatively, when the actual water output exceeds the upper limit of the expected water output range, the actual water flow rate is calculated based on the actual water output and the set time period, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to update the display in real time based on the water output rate calculated by the actual water flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0048] In one embodiment of the present invention, the control module is further configured to:
[0049] In response to the actual water output m being equal to 0, the reference water output flow rate is kept constant, and the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate Q and the corresponding water output duration.
[0050] In one embodiment of the present invention, the steps for determining the reference effluent flow rate Q in the calculation module are as follows:
[0051] The weight of an object of known weight is obtained by an electronic scale in the water outlet device and used as a standard weight value.
[0052] The actual water discharge time required for the water from the water outlet device to reach the standard weight value is obtained;
[0053] The reference outflow rate Q is determined based on the standard weight value and the actual outflow time.
[0054] In one embodiment of the present invention, when the determining module determines the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M, it includes:
[0055] Obtain the last set time period T and its corresponding actual water output;
[0056] The target water discharge duration = (the target water discharge volume M - the actual water discharge volume corresponding to the last set time period T) / the corrected reference water discharge flow rate Q + the last set time period T;
[0057] In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
[0058] In another embodiment of the present invention, when the determining module determines the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M, it includes:
[0059] The target water discharge duration = the target water discharge volume / the corrected reference water discharge flow rate Q;
[0060] In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
[0061] To achieve the above objectives, a third aspect of the present invention provides an electronic device comprising:
[0062] At least one processor; and
[0063] A memory communicatively connected to the at least one processor; wherein,
[0064] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the control method for the water outlet device described above.
[0065] The electronic device of this invention, through the above-described control method for the water outlet device, corrects the reference water flow rate at least once, determines the target duration based on the corrected reference water flow rate and the target water flow rate, and controls the water outlet device according to the target duration, thereby improving the water outlet accuracy of the water outlet device.
[0066] To achieve the above objectives, a fourth aspect of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the above-described control method for the water outlet device.
[0067] The computer-readable storage medium of this invention, through the above-described control method for the water outlet device, corrects the reference water flow rate at least once, determines the target duration based on the corrected reference water flow rate and the target water flow rate, and controls the water outlet device according to the target duration, thereby improving the water outlet accuracy of the water outlet device.
[0068] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0070] Figure 1 This is a flowchart of a control method for a water outlet device according to an embodiment of the present invention;
[0071] Figure 2 This is a flowchart of a control method for a water outlet device according to an embodiment of the present invention;
[0072] Figure 3 This is a block diagram of the control device of the water outlet equipment according to an embodiment of the present invention. Detailed Implementation
[0073] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0074] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0075] The control method, control device, electronic device, and storage medium of the water outlet equipment according to embodiments of the present invention are described below with reference to the accompanying drawings.
[0076] Before introducing the control method of the water outlet device of the present invention, let's first outline two mainstream control schemes for water outlet devices in the related art:
[0077] The first option is to equip the water outlet with a flow meter.
[0078] After the user sets the target capacity, the water outlet device starts the water pump to begin dispensing water. This scheme calculates the time required for water dispensing by measuring the water volume per revolution of the flow meter and stops dispensing water after the predetermined time is reached. However, this flow meter-based control method has several factors that affect its accuracy:
[0079] a) Changes in water temperature have a significant impact on the density of water. For example, the density of water is 998 ml / L at 20°C, but drops to 960 ml / L at 100°C. This difference results in a deviation of about ±4% under the two operating conditions, which is an error of about ±40 mL.
[0080] b) Assembly errors of internal components of the flow meter, changes in component size at different temperatures, and the accumulation of dirt on the inner wall of the water pipe after long-term use will significantly affect the accuracy of the water output, resulting in a gradual decrease in water output and failing to meet users' expectations for accurate water output.
[0081] The second option is a water dispensing device equipped with an electronic scale.
[0082] After the user sets the target capacity, the water outlet starts the water pump and begins dispensing water, with the water volume reported in real time via an electronic scale. Dispensing stops when the target capacity is reached. However, this scale-based control method also has some obvious problems:
[0083] a) If the user does not start the water dispensing before placing the water cup on the electronic scale, the water dispensing device will control the water dispensing according to the preset time, resulting in a large deviation in the water dispensing volume, which may exceed 30%.
[0084] b) When steam or air is present in the water pipes, causing poor water flow, the water outlet equipment may stop discharging water after about 30% of the set time has elapsed, but the water flow rate at this time is still far below the set target capacity.
[0085] c) Air or steam in the water outlet pipe may also cause unstable water output, resulting in fluctuations and sudden changes in the water volume measured by the electronic scale, affecting the accuracy of the water output and causing a poor user experience.
[0086] d) During normal water dispensing, although the electronic scale can measure the water volume in real time and transmit the data to the control chip, there are time delays and delays in water flow in the pipes. Without conversion processing, these delays will significantly affect the control of water volume, resulting in large deviations in water volume and failing to meet the requirements for accurate water dispensing.
[0087] To address this, the present invention proposes an innovative water outlet equipment control method. By correcting the reference water outlet flow rate at least once, and determining the target duration based on the corrected reference water outlet flow rate and the target water outlet volume, the water outlet equipment is controlled according to the target duration. This improves the water outlet accuracy of the water outlet equipment.
[0088] Figure 1 This is a flowchart of a control method for a water outlet device according to an embodiment of the present invention.
[0089] It should be noted that the water dispensing device in this embodiment of the invention can be a water dispenser, coffee machine, tea machine, etc.
[0090] like Figure 1 As shown, the control method for the water outlet device in this embodiment of the invention includes:
[0091] S1: Upon receiving a start command containing the target water output M, control the water output device to start discharging water.
[0092] S2: Get the set time period T.
[0093] S3: When the water discharge duration t reaches the set time period T, obtain the corresponding actual water discharge volume m, and calculate the expected water discharge volume M' based on the reference water discharge flow rate Q of the water discharge equipment and the set time period T.
[0094] In this embodiment, the reference outflow rate Q is determined through the following steps: First, the weight of a known object, such as a weight, is obtained using an electronic scale and used as the standard weight value m. 标 Then, measure the actual water discharge time t3 required for the water outlet to reach the standard weight value; finally, based on the standard weight value m... 标 Calculate the reference outflow rate Q based on the actual outflow duration t3, where Q = m 标 / t3.
[0095] Before using the water dispensing device, the user places the water container on the receiving tray where the electronic scale of the device is located, and initiates the zeroing procedure to ensure that the electronic scale reading is zero. The user sets the target water volume (e.g., 500ml) via the touchscreen or buttons and issues a start command. The water dispensing device then begins dispensing water and converts the target volume into the target water output (M).
[0096] The water outlet device is set with a time window, such as a set time period T (e.g., 2 seconds), to measure the actual water output after the start of water dispensing. Within the set time period T, the water outlet device records the weight of the actual water output using a built-in electronic scale. When the water dispensing duration t reaches the set time period T1, the corresponding actual water output m is obtained. Based on the reference water flow rate Q of the water outlet device and the set time period T, the expected water output M' is calculated, M' = Q * T.
[0097] S4: Adjust the reference flow rate Q based on the difference between the actual flow rate m and the expected flow rate M'.
[0098] First, determine the expected water output range based on the expected water output M' and the set deviation water output m' (e.g., 3g). The lower limit of the expected water output range is the difference between the expected water output M' and the set deviation water output m', i.e., M'-m', and the upper limit of the expected water output range is the sum of the expected water output M' and the set deviation water output m', i.e., M'+m'.
[0099] Then, it is determined whether the actual water output m falls within the expected water output range.
[0100] If the actual outflow m is less than the lower limit of the expected outflow range, or if the actual outflow is greater than the upper limit of the expected outflow range, then the actual outflow flow rate is calculated based on the actual outflow m and the set time period T, and the reference outflow flow rate Q is corrected to the actual outflow flow rate.
[0101] If the actual outflow m is greater than or equal to the lower limit of the expected outflow range, and the actual outflow m is less than or equal to the upper limit of the expected outflow range, then the reference outflow rate Q remains unchanged.
[0102] S5: Obtain the next set time period, and repeat steps S3 to S5 until there is no next set time period.
[0103] Step S5 is to determine whether there is a next set time period after correcting the reference effluent flow rate Q. If yes, repeat steps S3 to S5; otherwise, proceed to step S6.
[0104] When the actual water output m is less than the lower limit of the expected water output range, the actual water flow rate is calculated based on the actual water output m and the set time period T, and the reference water flow rate Q is corrected to the actual water flow rate. In order to make up for the deficiency of the actual water output m, the display unit of the water output device is controlled to keep displaying the expected water output for a preset time period, such as 0.5s, after the set time period.
[0105] After a preset time period, the control display unit updates the display in real time based on the actual water flow rate and the corresponding water discharge time, until the water discharge time reaches the next set time period.
[0106] or,
[0107] When the actual water output m is greater than or equal to the lower limit of the expected water output range, and the actual water output m is less than or equal to the upper limit of the expected water output range, and the reference water output flow rate Q remains unchanged, the display unit of the water output control device updates the display in real time based on the water output calculated by the reference water output flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0108] or,
[0109] When the actual water output exceeds the upper limit of the expected water output range, the actual water flow rate is calculated based on the actual water output and the set time period. When the reference water flow rate Q is corrected to the actual water flow rate, the display unit of the water output device updates the display in real time based on the water output rate calculated by the actual water flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0110] In one embodiment of the present invention, if the actual water output m equals 0, the reference water output flow rate Q is kept constant, and the display unit of the water output device is controlled to update the display in real time based on the water output flow rate Q and the corresponding water output duration.
[0111] S6: Determine the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M.
[0112] A process for accurately determining the target water discharge duration includes: obtaining the last set time period T and its corresponding actual water discharge volume, the target water discharge duration = (target water discharge volume M - actual water discharge volume corresponding to the last set time period T) / corrected reference water discharge flow rate Q + the last set time period T, and controlling the water discharge equipment to stop discharging water when the total water discharge duration of the water discharge equipment reaches the target water discharge duration, such as by controlling the water discharge equipment to stop discharging water by controlling the water receiving pump of the water discharge equipment to shut down.
[0113] A process for roughly determining the target water discharge time includes: target water discharge time = target water discharge volume / corrected reference water discharge flow rate Q, and controlling the water discharge equipment to stop discharging water when the total water discharge time of the water discharge equipment reaches the target water discharge time.
[0114] Therefore, the control method of the water outlet device of the present invention improves the water outlet accuracy by correcting the reference water outlet flow rate Q at least once, determining the target duration based on the corrected reference water outlet flow rate Q and the target water outlet flow rate, and controlling the water outlet device according to the target duration.
[0115] To further improve the accuracy of the water outlet equipment, the set time period T can include multiple time intervals. In this case, the steps to correct the reference water flow rate Q are as follows:
[0116] Obtain the actual water output for each time interval, and calculate the actual water flow rate for each time interval based on the actual water output for each time interval. Calculate the average water flow rate based on the actual water flow rate. If the sum of the actual water output for each time interval is less than the lower limit of the expected water output range, or if the sum of the actual water output for each time interval is greater than the upper limit of the expected water output range, the reference water flow rate Q is corrected to the average water flow rate.
[0117] To further improve the accuracy of water output from the water outlet equipment, after the first set time period T, the first actual water output duration t11 required for the first set water output M11 and the second actual water output duration t12 required for the second set water output M12 are obtained. The first water output flow rate Q1 is calculated based on the first set water output M11 and the first actual water output duration t11, i.e., Q1 = M11 / t11. The second water output flow rate Q2 is calculated based on the second set water output M12 and the second actual water output duration t12, i.e., Q2 = M12 / t12. The water output duration of the water outlet equipment is further controlled based on the first water output flow rate Q1 and the second water output flow rate Q2.
[0118] In this embodiment, the water discharge time of the water discharge device is further controlled based on the first water discharge flow rate Q1 and the second water discharge flow rate Q2, including the following two cases:
[0119] In the first case, if the first outflow rate Q1 and the second outflow rate Q2 are equal, then the target outflow time t5 required to reach the target outflow rate M is calculated based on the reference outflow rate Q, where t5 = M / Q. Based on the outflow rate Q and the corresponding outflow time, the control display unit continues to update and display the actual outflow rate in real time. When the total outflow time of the water outlet reaches the target outflow time t5, the control of the water outlet stops the outflow.
[0120] In the second scenario, if the first outflow rate Q1 and the second outflow rate Q2 are not equal, the subsequent actual outflow rate is calculated based on the second outflow rate Q2. The display unit is then controlled to continue updating and displaying the actual outflow rate in real time based on the actual outflow rate M1, the first set outflow rate M11, the second set outflow rate M12, and the subsequent actual outflow rate. After that, the outflow rate corresponding to the next two adjacent set outflow rates is compared until the total actual outflow rate of the water outlet reaches the target outflow rate M.
[0121] To enable those skilled in the art to better understand the present invention, the following description is provided in conjunction with... Figure 2 The control method of the water outlet device according to an embodiment of the present invention will be described, such as... Figure 2 As shown, the control method for the water outlet device in this embodiment of the invention includes:
[0122] S101, set the target outflow water volume M.
[0123] S102, the water outlet equipment starts weighing the water before it is discharged and calculates the required discharge time.
[0124] S103, water begins to flow.
[0125] S104, within the first set time period T, the real-time water volume is displayed as Q*t.
[0126] S105, when the first set time period T is reached, compare the increased water volume M1 with Q*T. The comparison result includes three cases: the first case includes steps S106 and S107, the second case includes steps S108 and S109, and the third case includes steps S110 and S111.
[0127] S106, M1 < Q*Tm.
[0128] S107, after a pause in the display for a period of time (e.g., 0.5s), continue displaying by pressing Q1*t. Where Q1 = M1 / T1.
[0129] S108, M1>Q*T+m.
[0130] S109, after a pause in the display for a period of time (e.g., 0.5s), the display will resume when Q2*t is pressed. Where Q2 = M2 / T1.
[0131] S110, Q*Tm≤M1≤Q*T+m.
[0132] S111, continue pressing Q*t to display the water volume.
[0133] S112, complete the first set water output M11, obtain the second actual water output time t11, and calculate Q1. Wherein, Q1=M11 / t11.
[0134] S113, complete the second set water output M12, obtain the second actual water output duration t12, and calculate Q2. Wherein, Q2=M12 / t12.
[0135] S114, compare Q1 and Q2. The comparison result of Q1 and Q2 includes two cases. The first case includes steps S115 and S116, and the second case includes steps S117 to S119.
[0136] S115, Q1 = Q2.
[0137] S116, display the water volume Q*t in the original manner.
[0138] S117, Q1≠Q2.
[0139] S118, displayed as M1+M2+M3+Q2*t4 (t4 is the subsequent water output time).
[0140] S119, and so on: when M1+M2+M3+…=M.
[0141] S120, until the water discharge ends.
[0142] In summary, the control method for a water outlet device according to an embodiment of the present invention executes the following steps: Step S1, after receiving a start command containing a target water output M, the water outlet device is controlled to start discharging water; Step S2, a set time period T is obtained; Step S3, when the water discharging duration t reaches the set time period T, the corresponding actual water output m is obtained, and the expected water output M' is calculated based on the reference water output flow rate Q of the water outlet device and the set time period T; Step S4, the reference water output flow rate Q is corrected based on the difference between the actual water output m and the expected water output M'; Step S5, the next set time period is obtained, and steps S3 to S5 are repeated until there is no next set time period; Step S6, the target water discharging duration is determined based on the corrected reference water output flow rate Q and the target water output M. This method controls the water outlet device by determining the target duration based on the corrected reference water output flow rate and the target water output, thereby improving the water discharging accuracy of the water outlet device.
[0143] Figure 3 This is a block diagram of the control device of the water outlet equipment according to an embodiment of the present invention.
[0144] like Figure 3 As shown, the control device 300 of the water outlet equipment in this embodiment of the invention includes:
[0145] The control module 310 is used to control the water outlet device to start discharging water after receiving a start command containing the target water output M;
[0146] The first acquisition module 320 is used to acquire a set time period T;
[0147] The calculation module 330 is used to obtain the corresponding actual water output m when the water output duration t reaches the set time period T, and to calculate the expected water output M' based on the reference water output flow rate Q of the water output equipment and the set time period T.
[0148] Correction module 340 is used to correct the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M';
[0149] The second acquisition module 350 is used to acquire the next set time period and works in conjunction with the calculation module 330 and the correction module 340 until there is no next set time period.
[0150] The determination module 360 is used to determine the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M.
[0151] In one embodiment of the present invention, when the correction module 340 corrects the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M', it includes:
[0152] Based on the expected water output M' and the set deviation water output, the expected water output range is determined; wherein, the lower limit of the expected water output range is the difference between the expected water output M' and the set deviation water output, and the upper limit of the expected water output range is the sum of the expected water output M' and the set deviation water output.
[0153] Determine whether the actual water output m falls within the expected water output range;
[0154] In response to the actual water output m being less than the lower limit of the expected water output range, or in response to the actual water output being greater than the upper limit of the expected water output range, the actual water output flow rate is calculated based on the actual water output m and the set time period T, and the reference water output flow rate Q is corrected to the actual water output flow rate.
[0155] In response to the actual outflow m being greater than or equal to the lower limit of the expected outflow range and the actual outflow m being less than or equal to the upper limit of the expected outflow range, the reference outflow rate Q is maintained unchanged.
[0156] In one embodiment of the present invention, the control module 310 is further configured to:
[0157] When the actual water output m is less than the lower limit of the expected water output range, the actual water output flow rate is calculated based on the actual water output m and the set time period T, and the reference water output flow rate Q is corrected to the actual water output flow rate. The display unit of the water output device is controlled to keep displaying the expected water output for the preset time period after the set time period.
[0158] After a preset time period, the control display unit updates the display in real time based on the actual water flow rate and the corresponding water discharge time, until the water discharge time reaches the next set time period.
[0159] Alternatively, when the actual water output m is greater than or equal to the lower limit of the expected water output range and the actual water output m is less than or equal to the upper limit of the expected water output range, and the reference water output flow rate Q remains unchanged, the display unit of the water output device controls the water output calculated based on the reference water output flow rate Q and the corresponding water output duration to update the display in real time until the water output time reaches the next set time period.
[0160] Alternatively, when the actual water output exceeds the upper limit of the expected water output range, the actual water flow rate is calculated based on the actual water output and the set time period. The reference water flow rate Q is then corrected to the actual water flow rate. The display unit of the water output device updates the display in real time based on the water output rate calculated by the actual water flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
[0161] In one embodiment of the present invention, the control module 310 is further configured to:
[0162] In response to the actual outflow m being equal to 0, the reference outflow flow rate Q is kept constant, and the display unit of the outflow device is controlled to update the outflow rate in real time based on the reference outflow flow rate Q and the corresponding outflow duration.
[0163] In one embodiment of the present invention, the steps for determining the reference effluent flow rate Q in the calculation module 330 are as follows:
[0164] The weight of an object of known weight is obtained by an electronic scale in the water outlet device and used as a standard weight value.
[0165] Obtain the actual water discharge time required for the water outlet equipment to discharge water to the standard weight value;
[0166] Determine the reference outflow rate Q based on the standard weight value and the actual outflow time.
[0167] In one embodiment of the present invention, when the determining module 360 determines the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M, it includes:
[0168] Obtain the last set time period T and its corresponding actual water output;
[0169] Target water output duration = (Target water output M - Actual water output corresponding to the last set time period T) / Corrected reference water output flow rate Q + Last set time period T;
[0170] When the total water discharge time of the water discharge equipment reaches the target water discharge time, the water discharge equipment is controlled to stop discharging water.
[0171] In another embodiment of the present invention, when the determining module 360 determines the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M, it includes:
[0172] Target water output duration = Target water output / Corrected reference water output flow rate Q;
[0173] When the total water discharge time of the water discharge equipment reaches the target water discharge time, the water discharge equipment is controlled to stop discharging water.
[0174] It should be noted that for details not disclosed in the control device of the water outlet device in the embodiments of the present invention, please refer to the details disclosed in the control method of the water outlet device in the embodiments of the present invention, which will not be repeated here.
[0175] According to an embodiment of the present invention, the control device for a water outlet device, upon receiving a start command containing a target water output M, controls the water outlet device to begin discharging water. A first acquisition module acquires a set time period T. A calculation module acquires the corresponding actual water output m when the water output duration t reaches the set time period T. Based on the reference water output flow rate Q and the set time period T, the expected water output M' is calculated. A correction module corrects the reference water output flow rate Q based on the difference between the actual water output m and the expected water output M'. A second acquisition module acquires the next set time period and works in conjunction with the calculation and correction modules until no next set time period is available. Finally, a determination module determines the target water output duration based on the corrected reference water output flow rate Q and the target water output M. This device controls the water outlet device by determining the target duration based on the corrected reference water output flow rate and the target water output, thereby improving the water output accuracy of the water outlet device.
[0176] Based on the above embodiments, the present invention also proposes an electronic device, comprising:
[0177] At least one processor; and
[0178] A memory communicatively connected to the at least one processor; wherein,
[0179] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the control method for the water outlet device described above.
[0180] The electronic device of this invention, through the above-described control method for the water outlet device, corrects the reference water flow rate at least once, determines the target duration based on the corrected reference water flow rate and the target water flow rate, and controls the water outlet device according to the target duration, thereby improving the water outlet accuracy of the water outlet device.
[0181] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement the above-described control method for the water outlet device.
[0182] The computer-readable storage medium of this invention, through the above-described control method for the water outlet device, corrects the reference water flow rate at least once, determines the target duration based on the corrected reference water flow rate and the target water flow rate, and controls the water outlet device according to the target duration, thereby improving the water outlet accuracy of the water outlet device.
[0183] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0184] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0185] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.
[0186] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0187] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0188] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0189] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0190] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A control method for a water outlet device, characterized in that, include: S1: Upon receiving a start command containing the target water output M, control the water output device to start discharging water; S2: Get the set time period T; S3: When the water discharge duration t reaches the set time period T, obtain the corresponding actual water discharge volume m, and calculate the expected water discharge volume M' based on the reference water discharge flow rate Q of the water discharge device and the set time period T; S4: Based on the difference between the actual water output m and the expected water output M', the reference water output flow rate Q is corrected; S5: Obtain the next set time period, and repeat steps S3 to S5 until there is no next set time period; S6: Determine the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M.
2. The method according to claim 1, characterized in that, The step of correcting the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M' includes: Based on the expected water output M' and the set deviation water output, the expected water output range is determined; wherein, the lower limit of the expected water output range is the difference between the expected water output M' and the set deviation water output, and the upper limit of the expected water output range is the sum of the expected water output M' and the set deviation water output. Determine whether the actual water output m falls within the expected water output range; In response to the actual water output m being less than the lower limit of the expected water output range, or in response to the actual water output being greater than the upper limit of the expected water output range, the actual water output flow rate is calculated based on the actual water output m and the set time period T, and the reference water output flow rate Q is corrected to the actual water output flow rate. In response to the actual water output m being greater than or equal to the lower limit of the expected water output range, and the actual water output m being less than or equal to the upper limit of the expected water output range, the reference water output flow rate Q is maintained unchanged.
3. The method according to claim 2, characterized in that, After correcting the reference effluent flow rate Q, the method further includes: When the actual water output m is less than the lower limit of the expected water output range, the actual water flow rate is calculated based on the actual water output m and the set time period T, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to keep displaying the expected water output for a preset time after the set time period. After the preset time period, the display unit is controlled to update the display in real time based on the actual water flow rate and the corresponding water flow duration, until the water flow time reaches the next set time period. Alternatively, when the actual water output m is greater than or equal to the lower limit of the expected water output range and the actual water output m is less than or equal to the upper limit of the expected water output range, and the reference water output flow rate Q is kept constant, the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate and the corresponding water output duration, until the water output time reaches the next set time period. Alternatively, when the actual water output exceeds the upper limit of the expected water output range, the actual water flow rate is calculated based on the actual water output and the set time period, and the reference water flow rate Q is corrected to the actual water flow rate. Then, the display unit of the water output device is controlled to update the display in real time based on the water output rate calculated by the actual water flow rate and the corresponding water output duration, until the water output time reaches the next set time period.
4. The method according to claim 1, characterized in that, The method further includes: In response to the actual water output m being equal to 0, the reference water output flow rate Q is kept constant, and the display unit of the water output device is controlled to update the display in real time based on the water output calculated by the reference water output flow rate Q and the corresponding water output duration.
5. The method according to claim 1, characterized in that, The steps for determining the reference effluent flow rate Q are as follows: The weight of an object of known weight is obtained by an electronic scale in the water outlet device and used as a standard weight value. The actual water discharge time required for the water from the water outlet device to reach the standard weight value is obtained; The reference outflow rate Q is determined based on the standard weight value and the actual outflow time.
6. The method according to claim 1, characterized in that, The step of determining the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M includes: Obtain the last set time period T and its corresponding actual water output; The target water discharge duration = (the target water discharge volume M - the actual water discharge volume corresponding to the last set time period T) / the corrected reference water discharge flow rate Q + the last set time period T; In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
7. The method according to claim 1, characterized in that, The step of determining the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M includes: The target water discharge duration = the target water discharge volume / the corrected reference water discharge flow rate Q; In response to the total water discharge time of the water discharge device reaching the target water discharge time, the water discharge device is controlled to stop discharging water.
8. A control device for a water outlet equipment, characterized in that, include: The control module is used to control the water outlet device to start discharging water after receiving a start command containing the target water output M; The first acquisition module is used to acquire a set time period T; The calculation module is used to obtain the corresponding actual water output m when the water output duration t reaches the set time period T, and to calculate the expected water output M' based on the reference water output flow rate Q of the water output device and the set time period T. The correction module is used to correct the reference water flow rate Q based on the difference between the actual water flow rate m and the expected water flow rate M'. The second acquisition module is used to acquire the next set time period and work in conjunction with the calculation module and the correction module until there is no next set time period. The determination module is used to determine the target discharge duration based on the corrected reference discharge flow rate Q and the target discharge flow rate M.
9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the control method of the water outlet device according to any one of claims 1-7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the control method of the water outlet device as described in any one of claims 1-7.
Citation Information
Patent Citations
Water outlet control method and device, electronic equipment and water outlet system
CN113907604A
Device for controlling the flow of a liquid and method using said device
US20100280632A1