Tea bar machine water supply detection method based on water pump current
By real-time detection of the water pump current of the tea bar machine and updating the current threshold pair, the problem of misjudgment of water supply detection under abnormal working conditions of the water pump is solved, and the accuracy of the detection and the safety of the water pump are improved.
Patent Information
- Application Number
- CN202411528925.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-11
AI Technical Summary
The existing tea bar machine water supply detection method cannot accurately determine whether there is water in the bucket under abnormal working conditions of the water pump, resulting in misjudgment and inaccuracy of the detection results.
By detecting the pump current in real time and comparing it with the preset current threshold pair, the software is updated to set the current threshold pair to adapt to the abnormal working conditions of the water pump and ensure the accuracy of the detection.
It improves the safety and stability of the water pump operation, ensures the accuracy of water supply inspection, and reduces the risk of dry-burning of the kettle.
Smart Images

Figure CN119412334A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the technical field of tea bar machines, and in particular to a water supply detection method for a tea bar machine based on water pump current. Background Art
[0002] With the vigorous development of the modern home appliance industry, various intelligent and convenient home appliances are becoming more and more popular, greatly enriching people's daily life. Among them, heating products have become an indispensable part of family life because they are closely related to daily diet. Tea bar machines, as electrical equipment specially used to heat water and provide tea for people to drink, are deeply favored by the majority of family users due to their convenience and practicality.
[0003] In the design of tea bar machines, the kettle water extraction function generally relies on a micro DC diaphragm pump, which is responsible for extracting water from the bucket into the kettle for subsequent heating. However, in actual use, when the user activates the water extraction function and there is no water in the bucket, the water pump will enter an idling state. If the system directly switches to the heating program after the set water extraction time, since there is no water in the kettle, it is very easy to cause the safety hazard of dry boiling of the kettle, which may not only damage the equipment, but also pose a safety risk to the user.
[0004] In view of the above problems, there is a significant difference in the current value of the water pump when it is no-load (i.e. no water extraction) and full-load (normal pumping). At present, the current state of the water pump is monitored to indirectly determine whether there is enough water in the bucket. However, in actual applications, due to long-term wear and tear or accidental damage of the water pump, when the tea bar machine water pump is in abnormal working condition, the current characteristics will change significantly, and the use of fixed value thresholds for current detection will result in misjudgment, making it difficult to accurately distinguish between the no-load and full-load states of the water pump, and thus it is impossible to reliably determine whether there is a lack of water in the bucket. Therefore, when detecting the water supply status of the tea bar machine, a fixed current detection threshold is used, which cannot meet the scenario of abnormal working conditions of the water pump, resulting in misjudgment of water supply detection and affecting the accuracy of the detection results. Summary of the invention
[0005] One or more embodiments of the present specification provide a water supply detection method for a tea bar machine based on water pump current, which is used to solve the following technical problems: Currently, when detecting the water supply status of a tea bar machine, a fixed current detection threshold is used, which cannot meet the scenario of abnormal working conditions of the water pump, resulting in misjudgment of the water supply detection and affecting the accuracy of the detection results.
[0006] One or more embodiments of this specification adopt the following technical solutions:
[0007] One or more embodiments of the present specification provide a water supply detection method for a tea bar machine based on water pump current, the method comprising: within the current power-on cycle of the tea bar machine, obtaining a preset software-set current threshold pair under the triggering of a current water intake signal, and determining water pump current detection data of the tea bar machine water pump; based on the water pump current detection data and the software-set current threshold pair, performing abnormal operating condition detection on the tea bar machine water pump to update the software-set current threshold pair, and determining the current current threshold pair corresponding to the tea bar machine water pump, wherein the current threshold pair includes a no-load current threshold and a load current threshold; determining the water pump pumping state of the tea bar machine water pump according to the water pump current detection data and the current current threshold pair to perform water supply detection on the tea bar machine.
[0008] Furthermore, within the current power-on cycle of the tea bar machine, a pre-set software-set current threshold pair is obtained under the triggering of the current water intake signal, specifically including: if the current water intake process corresponding to the current water intake signal is the first water intake within the current power-on cycle, the initial current threshold pair corresponding to the tea bar machine water pump is obtained to determine the software-set current threshold pair; if the current water intake process is not the first water intake within the current power-on cycle, the updated current threshold pair corresponding to the previous water intake process of the current water intake process is obtained to determine the software-set current threshold pair.
[0009] Furthermore, obtaining the initial current threshold pair corresponding to the tea bar machine water pump specifically includes: determining the water pump specification information of the tea bar machine water pump; based on the water pump specification information, determining the initial current threshold pair corresponding to the tea bar machine water pump in a pre-constructed current threshold matching table, wherein the current threshold matching table includes multiple water pump specifications and current threshold pairs corresponding to each of the water pump specifications.
[0010] Furthermore, based on the water pump specification information, before determining the initial current threshold pair corresponding to the tea bar machine water pump in a pre-constructed current threshold matching table, the method also includes: performing current parameter tests on water pumps of various water pump specifications during the operation of the entire machine, and collecting multiple groups of current test data corresponding to each of the water pump specifications, wherein each group of the current test data includes test current data within multiple continuous time periods; determining the water pump emptying time and the water pump load working time based on the test current data within the multiple continuous time periods; obtaining the average value of the test current data within the water pump emptying time, and determining the test no-load current corresponding to each group of the current test data , and obtain the average value of the test current data during the load working time of the water pump, and determine the test load current corresponding to each group of the current test data; based on the test no-load current corresponding to each group of the current test data, perform mean calculation to determine the performance no-load current corresponding to each water pump specification, and based on the test load current corresponding to each group of the current test data, determine the performance load current corresponding to each water pump specification; obtain the current test maximum deviation corresponding to each water pump specification, and determine the current threshold pair corresponding to each water pump specification through the performance no-load current, the performance load current and the current test maximum deviation, so as to generate the current threshold matching table.
[0011] Furthermore, determining the water pump current detection data of the tea bar machine water pump specifically includes: obtaining a reference emptying time corresponding to the emptying capacity of the tea bar machine water pump, and determining the current collection time interval of the tea bar machine water pump based on the reference emptying time; within the current collection time interval, collecting the water pump current of the tea bar machine water pump in each unit time period to obtain multiple real-time water pump current data; performing mean calculation on the multiple real-time water pump current data to determine the water pump current detection data of the tea bar machine water pump.
[0012] Furthermore, based on the reference emptying time, a current collection time interval of the tea bar machine water pump is determined, specifically including: determining a reference deviation time according to the reference emptying time and a preset proportional threshold; and adding the reference deviation time on the basis of the reference emptying time to determine the current collection time interval.
[0013] Furthermore, based on the water pump current detection data and the software-set current threshold pair, the tea bar machine is subjected to abnormal water pump operating condition detection to update the software-set current threshold pair and determine the current current threshold pair corresponding to the tea bar machine water pump, specifically including: when the current difference between the water pump current detection data and the software-set current threshold pair is greater than a preset current deviation threshold, the tea bar machine is judged to be in abnormal water pump operating condition; the number of abnormalities is accumulated in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle; when the cumulative number of abnormalities meets the preset number of abnormalities threshold, the software-set current threshold pair is updated to generate the current current threshold pair corresponding to the tea bar machine water pump, and the number of abnormalities is reset to zero.
[0014] Furthermore, the number of abnormalities is accumulated in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle, specifically including: obtaining historical water pump current detection data corresponding to the said number of abnormalities; determining the current data availability of the water pump current detection data based on the historical water pump current detection data; when the water pump current detection data is available data, the number of abnormalities is accumulated in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle.
[0015] Furthermore, based on the historical water pump current detection data, the current data availability of the water pump current detection data is determined, specifically including: determining a data deviation between the water pump current detection data and the historical water pump current detection data, and when the data deviation is not greater than a preset deviation threshold, determining that the water pump current detection data is available data.
[0016] Furthermore, based on the water pump current detection data and the current current threshold pair, the water pump pumping state of the tea bar machine water pump is determined, specifically including: when the water pump current detection data is less than the current no-load current threshold in the current current threshold pair, it is determined that the tea bar machine water pump is in an empty pumping state, and an empty pumping warning is sent.
[0017] At least one of the above-mentioned technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: through the above-mentioned technical solution, by real-time detection of the water pump current and comparing it with the preset current threshold pair, the abnormal operating conditions of the water pump, such as overload, stall, etc., can be discovered in time, so as to avoid damage to the water pump due to long-term abnormal operation, thereby improving the safety and stability of the water pump operation; at the same time, in the case of abnormal operating conditions, updating the current threshold pair can adapt to changes in the water pump performance and ensure the accuracy of detection; when the tea bar machine water pump has an abnormal operating condition, the water pump empty pumping judgment threshold in the software is adaptively adjusted, so as to accurately judge whether there is water in the bucket to reduce the risk of dry boiling of the kettle, and improve the accuracy of water pumping detection through adaptive adjustment of the judgment threshold pair. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0019] Figure 1 A flow chart of a method for detecting water supply of a tea bar machine based on water pump current provided in an embodiment of this specification. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0021] The embodiment of this specification provides a method for detecting water supply of a tea bar machine based on water pump current. It should be noted that the execution subject in the embodiment of this specification can be a server or any device with data processing capabilities. Figure 1 A flow chart of a method for detecting water supply of a tea bar machine based on water pump current provided in an embodiment of this specification is shown as follows: Figure 1 As shown, it mainly includes the following steps:
[0022] Step S101, in the current power-on cycle of the tea bar machine, a preset software-set current threshold pair is obtained under the triggering of the current water intake signal, and the water pump current detection data of the tea bar machine water pump is determined.
[0023] In one embodiment of the present specification, after the tea bar machine is powered on, it will enter a power-on cycle, which usually starts from the power on and ends when the power is disconnected. In the current power-on cycle, the tea bar machine will be initialized and load the preset parameters and configurations. The loading parameters here mainly include the current threshold pair set by the software, that is, the software set current threshold pair. The current water extraction signal refers to the user sending a water extraction request through the operation interface of the tea bar machine (such as buttons, touch screen, etc.). At this time, the control system of the tea bar machine will receive a water extraction signal, which is used to trigger a series of actions of the tea bar machine, including starting the water pump to extract water.
[0024] After receiving the water extraction signal, the tea bar machine control system reads the pre-set software-set current threshold pair from the memory, where the software-set current threshold pair includes the software-set no-load current threshold and the software-set load current threshold. After the water pump is started, the tea bar machine control system detects the current data of the water pump, which can be achieved by connecting the current sensor in the water pump circuit, which can convert the current into an electrical signal for the control system to read.
[0025] During the current power-on cycle of the tea bar machine, a pre-set software-set current threshold pair is obtained under the triggering of the current water intake signal, specifically including: if the current water intake process corresponding to the current water intake signal is the first water intake in the current power-on cycle, the initial current threshold pair corresponding to the water pump of the tea bar machine is obtained to determine the software-set current threshold pair; if the current water intake process is not the first water intake in the current power-on cycle, the updated current threshold pair corresponding to the previous water intake process of the current water intake process is obtained to determine the software-set current threshold pair.
[0026] In one embodiment of the present specification, when the tea bar machine receives a water extraction signal, it first determines whether the current water extraction signal is the first water extraction process in the current power-on cycle. If it is the first water extraction process, the preset initial current threshold pair is used as the basis for judging the state of the water pump. In the case of the first water extraction process, the preset initial current threshold pair can be read from the pre-set memory. The initial threshold pair here is set based on the performance parameters of the water pump under standard conditions and the specification provided by the manufacturer. If it is not the first water extraction, that is, at least one water extraction process has been completed in the power-on cycle, then the current threshold pair updated and saved at the end of the previous water extraction process is obtained. In the case of a non-first water extraction process, the updated current threshold pair dynamically adjusted and saved in the previous water extraction process is retrieved by accessing the internal database or cache. The update here is not limited to the change in the value of the threshold pair, that is, the updated current threshold pair can be the initial current threshold pair corresponding to the case where the performance of the water pump has not changed, or it can be the current threshold pair reset after reflecting the performance change of the water pump due to wear, environmental changes or changes in water supply conditions. For example, if there is no need to adjust the threshold pair, the update at this time is updated by the corresponding initial current threshold pair. According to the type of the current water extraction process (first time or non-first time), the corresponding current threshold pair is determined as the software-set current threshold pair, which is used to detect the current data of the water pump in real time during the subsequent water extraction process, and judge whether the working status of the water pump is normal according to the preset logical rules.
[0027] Through the above technical scheme, by dynamically selecting and adjusting the current threshold pair, the current characteristics of the water pump under different working conditions can be more accurately reflected, thereby improving the accuracy of detection, avoiding false alarms or missed alarms due to changes in water pump performance or changes in water supply conditions, and improving the reliability of the system; the current threshold pair is updated according to the real-time detection data of the previous water extraction process, thereby enhancing the system's adaptability to changes in water pump performance, and can better cope with the influence of external factors such as water pump wear, ambient temperature changes, and water quality changes, and maintain the stability and continuity of water extraction; by real-time detection of the water pump's current data and adjusting it as needed, it is possible to promptly discover and take measures to prevent abnormal situations such as water pump overload or dry burning, reduce water pump wear and failure rate, thereby extending the service life of the water pump and reducing maintenance and replacement costs.
[0028] Obtaining the initial current threshold pair corresponding to the water pump of the tea bar machine specifically includes: determining the water pump specification information of the tea bar machine water pump; based on the water pump specification information, determining the initial current threshold pair corresponding to the tea bar machine water pump in a pre-constructed current threshold matching table, wherein the current threshold matching table includes multiple water pump specifications and current threshold pairs corresponding to each water pump specification.
[0029] In one embodiment of the present specification, it is first necessary to obtain the pump specification information of the water pump used by the current tea bar machine. The pump specification information generally includes the model, rated power, rated voltage, rated current, maximum head, maximum flow and other key parameters of the water pump, which can be obtained from the product manual, technical specification table or product label provided by the manufacturer of the water pump. Accurate pump specification information is the basis for subsequent matching of current threshold pairs, ensuring that the selected threshold pair matches the actual performance of the water pump. A current threshold matching table is pre-constructed, including multiple pump specifications (such as different models, power and other distinguishing marks) and current threshold pairs corresponding to each specification. The current threshold pair generally includes a no-load current threshold and a load current threshold, which is used to determine whether the water pump is in normal working condition. After obtaining the current threshold matching table, according to the specification information of the tea bar machine water pump, the corresponding initial current threshold pair is searched and determined in the table. By comparing the pump specification information with the entries in the matching table, the most matching pump specification is found, and then the current threshold pair corresponding to the specification is read. The determined initial current threshold pair will be used for the first water intake process of the tea bar machine water pump as a benchmark for judging the state of the water pump.
[0030] Based on the water pump specification information, before determining the initial current threshold pair corresponding to the tea bar machine water pump in a pre-constructed current threshold matching table, the method also includes: performing current parameter tests on water pumps of various water pump specifications during the operation of the whole machine, collecting multiple groups of current test data corresponding to each water pump specification, wherein each group of the current test data includes test current data within multiple continuous time periods; determining the water pump emptying time and the water pump load working time according to the test current data within the multiple continuous time periods; obtaining the average value of the test current data within the water pump emptying time, and determining the test no-load current corresponding to each group of the current test data, And obtain the average value of the test current data during the load working time of the water pump, and determine the test load current corresponding to each group of the current test data; based on the test no-load current corresponding to each group of the current test data, perform mean calculation to determine the performance no-load current corresponding to each specification of the water pump, and based on the test load current corresponding to each group of the current test data, determine the performance load current corresponding to each specification of the water pump; obtain the current test maximum deviation corresponding to each specification of the water pump, and determine the current threshold pair corresponding to each specification of the water pump through the performance no-load current, the performance load current and the current test maximum deviation, so as to generate the current threshold matching table.
[0031] In one embodiment of the present specification, the current threshold matching table can be constructed by experimental testing to determine the types of water pump specifications that need to be tested. For each water pump specification, the current parameter test is performed during the operation of the whole machine. The water pump starts and the timing starts at the same time, and multiple sets of current test data corresponding to each water pump specification are collected, and each set of data includes test current data in multiple continuous time periods. When testing the tea bar machine water pump of each water pump specification, multiple tests are required, and the multiple sets of current test data corresponding to each water pump specification are the current test data of each test corresponding to each water pump specification.
[0032] It should be noted that each water pump has different performance, and the difference in water pump performance will lead to inconsistent emptying time. When the detection current suddenly increases, it can be considered that the water circuit has been emptied and the water pump has entered the loaded condition. Therefore, based on the test current data in multiple continuous time periods, if the current change of the test current in the continuous time period is less than the preset acquisition error, the duration corresponding to this continuous time period is determined as the water pump emptying duration T1. In order to avoid test errors in duration data, the water pump emptying duration corresponding to each water pump specification can be obtained by taking the average value after multiple acquisitions; when a sudden increase in current is detected, that is, when the current change is much larger than the acquisition error, it is considered that the water pump has entered the loaded condition until the water pump stops working. The duration corresponding to this continuous time period is the water pump loaded working duration T2.
[0033] The current is detected once per second during the emptying time of the water pump, and the current is accumulated. The average value of the test current data during the emptying time of the water pump is calculated by the ratio of the accumulated value to the emptying time of the water pump, and the test no-load current corresponding to each set of current test data is determined. In the same way, the current data is collected once per second during the loaded working time of the water pump, and the current is accumulated during the loaded working time of the water pump. The average value of the test current data is calculated by the ratio of the accumulated value to the loaded working time of the water pump, and the test load current corresponding to each set of the current test data is determined.
[0034] It should be noted that when testing the tea bar machine water pump of each water pump specification, multiple tests are required. For multiple tests of each water pump specification, a set of data can be obtained for each test, namely, the test no-load current and the test load current. The average value of multiple tests is taken as the test data pair for each water pump specification, that is, based on the test no-load current corresponding to each set of the current test data, the mean calculation is performed to determine the performance no-load current corresponding to each water pump specification, and based on the test load current corresponding to each set of the current test data, the performance load current corresponding to each water pump specification is determined.
[0035] In addition, when obtaining the maximum deviation of the current test, it can be achieved in the following way: determine the corresponding maximum test current data in the multiple test results, where the maximum test current data includes the no-load maximum value of the corresponding performance no-load current in the multiple tests, and the no-load maximum value in the performance load current. The maximum deviation of the current test is generated by the difference between the maximum test current data and the average value of the multiple test currents (the no-load current and the load current in the test data pair), where the maximum deviation of the current test includes the no-load current deviation and the load current deviation, and the maximum value of the two current deviations is taken to determine the maximum deviation of the current test. In one embodiment of the present specification, the maximum deviation of the current test is 20mA. The current threshold pair corresponding to each water pump specification is determined by the performance load current, the performance load current and the current test maximum deviation 20mA, and the sum of the performance no-load current and the current test maximum deviation 20mA is determined as the no-load current threshold D1, and the difference between the performance load current and the current test maximum deviation 20mA is determined as the load current threshold D2. By adding the performance no-load current to a certain deviation value (20mA), the D1 value obtained can more accurately reflect the current upper limit of the water pump in the no-load state, which helps to detect whether the water pump is in an abnormal no-load state in time, thereby avoiding damage to the water pump due to long-term idling; subtracting the performance load current from a certain deviation value (20mA) to obtain the D2 value can more accurately set the current lower limit of the water pump under normal working load, which helps to detect the insufficient or overloaded water pump load capacity in time, and ensure that the water pump operates within a safe current range. The current threshold matching table is generated based on the current threshold pairs corresponding to each water pump specification.
[0036] Through the above technical scheme, by collecting multiple groups of current test data of various water pump specifications during the operation of the whole machine, and determining the performance no-load current, performance load current and current test maximum deviation based on these data, the current threshold pair corresponding to each water pump specification can be determined more accurately, which is helpful to more accurately monitor the current status of the water pump in actual operation and detect abnormal conditions in time; because the current threshold pair is based on a large amount of measured data, it has higher reliability, reduces the risk of downtime due to false alarm or missed alarm, and improves the continuity and stability of water pump operation.
[0037] Determine the water pump current detection data of the tea bar machine water pump, specifically including: obtaining a reference emptying time corresponding to the emptying capacity of the tea bar machine water pump, and determining the current collection time interval of the tea bar machine water pump based on the reference emptying time; within the current collection time interval, collect the water pump current of the tea bar machine water pump in each unit time period, and obtain multiple real-time water pump current data; perform mean calculation on the multiple real-time water pump current data to determine the water pump current detection data of the tea bar machine water pump.
[0038] In one embodiment of the specification, during the actual operation of the tea bar machine, the water pump current detection data of the tea bar machine water pump is determined. In order to avoid the result error that may exist when using a single acquisition result, in this embodiment, the current average value of the current acquisition time interval is used for calculation. The current acquisition time interval should cover most of the time from the start-up to the emptying of the water pump to ensure that the current changes of the water pump under different working conditions can be captured.
[0039] Since the emptying capacity of water pumps of different specifications is different, the corresponding reference emptying time is different. Therefore, the corresponding current collection time interval can be set in combination with the reference emptying time corresponding to the emptying capacity of the water pump of the tea bar machine. Based on the reference emptying time, the current collection time interval of the water pump of the tea bar machine is determined, specifically including: determining the reference deviation time according to the reference emptying time and the preset proportional threshold; based on the reference emptying time, adding the reference deviation time to determine the current collection time interval.
[0040] In one embodiment of the present specification, the reference emptying time can be obtained through the test process corresponding to the current threshold matching table, or by consulting the technical documents to obtain the time required for the tea bar machine water pump to be completely emptied under specific conditions (such as ambient temperature, power supply voltage, etc.). A proportional threshold is preset to determine the reference deviation time. The proportional threshold can be adjusted according to the actual situation. It is usually a positive number less than 1 (such as 0.1, 0.2, etc.), indicating a certain proportion of the reference emptying time. In general, the proportional threshold is usually set to 0.2. The formula "reference deviation time = reference emptying time × proportional threshold" is used to calculate the reference deviation time, which is used to consider the uncertainty factors in the emptying process of the water pump (such as changes in water flow velocity, fluctuations in power supply voltage, etc.) to ensure that the current acquisition time interval can cover the entire process of emptying the water pump. On the basis of the reference emptying time, the reference deviation time is added to obtain the current acquisition time interval. That is, "current acquisition time interval = reference emptying time + reference deviation time", this interval should be long enough to capture the current changes in the entire process from starting to emptying the water pump. By introducing the reference deviation duration, it can be ensured that the current acquisition time interval can cover the entire process of water pump emptying, including possible delays or accelerated emptying, thereby improving the integrity and accuracy of current data acquisition; based on complete current data acquisition, the current changes of the water pump under different working conditions can be analyzed more accurately, thereby more reliably evaluating the performance and health of the water pump.
[0041] In one embodiment of the present specification, within the set current collection time interval, the water pump current of the tea bar machine water pump is collected in each unit time period (such as seconds), that is, the real-time water pump current data of the water pump is collected once per second. Through continuous collection, multiple real-time water pump current data can be obtained to reflect the current state of the water pump at different time points. The multiple real-time water pump current data collected are averaged to obtain water pump current detection data.
[0042] Through the above technical scheme, by obtaining the reference emptying time corresponding to the emptying capacity of the tea bar machine water pump, it can be ensured that the current collection time interval can cover the entire process from starting to emptying the water pump, thereby avoiding missing key data. Within the current collection time interval, the water pump current data is collected in each unit time period to ensure the continuity and real-time nature of the data; the average calculation of multiple real-time water pump current data can eliminate the influence of instantaneous fluctuations and obtain more stable and reliable water pump current detection data.
[0043] Step S102, based on the water pump current detection data and the software set current threshold pair, the abnormal working condition of the water pump of the tea bar machine is detected to update the software set current threshold pair and determine the current current threshold pair corresponding to the water pump of the tea bar machine.
[0044] The current threshold pair includes a no-load current threshold and a load current threshold.
[0045] In one embodiment of the present specification, the current data of the water pump of the tea bar machine is monitored in real time and compared with the preset current threshold pair (no-load current threshold and load current threshold) to detect abnormal working conditions of the water pump. Once an abnormality is found, the current threshold pair in the software will be automatically updated to adapt to the current working state of the water pump to ensure the stable operation of the tea bar machine.
[0046] Based on the water pump current detection data and the current threshold pair set by the software, the water pump abnormal operating condition of the tea bar machine is detected to update the current threshold pair set by the software and determine the current threshold pair corresponding to the water pump of the tea bar machine, specifically including: when the current difference between the water pump current detection data and the current threshold pair set by the software is greater than the preset current deviation threshold, the tea bar machine is judged to be in an abnormal water pump operating condition; the number of abnormalities is accumulated in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle; when the cumulative number of abnormalities meets the preset number of abnormalities threshold, the current threshold pair set by the software is updated to generate the current threshold pair corresponding to the water pump of the tea bar machine, and the number of abnormalities is reset to zero.
[0047] After the water pump is powered on for the first time, after the current threshold pair is obtained based on the current detection, the water pump current may differ from the initial current during the subsequent use of the machine due to external reasons, such as reduced water pump performance and water channel sealing. Therefore, the difference between the water pump current detection data and the initial current threshold pair related to the water pump performance can be used to determine abnormal working conditions.
[0048] In one embodiment of the present specification, if the current difference between the water pump current detection data and the current threshold pair set by the software is not greater than the preset current deviation threshold, it means that no abnormal operating condition has occurred, that is, the water pump performance has not changed. At this time, the threshold pair is updated again, and the corresponding current threshold pair remains unchanged, that is, the current current threshold pair is the current threshold pair of the tea bar machine water pump in the previous water extraction cycle, which may be the initial current threshold pair or the updated current threshold pair after the update.
[0049] In one embodiment of the present specification, if the current difference between the water pump current detection data and the software-set current threshold pair is greater than the preset current deviation threshold, the current operating condition of the tea bar machine is determined to be an abnormal water pump operating condition. It should be noted that the current deviation threshold here can be obtained through experimental results, for example, it can be set to 20mA, and when making an abnormal operating condition judgment, the software-set current threshold pair used is the initial current threshold pair in the unupdated state, that is, the current threshold pair related to the water pump performance. The absolute value of the difference between the water pump current detection data and the no-load current threshold in the software-set current threshold, and the absolute value of the difference between the water pump current detection data and the load current threshold in the software-set current threshold are calculated respectively. If any one of the current differences in the two difference values is greater than the current deviation threshold, it is determined to be an abnormal operating condition.
[0050] Accumulating the number of abnormalities in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle, specifically including: obtaining historical water pump current detection data corresponding to the number of abnormalities; determining the current data availability of the water pump current detection data based on the historical water pump current detection data; when the water pump current detection data is available data, accumulating the number of abnormalities in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle.
[0051] In one embodiment of the present specification, after determining an abnormal operating condition, the number of abnormalities recorded before is determined, and the historical water pump current detection data corresponding to the historical abnormal number other than the abnormal operating condition is obtained. Based on the historical water pump current detection data, the current data availability of the water pump current detection data is determined to eliminate the current data errors caused by accidental factors or acquisition error factors, and ensure the data availability of the water pump current detection data corresponding to the current abnormal operating condition. When the water pump current detection data is available data, the number of abnormalities is accumulated in the pre-recorded number of abnormalities, and the number of abnormalities is superimposed once to determine the cumulative number of abnormalities corresponding to the current water extraction cycle.
[0052] Based on the historical water pump current detection data, the current data availability of the water pump current detection data is determined, specifically including: determining a data deviation between the water pump current detection data and the historical water pump current detection data, and when the data deviation is not greater than a preset deviation threshold, determining that the water pump current detection data is available data.
[0053] In one embodiment of the present specification, when determining the current data availability of the water pump current detection data, a judgment can be made based on the data deviation between the water pump current detection data and the historical water pump current detection data. When the data deviation is not greater than a preset deviation threshold, the water pump current detection data is determined to be available data. The preset deviation threshold here can be set to 20mA. For example, the water pump current detection data corresponding to three abnormal times are 145, 150, and 155, respectively, and the maximum data deviation is 10mA, which is within the preset deviation threshold 20. Therefore, 155 corresponding to the current abnormal number is determined to be available data, and the current abnormal number is superimposed. For another example, the water pump current detection data corresponding to three abnormal times are 145, 150, and 195, respectively, and the data deviation between 195 and 145 is the maximum data deviation, which is 50mA, which is much greater than the preset deviation threshold 20. Therefore, 195 corresponding to the current abnormal number is unavailable data, and the abnormal number is skipped without superimposing the abnormal number.
[0054] In one embodiment of the present specification, when the cumulative number of abnormalities meets the preset number of abnormalities threshold, which is generally set to 3 times, the current threshold pair set by the software is updated to generate the current threshold pair corresponding to the water pump of the tea bar machine, and the number of times is reset to zero in the number of abnormalities. When updating the current threshold pair, it is possible to test the no-load current value and the load current value. Assuming that the measured no-load current value measured in the life decay water pump is 470mA and the measured load current value is 610mA, the current no-load current threshold in the recalibrated water pump threshold is 470mA+20mA=490mA; the current load current threshold is 610mA+20mA=630mA. In addition, after the current threshold pair set by the software is updated, the number of times is reset to zero in the number of abnormalities to ensure that each update is based on multiple abnormal judgment results, avoid the influence of accidental factors, and ensure the accuracy of the threshold pair update.
[0055] Correspondingly, if the cumulative number of abnormalities is less than the preset abnormality threshold, the corresponding current current threshold pair remains unchanged, that is, the current current threshold pair is the current threshold pair corresponding to the previous water intake process of the tea bar machine water pump. When judging the pumping status of the water pump in this water intake process, if it is not updated, the current threshold pair corresponding to the previous water intake process is used for comparison and judgment.
[0056] Step S103, determining the pumping state of the water pump of the tea bar machine according to the water pump current detection data and the current current threshold value, so as to perform water supply detection on the tea bar machine.
[0057] According to the water pump current detection data and the current current threshold pair, the water pump pumping state of the tea bar machine water pump is determined, specifically including: when the water pump current detection data is less than the current no-load current threshold in the current current threshold pair, it is determined that the tea bar machine water pump is in the no-pumping state, and an no-pumping warning is sent.
[0058] In one embodiment of the present specification, when the water pump current detection data is less than the current no-load current threshold in the current current threshold pair, the water pump of the tea bar machine is determined to be in an empty pumping state, and an empty pumping warning is sent, and an alarm is issued through the tea bar machine display screen to remind the user that there is no water in the bucket; if the water pump current detection data is greater than the current loaded current threshold in the current current threshold pair, the water pump is considered to be in a loaded state and the tea bar machine is operating normally. In the embodiment of the present specification, the water pump current detection data is the average current data within the current acquisition time interval, and there is no situation where it is greater than the no-load current threshold and less than the loaded current threshold.
[0059] In addition, the above execution process is based on a power-on cycle. If a power outage occurs during use, the corresponding software sets the initial state of the current threshold pair to be the initial current threshold pair related to the water pump performance.
[0060] Through the above technical scheme, by real-time detection of the water pump current and comparing it with the preset current threshold pair, abnormal operating conditions of the water pump, such as overload, stall, etc., can be discovered in time to avoid damage to the water pump due to long-term abnormal operation, thereby improving the safety and stability of the water pump operation; at the same time, in the case of abnormal operating conditions, updating the current threshold pair can adapt to changes in the water pump performance to ensure the accuracy of detection; when the tea bar machine water pump has an abnormal operating condition, the water pump empty pumping judgment threshold in the software is adaptively adjusted to accurately determine whether there is water in the bucket to reduce the risk of dry boiling of the kettle, and the accuracy of water pumping detection is improved through adaptive adjustment of the judgment threshold pair.
[0061] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0062] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0063] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0064] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0065] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0066] Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media. Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0067] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0068] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A method for detecting water supply of a tea bar machine based on water pump current, characterized in that: The method comprises: During the current power-on cycle of the tea bar machine, a preset software-set current threshold pair is obtained under the triggering of the current water extraction signal, and water pump current detection data of the water pump of the tea bar machine is determined; Based on the water pump current detection data and the software-set current threshold pair, the water pump abnormal working condition detection is performed on the tea bar machine to update the software-set current threshold pair and determine the current threshold pair corresponding to the water pump of the tea bar machine, wherein the current threshold pair includes a no-load current threshold and a load current threshold; According to the water pump current detection data and the current current threshold pair, the water pumping state of the tea bar machine water pump is determined to perform water supply detection on the tea bar machine.
2. A method for detecting water supply of a tea bar machine based on water pump current according to claim 1, characterized in that: In the current power-on cycle of the tea bar machine, a preset software-set current threshold pair is obtained under the triggering of the current water extraction signal, specifically including: If the current water extraction process corresponding to the current water extraction signal is the first water extraction in the current power-on cycle, the initial current threshold pair corresponding to the water pump of the tea bar machine is obtained to determine the software set current threshold pair; If the current water extraction process is not the first water extraction in the current power-on cycle, an updated current threshold pair corresponding to a previous water extraction process of the current water extraction process is obtained to determine the software-set current threshold pair.
3. A method for detecting water supply of a tea bar machine based on water pump current according to claim 2, characterized in that: Obtaining the initial current threshold pair corresponding to the water pump of the tea bar machine, specifically including: Determine the water pump specification information of the tea bar machine water pump; Based on the water pump specification information, an initial current threshold pair corresponding to the tea bar machine water pump is determined in a pre-constructed current threshold matching table, wherein the current threshold matching table includes multiple water pump specifications and current threshold pairs corresponding to each water pump specification.
4. A method for detecting water supply of a tea bar machine based on water pump current according to claim 3, characterized in that: Based on the water pump specification information, before determining the initial current threshold pair corresponding to the tea bar machine water pump in a pre-constructed current threshold matching table, the method further includes: Conducting current parameter tests on water pumps of various water pump specifications during the operation of the whole machine, and collecting multiple groups of current test data corresponding to each water pump specification, wherein each group of current test data includes test current data in multiple continuous time periods; Determine the draining time of the water pump and the working time of the water pump under load according to the test current data in the plurality of continuous time periods; Obtain the average value of the test current data during the emptying time of the water pump, determine the test no-load current corresponding to each group of the current test data, and obtain the average value of the test current data during the loaded working time of the water pump, determine the test loaded current corresponding to each group of the current test data; Based on the test no-load current corresponding to each group of the current test data, perform mean calculation to determine the performance no-load current corresponding to each water pump specification, and based on the test load current corresponding to each group of the current test data, determine the performance load current corresponding to each water pump specification; The maximum deviation of the current test corresponding to each water pump specification is obtained, and the current threshold pair corresponding to each water pump specification is determined through the performance no-load current, the performance load current and the maximum deviation of the current test to generate the current threshold matching table.
5. A method for detecting water supply of a tea bar machine based on water pump current according to claim 1, characterized in that: Determine the water pump current detection data of the tea bar machine water pump, including: Obtaining a reference emptying time corresponding to the emptying capacity of the water pump of the tea bar machine, so as to determine a current collection time interval of the water pump of the tea bar machine based on the reference emptying time; In the current collection time interval, the water pump current of the tea bar machine water pump is collected in each unit time period to obtain a plurality of real-time water pump current data; The plurality of real-time water pump current data are averaged to determine the water pump current detection data of the tea bar machine water pump.
6. A method for detecting water supply of a tea bar machine based on water pump current according to claim 5, characterized in that: Based on the reference emptying time, determining the current collection time interval of the tea bar machine water pump specifically includes: Determining a reference deviation duration according to the reference emptying duration and a preset ratio threshold; The reference deviation duration is added to the reference emptying duration to determine the current acquisition time interval.
7. A method for detecting water supply of a tea bar machine based on water pump current according to claim 1, characterized in that: Based on the water pump current detection data and the software set current threshold pair, the abnormal working condition of the water pump of the tea bar machine is detected to update the software set current threshold pair, and determine the current current threshold pair corresponding to the water pump of the tea bar machine, specifically including: When the current difference between the water pump current detection data and the current threshold value set by the software is greater than the preset current deviation threshold, it is determined that the water pump of the tea bar machine is in an abnormal working condition; Accumulate the number of abnormalities in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water extraction cycle; When the accumulated number of abnormalities meets the preset abnormality threshold, the software set current threshold pair is updated, the current threshold pair corresponding to the tea bar machine water pump is generated, and the number of abnormalities is reset.
8. A method for detecting water supply of a tea bar machine based on water pump current according to claim 7, characterized in that: Accumulating the number of abnormalities in the pre-recorded number of abnormalities to determine the cumulative number of abnormalities corresponding to the current water intake cycle, specifically including: obtaining historical water pump current detection data corresponding to the number of abnormalities; Determining the current data availability of the water pump current detection data according to the historical water pump current detection data; When the water pump current detection data is available data, the number of abnormalities is accumulated in the pre-recorded number of abnormalities to determine the accumulated number of abnormalities corresponding to the current water intake cycle.
9. A method for detecting water supply of a tea bar machine based on water pump current according to claim 8, characterized in that: Determining the current data availability of the water pump current detection data according to the historical water pump current detection data specifically includes: A data deviation between the water pump current detection data and the historical water pump current detection data is determined, and when the data deviation is not greater than a preset deviation threshold, the water pump current detection data is determined to be usable data.
10. A method for detecting water supply of a tea bar machine based on water pump current according to claim 1, characterized in that: Determining the water pumping state of the tea bar machine water pump according to the water pump current detection data and the current current threshold value pair specifically includes: When the water pump current detection data is less than the current no-load current threshold in the current current threshold pair, it is determined that the tea bar machine water pump is in an empty pumping state, and an empty pumping warning is sent.