CN111854888B - Water level detection method and device, storage medium and kettle - Google Patents

Water level detection method and device, storage medium and kettle Download PDF

Info

Publication number
CN111854888B
CN111854888B CN202010726579.5A CN202010726579A CN111854888B CN 111854888 B CN111854888 B CN 111854888B CN 202010726579 A CN202010726579 A CN 202010726579A CN 111854888 B CN111854888 B CN 111854888B
Authority
CN
China
Prior art keywords
water level
voltage
threshold
preset
current water
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010726579.5A
Other languages
Chinese (zh)
Other versions
CN111854888A (en
Inventor
高立新
邓小康
刘常昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010726579.5A priority Critical patent/CN111854888B/en
Publication of CN111854888A publication Critical patent/CN111854888A/en
Application granted granted Critical
Publication of CN111854888B publication Critical patent/CN111854888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/80Arrangements for signal processing

Abstract

The invention provides a water level detection method, a water level detection device, a storage medium and a kettle, wherein the method comprises the following steps: determining the current water level state according to the current water level voltage; judging whether the voltage sudden change value in the detection period meets a preset voltage threshold value adjustment condition or not according to the current water level voltage; if the voltage mutation value meets a preset voltage threshold value adjusting condition, adjusting a corresponding water level voltage threshold value according to the current water level state; and detecting the water level according to the adjusted water level voltage threshold value. The invention 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.

Description

Water level detection method and device, storage medium and kettle
Technical Field
The invention relates to the technical field of computers, in particular to a water level detection method, a water level detection device, a storage medium and a kettle.
Background
In daily life, people often use the kettle to boil water, and the anti-overflow control of the kettle is an important index for measuring the performance of the kettle.
At present, most of water kettles in the market are based on the conductivity of tap water, and the water level detection is realized by detecting the voltage of the water level in the kettle through a probe. However, in the process of implementing the present invention, the inventor finds that when the existing kettle is used to pump purified water, the voltage detected by the water level probe is low due to the low conductivity of the purified water, so that the electronic controller in the kettle considers that the kettle is in a water shortage state all the time, and pumps water all the time, which causes an overflow phenomenon. Therefore, how to provide a water level detection method which can be suitable for various water qualities is of great significance.
Disclosure of Invention
The invention provides a water level detection method, a water level detection device, a storage medium and a kettle, and solves the problem that the existing probe water level detection method cannot be suitable for various water qualities, so that the water level detection is inaccurate.
In one aspect of the present invention, there is provided a water level detecting method, the method including:
determining the current water level state according to the current water level voltage;
judging whether the voltage sudden change value in the detection period meets a preset voltage threshold value adjustment condition or not according to the current water level voltage;
if the voltage mutation value meets a preset voltage threshold value adjusting condition, adjusting a corresponding water level voltage threshold value according to the current water level state;
and detecting the water level according to the adjusted water level voltage threshold value.
Optionally, the determining the current water level state according to the current water level voltage includes:
acquiring current water level voltage;
and determining the current water level state according to the magnitude relation between the current water level voltage and the water level voltage threshold value.
Optionally, before determining whether the voltage variation value in the detection period meets a preset voltage threshold adjustment condition according to the current water level voltage, the method further includes:
and matching a corresponding voltage threshold value adjusting condition according to the current water level state.
Optionally, the matching of the corresponding voltage threshold adjustment condition according to the current water level state includes:
if the current water level state is that the water level is lower than the preset low water level threshold, the matched voltage threshold adjustment conditions are as follows: the voltage sudden change value between the current water level voltage and the historical water level voltage of the previous detection period is greater than or equal to a preset first sudden change threshold value, and the voltage sudden change value between the water level voltage of the next detection period and the current water level voltage is smaller than a preset second sudden change threshold value;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the matched voltage threshold adjustment condition is as follows: the voltage mutation value between the current water level voltage and the historical water level voltage in the last detection period is larger than or equal to a preset first mutation threshold, and the interval between the detection time corresponding to the current water level voltage and the last mutation is larger than or equal to a preset time threshold.
Optionally, the adjusting the corresponding water level voltage threshold according to the current water level state includes:
if the current water level state is that the water level is lower than the preset low water level threshold value, the low water level voltage threshold value U corresponding to the low water level threshold value is judgedAThe adjustment is carried out in the following specific way:
UAthe water level voltage of the next detection period is equal to a first abrupt change threshold;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the full water level voltage threshold U corresponding to the full water level thresholdBThe adjustment is carried out in the following specific way:
Figure BDA0002601973930000021
in another aspect of the present invention, there is provided a water level detecting apparatus including:
the calculation module is used for determining the current water level state according to the current water level voltage;
the judging module is used for judging whether the voltage mutation value in the detection period meets a preset voltage threshold value adjusting condition or not according to the current water level voltage;
the control module is used for adjusting the corresponding water level voltage threshold according to the current water level state when the judgment result of the judgment module is that the voltage mutation value meets the preset voltage threshold adjustment condition;
and the detection module is used for detecting the water level according to the adjusted water level voltage threshold value.
Optionally, the calculation module is configured to obtain a current water level voltage, and determine a current water level state according to a size relationship between the current water level voltage and a water level voltage threshold.
Optionally, the apparatus further comprises:
and the configuration module is used for matching the corresponding voltage threshold value adjusting condition according to the current water level state before the judging module judges whether the voltage mutation value in the detection period meets the preset voltage threshold value adjusting condition according to the current water level voltage.
Optionally, the configuration module is specifically configured to, if the current water level state is that the water level is lower than a preset low water level threshold, adjust the matched voltage threshold under the following conditions: the voltage sudden change value between the current water level voltage and the historical water level voltage of the previous detection period is greater than or equal to a preset first sudden change threshold value, and the voltage sudden change value between the water level voltage of the next detection period and the current water level voltage is smaller than a preset second sudden change threshold value; if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the matched voltage threshold adjustment condition is as follows: the voltage mutation value between the current water level voltage and the historical water level voltage in the last detection period is larger than or equal to a preset first mutation threshold, and the interval between the detection time corresponding to the current water level voltage and the last mutation is larger than or equal to a preset time threshold.
Optionally, the control module is specifically configured to, if the current water level state is that the water level is lower than a preset low water level threshold, apply a low water level voltage threshold U corresponding to the low water level thresholdAThe adjustment is carried out in the following specific way:
UAthe water level voltage of the next detection period is equal to a first abrupt change threshold;
the control module is specifically further configured to, if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, perform full water level voltage threshold U corresponding to the full water level thresholdBThe adjustment is carried out in the following specific way:
Figure BDA0002601973930000031
furthermore, the invention also provides 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.
In addition, the invention also provides a water kettle, which 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.
According to the water level detection method, the water level detection device, the storage medium and the kettle, whether the environmental water quality changes or not is judged by monitoring the voltage sudden change value of the water level voltage in the detection period, and if the environmental water quality is confirmed to change, the water level voltage threshold values of the low water level and the full water level can be adjusted in time, so that the water level can be accurately detected no matter how the environmental water quality changes, and no cost is increased.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart of a water level detection method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a water level detecting device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The water level detection method provided by the embodiment of the invention is suitable for detecting the water level of a lower water adding water container, such as a lower water adding kettle.
Fig. 1 schematically shows a flow chart of a water level detection method according to an embodiment of the present invention. Referring to fig. 1, the water level detection method provided by the embodiment of the invention specifically includes steps S11 to S14, as follows:
and S11, determining the current water level state according to the current water level voltage.
In this embodiment, determining the current water level state according to the current water level voltage specifically includes: acquiring current water level voltage; and determining the current water level state according to the magnitude relation between the current water level voltage and the water level voltage threshold value.
Specifically, in the embodiment of the present invention, the pointer P may be used to represent different water level states.
Wherein, P is 0, and the water level is lower than a preset low water level threshold value;
p is 1, and the water level is between the preset low water level threshold value and the preset full water level threshold value;
and P is 2, and the water level is higher than a preset full water level threshold value.
In this embodiment, U0(U0Not less than 0) is a real-time water level voltage value obtained by a certain filtering algorithm by detecting the water level voltage at certain time intervals by the controller.
UA(UANot less than 0) is a low water level voltage threshold value, and a fixed value is obtained for the first time when the device leaves a factory.
UB(UBNot less than 0) is the full water level voltage threshold value, and the fixed value X (V) is obtained for the first time when the water tank leaves the factory.
The controller can be set to start water level detection at certain intervals, and the current water level voltage value U is obtained after the water level detection is started0Judgment of U0≥UAIf not, the recording pointer P is equal to 0, if yes, the judgment of U is continued0≥UBIf U is present0≥UBIf the recording pointer P is equal to 2, otherwise, the recording pointer P is equal to 1, and the full water level voltage threshold value U is obtainedB=X(V)。
And S12, judging whether the voltage change value in the detection period meets the preset voltage threshold value adjustment condition or not according to the current water level voltage.
And S13, if the voltage mutation value meets the preset voltage threshold value adjusting condition, adjusting the corresponding water level voltage threshold value according to the current water level state.
And S14, detecting the water level according to the adjusted water level voltage threshold.
According to the water level detection method provided by the embodiment of the invention, whether the environmental water quality changes or not is judged by monitoring the voltage sudden change value of the water level voltage in the detection period, and if the environmental water quality is confirmed to change, the water level voltage threshold values of the low water level and the full water level can be timely adjusted, so that the water level can be accurately detected no matter how the environmental water quality changes, and no cost is increased.
In the embodiment of the present invention, as shown in step S11, before determining whether the voltage variation value in the detection period satisfies the preset voltage threshold adjustment condition according to the current water level voltage, the method further includes step S10:
and S10, matching the corresponding voltage threshold value adjusting condition according to the current water level state.
In this embodiment, U0'(U0' > equal to or more than 0) is the historical water level voltage of the last detection period; u shape1(U1Not less than 0) is the water level voltage of the next detection period.
Specifically, the step S10 of matching the corresponding voltage threshold adjustment condition according to the current water level state further includes:
if the current water level state is that the water level is lower than the preset low water level threshold, that is, P is 0, the matched voltage threshold adjustment condition is as follows: current water level voltage U0Historical water level voltage U of the last detection period0' the voltage sudden change value between the two is greater than or equal to a preset first sudden change threshold value, and the water level voltage U of the next detection period1Voltage U corresponding to current water level0The voltage sudden change value is smaller than a preset second sudden change threshold value;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, that is, P is 0, the matched voltage threshold adjustment condition is as follows: current water level voltage U0Historical water level voltage U of the last detection period0' the voltage sudden change value between the current water level voltage and the current water level voltage is greater than or equal to a preset first sudden change threshold value0The corresponding detection time interval T from the last mutation is greater than or equal to the preset time threshold a(s).
In the embodiment of the invention, the corresponding voltage threshold value adjusting condition is matched according to the current water level state, if the voltage mutation value meets the voltage threshold value adjusting condition matched by the current water level state, the corresponding water level voltage threshold value is adjusted according to the current water level state, otherwise, the judgment of the current water level voltage is finished, and the next round is started.
In this example, after the first mutation is detected, tsun 0 is added to the program, and when T ═ a(s), the next mutation is determined. Namely mutation judgment interval a(s), after one mutation judgment is successful, the interval a(s) starts to judge the next mutation again. The value of a(s) is determined according to performance test data of the whole machine, and in the embodiment, the mutation interval time a can be 10 s.
In the embodiment of the present invention, the adjusting the corresponding water level voltage threshold according to the current water level state specifically includes:
if the current water level state is that the water level is lower than the preset low water level threshold value, the low water level voltage threshold value U corresponding to the low water level threshold value is judgedAThe adjustment is carried out in the following specific way:
UAwater level voltage U of the next detection period1-a first mutation threshold;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the full water level voltage threshold U corresponding to the full water level thresholdBThe adjustment is carried out in the following specific way:
Figure BDA0002601973930000071
specifically, if P is equal to 0, the current water level voltage U is determined0Historical water level voltage U of the last detection period0' whether the voltage jump value between is greater than or equal to a preset first jump threshold value, and the water level voltage U of the next detection period1Voltage U corresponding to current water level0Whether the voltage sudden change value is smaller than a preset second sudden change threshold value or not, if so, updating the low water level voltage threshold value UAWater level voltage U of the next detection period1And (4) a first mutation threshold value, recording a pointer P which is equal to 1, and clearing a mutation interval timer T which is equal to 0s, otherwise, finishing the judgment of the water level voltage at this time and entering the next round. If P is 1, judging the current water level voltage U0Historical water level voltage U of the last detection period0' whether the voltage sudden change value between the current water level voltage and the current water level voltage is greater than or equal to a preset first sudden change threshold value0Whether the corresponding detection time interval T from the last mutation is simultaneously larger than or equal to the preset time threshold a(s) or not, if so, updating the full water level voltage threshold UBAnd recording the pointer P as 2, otherwise ending the judgment of the water level voltage and entering the next round. U to be updatedA、UBAnd updating the data to the memory of the controller so as to read the last comparison between the value and the real-time value at any time.
Considering that the voltage of the pure water is lower than that of the tap water, if the pure water is pumped, if the water level threshold value is not dynamically adjusted, the water is always pumped to overflow, or when the tap water is replaced by the pure water after being added, the voltage generated by one sudden change of the tap water exceeds the full water level voltage of the pure water. If sudden change occurs, the full water level voltage is not reset, so that water cannot be added, and the embodiment of the invention can effectively prevent the situation by dynamically adjusting the water level voltage.
The water level detection method provided by the embodiment of the invention optimizes the water level detection logic of the kettle, can dynamically adjust the water level voltage thresholds of the low water level and the full water level through the logic no matter how the water quality is or no matter how the temperature is, ensures that the water level can be accurately detected no matter how the environment is changed, improves the accuracy of water level detection, does not increase any cost, and effectively improves the market competitiveness of products.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 2 schematically shows a structural view of a water level detecting apparatus according to an embodiment of the present invention. Referring to fig. 2, the water level detecting apparatus of the embodiment of the present invention specifically includes a calculating module 201, a determining module 202, a controlling module 203, and a detecting module 204, wherein:
a calculating module 201, configured to determine a current water level state according to the current water level voltage;
a judging module 202, configured to judge whether a voltage change value in a detection period meets a preset voltage threshold adjustment condition according to the current water level voltage;
a control module 203, configured to adjust a corresponding water level voltage threshold according to a current water level state when the determination result of the determining module 202 is that the voltage jump value meets a preset voltage threshold adjustment condition;
and the detection module 204 is configured to perform water level detection according to the adjusted water level voltage threshold.
In the embodiment of the present invention, the calculating module 201 is specifically configured to obtain a current water level voltage, and determine a current water level state according to a size relationship between the current water level voltage and a water level voltage threshold.
In the embodiment of the present invention, the apparatus further includes a configuration module, not shown in the drawing, configured to match a corresponding voltage threshold adjustment condition according to the current water level state before the determination module determines whether the voltage fluctuation value in the detection period meets a preset voltage threshold adjustment condition according to the current water level voltage.
Specifically, the configuration module is specifically configured to, if the current water level state is that the water level is lower than a preset low water level threshold, adjust the matched voltage threshold under the following conditions: the voltage sudden change value between the current water level voltage and the historical water level voltage of the previous detection period is greater than or equal to a preset first sudden change threshold value, and the voltage sudden change value between the water level voltage of the next detection period and the current water level voltage is smaller than a preset second sudden change threshold value; if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the matched voltage threshold adjustment condition is as follows: the voltage mutation value between the current water level voltage and the historical water level voltage in the last detection period is larger than or equal to a preset first mutation threshold, and the interval between the detection time corresponding to the current water level voltage and the last mutation is larger than or equal to a preset time threshold.
In an embodiment of the present invention, the control module 203 is specifically configured to, if the current water level state is that the water level is lower than a preset low water level threshold, apply a low water level voltage threshold U corresponding to the low water level thresholdAThe adjustment is carried out in the following specific way:
UAthe water level voltage of the next detection period is equal to a first abrupt change threshold;
in another embodiment of the present invention, the control module 203 is further specifically configured to, if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, determine a full water level voltage threshold U corresponding to the full water level thresholdBThe adjustment is carried out in the following specific way:
Figure BDA0002601973930000091
for the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
According to the water level detection method and device provided by the embodiment of the invention, whether the environmental water quality changes or not is judged by monitoring the voltage sudden change value of the water level voltage in the detection period, and if the environmental water quality is confirmed to change, the water level voltage threshold values of the low water level and the full water level can be timely adjusted, so that the water level can be accurately detected no matter how the environmental water quality changes, and no cost is increased.
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.
In this embodiment, the module/unit integrated with the water level detecting device may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The water kettle provided by the embodiment of the invention 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 dynamically adjusts the water level voltage threshold values of the low water level and the full water level through the water level voltage detected by the water level probe, and updates and records the water level voltage threshold values in a memory in real time, such as a chip FLASH, so as to realize water level detection.
Specifically, the controller includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the above-mentioned embodiments of the water level detection method, such as S11-S14 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of the modules/units in the above-mentioned embodiments of the water level detection apparatus, such as the calculating module 201, the determining module 202, the controlling module 203 and the detecting module 204 shown in fig. 2.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the water level detection device. For example, the computer program may be divided into a calculation module 201, a determination module 202, a control module 203, and a detection module 204.
The kettle may include, but is not limited to, a processor, a memory. It will be appreciated by a person skilled in the art that the kettle in this embodiment may comprise more or less components, or some components in combination, or different components.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the kettle and connected to the various parts of the overall kettle by various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the kettle by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A water level detection method, characterized in that the method comprises:
determining the current water level state according to the current water level voltage;
matching a corresponding voltage threshold value adjusting condition according to the current water level state;
judging whether the voltage sudden change value in the detection period meets a preset voltage threshold value adjustment condition or not according to the current water level voltage;
if the voltage mutation value meets a preset voltage threshold value adjusting condition, adjusting a corresponding water level voltage threshold value according to the current water level state;
and detecting the water level according to the adjusted water level voltage threshold value.
2. The method of claim 1, wherein determining the current water level status based on the current water level voltage comprises:
acquiring current water level voltage;
and determining the current water level state according to the magnitude relation between the current water level voltage and the water level voltage threshold value.
3. The method of claim 1, wherein the matching of the corresponding voltage threshold adjustment condition according to the current water level state comprises:
if the current water level state is that the water level is lower than the preset low water level threshold, the matched voltage threshold adjustment conditions are as follows: the voltage sudden change value between the current water level voltage and the historical water level voltage of the previous detection period is greater than or equal to a preset first sudden change threshold value, and the voltage sudden change value between the water level voltage of the next detection period and the current water level voltage is smaller than a preset second sudden change threshold value;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the matched voltage threshold adjustment condition is as follows: the voltage mutation value between the current water level voltage and the historical water level voltage in the last detection period is larger than or equal to a preset first mutation threshold, and the interval between the detection time corresponding to the current water level voltage and the last mutation is larger than or equal to a preset time threshold.
4. The method according to any one of claims 1-3, wherein the adjusting the corresponding water level voltage threshold according to the current water level state comprises:
if the current water level state is that the water level is lower than the preset low water level threshold value, the low water level voltage threshold value U corresponding to the low water level threshold value is judgedAThe adjustment is carried out in the following specific way:
UAthe water level voltage of the next detection period is equal to a first abrupt change threshold;
if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the full water level voltage threshold U corresponding to the full water level thresholdBThe adjustment is carried out in the following specific way:
Figure FDA0003051544060000021
5. a water level detection apparatus, comprising:
the calculation module is used for determining the current water level state according to the current water level voltage;
the judging module is used for judging whether the voltage mutation value in the detection period meets a preset voltage threshold value adjusting condition or not according to the current water level voltage;
the control module is used for adjusting the corresponding water level voltage threshold according to the current water level state when the judgment result of the judgment module is that the voltage mutation value meets the preset voltage threshold adjustment condition;
the detection module is used for detecting the water level according to the adjusted water level voltage threshold value;
and the configuration module is used for matching the corresponding voltage threshold value adjusting condition according to the current water level state before the judging module judges whether the voltage mutation value in the detection period meets the preset voltage threshold value adjusting condition according to the current water level voltage.
6. The apparatus according to claim 5, wherein the configuration module is specifically configured to, if the current water level status is that the water level is lower than a preset low water level threshold, adjust the matched voltage threshold under the following conditions: the voltage sudden change value between the current water level voltage and the historical water level voltage of the previous detection period is greater than or equal to a preset first sudden change threshold value, and the voltage sudden change value between the water level voltage of the next detection period and the current water level voltage is smaller than a preset second sudden change threshold value; if the current water level state is that the water level is between the preset low water level threshold and the preset full water level threshold, the matched voltage threshold adjustment condition is as follows: the voltage mutation value between the current water level voltage and the historical water level voltage in the last detection period is larger than or equal to a preset first mutation threshold, and the interval between the detection time corresponding to the current water level voltage and the last mutation is larger than or equal to a preset time threshold.
7. 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 4.
8. 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-4.
CN202010726579.5A 2020-07-25 2020-07-25 Water level detection method and device, storage medium and kettle Active CN111854888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010726579.5A CN111854888B (en) 2020-07-25 2020-07-25 Water level detection method and device, storage medium and kettle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010726579.5A CN111854888B (en) 2020-07-25 2020-07-25 Water level detection method and device, storage medium and kettle

Publications (2)

Publication Number Publication Date
CN111854888A CN111854888A (en) 2020-10-30
CN111854888B true CN111854888B (en) 2021-07-02

Family

ID=72950510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010726579.5A Active CN111854888B (en) 2020-07-25 2020-07-25 Water level detection method and device, storage medium and kettle

Country Status (1)

Country Link
CN (1) CN111854888B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112857515A (en) * 2021-01-12 2021-05-28 珠海格力电器股份有限公司 Liquid level detection method and device, storage medium and kettle
CN112869556B (en) * 2021-01-12 2022-05-17 珠海格力电器股份有限公司 Liquid level detection method and device, storage medium and kettle
CN112842075A (en) * 2021-01-12 2021-05-28 珠海格力电器股份有限公司 Liquid level detection method and device, storage medium and kettle
CN112857516A (en) * 2021-01-12 2021-05-28 珠海格力电器股份有限公司 Liquid level detection method and device, storage medium and kettle

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503900A (en) * 2001-04-16 2004-06-09 USF�û�����ҵˮ���Ź�˾ Automatic salt level monitor for water softening device
WO2012048471A1 (en) * 2010-10-15 2012-04-19 惠州市卓耐普智能技术有限公司 Digital field-induction water-level intelligent sensing system and its implementation method
CN102445252A (en) * 2011-12-10 2012-05-09 河南科技大学 Resistor type water-level digital sensor
CN103776511A (en) * 2014-02-07 2014-05-07 深圳芯邦科技股份有限公司 Level information monitoring method, device and system
DE102013215606B4 (en) * 2013-08-07 2015-06-18 Berthold Technologies Gmbh & Co. Kg Method for operating a radiometric measuring system and radiometric measuring system
CN205068033U (en) * 2015-08-18 2016-03-02 珠海格力电器股份有限公司 Detection control circuit of water level perception device
CN106643978A (en) * 2017-01-09 2017-05-10 四川迈克生物医疗电子有限公司 Data processing method and module
CN108931283A (en) * 2017-05-22 2018-12-04 九阳股份有限公司 A kind of level testing methods and device of sink
CN109073441A (en) * 2016-04-29 2018-12-21 惠普发展公司,有限责任合伙企业 Fluid levels are detected using voltage comparator
CN111076789A (en) * 2019-12-24 2020-04-28 珠海格力电器股份有限公司 Water level detection device, water level detection method and water storage device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191647B2 (en) * 2003-10-30 2007-03-20 Perkinelmer Las, Inc. Method and apparatus to reject electrical interference in a capacitive liquid level sensor system
CN100575890C (en) * 2008-09-10 2009-12-30 南京林业大学 Capacitance level transducer and use the liquid level detection device of this sensor
CN201476844U (en) * 2009-08-10 2010-05-19 苏州捷美电子有限公司 Capacitive liquid-level detecting device
CN103528603A (en) * 2012-07-05 2014-01-22 北斗电子工业株式会社 Static capacitive moisture detector
CN102928049B (en) * 2012-10-30 2015-05-20 北京信息科技大学 Liquid level detection method and system
CN105606179A (en) * 2015-12-17 2016-05-25 上海科勒电子科技有限公司 Water tank water level detection method and system
CN107505024B (en) * 2017-07-31 2019-07-09 迈克医疗电子有限公司 Detecting liquid level methods, devices and systems
CN108051045B (en) * 2017-11-23 2023-10-31 珠海格力节能环保制冷技术研究中心有限公司 Oil level detection device, compressor and air conditioner
CN110715754B (en) * 2019-11-28 2020-11-24 珠海格力电器股份有限公司 Method for detecting connection state of electric kettle and electric kettle

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503900A (en) * 2001-04-16 2004-06-09 USF�û�����ҵˮ���Ź�˾ Automatic salt level monitor for water softening device
WO2012048471A1 (en) * 2010-10-15 2012-04-19 惠州市卓耐普智能技术有限公司 Digital field-induction water-level intelligent sensing system and its implementation method
CN102713534A (en) * 2010-10-15 2012-10-03 惠州市卓耐普智能技术有限公司 Digital field-induction water-level intelligent sensing system and its implementation method
CN102445252A (en) * 2011-12-10 2012-05-09 河南科技大学 Resistor type water-level digital sensor
DE102013215606B4 (en) * 2013-08-07 2015-06-18 Berthold Technologies Gmbh & Co. Kg Method for operating a radiometric measuring system and radiometric measuring system
CN103776511A (en) * 2014-02-07 2014-05-07 深圳芯邦科技股份有限公司 Level information monitoring method, device and system
CN205068033U (en) * 2015-08-18 2016-03-02 珠海格力电器股份有限公司 Detection control circuit of water level perception device
CN109073441A (en) * 2016-04-29 2018-12-21 惠普发展公司,有限责任合伙企业 Fluid levels are detected using voltage comparator
CN106643978A (en) * 2017-01-09 2017-05-10 四川迈克生物医疗电子有限公司 Data processing method and module
CN108931283A (en) * 2017-05-22 2018-12-04 九阳股份有限公司 A kind of level testing methods and device of sink
CN111076789A (en) * 2019-12-24 2020-04-28 珠海格力电器股份有限公司 Water level detection device, water level detection method and water storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"自动生化仪液位传感器的创新设计";宋冬萍;《内江科技》;20121231(第11期);第106页、第187页 *

Also Published As

Publication number Publication date
CN111854888A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111854888B (en) Water level detection method and device, storage medium and kettle
US7109876B2 (en) Battery capacity indicator in a portable computing device
CN110934502B (en) Water dispenser control method and device, storage medium and water dispenser
CN112015347A (en) Data migration method and device and related equipment
CN106886752A (en) The method and terminal of a kind of image procossing
CN110179436B (en) Snore sampling method and terminal equipment
WO2019161768A1 (en) Traffic abnormality detection
CN113155784A (en) Water transparency detection method, terminal device and storage medium
CN111956065B (en) Cleaning reminding method and device, electric kettle and storage medium
CN112527615A (en) Equipment determination method and device, electronic equipment and storage medium
CN107990929B (en) Method and device for controlling filter time constant, computer device and storage medium
CN115328974B (en) Data real-time detection method, device, equipment and readable storage medium
CN108984330B (en) Method and device for controlling storage equipment and electronic equipment
US20130304470A1 (en) Electronic device and method for detecting pornographic audio data
CN114356212A (en) Data processing method, system and computer readable storage medium
CN110134575B (en) Method and device for calculating service capacity of server cluster
CN110754937A (en) Water drainage control method and device for water purifying dispenser, storage medium and water purifying dispenser
CN111694628A (en) Page display method based on application program thread and related equipment
CN113155422B (en) Fault detection method, device and storage medium
CN107871305B (en) Picture quality rating method and device and terminal equipment
CN112748682B (en) Signal sampling processing method, device, equipment and storage medium
CN103530528A (en) Evaluation method and device
CN112330666B (en) Image processing method, system, device and medium based on improved twin network
CN115076128B (en) Water pump water flow measurement method, device, equipment and storage medium
CN114019209B (en) Method and system for measuring electric polarization induction of magnetoelectric composite material

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant