Humidifier, water level detection method, device and medium
Patent Information
- Application Number
- CN202311448269.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-11-02
AI Technical Summary
因水箱会被用户提起和放下,使得水箱中的水会剧烈的起伏波动,在加上将水注入水箱时的波动,从而使得水箱中的水的水位处于急剧的波动中,超声波传感器在此时检测水箱中的水的水位,则容易产生较大的误差
[0031] Compared with existing technologies, the present invention has many advantages, including but not limited to:
Smart Images

Figure CN117490157B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home appliance technology, specifically to a humidifier, a water level detection method, a device, and a medium. Background Technology
[0002] With the advent of smart living, humidifiers are gradually entering thousands of households, especially in dry areas, where they improve indoor humidity, alleviate dry skin, and enhance the quality of life. To monitor the water level in the humidifier's tank in real time, the industry has proposed a technical solution that involves installing ultrasonic sensors inside the humidifier to detect changes in water level. Specifically, this utilizes the principle that sound waves reflect when they encounter media of different densities to detect changes in the water level. Generally, the probe of the ultrasonic sensor is placed against the inner wall of the humidifier's cavity to detect water level changes.
[0003] When users add water to the water tank, they typically need to remove the tank from the humidifier, add water, and then place it back in. Because the tank is lifted and lowered, the water level fluctuates violently. Combined with the initial movement of adding water, this causes the water level to fluctuate rapidly. Under these conditions, the ultrasonic sensor is prone to significant errors when detecting the water level. However, if the ultrasonic sensor only detects the water level after it has stabilized, a longer waiting time is required, generally with a considerable time margin, to allow for the water level to remain stable. This makes it difficult for users to quickly obtain water level information, resulting in a longer waiting time and negatively impacting the user experience. Summary of the Invention
[0004] The purpose of this invention is to solve at least one of the above-mentioned problems by providing a humidifier, a water level detection method, a device, and a medium.
[0005] To meet the various objectives of this invention, the following technical solutions are adopted:
[0006] To achieve one of the objectives of this invention, a method for detecting the water level in a humidifier is provided, comprising the following steps:
[0007] The ultrasonic sensor is driven to continuously detect the water level data of the liquid in the humidifier's water tank;
[0008] Calculate the water level fluctuation index between each two adjacent water level data points based on a series of consecutive water level data points, and obtain the index sequence.
[0009] Determine whether the index sequence meets the preset conditions. If the preset conditions are met, display the latest water level data detected by the ultrasonic sensor on the humidifier's display screen. The preset conditions indicate that multiple water level fluctuation indicators in the index sequence all indicate that the water in the water tank is in a stable state.
[0010] Furthermore, the step of determining whether the indicator sequence meets the preset conditions includes:
[0011] If the first judgment condition in the preset conditions is met, then multiple water level fluctuation indicators closest to the current time are extracted from the latest obtained indicator sequence as the first indicator subsequence. The first judgment condition indicates that the number of fluctuation indicators in the indicator sequence is less than or equal to the first preset threshold. The fluctuation indicator indicates that the water level fluctuation indicator indicates that the water in the tank is in a fluctuating state.
[0012] The second judgment condition is used to determine whether the first indicator subsequence meets the preset condition. When the second judgment condition is met, the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier is executed. The second judgment condition indicates that the number of stable indicators in the first indicator subsequence is greater than or equal to the second preset threshold. The stable indicators indicate that the water level fluctuation indicator indicates that the water in the water tank is in a stable state.
[0013] Furthermore, the step of determining whether the first indicator subsequence satisfies the second determination condition also includes the following specific steps:
[0014] If the second judgment condition is not met, after waiting for a predetermined period of time, extract the multiple water level fluctuation indicators closest to the current moment from the latest obtained indicator sequence as the second indicator subsequence;
[0015] Determine whether the second indicator subsequence meets the third judgment condition of the preset condition. When the third judgment condition is met, execute the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier. The third judgment condition indicates that the number of stable indicators in the second indicator subsequence is greater than or equal to the third preset threshold.
[0016] Furthermore, the step of determining whether the indicator sequence meets the preset conditions includes:
[0017] If the fourth judgment condition in the preset conditions is met, the water level data in the water tank is determined to be zero, and the latest water level data is displayed on the display screen of the humidifier. The fourth judgment condition indicates that the number of fluctuation indicators in the indicator sequence is greater than or equal to the fourth preset threshold, and the fourth preset threshold is greater than the first preset threshold.
[0018] Furthermore, prior to the step of driving the ultrasonic sensor to continuously detect the water level data in the humidifier's water tank, the following steps are also included:
[0019] Controlled by the conduction signal generated by the water tank detection circuit, it enters the detection start state;
[0020] When the humidifier is in the start-up state, a first light effect animation representing the start-up state is output to the humidifier's display screen.
[0021] After a preset duration, the detection start state ends, and a second lighting animation representing the entry into the detection execution state is output to the display screen.
[0022] Specifically, the step of displaying the latest water level data detected by the ultrasonic sensor on the humidifier's display screen further includes the following steps:
[0023] A third lighting effect animation is output to the humidifier's display, the third lighting effect animation being used to represent the magnitude of the latest water level data.
[0024] To one of the purposes of this invention, a humidifier is provided, comprising a housing, a water tank, a display screen, an ultrasonic sensor, a water tank detection circuit, and a control unit. The housing has an installation cavity, the ultrasonic sensor is disposed at the bottom of the installation cavity, the water tank is disposed within the installation cavity, the display screen is embedded in the housing, and the control unit is used to perform the steps as described in any of the preceding objectives.
[0025] Furthermore, the water tank detection circuit is equipped with a pressure switch, which is located at the bottom of the mounting cavity.
[0026] To meet one of the objectives of this invention, a humidifier water level detection device is provided, comprising:
[0027] The data acquisition module drives the ultrasonic sensor to continuously detect the water level data in the humidifier's water tank;
[0028] The indicator calculation module calculates the water level fluctuation indicator between each two adjacent water level data based on a series of consecutive water level data, and obtains the indicator sequence.
[0029] The data output module determines whether the index sequence meets preset conditions. If the preset conditions are met, the latest water level data detected by the ultrasonic sensor is displayed on the humidifier's display screen. The preset conditions indicate that multiple water level fluctuation indicators in the index sequence all indicate that the water level in the water tank is stable.
[0030] To achieve one of the objectives of this invention, a computer-readable storage medium is provided, wherein program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the humidifier water level detection method as described in any of the preceding objectives.
[0031] Compared with existing technologies, the present invention has many advantages, including but not limited to:
[0032] The humidifier water level detection method of the present invention acquires water level data in the water tank through an ultrasonic sensor, and then generates an index sequence characterizing water level fluctuations through several water level data. The index sequence is used to determine whether the water in the water tank is in a stable state, and the water level data when the water is in a stable state is output to the display screen for display. This allows users to quickly obtain water level data without worrying about inaccurate water level data, and also makes it convenient for users to add water to the humidifier in a timely manner.
[0033] Additional aspects and advantages of the invention will be partly apparent from the description which follows, or may be learned by practice of the invention. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This is a cross-sectional schematic diagram of the humidifier provided by the present invention.
[0036] Figure 2 A schematic diagram of the circuit principle of the humidifier provided by the present invention.
[0037] Figure 3 This is a flowchart illustrating a typical embodiment of the humidifier water level detection method of the present invention.
[0038] Figure 4 This is a flowchart illustrating the preliminary steps of step S11 in the humidifier water level detection method according to a typical embodiment of the present invention.
[0039] Figure 5 This is a flowchart illustrating step S13 of the humidifier water level detection method according to a typical embodiment of the present invention.
[0040] Figure 6 This is a schematic diagram of step S13 of a humidifier water level detection method according to an embodiment of the present invention.
[0041] Figure 7This is a schematic diagram of the humidifier water level detection device of the present invention. Detailed Implementation
[0042] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0043] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0044] Those skilled in the art will understand that although the various methods of the present invention are described based on the same concept and thus present commonality among them, they can be performed independently unless otherwise specified. Similarly, the various embodiments disclosed in this invention are all based on the same inventive concept; therefore, concepts expressed in the same way, as well as concepts that are appropriately changed for convenience but are expressed differently, should be understood as equivalent.
[0045] Unless otherwise expressly stated, the various embodiments disclosed in this invention can be combined in various ways to flexibly construct new embodiments, as long as such combination does not depart from the inventive spirit of this invention and can meet the needs of the prior art or solve a certain deficiency in the prior art. Those skilled in the art should be aware of such modifications.
[0046] This invention provides a method for detecting the water level in a humidifier. The method controls an ultrasonic sensor to detect and acquire several water level data. By analyzing the fluctuations in the several water level data, it determines whether the water in the humidifier's water tank is in a stable state, and finally outputs the water level data when the water is in a stable state.
[0047] To implement the humidifier water level detection method, combined with Figure 1 and Figure 2This invention provides a humidifier 100, which includes a housing 110, a water tank 120, a display screen 130, an ultrasonic sensor 140, a water tank detection circuit 150, and a control unit 160. The control unit 160 is electrically connected to the display screen 130, the ultrasonic sensor 140, and the water tank detection circuit 150. In this embodiment, the control unit 160 integrates a timer or has a timer in the form of a computer program. The timer calculates the execution time of each step of the humidifier water level detection method. When the execution time of a step meets the set duration, the next step is executed.
[0048] The outer casing 110 has an installation cavity, and the water tank 120 is disposed in the installation cavity. The water tank 120 is used to hold water, and the humidifier 100 atomizes the water in the water tank 120 to improve the ambient humidity. In this embodiment, the water tank 120 can be removed from the installation cavity to facilitate adding water to the water tank 120. In another embodiment, the water tank 120 is fixed in the installation cavity, and the outer casing 110 has a water filling hole corresponding to the water tank 120 to add water to the water tank 120 through the water filling hole.
[0049] The ultrasonic sensor 140 is disposed at the bottom of the mounting cavity, that is, the ultrasonic sensor 140 is disposed at the bottom of the water tank 120, and the probe 141 of the ultrasonic sensor 140 abuts against the bottom of the water tank 120, so that the ultrasonic sensor 140 can emit ultrasonic signals to the water tank 120 through the probe 141 to obtain the water level data of the water in the water tank 120, thereby obtaining the volume data of the water in the water tank 120.
[0050] The control unit 160 is used to control the operation of the ultrasonic sensor 140. The ultrasonic sensor 140 continuously collects and sends several water level data to the control unit 160. The control unit 160 performs water level fluctuation analysis on the several water level data and outputs the water level data when the water is in a stable state to the display screen 130 for display.
[0051] The display screen 130 is embedded in the housing 110. After the control unit 160 obtains the water level data of the water tank 120, it outputs the water level data to the display screen 130 so that the water level data can be displayed on the display screen 130 so that the user can intuitively obtain the water level data of the humidifier 100 and thus the user can replenish the water tank 120 with water in a timely manner.
[0052] The water tank detection circuit 150 is used to detect the weight change of the water tank 120. When the water tank 120 undergoes a large weight change, the water tank detection circuit 150 outputs a conduction signal to the control unit 160. After receiving the conduction signal, the control unit 160 sends a drive signal to the ultrasonic sensor 140 to drive the ultrasonic sensor 140 to work and collect the water level data of the water tank 120.
[0053] In one embodiment, the water tank detection circuit 150 includes a pressure switch 151. The water tank 120 is activated by gravity, causing the pressure switch 151 to turn on. When the water tank 120 is removed from the mounting cavity of the outer casing 110, the pressure switch 151 turns off. After the water tank 120 is removed from the mounting cavity and water is added, it is reinstalled. The water tank 120 then triggers the pressure switch 151, causing it to turn on. This causes the water tank detection circuit 150 to output a conduction signal to the control unit 160, which in turn drives the ultrasonic sensor 140 to obtain the latest water level data. Preferably, the pressure switch 151 is a spring-loaded pressure switch.
[0054] In a typical embodiment of the present invention, the humidifier water level detection method is implemented based on the humidifier 100 described above. In this embodiment, the control unit allocates a predetermined execution time for each step of the humidifier water level detection method. The control unit uses a timer to count the execution time of each step of the humidifier water level detection method. When the execution time of a step meets the set duration, the next step is executed. Specifically, in conjunction with... Figure 3 The humidifier water level detection method includes the following specific steps:
[0055] Step S11: Drive the ultrasonic sensor to continuously detect the water level data of the liquid in the humidifier's water tank:
[0056] After receiving a water level detection command, the control unit activates the ultrasonic sensor. The sensor's probe emits ultrasonic signals into the humidifier's water tank to obtain water level data. Once detected, the ultrasonic sensor outputs the water level data to the control unit. The control unit continuously controls the ultrasonic sensor to acquire multiple water level data points.
[0057] Before step S11, there is a pre-step that triggers the water level detection command, causing the control unit to drive the ultrasonic sensor to work. Specifically, in conjunction with... Figure 4 The preliminary steps include the following steps:
[0058] Step S101: Controlled by the conduction signal generated by the water tank detection circuit, the system enters the detection start state.
[0059] When water is added to the water tank, the weight of the water tank will change drastically. After the water tank detection circuit detects the change in the weight of the water tank, the water tank detection circuit generates a conduction signal and outputs the conduction signal to the control unit. After receiving the conduction signal, the control unit generates a water level detection command and enters the detection start state based on the water level detection command.
[0060] In one embodiment, the water tank detection circuit is equipped with a pressure sensor. When the water tank is removed and the humidifier is filled with water, the pressure sensor will output a first signal, which indicates that the water tank has been removed and the water level detection stops. When the water tank, after being filled with water, is placed in the humidifier's mounting cavity, the pressure sensor will output a second signal under the action of the water tank's gravity, and the water tank detection circuit will generate a conduction signal based on the second signal.
[0061] Step S102: In the detected start-up state, output the first light effect animation representing the detected start-up state to the humidifier's display screen:
[0062] After entering the detection start-up state, the control unit checks whether the various electronic components of the humidifier are working properly, so as to prepare for subsequent water level detection. Furthermore, the control unit outputs first display data to the display screen. After receiving the first display data, the display screen plays a first lighting animation based on the first display data. The first lighting animation is used to represent the detection start-up state, allowing the user to know that the humidifier has entered the detection start-up state through the first lighting animation played on the display screen, thereby improving the user experience. In one embodiment, the execution time of step S102 is 1-10 seconds.
[0063] Step S103: After a preset duration, the detection start state ends, and the second lighting effect animation representing the entry into the detection execution state is displayed on the screen.
[0064] The control unit is set to a preset time period. Within this preset time period, the control unit enters a detection start state and completes the detection of various electronic components of the humidifier. Once the preset time period is reached, the control unit exits the detection start state and enters a detection execution state. In the detection execution state, the control unit controls the ultrasonic sensor to collect water level data in the water tank.
[0065] When the control unit enters the detection execution state, it outputs second display data to the display screen. Upon receiving the second display data, the display screen plays a second lighting animation based on the second display data. This second lighting animation represents the detection execution state, allowing the user to obtain the humidifier's status through the second lighting animation played on the display screen, thereby improving the user experience. In one embodiment, the first lighting animation and the second lighting animation may be the same or different. In one embodiment, the execution time of step S103 is 1-10 seconds.
[0066] Step S12: Calculate the water level fluctuation index between every two adjacent water level data points based on a series of consecutive water level data points, and obtain the index sequence:
[0067] An ultrasonic sensor continuously monitors the water level in the tank, sending a series of detected water level data points sequentially to the control unit according to the detection time. Upon receiving the water level data from the ultrasonic sensor, the control unit sorts the data points based on their detection time to obtain a water level sequence.
[0068] After acquiring the water level sequence, the control unit calculates a water level fluctuation index between two adjacent water level data points in the sequence. This index reflects the degree of fluctuation between the two water level data points. Because water is fluid, the water in the tank may fluctuate. For example, when water is added to a humidifier, the water level fluctuates dramatically upon entering the tank, making the detected water level data inaccurate. This is especially true when the water tank is immediately installed in the humidifier's mounting cavity after being filled with water, as the fluctuations are particularly severe, leading to even more inaccurate water level data. In this embodiment, the degree of fluctuation in the water level in the tank is reflected by calculating a water level fluctuation index between two adjacent water level data points in the water level sequence.
[0069] In this embodiment, the water level fluctuation index is the difference between two adjacent water level data points divided by the value of the preceding water level data point. For example, in a water level sequence, the first water level data point and the second water level data point are adjacent and arranged sequentially according to the detection time. The difference between the first water level data point and the second water level data point is the first difference value. Dividing the first difference value by the first water level data point yields the first water level fluctuation index, which is the water level fluctuation index between the first water level data point and the second water level data point. In this embodiment, the water level fluctuation index is an absolute value.
[0070] In another embodiment, the water level fluctuation index can also be obtained by calculating variance or standard deviation.
[0071] After the control unit calculates and obtains the water level fluctuation index between every two adjacent water level data in the water level sequence based on the water level sequence, it sorts the obtained water level fluctuation indexes again according to the detection time of the water level data to obtain the index sequence.
[0072] Step S13: Determine whether the index sequence meets preset conditions. If the preset conditions are met, display the latest water level data detected by the ultrasonic sensor on the humidifier's display screen. The preset conditions are used to characterize that multiple water level fluctuation indicators in the index sequence indicate that the water in the water tank is in a stable state.
[0073] The control unit is pre-set with preset conditions to determine whether the water in the tank is stable and not fluctuating. After acquiring the indicator sequence, the control unit compares it with the preset conditions. If multiple water level fluctuation indicators in the indicator sequence meet the preset conditions, the control unit determines that the water in the tank is stable and can output the latest water level data detected by the ultrasonic sensor to the display screen, allowing the user to obtain accurate water level data.
[0074] The preset conditions include a fluctuation threshold. When the water level fluctuation index is greater than the fluctuation threshold, it indicates that the water in the tank is in a fluctuating state; when the water level fluctuation index is equal to or less than the fluctuation threshold, it indicates that the water in the tank is in a relatively stable state. The water level fluctuation index equal to or less than the fluctuation threshold is called a stability index, and the water level fluctuation index greater than the fluctuation threshold is called a fluctuation index. When there are multiple consecutive stable indices in the index sequence, it can be determined that the water in the tank is in a stable state. For example, the fluctuation threshold can be set to 1%-3%. When 60%-100% of the water level fluctuation indices in the index sequence are stable indices, it is determined that the water in the tank is in a stable state, and the water level data is output to the display.
[0075] In step S13, the duration of step S13 is set, which is the execution time of step S13. The control unit calculates an index sequence (referred to as the first index sequence) from several water level data acquired by the ultrasonic sensor within the duration. If the number of stable indicators in the first index sequence is greater than or equal to a preset number, the water in the tank is determined to be in a stable state. In one embodiment, the duration of step S13 is 1-20 seconds.
[0076] Specifically, step S13 further includes the following steps to further illustrate whether the index sequence meets the preset conditions, in conjunction with... Figure 5 The specific steps are as follows:
[0077] Step S131: If the first judgment condition in the preset conditions is met, then extract multiple water level fluctuation indicators closest to the current time from the latest obtained indicator sequence as a first indicator subsequence. The first judgment condition indicates that the number of fluctuation indicators in the indicator sequence is less than or equal to a first preset threshold. The fluctuation indicators indicate that the water level fluctuation indicators indicate that the water in the tank is in a fluctuating state.
[0078] The preset conditions include a first judgment condition, which includes a first preset threshold. Specifically, when the number of fluctuation indicators in the indicator sequence is less than or equal to the first preset threshold, it is determined that the water level in the water tank is in a detectable state.
[0079] Due to the inherent limitations of ultrasonic sensors, they have a certain detection blind zone. Typically, when the water level in the tank is close to the probe of the ultrasonic sensor, for example, 1 to 3 mm, it falls within the detection blind zone. During detection, the ultrasonic sensor will output a series of fluctuating water level data, meaning that the index sequence contains multiple fluctuating indicators. If the number of fluctuating indicators exceeds a first preset threshold, the control unit will determine that the ultrasonic sensor is in the detection blind zone.
[0080] When the number of fluctuation indicators in the indicator sequence is less than the first preset threshold, the control unit determines that the ultrasonic sensor is not in the detection blind zone and can proceed to the next detection step. Then, the control unit extracts multiple consecutive water level fluctuation indicators with the most recent time from the latest acquired indicator sequence as a first indicator subsequence. The number of fluctuation indicators or stable indicators in the first indicator subsequence determines whether the water in the tank is in a stable state. In one embodiment, the first indicator subsequence is generated by extracting 15-30 water level fluctuation indicators with the time closest to the current moment from the indicator sequence.
[0081] Step S132: Determine whether the first indicator subsequence meets the second judgment condition of the preset condition. When the second judgment condition is met, execute the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier. The second judgment condition indicates that the number of stable indicators in the first indicator subsequence is greater than or equal to a second preset threshold. The stable indicators indicate that the water level fluctuation indicator indicates that the water in the tank is in a stable state.
[0082] The preset conditions include a second judgment condition, which includes a second preset threshold. When the number of stable indicators in the first indicator subsequence is greater than or equal to the second preset threshold, the water in the tank is judged to be in a stable state; conversely, when the number of stable indicators in the first indicator subsequence is less than the second preset threshold, the water in the tank is judged to be in a state of pending stabilization, that is, in a fluctuating state. In one embodiment, the second preset threshold is 10-15.
[0083] When the control unit determines that the number of stable indicators in the first indicator subsequence is greater than or equal to the second preset threshold, it determines that the water in the tank is in a stable state. When the water in the tank is in a stable state, the control unit outputs the latest water level data collected by the ultrasonic sensor to the display screen to display the water level data, so that the user can intuitively obtain the water level data in the tank from the display screen.
[0084] In one embodiment, the present invention further includes a step parallel to step S131, the specific steps of which are as follows:
[0085] Step S133: If the fourth judgment condition among the preset conditions is met, then the water level data in the water tank is determined to be zero, and the latest water level data is displayed on the humidifier's display screen. The fourth judgment condition indicates that the number of fluctuation indicators in the indicator sequence is greater than or equal to a fourth preset threshold, and the fourth preset threshold is greater than the first preset threshold.
[0086] The preset conditions include a fourth judgment condition, which includes a fourth preset threshold, and the fourth preset threshold is greater than the first preset threshold. Specifically, when the number of fluctuation indicators in the indicator sequence is greater than or equal to the fourth preset threshold, it is determined that the water level in the water tank is in an undetectable state, that is, the ultrasonic sensor probe is in the detection blind zone. For example, the fourth preset threshold is 15-30.
[0087] When the number of fluctuation indicators in the indicator sequence is greater than the fourth preset threshold, the control unit determines that the ultrasonic sensor is in the detection blind zone. The control unit forcibly sets the water level in the water tank to zero and directly outputs the water level data to the display screen to prompt the user to add water in time.
[0088] In a further embodiment, since it takes a certain amount of time for the water in the tank to transition from a fluctuating state to a stable state, the water may not have transitioned from a fluctuating state to a stable state when steps S131 and S132 are executed. Therefore, after remaining still for a certain period of time, such as 1 to 10 seconds, it is determined again whether the water in the tank is in a stable state. This embodiment includes step S134, which is parallel to step S132, and step S135, which is a further extension of step S134, combined with... Figure 6 The specific steps S134 and S135 are as follows:
[0089] Step S134: If the second judgment condition is not met, after waiting for a predetermined period of time, extract the multiple water level fluctuation indicators closest to the current moment from the latest obtained indicator sequence as the second indicator subsequence:
[0090] When the control unit determines that the number of stable indicators in the first indicator subsequence is less than the second preset threshold, it determines that the water in the water tank is in a state of waiting to stabilize, that is, the water in the water tank has not yet become still.
[0091] After a predetermined time period, the control unit extracts multiple water level fluctuation indicators whose times are closest to the current moment from the latest acquired indicator sequence as a second indicator subsequence. The number of fluctuation indicators or stable indicators in the second indicator subsequence is used to determine whether the water in the tank is in a stable state. In one embodiment, 10-15 water level fluctuation indicators whose times are closest to the current moment are extracted from the indicator sequence to generate the second indicator subsequence. Preferably, the predetermined time period is between 1 and 10 seconds.
[0092] Step S135: Determine whether the second indicator subsequence meets the third judgment condition of the preset condition. When the third judgment condition is met, execute the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier. The third judgment condition indicates that the number of stable indicators in the second indicator subsequence is greater than or equal to a third preset threshold.
[0093] The preset conditions include a third judgment condition, which includes a third preset threshold. When the number of stable indicators in the second indicator subsequence is greater than or equal to the third preset threshold, the water in the tank is judged to be in a stable state; conversely, when the number of stable indicators in the second indicator subsequence is less than the third preset threshold, the water in the tank is judged to be in a state awaiting stabilization. In this embodiment, if it is determined that the water in the tank is still in a state awaiting stabilization, steps S134 and S135 are executed again to determine that the water in the tank is in a stable state. In one embodiment, the third preset threshold is 10-15.
[0094] In one embodiment, since step S135 is executed after step S132, the water in the tank is further settled between steps S132 and S135. That is to say, the water in the tank is more stable in step S135 than the water in the tank in step S132. Therefore, the judgment condition for the stable state of the water in step S135 is stricter than the judgment condition for the stable state of the water in step S132. Specifically, the third preset threshold divided by the number of the second index subsequences is used to obtain the first stability rate, and the second preset threshold divided by the number of the first index subsequences is used to obtain the second stability rate. The first stability rate is greater than the second stability rate.
[0095] In a further embodiment, when the number of water level fluctuation indicators in the second indicator subsequence is the same as the number of water level fluctuation indicators in the first indicator subsequence, the third preset threshold is greater than the second preset threshold.
[0096] When the control unit determines that the number of stable indicators in the second indicator subsequence is greater than or equal to the third preset threshold, it determines that the water in the tank is in a stable state. When the water in the tank is in a stable state, the control unit outputs the latest water level data collected by the ultrasonic sensor to the display screen to display the water level data, so that the user can intuitively obtain the water level data in the tank from the display screen.
[0097] In one embodiment, when the second indicator subsequence does not meet the third judgment condition of the preset condition, all stable indicators are extracted from the second indicator subsequence, and the water level data corresponding to the stable indicators is obtained (referred to as pre-stable water level data). The obtained multiple pre-stable water level data are averaged to obtain an average value, which is then output to the display screen for display, so that the user can quickly obtain the water level data of the water in the tank. Afterwards, after waiting for a certain period of time, that is, after the water in the tank has settled, steps S134 and S135 are executed again to obtain accurate water level data of the water in the tank.
[0098] In another embodiment, if the second indicator subsequence does not meet the third judgment condition of the preset condition, then after waiting for the predetermined time, steps S134 and S135 are executed again to obtain the water level data in the water tank. If the third judgment condition is still not met, then steps S134 and S135 are repeated in subsequent steps until water level data in a stable state is obtained.
[0099] In one embodiment, a step S14, which is parallel to step S13, is further included, and the specific steps are as follows:
[0100] Step S14: Output a third lighting effect animation to the humidifier's display, the third lighting effect animation being used to represent the magnitude of the latest water level data:
[0101] When the control unit outputs water level data to the display screen, the control unit also outputs a third lighting effect animation to the display screen according to the size of the water level data, so as to further prompt the user about the size of the water level data in the water tank.
[0102] For example, when the water level in the tank is 2 / 3 or more of the tank's height, the control unit outputs a third lighting animation to the display screen, indicating that the water in the tank is sufficient, so that the display screen plays the third lighting animation, such as an animation of green plants or blue water.
[0103] When the water level in the tank is 1 / 3 to 2 / 3 of the tank's height, the control unit outputs a third lighting effect animation to the display screen, indicating that the water level in the tank is at a moderate level, so that the display screen plays the third lighting effect animation, for example, an animation of yellow plants.
[0104] When the water level in the tank is 1 / 3 or less of the tank's height, the control unit outputs a third lighting animation to the display screen, indicating that the water level in the tank is insufficient, so that the display screen plays the third lighting animation, for example, a red warning animation.
[0105] When the water level in the tank is zero, the control unit outputs a third lighting animation to the display screen to indicate that the water in the tank is empty, so that the display screen plays the third lighting animation, for example, the third lighting animation is a red alarm animation.
[0106] The present invention also provides a humidifier water level detection device, combined with Figure 7 The device includes:
[0107] The data acquisition module 600 drives the ultrasonic sensor to continuously detect the water level data in the humidifier's water tank;
[0108] The indicator calculation unit 700 calculates the water level fluctuation index between every two adjacent water level data based on a series of consecutive water level data, and obtains the indicator sequence.
[0109] The data output module 800 determines whether the index sequence meets a preset condition. If the preset condition is met, the latest water level data detected by the ultrasonic sensor is displayed on the humidifier's display screen. The preset condition indicates that multiple water level fluctuation indicators in the index sequence all indicate that the water level in the water tank is stable.
[0110] The present invention also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the humidifier water level detection method according to any embodiment of the present invention.
[0111] The present invention also provides a computer program product, including a computer program / instructions, which, when executed by one or more processors, implement the steps of the humidifier water level detection method described in any embodiment of the present invention.
[0112] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments of the present invention can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).
[0113] In summary, the present invention uses the humidifier water level detection method to determine whether the water in the humidifier is in a stable state, so that the ultrasonic sensor detects the water level data when the water is in a stable state and outputs it to the display screen, so that the user can obtain the correct water level data and add water to the humidifier in a timely manner.
[0114] Those skilled in the art will understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, modified, combined, or deleted. Furthermore, other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted. Furthermore, steps, measures, and solutions in the prior art that are similar to those disclosed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted.
[0115] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for detecting the water level in a humidifier, characterized in that, The steps include the following: The ultrasonic sensor is driven to continuously detect the water level data of the liquid in the humidifier's water tank; The water level fluctuation index between each two adjacent water level data is calculated based on a series of consecutive water level data. The water level fluctuation index is the difference between two adjacent water level data divided by the absolute value of the value of the previous water level data in the two adjacent water level data. Multiple water level fluctuation indices are arranged in time to obtain an index sequence. Determine whether the index sequence meets the preset conditions. If the preset conditions are met, display the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier. The preset conditions indicate that multiple water level fluctuation indicators in the index sequence indicate that the water in the water tank is in a stable state. The step of determining whether the index sequence meets preset conditions includes: If the first judgment condition in the preset conditions is met, then multiple water level fluctuation indicators closest to the current time are extracted from the latest obtained indicator sequence as the first indicator subsequence. The first judgment condition indicates that the number of fluctuation indicators in the indicator sequence is less than or equal to a first preset threshold. When the fluctuation indicator indicates that the water level fluctuation indicator is greater than the preset fluctuation threshold, it indicates that the water in the tank is in a fluctuating state. The second judgment condition is used to determine whether the first indicator subsequence meets the preset condition. When the second judgment condition is met, the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier is executed. The second judgment condition indicates that the number of stable indicators in the first indicator subsequence is greater than or equal to the second preset threshold. When the stable indicators indicate that the water level fluctuation indicators are equal to or less than the fluctuation threshold, it indicates that the water in the water tank is in a stable state. The step of determining whether the index sequence meets preset conditions includes: If the fourth judgment condition in the preset conditions is met, the water level data in the water tank is determined to be zero, and the latest water level data is displayed on the display screen of the humidifier. The fourth judgment condition indicates that the number of fluctuation indicators in the indicator sequence is greater than or equal to the fourth preset threshold, and the fourth preset threshold is greater than the first preset threshold.
2. The method as described in claim 1, characterized in that, The step of determining whether the first index subsequence satisfies the second determination condition also includes the following specific steps: If the second judgment condition is not met, after waiting for a predetermined period of time, extract the multiple water level fluctuation indicators closest to the current moment from the latest obtained indicator sequence as the second indicator subsequence; Determine whether the second indicator subsequence meets the third judgment condition of the preset condition. When the third judgment condition is met, execute the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier. The third judgment condition indicates that the number of stable indicators in the second indicator subsequence is greater than or equal to the third preset threshold.
3. The method as described in claim 1, characterized in that, Before the step of driving the ultrasonic sensor to continuously detect the water level data in the humidifier's water tank, the following steps are also included: Controlled by the conduction signal generated by the water tank detection circuit, it enters the detection start state; When the humidifier is in the start-up state, a first light effect animation representing the start-up state is output to the humidifier's display screen. After a preset duration, the detection start state ends, and a second lighting animation representing the entry into the detection execution state is output to the display screen.
4. The method according to any one of claims 1 to 3, characterized in that, The step of displaying the latest water level data detected by the ultrasonic sensor on the humidifier's display screen further includes the following steps: A third lighting effect animation is output to the humidifier's display, the third lighting effect animation being used to represent the magnitude of the latest water level data.
5. A humidifier, characterized in that, The device includes a housing, a water tank, a display screen, an ultrasonic sensor, a water tank detection circuit, and a control unit. The housing has an installation cavity, the ultrasonic sensor is located at the bottom of the installation cavity, the water tank is located inside the installation cavity, the display screen is embedded in the housing, and the control unit is used to perform the steps as described in any one of claims 1 to 4.
6. The humidifier as described in claim 5, characterized in that, The water tank detection circuit is equipped with a pressure switch, which is located at the bottom of the mounting cavity.
7. A humidifier water level detection device, characterized in that, include: The data acquisition module drives the ultrasonic sensor to continuously detect the water level data of the liquid in the humidifier's water tank; The indicator calculation module calculates the water level fluctuation index between each two adjacent water level data based on a series of consecutive water level data. The water level fluctuation index is the difference between two adjacent water level data divided by the absolute value of the value of the preceding water level data in the two adjacent water level data. Multiple water level fluctuation indices are arranged in time to obtain an indicator sequence. The data output module determines whether the index sequence meets the preset conditions. If the preset conditions are met, the latest water level data detected by the ultrasonic sensor is displayed on the display screen of the humidifier. The preset conditions indicate that multiple water level fluctuation indicators in the index sequence indicate that the water in the water tank is in a stable state. If the first judgment condition in the preset conditions is met, then multiple water level fluctuation indicators closest to the current time are extracted from the latest obtained indicator sequence as the first indicator subsequence. The first judgment condition indicates that the number of fluctuation indicators in the indicator sequence is less than or equal to a first preset threshold. When the fluctuation indicator indicates that the water level fluctuation indicator is greater than the preset fluctuation threshold, it indicates that the water in the tank is in a fluctuating state. The second judgment condition is used to determine whether the first indicator subsequence meets the preset condition. When the second judgment condition is met, the step of displaying the latest water level data detected by the ultrasonic sensor on the display screen of the humidifier is executed. The second judgment condition indicates that the number of stable indicators in the first indicator subsequence is greater than or equal to the second preset threshold. When the stable indicators indicate that the water level fluctuation indicators are equal to or less than the fluctuation threshold, it indicates that the water in the water tank is in a stable state. If the fourth judgment condition in the preset conditions is met, the water level data in the water tank is determined to be zero, and the latest water level data is displayed on the display screen of the humidifier. The fourth judgment condition indicates that the number of fluctuation indicators in the indicator sequence is greater than or equal to the fourth preset threshold, and the fourth preset threshold is greater than the first preset threshold.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code, which can be called by a processor to execute the humidifier water level detection method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Liquid level detection method and device, liquid level sensor, liquid storage container and cleaning equipment
CN115876273A
Humidifier
CN116499052A
Hot-water supply system
JP2012127556A