Liquid level detection method and device, storage medium and kettle

文档序号:519335 发布日期:2021-06-01 浏览:15次 中文

阅读说明:本技术 一种液位检测方法、装置、存储介质及水壶 (Liquid level detection method and device, storage medium and kettle ) 是由 徐明燕 郑丰周 敬仕林 李俊锴 于 2021-01-12 设计创作,主要内容包括:本发明公开了一种液位检测方法、装置、存储介质及水壶,其中液位检测方法包括:根据当前液位电压判断在检测周期内的电压突变值是否满足调整条件;若液位电压突变值满足调整条件,则根据当前的液位电压调整对应的电压阈值;根据电压阈值,判断液位状态。本发明所述液位检测方法,能够根据检测周期内的电压突变值动态调节低水位和满水位的水位电压阀值,保证无论环境水质如何变化,都能准确的检测水位,并且不增加任何成本。(The invention discloses a liquid level detection method, a liquid level detection device, a storage medium and a kettle, wherein the liquid level detection method comprises the following steps: judging whether the voltage sudden change value in the detection period meets the adjustment condition or not according to the current liquid level voltage; if the liquid level voltage sudden change value meets the adjustment condition, adjusting a corresponding voltage threshold value according to the current liquid level voltage; and judging the liquid level state according to the voltage threshold value. The liquid level detection method can dynamically adjust the water level voltage thresholds of the low water level and the full water level according to the voltage sudden change value in the detection period, ensure that the water level can be accurately detected no matter how the environmental water quality changes, and does not increase any cost.)

1. A liquid level detection method, comprising:

judging whether the voltage sudden change value in the detection period meets the adjustment condition or not according to the current liquid level voltage;

if the liquid level voltage sudden change value meets the adjustment condition, adjusting a corresponding voltage threshold value according to the current liquid level voltage;

and judging the liquid level state according to the voltage threshold value.

2. The method of claim 1, wherein determining the fluid level condition comprises:

acquiring current liquid level voltage;

comparing the current liquid level voltage with the current voltage threshold;

and judging the liquid level state according to the comparison result.

3. The method of claim 2,

when the liquid level voltage is greater than or equal to the voltage threshold value, judging that water exists;

and when the liquid level voltage is smaller than the voltage threshold, judging that water is deficient, and adding water.

4. The method of claim 3, further comprising:

in the water adding process, the voltage threshold is adjusted to be a virtual threshold which is always greater than the liquid level voltage;

and when the voltage mutation value meets the adjustment condition, adjusting the corresponding voltage threshold according to the current liquid level voltage.

5. The method of claim 3, further comprising:

at least two liquid level detection points are arranged from low to high;

and (4) independently judging the liquid level state at each liquid level detection point.

6. The method of claim 5, wherein determining the fluid level condition further comprises:

and when the liquid level detection point at the lower position judges that water is short and the liquid level detection point at the higher position judges that water is available, performing abnormity alarm.

7. The method of claim 6, wherein determining the fluid level condition further comprises:

and in the water adding process, if the liquid level voltage mutation value detected by the liquid level probe meets the adjustment condition, the alarm is cancelled.

8. A liquid level detection device, comprising:

the judging module is used for judging whether the voltage mutation value in the detection period meets the adjusting condition or not according to the current liquid level voltage;

the control module is used for adjusting a corresponding voltage threshold according to the current liquid level voltage when the judgment module judges that the liquid level voltage mutation value meets the adjustment condition;

and the detection module is used for judging the liquid level state according to the voltage threshold value.

9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.

10. A water kettle comprises a controller and a water level probe, wherein the water level probe is used for detecting the water level voltage in the water kettle; the controller comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the method according to any of claims 1-7.

Technical Field

The invention belongs to the field of liquid level monitoring, and particularly relates to a liquid level detection method and device, a storage medium and a kettle.

Background

The water level detection scheme of the electric kettle at present sets up high low water level probe at the kettle wall, and when the kettle wall had the drop of water, when adding water the in-process, the drop of water flowed down along the kettle wall, made probe and kettle wall because of the short circuit of drop of water bridging easily, this phenomenon is unusual adds water to the probe, leads to water level detection erroneous judgement, adds not full water or no water thinks there is water.

Disclosure of Invention

The invention aims to provide a liquid level detection method, a liquid level detection device, a storage medium and a kettle, so as to solve the problem of liquid level misjudgment caused by interference guidance of water drops and the like.

In order to achieve the purpose, the specific technical scheme of the liquid level detection method, the liquid level detection device, the storage medium and the kettle is as follows:

a liquid level detection method comprising:

judging whether the voltage sudden change value in the detection period meets the adjustment condition or not according to the current liquid level voltage;

if the liquid level voltage sudden change value meets the adjustment condition, adjusting a corresponding voltage threshold value according to the current liquid level voltage;

and judging the liquid level state according to the voltage threshold value.

Further, judge the liquid level state, include:

acquiring current liquid level voltage;

comparing the current liquid level voltage with the current voltage threshold;

and judging the liquid level state according to the comparison result.

Further, when the liquid level voltage is greater than or equal to the voltage threshold, water is judged to be present;

and when the liquid level voltage is smaller than the voltage threshold, judging that water is deficient, and adding water.

Further, the liquid level detection method further comprises the following steps:

in the water adding process, the voltage threshold is adjusted to be a virtual threshold which is always greater than the liquid level voltage;

and when the voltage mutation value meets the adjustment condition, adjusting the corresponding voltage threshold according to the current liquid level voltage.

Further, the liquid level detection method further comprises the following steps:

at least two liquid level detection points are arranged from low to high;

and (4) independently judging the liquid level state at each liquid level detection point.

Further, judge the liquid level state, still include:

and when the liquid level detection point at the lower position judges that water is short and the liquid level detection point at the higher position judges that water is available, performing abnormity alarm.

Further, judge the liquid level state, still include:

and in the water adding process, if the liquid level voltage mutation value detected by the liquid level probe meets the adjustment condition, the alarm is cancelled.

A liquid level detection device comprising:

the judging module is used for judging whether the voltage mutation value in the detection period meets the adjusting condition or not according to the current liquid level voltage;

the control module is used for adjusting a corresponding voltage threshold according to the current liquid level voltage when the judgment module judges that the liquid level voltage mutation value meets the adjustment condition;

and the detection module is used for judging the liquid level state according to the voltage threshold value.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.

A water kettle comprises a controller and a water level probe, wherein the water level probe is used for detecting the water level voltage in the water kettle; the controller comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the program.

The liquid level detection method, the liquid level detection device, the storage medium and the kettle have the following advantages:

1) by setting the virtual voltage, the water shortage state is always kept in the water adding process, so that the water adding process is prevented from being interrupted due to interference signals;

2) through alarming, a user is reminded to clean the probe, and interference signal sources are reduced.

Drawings

FIG. 1 is a flow chart of a liquid level detection method of the present invention;

FIG. 2 is a block diagram of the liquid level detection apparatus of the present invention.

Detailed Description

In order to better understand the purpose, structure and function of the present invention, a liquid level detecting method, a liquid level detecting device, a storage medium and a kettle according to the present invention will be described in further detail with reference to the accompanying drawings.

As shown in fig. 1, the liquid level detection method of the present invention includes:

s1, judging whether the voltage mutation value in the detection period meets the adjustment condition according to the current liquid level voltage;

s2, if the liquid level voltage sudden change value meets the adjusting condition, adjusting the corresponding voltage threshold value according to the current liquid level voltage;

and S3, judging the liquid level state according to the voltage threshold.

And if the liquid level voltage sudden change value does not meet the adjustment condition, directly judging the liquid level state.

Specifically, the program continuously stores the latest 4 liquid level voltage values U1, U2, U3 and U4. The voltage jump value is typically 1.2V. Therefore, when U4-U1 > 1.2V, it is judged that the mutation condition is satisfied, and U4 is assigned to Un. Un is the current level voltage that meets the regulation condition. And the current liquid level voltage which finally meets the regulation condition is Un through the repeated and cyclic regulation of the voltage threshold, namely after the voltage mutation occurs, the final stable liquid level voltage is Un, and the final stable liquid level voltage is a new voltage threshold.

Moreover, determining the fluid level condition includes:

acquiring current liquid level voltage;

comparing the current liquid level voltage with the current voltage threshold;

and judging the liquid level state according to the comparison result.

In particular, it is possible to describe,

when the liquid level voltage is greater than or equal to the voltage threshold value, judging that water exists;

and when the liquid level voltage is smaller than the voltage threshold, judging that water is deficient, and adding water.

The liquid level detection method of the invention further comprises the following steps:

in the water adding process, the voltage threshold is adjusted to be a virtual threshold which is a threshold which can not be reached by any water quality and a sampling limit value of a chip, so that the virtual threshold is always greater than the liquid level voltage, and the water adding state is kept;

and when the voltage mutation value meets the adjustment condition, adjusting the corresponding voltage threshold according to the current liquid level voltage.

Therefore, in the water adding process, the liquid level state is kept to be water shortage, the water adding process is eliminated, and misjudgment is caused by reasons such as water hanging.

The liquid level detection method of the invention further comprises the following steps:

at least two liquid level detection points are arranged from low to high;

and (4) independently judging the liquid level state at each liquid level detection point, namely respectively acquiring liquid level voltage and recording independent voltage threshold values. Therefore, each detection point is mutually independent, and even if data of one liquid level detection point is abnormal, the abnormality of the whole system can not be caused.

Judge the liquid level state, still include:

and when the liquid level detection point at the lower position judges that water is short and the liquid level detection point at the higher position judges that water is available, performing abnormity alarm.

Thereby reminding the user to clear the inner wall of the kettle and eliminating the wet scale attached on the probe.

But except the reasons such as incrustation scale, for example with kettle break away from the manual water feeding of base, because the liquid level probe outage leads to low liquid level probe not to update the threshold value to place back the base after, the kettle is automatic to be added water to high water level, also can satisfy alarm condition.

Therefore, the liquid level state is judged, and the method further comprises the following steps:

and in the water adding process, if the liquid level voltage mutation value detected by the liquid level probe meets the adjustment condition, the alarm is cancelled.

Therefore, in the water adding process, due to liquid level voltage fluctuation caused by interference signals, when the high water level probe generates voltage sudden change and records a threshold value, the real-time detection threshold value of the low water level probe may be lower than the threshold value recorded when the low water level probe generates the last time of low water level sudden change. The alarm condition is met, and the probe fault is falsely reported. And the liquid level probe can normally judge voltage sudden change, so that the liquid level probe can normally work. Therefore, in order to avoid false alarm faults of the probe, an alarm is not needed as long as sudden voltage changes occur.

In addition, when the high water level probe generates mutation, the high water level threshold value is updated, and simultaneously, the low water level threshold value is synchronously adjusted according to the low water level real-time threshold value, so that the phenomenon of false alarm of probe faults caused by the influence of water temperature and water quality is prevented.

As shown in fig. 2, the liquid level detection apparatus of the present invention includes:

the judging module 1 is used for judging whether the voltage sudden change value in the detection period meets the adjusting condition according to the current liquid level voltage;

the control module 2 is used for adjusting a corresponding voltage threshold according to the current liquid level voltage when the judgment module judges that the liquid level voltage mutation value meets the adjustment condition;

and the detection module 3 is used for judging the liquid level state according to the voltage threshold value.

Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method as described above.

The water kettle provided by the embodiment of the invention comprises a controller and a liquid level probe. Wherein, two liquid level probes, one high and one low, are used for detecting the liquid level voltage in the kettle. The steps of the above liquid level detection method are implemented when the controller executes the program.

It is to be understood that the present invention has been described with reference to certain embodiments, and that various changes in the features and embodiments, or equivalent substitutions may be made therein by those skilled in the art without departing from the spirit and scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于大数据的智能养生壶

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!