Method for detecting working state of humidifier based on reflective switch and device thereof
By using a reflective switch detection method, the AD value of the humidifier is obtained through a transparent cover and a photoelectric sensor. A preset comparison value is set, and the humidifier status is determined by accumulating the number of comparisons. This solves the problem of inaccurate detection in the prior art and realizes efficient and low-cost status differentiation and protection measures.
Patent Information
- Application Number
- CN202310402425.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2043-04-14
AI Technical Summary
Existing humidifiers have difficulty accurately distinguishing between water shortage, water tank lifting, and dry burning states when detecting their working status, resulting in insufficiently targeted protection measures. Furthermore, water surface fluctuations when the atomizing plate is turned on affect the detection accuracy.
The system employs a reflective switch detection method, which uses the detection light reflected from the transparent cover to obtain the AD value. A preset comparison value is set, and the humidifier status is determined by accumulating the number of comparisons. The system includes a transparent cover, a photoelectric sensor, and a microcontroller for AD value detection, enabling efficient differentiation of humidifier status.
It improves the accuracy and safety of humidifier status detection, and enables simple and low-cost differentiation of water shortage, water tank lifting and dry burning status, thus extending the service life of the humidifier.
Smart Images

Figure CN116430469B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of humidifier equipment technology, and in particular to a method and apparatus for detecting the operating status of a humidifier based on a reflective switch. Background Technology
[0002] A humidifier is a device that continuously consumes water to increase humidity. During operation, the water in the tank continuously decreases. When the water level in the tank reaches a certain point, it needs to be refilled promptly to ensure the humidifier's normal operation. Therefore, during operation, a humidifier may exhibit various states, such as water shortage, tank lifting, or dry running. By identifying and detecting these states, appropriate protective measures can be implemented to safeguard the humidifier.
[0003] In related technologies, such as the invention patent with application number CN202210473800.X entitled "A Water Shortage Protection System for Lifting the Water Tank of a Humidifier", it is mentioned that the method of using a reed switch and a magnetic float can simultaneously perform the functions of detecting the water shortage status of the humidifier and protecting the water tank when it is lifted. However, regardless of whether the water tank is lifted in a water shortage state or a water-containing state, the reed switch can be disconnected to achieve the purpose of protecting the humidifier. However, it cannot distinguish whether the reed switch is disconnected due to water shortage or due to the water tank being lifted, and cannot take corresponding protective measures accordingly.
[0004] In some related technologies, the intensity of the received optical signal is compared with a preset value to determine whether the humidifier is in a dry-burning state. However, during humidifier operation, when the atomizing plate is on, the water surface fluctuates, resulting in irregular signal intensity of the reflected light. This can interfere with the determination of the humidifier's dry-burning state, leading to insufficient accuracy and inaccurate judgment of the humidifier's operating status. Summary of the Invention
[0005] To overcome the problems existing in related technologies, this disclosure provides a method and apparatus for detecting the working status of a humidifier based on a reflective switch.
[0006] According to a first aspect of the present disclosure, a method for detecting the operating state of a humidifier based on a reflective switch is provided, comprising: controlling detection light to be directed toward a water tank through a transparent cover; acquiring the AD value of the detection light reflected back by the transparent cover at preset time intervals; setting a preset comparison value for each operating state of the humidifier based on the AD value; comparing the AD value with the preset comparison value, incrementing the comparison count by 1 if the AD value is within the normal range of the preset comparison value, and resetting the comparison count to zero if the AD value is outside the normal range; accumulating the comparison count to obtain a cumulative comparison count; and determining the operating state of the humidifier by comparing the number of AD value detections with the cumulative comparison count.
[0007] In one embodiment, the preset time interval is set to 5ms, the preset comparison value is set to 0x0007, the AD value acquired every 5ms is denoted as AD_SIGN, and the difference between the AD values acquired in adjacent 5ms intervals is denoted as ΔAD_SIGN; when ΔAD_SIGN < 0x0007, the comparison count is incremented by 1, when ΔAD_SIGN > 0x0007, the comparison count is reset to zero, and when the cumulative comparison count is ≥ 400 times, it is determined that the humidifier is in the atomization off state or that the atomizing plate of the humidifier is damaged or in the dry-burning state.
[0008] In one embodiment, the system further includes a control output dry-burning signal, which is set to output a 500Hz square wave.
[0009] In one embodiment, the preset time interval is set to 5ms, the preset comparison values are set to 0x0700 and 0x0600, and the AD value obtained every 5ms is counted as AD_SIGN; when AD_SIGN > 0x0700, the comparison count is incremented by 1, when AD_SIGN < 0x0600, the comparison count is cleared to zero, and when the cumulative comparison count is ≥ 100 times, it is determined that the humidifier is in the water tank lifted state.
[0010] In one embodiment, the system further includes a control output of a tankless signal, wherein the tankless signal is set to output a 200Hz square wave.
[0011] In one embodiment, the preset time interval is set to 5ms, the preset comparison value is set to 0x0300, and the AD value obtained every 5ms is counted as AD_SIGN; when AD_SIGN < 0x0300, the comparison count is incremented by 1, when AD_SIGN > 0x0300, the comparison count is cleared to zero, and when the cumulative comparison count is ≥ 200 times, it is determined that the humidifier is in a water shortage state.
[0012] In one embodiment, the method further includes determining whether the humidifier's water tank has water and whether the humidifier is in a closed state, and controlling the output of a water shortage signal, wherein the water shortage signal is set to output a 100Hz square wave.
[0013] In one embodiment, the preset time interval is set to 5ms, the preset comparison value is set to 0x0380, and the AD value obtained every 5ms is counted as AD_SIGN; when AD_SIGN < 0x0380, the comparison count is incremented by 1, when AD_SIGN > 0x0380, the comparison count is cleared to zero, and when the cumulative comparison count is ≥ 200 times, it is determined that the humidifier is in a water shortage state, and a water shortage signal is output.
[0014] In one embodiment, the device further includes determining whether the humidifier's water tank has water and whether the atomizing plate is in the open state, and controlling the output of a water shortage signal, wherein the water shortage signal is set to output a 100Hz square wave.
[0015] According to a second aspect of the present disclosure, an apparatus for detecting the operating state of a humidifier based on a reflective switch is provided, used in conjunction with the method for detecting the operating state of a humidifier based on a reflective switch provided in the first aspect of the present disclosure. The apparatus includes: a transparent cover, parallel to the bottom of a water tank; a photoelectric sensor, tilted at the bottom of the transparent cover, the photoelectric sensor including a detection light emitting tube, a detection light receiving tube, and a detection circuit; and a microcontroller with AD value detection, connected to the photoelectric sensor, for controlling the operation of the photoelectric sensor and the atomizing plate of the humidifier, and for detecting the AD value of the detection light received by the detection light receiving tube and outputting a status signal.
[0016] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0017] The method and apparatus for detecting the working status of a humidifier based on a reflective switch provided in this disclosure are simple, efficient, accurate, and low-cost. They can distinguish between different working states of the humidifier, such as water shortage, water tank lifting, and dry burning, facilitating targeted protection measures for the humidifier, improving its safety and extending its service life. Furthermore, they effectively avoid the influence of irregular changes in the intensity of the detection light caused by water surface fluctuations when the atomizing plate is open, thus improving detection accuracy.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0020] Figure 1 This is a schematic block diagram illustrating a method for detecting the operating status of a humidifier based on a reflective switch, according to an exemplary embodiment.
[0021] Figure 2 This is a schematic diagram illustrating the reflected light path during the process of detection light passing through a transparent cover and heading towards a water tank, according to an exemplary embodiment.
[0022] Figure 3 This is a schematic diagram of the waveform changes and acquired AD values of the reflected infrared light received under test conditions of a humidifier with no water tank, no water, and the atomizing plate turned off, according to an exemplary embodiment.
[0023] Figure 4 This is a schematic diagram illustrating the test conditions of a humidifier with a water tank, without water, and with the atomizing plate turned off, according to an exemplary embodiment, as well as the waveform changes of the reflected infrared light received under the current test conditions and the collected AD values.
[0024] Figure 5 This is a schematic diagram illustrating the test conditions of a humidifier in a waterless state, a water-filled state, atomizing plate closed state, and a low water level state, as well as the waveform changes of the reflected infrared light received under the current test conditions and the collected AD values.
[0025] Figure 6 This is a schematic diagram illustrating the test conditions of a humidifier in a waterless state, a water-filled state, an atomizing plate closed state, and a high water level state, according to an exemplary embodiment, as well as the waveform changes of the reflected infrared light received under the current test conditions and the collected AD values.
[0026] Figure 7 This is a schematic diagram of the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with a water tank, water, atomizing plate closed, and high water level, according to an exemplary embodiment.
[0027] Figure 8 This is a schematic diagram of the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with a water tank, water, an atomizing plate turned on, and a high water level, according to an exemplary embodiment.
[0028] Figure 9 This is a schematic diagram of the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with a water tank, water, atomizing plate closed, and low water level, according to an exemplary embodiment.
[0029] Figure 10This is a schematic diagram of the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with a water tank, water, an atomizing plate turned on, and a low water level, according to an exemplary embodiment.
[0030] Figure 11 This is a schematic diagram showing the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with no water tank, with water, with the atomizing plate turned on, and with a low water level, according to an exemplary embodiment.
[0031] Figure 12 This is a schematic diagram showing the waveform changes and collected AD values of the reflected infrared light received under test conditions of a humidifier with no water tank, with water, with the atomizing plate turned on, and with a high water level, according to an exemplary embodiment.
[0032] Figure 13 It is the AD value of the reflected infrared light obtained by the humidifier under different operating conditions according to an exemplary embodiment;
[0033] Figure 14 This is a circuit diagram illustrating a device for detecting the operating status of a humidifier based on a reflective switch, according to an exemplary embodiment. Detailed Implementation
[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0035] Example
[0036] In order to solve related technical problems, such as Figure 1 As shown, a first aspect of this disclosure provides a method for detecting the operating state of a humidifier based on a reflective switch, comprising: controlling detection light to be directed toward a water tank through a transparent cover; acquiring the AD value of the detection light reflected back through the transparent cover at preset time intervals; setting a preset comparison value for each operating state of the humidifier based on the AD value; comparing the AD value with the preset comparison value, incrementing the comparison count by 1 if the AD value is within the normal range of the preset comparison value, and resetting the comparison count to zero if the AD value is outside the normal range; accumulating the comparison count to obtain a cumulative comparison count; and determining the operating state of the humidifier by comparing the number of AD value detections with the cumulative comparison count.
[0037] The method for detecting the working status of a humidifier based on a reflective switch provided in this disclosure is simple, efficient, accurate, and low-cost. It can distinguish between different working states of the humidifier, such as water shortage, water tank lifting, and dry burning, facilitating targeted protection measures for the humidifier, improving its safety and extending its service life. Furthermore, it effectively avoids the influence of irregular changes in the intensity of the detection light caused by water surface fluctuations when the atomizing plate is open, thus improving detection accuracy.
[0038] In this embodiment of the disclosure, when the humidifier has a water tank and is in a water-filled state, the detection light is controlled to pass from the bottom of the water tank, through the transparent cover, water, and air in sequence, before being directed towards the water tank (e.g., ...). Figure 2 As shown, the detection light is preferably infrared light. Infrared light is emitted through an infrared emitting tube and received by an infrared receiving tube. A microcontroller with AD value detection can detect the AD value of the reflected infrared light; a higher intensity infrared light results in a higher AD value. Because the refractive indices of the transparent cover, water, and air are different, the number of reflections of the infrared light varies depending on whether the humidifier has a water tank, is not in a water tank, has water, or is not in a water tank, resulting in different AD values. For example, when the humidifier has water and is not in a water tank, infrared light enters the transparent cover and is reflected and refracted at the interface between the transparent cover and the water, and again at the interface between the water and the air. Therefore, the AD values of the infrared light will be obtained twice, in the cases of the humidifier having water and not in a water tank. In both the waterless and water tankless states of a humidifier, infrared light is reflected only once at the interface between the transparent cover and the air. Therefore, under the same conditions when the humidifier is without a water tank, the intensity of the reflected infrared light obtained when the humidifier is with water is greater than the intensity of the reflected infrared light obtained when the humidifier is without water.
[0039] Infrared light suffers greater propagation loss in water. Therefore, under the same water conditions, more infrared light is lost when the water level is high than when the water level is low, resulting in a relatively lower intensity of reflected infrared light. Consequently, the infrared light received by the infrared receiver is also less intense. Furthermore, the infrared light reflected back from the water tank is further attenuated by the water; the deeper the water, the greater the attenuation.
[0040] Under the same conditions, when the humidifier has a water tank, the infrared light refracted at the interface between water and air will be reflected back to the infrared light receiver tube at the interface between air and water. When the humidifier does not have a water tank, the infrared light receiver tube cannot receive the infrared light reflected back at the interface between air and water. Therefore, the intensity of the infrared light received by the infrared light receiver tube is relatively smaller when the humidifier does not have a water tank compared to when it has a water tank.
[0041] Under the same conditions, when the atomizing plate of the humidifier is turned on, the water surface will fluctuate, and the direction of reflection and refraction of infrared light will change irregularly. This causes the intensity of the reflected infrared light received by the infrared light receiver to also change irregularly and continuously. Therefore, in this embodiment, the waveform changes of the reflected infrared light under different operating states of the humidifier were tested as follows:
[0042] like Figure 3 As shown, by testing the humidifier under the conditions of no water tank, no water, and atomizing plate off, the waveform changes of the reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x0F25.
[0043] like Figure 4 As shown, by testing the humidifier under the conditions of having a water tank, having no water, and having the atomizing plate off, the waveform changes of the reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x00ED.
[0044] like Figure 5 As shown, by testing the humidifier under the following conditions—no water tank, water tank, atomizing plate off, and low water level—the waveform changes of the reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x0E10.
[0045] like Figure 6 As shown, by testing the humidifier under the following conditions—no water tank, water tank, atomizing plate off, and high water level—the waveform changes of the received reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x0E58.
[0046] like Figure 7 As shown, by testing the humidifier under the conditions of having a water tank, having water, having the atomizing plate off, and having a high water level, the waveform changes of the reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x05D3.
[0047] like Figure 8As shown, by testing the humidifier under the following conditions—with water tank, with water, with atomizing plate on, and with high water level—the waveform changes of the reflected infrared light and the collected AD values reveal that the water surface fluctuates continuously due to the atomizing plate being on, causing the water surface angle to change and the intensity of the reflected infrared light to change accordingly. The waveform also exhibits irregular fluctuations. The initial AD value is 0x0FFF, and the collected AD values fluctuate continuously. Using a 5V reference, the variation range is 0x04C2-0x05E2.
[0048] like Figure 9 As shown, by testing the humidifier under the conditions of having a water tank, having water, having the atomizing plate off, and having a low water level, the waveform changes of the reflected infrared light and the collected AD values show that the waveform is stable, the initial AD value is 0x0FFF, and the collected AD values, with a 5V reference, are basically maintained at 0x02D8.
[0049] like Figure 10 As shown, by testing the humidifier under the following conditions—with water tank, with water, with atomizing plate on, and with low water level—the waveform changes of the reflected infrared light and the collected AD values reveal that the water surface fluctuates continuously due to the atomizing plate being on, causing the water surface angle to change and the intensity of the reflected infrared light to change accordingly. The waveform also exhibits irregular fluctuations. The initial AD value is 0x0FFF, and the collected AD values fluctuate continuously. Using a 5V reference, the variation range is 0x021C-0x030A.
[0050] like Figure 11 As shown, by testing the humidifier under the following conditions—no water tank, water tank, atomizing plate on, and low water level—the waveform changes of the reflected infrared light and the collected AD values reveal that the water surface fluctuates continuously due to the atomizing plate being on, causing the water surface angle to change and the intensity of the reflected infrared light to change accordingly. The waveform also exhibits irregular fluctuations. The initial AD value is 0x0FFF, and the collected AD values fluctuate continuously. Using a 5V reference, the variation range is 0x07E1-0x0E63.
[0051] like Figure 12 As shown, by testing the humidifier under the following conditions—no water tank, water tank, atomizing plate on, and high water level—the waveform changes of the reflected infrared light and the collected AD values reveal that the water surface fluctuates continuously due to the atomizing plate being on, causing the water surface angle to change and the intensity of the reflected infrared light to change accordingly. The waveform also exhibits irregular fluctuations. The initial AD value is 0x0FFF, and the collected AD values fluctuate continuously. Using a 5V reference, the variation range is 0x0EF9-0x0F6A.
[0052] In summary, such as Figure 13As shown in this embodiment, the preset time interval is set to 5ms. The AD value acquired every 5ms is denoted as AD_SIGN, and the difference between AD values within adjacent 5ms intervals is denoted as ΔAD_SIGN. When the humidifier atomizing plate is on, ΔAD_SIGN will differ by more than 0x0030; when the humidifier atomizing plate is off, ΔAD_SIGN will differ by less than 0x0007. Furthermore, the difference is determined by... Figure 13 The AD values of the humidifier under different operating states are shown to determine the following specific preset comparison values to accurately determine the corresponding operating state of the humidifier, as follows:
[0053] Specifically, the preset comparison value is set to 0x0007. When △AD_SIGN < 0x0007, the comparison count is incremented by 1; when △AD_SIGN > 0x0007, the comparison count is reset to zero. When the cumulative comparison count is ≥ 400 (i.e., the time to reach 400 counts is 400 × 5ms = 2s), it is determined that the humidifier is in an atomization off state, or that the atomizing plate of the humidifier is damaged or in a dry-burning state. Furthermore, the method for detecting the working state of a humidifier based on a reflective switch provided in this embodiment also includes controlling the output of a dry-burning signal. The dry-burning signal is set to output a 500Hz square wave to indicate that the humidifier is in a dry-burning state, which facilitates dry-burning protection of the humidifier, such as adding an appropriate amount of water or disconnecting the power supply.
[0054] The preset comparison values are set to 0x0700 and 0x0600. When AD_SIGN > 0x0700, the comparison count is incremented by 1; when AD_SIGN < 0x0600, the comparison count is reset to zero. When the cumulative comparison count is ≥ 100 (i.e., 100 is the detection count, and the time to reach 100 is 100 × 5ms = 500ms), it is determined that the humidifier is in the water tank lifted state. Furthermore, the method for detecting the working state of a humidifier based on a reflective switch provided in this embodiment also includes controlling the output of a water tank-free signal. The water tank-free signal is set to output a 200Hz square wave to indicate that the humidifier is in the water tank lifted state, which facilitates water tank lift protection for the humidifier.
[0055] The preset comparison value is set to 0x0300. When AD_SIGN < 0x0300 (low water level 0x02D8), the comparison count is incremented by 1; when AD_SIGN > 0x0300, the comparison count is reset to zero. When the cumulative comparison count is ≥ 200 (i.e., 200 is the detection count, and the time to reach 200 is 200 × 5ms = 1s), the humidifier is determined to be in a water shortage state. Furthermore, it can also determine whether the humidifier's water tank has water and whether the humidifier's atomizing plate is in the off state, controlling the output of a water shortage signal. The water shortage signal is set to output a 100Hz square wave to indicate that the humidifier is in a water shortage state, providing water shortage protection for the humidifier.
[0056] The preset comparison value is set to 0x0380. When AD_SIGN < 0x0380 (low water level 0x030A), the comparison count is incremented by 1; when AD_SIGN > 0x0380, the comparison count is reset to zero. When the cumulative comparison count is ≥ 200 (i.e., 200 is the detection count, and the time to reach 200 is 200 × 5ms = 1s), the humidifier is determined to be in a water shortage state. Furthermore, it can also determine whether the humidifier's water tank has water and whether the humidifier's atomizing plate is on, controlling the output of a water shortage signal. The water shortage signal is set to output a 100Hz square wave to indicate that the humidifier is in a water shortage state, providing water shortage protection for the humidifier.
[0057] It should be noted that, in the embodiments disclosed herein, the priority of the humidifier's water tank lift-up state alarm (i.e., outputting a no-water-tank signal) is Level I, the priority of the humidifier's water shortage state alarm (i.e., outputting a water shortage signal) is Level II, and the priority of the humidifier's dry-burning state alarm (i.e., outputting a dry-burning signal) is Level III. That is, the humidifier will only detect whether it is short of water when it has a water tank; and the humidifier will only determine whether it is dry-burning when it has water in the water tank.
[0058] A second aspect of this disclosure provides an apparatus for detecting the operating state of a humidifier based on a reflective switch, used in conjunction with the method for detecting the operating state of a humidifier based on a reflective switch provided in the above-described embodiments of this disclosure. The apparatus includes a transparent cover, a photoelectric sensor, and a microcontroller with AD value detection. The transparent cover is disposed parallel to the bottom of the humidifier's water tank and is made of transparent plastic with a refractive index of 1.49. The photoelectric sensor is tilted at the bottom of the transparent cover and includes a detection light emitting tube, a detection light receiving tube, and a detection circuit. Preferably, the detection light emitting tube and the detection light receiving tube are tilted at a 15-degree angle to the transparent cover, which helps to reduce the intensity of the detection light reflected from the transparent cover. The microcontroller with AD value detection is preferably an 8-pin microcontroller connected to the photoelectric sensor and used to control the operation of the photoelectric sensor and the humidifier's atomizing plate, as well as to detect the AD value of the detection light received by the detection light receiving tube and output a status signal.
[0059] Specifically, such as Figure 14 As shown, the P05 port of the 8-pin microcontroller U1 is used as an input port. When the humidifier's atomizing plate is activated, a 1 is input to the P05 port; when the atomizing plate is deactivated, a 0 is input to the P05 port, thus obtaining the working status of the humidifier's atomizing plate. After power-on, the P00 port outputs a high level, activating the photoelectric sensor U2, which can receive the AD value collected by the level change through the P20 port. The P17 port serves as an output port, outputting different status signals, such as the aforementioned dry-burning signal, water tank-free signal, and water shortage signal. This achieves the purpose of easily, efficiently, cost-effectively, and with high precision distinguishing and detecting the humidifier's working status, including water shortage, water tank lifted (water tank-free), and dry-burning states.
[0060] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0061] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0062] It is further understood that the terms “center,” “longitudinal,” “lateral,” “front,” “rear,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation.
[0063] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.
[0064] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0065] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0066] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for detecting the operating status of a humidifier based on a reflective switch, characterized in that, include: The detection light is directed through a transparent cover onto the water tank; At preset time intervals, the AD value of the detection light reflected back by the transparent cover is acquired at intervals; Based on the AD value, set each preset comparison value for the humidifier in each working state; The AD value is compared with the preset comparison value. If the AD value is within the normal range of the preset comparison value, the comparison count is incremented by 1; otherwise, the comparison count is reset to zero. The cumulative comparison count is obtained by accumulating the comparison count. The working status of the humidifier is determined by the magnitude of the number of AD value detections and the cumulative comparison count. The preset time interval is set to 5ms, the preset comparison value is set to 0x0007, the AD value obtained every 5ms is counted as AD_SIGN, and the difference between the AD values obtained in adjacent 5ms is counted as △AD_SIGN; When △AD_SIGN < 0x0007, the comparison count is incremented by 1; when △AD_SIGN > 0x0007, the comparison count is reset to zero; when the cumulative comparison count is ≥ 400, it is determined that the humidifier is in the atomization off state or that the atomizing plate of the humidifier is damaged or in the dry burning state.
2. The method for detecting the working status of a humidifier based on a reflective switch according to claim 1, characterized in that: It also includes a control output dry-burning signal, which is set to output a 500Hz square wave.
3. The method for detecting the working status of a humidifier based on a reflective switch according to claim 1, characterized in that: The preset time interval is set to 5ms, the preset comparison values are set to 0x0700 and 0x0600, and the AD value obtained every 5ms is denoted as AD_SIGN; When AD_SIGN > 0x0700, the comparison count is incremented by 1; when AD_SIGN < 0x0600, the comparison count is reset to zero; when the cumulative comparison count is ≥ 100, the humidifier is determined to be in the water tank lifted state.
4. The method for detecting the working status of a humidifier based on a reflective switch according to claim 3, characterized in that: It also includes a control output of a tankless signal, which is set to output a 200Hz square wave.
5. The method for detecting the working status of a humidifier based on a reflective switch according to claim 1, characterized in that: The preset time interval is set to 5ms, the preset comparison value is set to 0x0300, and the AD value obtained every 5ms is denoted as AD_SIGN; When AD_SIGN < 0x0300, the comparison count is incremented by 1; when AD_SIGN > 0x0300, the comparison count is reset to zero; when the cumulative comparison count is ≥ 200, the humidifier is determined to be in a water shortage state.
6. The method for detecting the working status of a humidifier based on a reflective switch according to claim 5, characterized in that: It also includes determining whether the humidifier's water tank has water and whether the humidifier is in a closed state, and controlling the output of a water shortage signal, wherein the water shortage signal is set to output a 100HZ square wave.
7. The method for detecting the working status of a humidifier based on a reflective switch according to claim 1, characterized in that: The preset time interval is set to 5ms, the preset comparison value is set to 0x0380, and the AD value obtained every 5ms is denoted as AD_SIGN; When AD_SIGN < 0x0380, the comparison count is incremented by 1; when AD_SIGN > 0x0380, the comparison count is reset to zero; when the cumulative comparison count is ≥ 200, the humidifier is determined to be in a water shortage state, and a water shortage signal is output.
8. The method for detecting the working status of a humidifier based on a reflective switch according to claim 7, characterized in that: It also includes determining whether the humidifier's water tank has water and whether the atomizing plate is in the on state, and controlling the output of a water shortage signal, which is set to output a 100HZ square wave.
9. A device for detecting the operating state of a humidifier based on a reflective switch, used in the method for detecting the operating state of a humidifier based on a reflective switch as described in any one of claims 1 to 8, characterized in that, include: A transparent cover is installed parallel to the bottom of the water tank; A photoelectric sensor is tilted and disposed at the bottom of the transparent cover. The photoelectric sensor includes a light emitting tube, a light receiving tube, and a detection circuit. A microcontroller with AD value detection is connected to the photoelectric sensor and is used to control the operation of the photoelectric sensor and the atomizing plate of the humidifier, as well as to detect the AD value of the detection light received by the detection light receiver tube and output a status signal.
Citation Information
Patent Citations
Water shortage protection system for lifting water tank of humidifier
CN115325634A
Water level detection device and method for humidifier
CN109813392A
Water tank assembly and cooling fan
CN115200123A
System for calculating water position using laser
KR1020170114844A