Household appliance and control method and apparatus therefor, storage medium, and product
By adjusting the duty cycle of the PWM signal and the timer mechanism of the infrared sensor, the problem of unstable detection signals of home appliances in confined spaces was solved, and accurate human body detection was achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2026-04-02
AI Technical Summary
In confined home environments, the stability of infrared sensor signals from home appliances is affected by hysteresis design and interference from surrounding objects, leading to misjudgments of whether a person has left or not.
By adjusting the duty cycle of the PWM signal of the infrared sensor, the detection distance is reduced. Combined with a timer and a re-inspection mechanism, the interference of hysteresis design is eliminated, ensuring accurate identification of human departure.
This improves the stability of the detection signal of the infrared sensor, reduces false alarms, and ensures accurate human body detection function of home appliances in confined spaces.
Smart Images

Figure CN2025110606_02042026_PF_FP_ABST
Abstract
Description
Home appliance and control method, device, storage medium and product thereof
[0001] Cross-reference to related applications
[0002] This application is based on and claims priority to Chinese patent application No. 202411364489.0, filed on September 27, 2024, the entire contents of which are incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application relates to the field of home appliances, and in particular, to a home appliance and a control method, device, storage medium and product thereof. BACKGROUND
[0004] With the development of the times, people's requirements for the quality of life are also getting higher and higher. In order to improve the quality of life, home appliances are increasingly in demand. In order to improve the intelligent control level of home appliances, an infrared sensing device can be introduced into the home appliance to realize automatic detection of the user's approach or departure from the home appliance.
[0005] The home appliance is applied to a home scene, and its deployment position is often limited by the home space. For example, a dishwasher is an automatic cleaning tool. Through the dishwasher, the utensils such as dishes placed therein can be automatically cleaned. While achieving efficient decontamination and sterilization of the placed dishes, the dishwasher also saves the time of manual dishwashing, greatly reducing manual labor. The dishwasher is generally deployed in a cabinet in the kitchen. The home scene often affects the stability of the detection signal of the infrared sensing device. SUMMARY
[0006] Therefore, the embodiments of the present application provide a home appliance and a control method, device, storage medium and product thereof, which aim to improve the stability of the detection signal of the infrared sensing device of the home appliance.
[0007] The technical solutions of the embodiments of the present application are as follows:
[0008] In a first aspect, the embodiments of the present application provide a control method of a home appliance. The home appliance includes an infrared sensing device for detecting a human body, and the infrared sensing device includes an infrared emitter and an infrared receiver. The method includes:
[0009] controlling a driving port of the infrared emitter to work with a PWM (Pulse-Width Modulation) signal of an initial duty cycle, and generating a first detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver;
[0010] if it is determined that the human body is detected based on the first detection result, adjusting the duty cycle of the PWM signal based on the initial duty cycle, and generating a second detection result of whether the human body is detected based on the electrical signal fed back by the output port of the infrared receiver;
[0011] generating a third detection result of the human body leaving based on the second detection result.
[0012] In some embodiments, the generating the third detection result of the human body leaving based on the second detection result comprises:
[0013] if it is determined that the human body is not detected based on the second detection result and the duration of the human body not being detected reaches a set duration, controlling the driving port of the infrared emitter to restore the initial duty cycle of the PWM signal, and generating a fourth detection result of whether the human body is detected based on the electrical signal fed back by the output port of the infrared receiver;
[0014] if it is determined that the human body is not detected based on the fourth detection result, generating a third detection result of the human body leaving.
[0015] In some embodiments, the method further comprises:
[0016] if it is determined that the human body is detected based on the fourth detection result, returning to the adjusting the duty cycle of the PWM signal based on the initial duty cycle, and generating the second detection result of whether the human body is detected based on the electrical signal fed back by the output port of the infrared receiver.
[0017] In some embodiments, the method further comprises:
[0018] if it is determined that the human body is detected based on the second detection result, resetting a first timer for counting down, and determining the duration of the human body not being detected based on an initial value and a current value of the first timer; or,
[0019] if it is determined that the human body is not detected based on the second detection result, starting a second timer for counting, and determining the duration of the human body not being detected based on a current value of the second timer.
[0020] In some embodiments, the adjusting the duty cycle of the PWM signal based on the initial duty cycle, and generating the second detection result of whether the human body is detected based on the electrical signal fed back by the output port of the infrared receiver comprises:
[0021] controlling the PWM signal to be adjusted from the initial duty cycle to a set duty cycle, and generating the second detection result of whether the human body is detected based on the electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal with the set duty cycle.
[0022] In some embodiments, the adjusting the duty cycle of the PWM signal based on the initial duty cycle and generating the second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver comprises:
[0023] controlling the duty cycle of the PWM signal to be adjusted from the initial duty cycle to a set duty cycle by a set step, and generating the second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver under the PWM signal driven by the set duty cycle.
[0024] In some embodiments, the farthest detection distance of the infrared sensing device in the direction away from the household appliance under the PWM signal driven by the set duty cycle is less than or equal to a set detection distance, wherein the set detection distance is the farthest detection distance of the infrared sensing device in the direction close to the household appliance under the PWM signal driven by the initial duty cycle.
[0025] In some embodiments, the method further comprises:
[0026] controlling the household appliance to operate in a first working state based on the first detection result;
[0027] controlling the household appliance to operate in a second working state based on the third detection result;
[0028] wherein the first working state is different from the second working state in at least one execution state of an execution mechanism.
[0029] In a second aspect, the embodiments of the present application provide a control device of a household appliance, the household appliance comprising an infrared sensing device for detecting a human body, the infrared sensing device comprising an infrared emitter and an infrared receiver; the control device comprising:
[0030] a first processing module configured to control the driving port of the infrared emitter to work under a PWM signal with an initial duty cycle, and generate a first detection result of whether a human body is detected based on an electrical signal fed back by the output port of the infrared receiver;
[0031] a second processing module configured to, if it is determined that a human body is detected based on the first detection result, adjust the duty cycle of the PWM signal based on the initial duty cycle, and generate a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver;
[0032] a third processing module configured to generate a third detection result representing a human body leaving based on the second detection result.
[0033] In a third aspect, an embodiment of the present application provides a home appliance, the home appliance comprising an infrared sensing device for detecting a human body, the infrared sensing device comprising an infrared emitter and an infrared receiver, the home appliance further comprising a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the method of the first aspect of the present application when running the computer program.
[0034] In some embodiments, the home appliance comprises at least one of a washing machine, a dishwasher, and a refrigerator.
[0035] In a fourth aspect, an embodiment of the present application provides a storage medium, the storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method of the first aspect of the present application.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program, the computer program being executed by a processor to implement the steps of the method of the first aspect of the present application.
[0037] The technical solution provided by the embodiments of the present application controls the driving port of the infrared emitter to work with the PWM signal of the initial duty ratio, and generates the first detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver; if it is determined that a human body is detected based on the first detection result, the duty ratio of the PWM signal is adjusted lower based on the initial duty ratio, and the second detection result of whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver; the third detection result indicating that a human body leaves is generated based on the second detection result. In this way, by adjusting the duty ratio of the PWM signal to reduce the detection distance of the infrared sensing device, in the scenario where a human body is far away from the home appliance, the interference of the detection signal of the infrared sensing device caused by the close object due to the hysteresis design of the infrared sensing device can be actively eliminated, and then the human body can be accurately identified to leave, the stability of the detection signal of the infrared sensing device is improved, and the implementation of the human body detection function of the home appliance in the limited space scenario is facilitated. BRIEF DESCRIPTION OF DRAWINGS
[0038] FIG. 1 is a schematic diagram of a hysteresis curve of an infrared sensing device in the related art;
[0039] FIG. 2 is a schematic diagram of the detection effect of a home appliance introducing an infrared sensing device with a hysteresis effect in the related art;
[0040] FIG. 3 is a flowchart of a control method of a home appliance according to an embodiment of the present application;
[0041] Fig. 4 is a schematic diagram of the structure of an infrared sensing device according to an embodiment of the present application;
[0042] Fig. 5 is a schematic diagram of the principle of detecting whether a person is present according to an embodiment of the present application;
[0043] Fig. 6 is a schematic diagram of the structure of an infrared receiving chip according to an embodiment of the present application;
[0044] Fig. 7 is a schematic diagram of the flow of a control method for a dishwasher according to an embodiment of the present application;
[0045] Fig. 8 is a schematic diagram of the structure of a control device for an electrical appliance according to an embodiment of the present application;
[0046] Fig. 9 is a schematic diagram of the structure of an electrical appliance according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] The present application will be described in further detail below with reference to the drawings and embodiments.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the application.
[0049] In the related art, in order to avoid the mis-detection of the infrared sensing device caused by the reasonable displacement of the user in the kitchen, and to improve the stability of the detection result, a hysteresis design of the infrared sensing device is often introduced, for example, the infrared sensing device is provided with a set hysteresis curve through feedback adjustment of the internal gain, so as to make the detection signal stable. However, due to the small size of the kitchen space, the cabinet or wall close to the electrical appliance may interfere with the judgment of whether the user leaves the electrical appliance due to the hysteresis design of the infrared sensing device, resulting in a conflict between the stability of the detection signal of the infrared sensing device in the electrical appliance and the above interference.
[0050] By way of example, the electrical appliance according to an embodiment of the present application comprises an infrared sensing device for detecting a human body, wherein the infrared sensing device comprises an infrared emitter and an infrared receiver. The infrared emitter is configured to emit infrared rays to the surrounding environment, and the infrared receiver is configured to receive the reflected infrared rays. The electrical appliance further comprises a processor connected to a driving port of the infrared emitter and an output port of the infrared receiver. The processor can drive the infrared emitter to emit infrared rays to the surrounding environment based on a driving signal. When a human body is present within a set distance, the reflected infrared rays are received by the infrared receiver and an electrical signal is output to the processor based on the intensity of the received infrared rays. In this way, the processor can detect whether a human body is present near the electrical appliance, thereby improving the intelligent control level of the electrical appliance.
[0051] It should be noted that in the related art, in order to avoid the reasonable displacement of the user from causing the false detection of the infrared sensing device, a hysteresis design is generally introduced in the infrared sensing device, so that the infrared sensing device has a set hysteresis curve, and thus the detection signal tends to be stable. The hysteresis curve refers to the phenomenon that the input-output characteristic curves of the infrared sensing device do not coincide in the forward stroke (i.e., the input gradually increases) and the reverse stroke (i.e., the input gradually decreases). For example, FIG. 1 shows a schematic diagram of a hysteresis curve of an infrared sensing device, wherein the x-axis represents the input of the hysteresis curve, and the y-axis represents the output of the hysteresis curve. The input-output characteristic curves in the forward stroke and the reverse stroke do not coincide, and the maximum difference between the characteristic curves in the two directions is ΔHmax.
[0052] FIG. 2 shows a schematic diagram of the detection effect of introducing an infrared sensing device with hysteresis effect in an electrical appliance, wherein the variable L on the horizontal axis represents the distance between the human body and the electrical appliance, and the variable Vout on the vertical axis represents the voltage value of the electrical signal generated by the infrared sensing device. If the voltage value is greater than or equal to the first threshold value Voh, it is determined that the human body is detected. If the voltage value is less than the second threshold value Vol, it is determined that the human body is not detected. Referring to FIG. 2, it can be known that due to the hysteresis effect of the infrared sensing device, the farthest distance at which the infrared sensing device can detect the human body in the direction close to the electrical appliance is L0, and the farthest distance at which the infrared sensing device can detect the human body in the direction away from the electrical appliance is L1, wherein L1>L0. In other words, the farthest distance at which the infrared sensing device detects the human body when the human body is away from the electrical appliance is greater than the farthest distance when the human body is close to the electrical appliance. If there is an object such as a wall between the electrical appliance and the human body, the object may be affected by the above hysteresis effect, so that the infrared sensing device can always detect the object, and thus it is misjudged that the human body has not left, causing the error control of the electrical appliance.
[0053] Based on this, the embodiment of the present application provides a control method of an electrical appliance, which can be executed by a processor of the electrical appliance. As shown in FIG. 3, the method comprises the following steps:
[0054] In step 301, the driving port of the infrared emitter is controlled to work with a PWM signal of an initial duty ratio, and a first detection result of whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver.
[0055] In step 302, if it is determined that a human body is detected based on the first detection result, the duty ratio of the PWM signal is adjusted lower based on the initial duty ratio, and a second detection result of whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver.
[0056] At step 303, a third detection result indicating that the human body leaves is generated based on the second detection result.
[0057] It should be noted that the detection distance of the infrared sensing device can be actively reduced by reducing the duty cycle of the PWM signal. The second detection result can be understood as the detection result of the infrared sensing device after reducing the duty cycle of the PWM signal.
[0058] It can be understood that the control method of the embodiments of the present application reduces the detection distance of the infrared sensing device by reducing the duty cycle of the PWM signal, so that in the scenario where the human body is far away from the household appliance, the interference of the object close to the household appliance on the detection signal of the infrared sensing device caused by the hysteresis design of the infrared sensing device can be actively eliminated, and the human body can be accurately identified to leave, thereby improving the stability of the detection signal of the infrared sensing device and facilitating the implementation of the human body detection function of the household appliance in the limited space scenario.
[0059] Exemplarily, the third detection result indicating that the human body leaves is generated based on the second detection result, comprising:
[0060] If it is determined that no human body is detected based on the second detection result and the duration of no human body detection reaches a set duration, the driving port of the infrared emitter is controlled to restore the initial duty cycle of the PWM signal, and a fourth detection result indicating whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver.
[0061] If it is determined that no human body is detected based on the fourth detection result, a third detection result indicating that the human body leaves is generated.
[0062] It should be noted that the method of the embodiments of the present application can avoid false detection caused by temporary movement of the human body by introducing a threshold of the set duration, and can confirm whether the human body truly leaves based on the detection amount of the forward stroke by restoring the PWM signal to the initial duty cycle for re-detection (i.e., the process of generating the fourth detection result), thereby improving the stability and reliability of the detection result.
[0063] Exemplarily, the method further comprises:
[0064] If it is determined that a human body is detected based on the fourth detection result, the process of reducing the duty cycle of the PWM signal based on the initial duty cycle and generating the second detection result indicating whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver is returned.
[0065] It can be understood that if a human body is detected based on the fourth detection result, it indicates that the human body has not truly left, which may be caused by the false detection after the PWM duty cycle is reduced, and then the PWM signal duty cycle is reduced based on the initial duty cycle, that is, the detection distance of the infrared sensing device is actively reduced, thereby avoiding the interference of the infrared sensing device caused by the distance of the object close to the infrared sensing device. Based on the above detection logic, the interference of the object close to the infrared sensing device caused by the hysteresis design can be effectively avoided, and the infrared sensing device can accurately detect the situation that the human body leaves.
[0066] Exemplarily, the method further comprises:
[0067] If it is determined that a human body is detected based on the second detection result, resetting a first timer for countdown, and determining the duration of the non-detection of the human body based on the initial value and the current value of the first timer; or,
[0068] If it is determined that a human body is not detected based on the second detection result, starting a second timer for counting, and determining the duration of the non-detection of the human body based on the current value of the second timer.
[0069] It can be understood that the duration of the non-detection of the human body obtained by the second detection result of the embodiment of the application can be realized by using the first timer for countdown, or can be realized by using the second timer for counting, and the embodiment of the application does not limit this.
[0070] Exemplarily, the PWM signal duty cycle is reduced based on the initial duty cycle, and the second detection result of whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver, comprising:
[0071] The PWM signal is controlled to be reduced from the initial duty cycle to a set duty cycle, and the second detection result of whether a human body is detected is generated based on the electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal with the set duty cycle.
[0072] It can be understood that when the PWM signal duty cycle is reduced, the initial duty cycle can be directly switched to the set duty cycle, thereby reducing the detection distance of the infrared sensing device, and generating the second detection result based on the PWM signal with the set duty cycle. Under the driving of the PWM signal with the set duty cycle, the farthest detection distance of the infrared sensing device in the direction away from the household appliance is less than or equal to the set detection distance, and the farthest detection distance of the infrared sensing device in the direction close to the household appliance under the driving of the PWM signal with the initial duty cycle is the set detection distance.
[0073] It can be understood that by reducing the duty cycle of the PWM signal, the detection curve shown in FIG. 2 will be shifted to the left. Assuming that the farthest detection distance in the forward travel direction (i.e., the direction in which the human body approaches the home appliance) under the PWM signal with the set duty cycle is iL0, and the farthest detection distance in the reverse travel direction (i.e., the direction in which the human body moves away from the home appliance) is iL1, iL1 is less than or equal to the aforementioned distance L0 (i.e., the farthest detection distance in the forward travel direction under the initial duty cycle), the problem of false detection interference caused by objects such as walls located between L0 and L1 can be effectively avoided. In this way, the interference of objects with a short distance caused by the hysteresis design can be avoided.
[0074] Exemplarily, the method further comprises:
[0075] controlling the PWM signal to be reduced from the initial duty cycle to the set duty cycle at a set step, and generating a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver under the PWM signal with the set duty cycle.
[0076] It should be noted that in an application example, when the duty cycle of the PWM signal is reduced, the initial duty cycle can be gradually reduced based on a set step until it is reduced to the set duty cycle, thereby avoiding excessive fluctuations in the detection distance caused by direct switching, and further reducing the false detection of the human body leaving caused by excessive fluctuations. The detection distance of the infrared sensing device can be gradually reduced until the interference of objects with a short distance is completely avoided. The aforementioned second detection result can be the detection result after the duty cycle of the PWM signal is dynamically reduced and reduced to the set duty cycle. Here, the definition of the set duty cycle can refer to the foregoing description, which will not be described here again.
[0077] Exemplarily, the method further comprises:
[0078] controlling the home appliance to operate in a first working state based on the first detection result;
[0079] controlling the home appliance to operate in a second working state based on the third detection result;
[0080] The first working state is different from the second working state in at least one execution state of an execution mechanism.
[0081] It should be noted that the processor of the household appliance can switch the working state based on the first detection result and the third detection result, for example, the processor can determine that the human body is close based on the first detection result, and then control the lamp strip of the household appliance to display; the processor can determine that the human body is away based on the third detection result, and then control the lamp strip of the household appliance to be turned off; in addition, the processor can also control part of the actuators to switch between the sleep state and the wake-up state, and the like, and the embodiments of the present application do not limit this.
[0082] The control method of the household appliance according to the embodiments of the present application will be exemplarily described below in combination with an application example.
[0083] In the application example, the household appliance to which the infrared sensing device is introduced is a dishwasher installed in a kitchen. The farthest distance L0 sensed by the dishwasher when the human body is close ranges from 40 cm to 65 cm, and the farthest distance L1 sensed by the dishwasher when the human body is away ranges from 90 cm to 130 cm. Since some kitchens are U-shaped or relatively narrow, the distance between the dishwasher and the cabinet (or wall) on the opposite side of the kitchen can be between L0 and L1. After the dishwasher senses the presence of a human being, the infrared sensing device can continue to detect the cabinet (or wall) on the opposite side due to the hysteresis characteristic, and misjudge that the human being has not left, so that the dishwasher makes an incorrect control.
[0084] As shown in FIG. 4, in the application example, the infrared sensing device includes an infrared emitter LD1 and an infrared receiving chip LD2. The processor of the household appliance can include a single-chip microcomputer. The PIN13 pin of the single-chip microcomputer serves as a driving port of the infrared emitter, which controls the output of a PWM signal, for example, a PWM signal with a carrier frequency of 38 KHz, controls the conduction of a triode Q2, and thus controls the infrared emitter LD1 to emit infrared rays to the surrounding environment. Exemplarily, the anode of the infrared emitter LD1 is connected to the +5V power supply end through a resistor R8, the cathode of the infrared emitter LD1 is connected to the collector of the triode Q2, the emitter of the triode Q2 is grounded, the base of the triode Q2 is connected to the driving port through a resistor R10, a resistor R12 is arranged between the base of the triode Q2 and the ground terminal, and the base of the triode Q2 controls the infrared emitter LD1 to emit infrared rays based on the driving of the PWM signal. The infrared receiving chip LD2 includes a first terminal 1, a second terminal 2 and a third terminal 3. The first terminal 1 is connected to the +5V power supply end through a resistor R9, the second terminal 2 is grounded, and the third terminal 3 serves as an electrical signal output port and is connected to the PIN20 pin of the single-chip microcomputer.
[0085] Exemplarily, when there is a person in front of the dishwasher, the person will reflect the infrared signal emitted by the infrared emitter LD1, and when the infrared receiver in the infrared receiving chip LD2 receives the reflected infrared signal, it is determined that there is a person, and a high-level (5V) signal will be output to the single-chip microcomputer. If there is no infrared signal, it is determined that there is no person, and a low-level (0V) signal will be output to the single-chip microcomputer, as shown in FIG. 5.
[0086] As shown in FIG. 6, the infrared receiving chip LD2 can include an infrared receiver, an amplifier, a gain amplifier and a filter (CGA and Filter), a demodulator (Demodulator), and an automatic gain and automatic tuning controller (AGC and ATC Control). The infrared receiver can generate an electrical signal under the action of the reflected infrared signal, the amplifier can amplify the electrical signal, the gain amplifier and the filter can further process the gain and filtering of the amplified electrical signal, the demodulator can demodulate based on the gain and filtering processed electrical signal to obtain a demodulated signal and feed back to the microprocessor (i.e. the aforementioned single-chip microcomputer). Among them, the automatic gain and automatic tuning controller can adjust the gain and tuning parameters inside the infrared receiving chip based on the feedback circuit, so that the infrared sensing has a hysteresis effect, and then the detection signal tends to be stable.
[0087] However, in actual application, the distance between the dishwasher and the opposite cabinet (or wall) in the kitchen may be between L0 and L1. After the dishwasher senses a person, because the opposite cabinet (or wall) is less than L1, the infrared sensing cannot distinguish whether it is the opposite obstacle or the human body has not left due to the hysteresis characteristic, resulting in misjudgment.
[0088] In the application embodiment, when the infrared emitter is driven to emit an infrared signal with a default carrier 38KHz and a duty cycle of 50% PWM signal, when a person approaches, the single-chip microcomputer can determine that the human body is detected based on the electrical signal fed back by the infrared sensing device, and can lower the duty cycle of the PWM signal, so that the sensing distance of the infrared sensing device becomes smaller. If the person is always detected, the duty cycle of the PWM signal will always be in a low duty cycle state until the person leaves for a set period of time (for example, 5 seconds), and the duty cycle of the PWM signal is adjusted to 50%. In this way, the influence of the relatively close cabinet (or wall) opposite the dishwasher can be eliminated.
[0089] As shown in FIG. 7, in the application embodiment, the control method of the dishwasher includes:
[0090] Step 701, set the PWM duty cycle of the infrared emitter carrier to 50%.
[0091] Here, after the infrared sensing device is woken up, the processor of the dishwasher can control the driving port of the infrared emitter to work with the PWM signal of the initial duty cycle, for example, set the infrared emission carrier PWM duty cycle to 50%. The wake-up mechanism of the infrared sensing device can be designed based on the application scenario, for example, it can be woken up regularly or based on the signals detected by other sensors (such as sound, light change, etc.) to save the power consumption of the infrared sensing device.
[0092] Step 702, determine whether the infrared sensing detects a person, if yes, execute step 703; if no, execute step 709.
[0093] Here, the processor of the dishwasher determines whether a person is detected based on the detection result of the infrared sensing device (corresponding to the aforementioned determination of whether a human body is detected based on the first detection result), if yes, execute step 703; if no, execute step 709.
[0094] Step 703, set the timer T = 10 seconds, and execute step 704.
[0095] Here, the timer T can be understood as a countdown timer, and the initial value is set to 10 seconds.
[0096] Step 704, set the infrared emission carrier PWM duty cycle to 1%, so that the sensing distance is shortened.
[0097] Here, the infrared emission carrier PWM duty cycle is set to 1%, which actively reduces the detection distance of the infrared sensing device.
[0098] Step 705, determine whether the infrared sensing detects a person, if yes, return to step 703; if no, execute step 706.
[0099] Here, the processor of the dishwasher determines whether a person is detected based on the detection result of the infrared sensing device (corresponding to the aforementioned determination of whether a human body is detected based on the second detection result), if yes, return to step 703; if no, execute step 706.
[0100] Step 706, determine whether the timer T is left for 5 seconds, if no, return to step 704; if yes, execute step 707.
[0101] Here, whether the duration of not detecting a human body under the low duty cycle PWM signal meets the requirement of the set duration threshold can be determined based on the current value and the initial value of the timer T, if no, return to step 704 for monitoring, if yes, execute step 707.
[0102] It should be noted that the initial value of the timer T and the set duration threshold can be reasonably designed based on the requirements, and the embodiments of the present application do not limit them.
[0103] Step 707, the infrared emission carrier PWM duty cycle is set to 50%, the initial induction distance is restored.
[0104] Here, the processor of the dishwasher restores the PWM signal to the initial duty cycle for rechecking, so as to determine whether the human body has really left the dishwasher, and reduce the misjudgment.
[0105] Step 708, it is judged whether the infrared induction detects a person, if yes, it returns to step 703; if no, it executes step 709.
[0106] Here, the processor of the dishwasher judges whether a person is detected based on the detection result of the infrared sensor device (corresponding to the aforementioned determination of whether a human body is detected based on the fourth detection result), if no, it is judged that the human body has left, and step 709 is executed; if yes, it returns to step 703, and the detection logic of whether the human body has left is repeatedly executed.
[0107] Step 709, exit.
[0108] The current detection logic is exited, and the infrared sensor device can enter a sleep state.
[0109] In this way, the method of the application embodiment can actively eliminate the interference of the close object on the detection signal of the infrared sensor device caused by the hysteresis design of the infrared sensor device, and can accurately identify whether the human body has left, thereby improving the stability of the detection signal of the infrared sensor device and meeting the realization of the infrared human body detection function of the dishwasher in the narrow kitchen scene.
[0110] In order to realize the method of the application embodiment, the application embodiment also provides a control device of a household appliance, which corresponds to the control method of the household appliance described above, and each step in the control method embodiment of the household appliance is completely applicable to the control device embodiment of the household appliance.
[0111] As shown in FIG. 8, the control device of the household appliance includes a first processing module 801, a second processing module 802 and a third processing module 803. The first processing module 801 is configured to control the driving port of the infrared emitter to work with the PWM signal of the initial duty cycle, and generate a first detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver; the second processing module 802 is configured to, if it is determined that a human body is detected based on the first detection result, lower the duty cycle of the PWM signal based on the initial duty cycle, and generate a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver; and the third processing module 803 is configured to generate a third detection result representing that a human body has left based on the second detection result.
[0112] Exemplarily, the third processing module 803 is specifically configured to:
[0113] based on the second detection result, if it is determined that no human body is detected and the duration of the no human body detection reaches a set duration, control the driving port of the infrared emitter to restore the initial duty cycle of the PWM signal, and generate a fourth detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver;
[0114] based on the fourth detection result, if it is determined that no human body is detected, generate a third detection result representing that a human body leaves.
[0115] Exemplarily, the third processing module 803 is further configured to:
[0116] based on the fourth detection result, if it is determined that a human body is detected, return to the second processing module 802 to lower the duty cycle of the PWM signal based on the initial duty cycle, and generate a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver.
[0117] Exemplarily, the third processing module 803 is further configured to:
[0118] based on the second detection result, if it is determined that a human body is detected, reset a first timer for counting down, and determine the duration of the no human body detection based on the initial value and the current value of the first timer; or,
[0119] based on the second detection result, if it is determined that no human body is detected, start a second timer for counting, and determine the duration of the no human body detection based on the current value of the second timer.
[0120] Exemplarily, the second processing module 802 is specifically configured to:
[0121] control the PWM signal to be lowered from the initial duty cycle to a set duty cycle, and generate a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal with the set duty cycle.
[0122] Exemplarily, the second processing module 802 is specifically configured to:
[0123] control the PWM signal to be lowered from the initial duty cycle to a set duty cycle, and generate a second detection result of whether a human body is detected based on the electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal with the set duty cycle.
[0124] Exemplarily, under the driving of the PWM signal with the set duty cycle, the farthest detection distance of the infrared sensing device in the direction away from the household appliance is less than or equal to the set detection distance, wherein the set detection distance is the farthest detection distance of the infrared sensing device in the direction close to the household appliance under the driving of the PWM signal with the initial duty cycle.
[0125] Exemplarily, the first processing module 801 is further configured to control the household appliance to operate in a first working state based on the first detection result.
[0126] The third processing module 803 is further configured to control the household appliance to operate in a second working state based on the third detection result.
[0127] The first working state is different from the second working state in at least one execution state of an execution mechanism.
[0128] In actual application, the first processing module 801, the second processing module 802 and the third processing module 803 can be realized by a processor of the household appliance. Of course, the processor needs to run a computer program in the memory to realize its functions.
[0129] It should be noted that the control device of the household appliance provided in the above embodiments is only exemplified by the division of the above program modules in the control of the household appliance. In actual application, the above processing can be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above processing. In addition, the control device of the household appliance and the control method of the household appliance provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be described here.
[0130] Based on the hardware implementation of the above program modules, and in order to realize the method of the embodiments of the present application, the embodiments of the present application further provide a household appliance. FIG. 9 only shows the exemplary structure of the household appliance, not all structures, and part or all of the structures shown in FIG. 9 can be implemented according to needs.
[0131] As shown in FIG. 9, the household appliance 900 provided by the embodiments of the present application includes at least one processor 901, a memory 902 and a user interface 903. The various components in the household appliance 900 are coupled together through a bus system 904. It can be understood that the bus system 904 is used to realize the connection and communication between the components. The bus system 904 includes not only a data bus, but also a power bus, a control bus and a status signal bus. However, for the purpose of clear illustration, various buses are marked as the bus system 904 in FIG. 9.
[0132] The user interface 903 can include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touchpad, or a touch screen, etc.
[0133] The memory 902 in the embodiments of the present application is used to store various types of data to support the operation of the home appliance. Examples of the data include any computer program used to operate the home appliance.
[0134] The control method of the home appliance disclosed in the embodiments of the present application can be applied in the processor 901 or implemented by the processor 901. The processor 901 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the control method of the home appliance can be completed by the integrated logic circuit of hardware or the instruction in the form of software in the processor 901. The processor 901 described above can be a general processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 901 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiments of the present application, the hardware decoding processor can be directly embodied to execute the steps, or the hardware and software modules in the decoding processor can be combined to execute the steps. The software module can be located in the storage medium, which is located in the memory 902. The processor 901 reads the information in the memory 902 and combines the hardware to complete the steps of the control method of the home appliance provided in the embodiments of the present application.
[0135] In the exemplary embodiments, the processor of the home appliance can be implemented by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors (Microprocessors), or other electronic elements, for executing the foregoing method.
[0136] It can be appreciated that the memory 902 can be a volatile memory or nonvolatile memory, and can also include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM). The magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM can be used, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.
[0137] In the example embodiments, the embodiments of the present application also provide a storage medium, i.e., a computer storage medium, specifically a computer readable storage medium, for example, including the memory 902 storing a computer program, which can be executed by the processor 901 of the home appliance to complete the steps described in the method of the embodiments of the present application. The computer readable storage medium can be a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disc, or a CD-ROM memory, etc.
[0138] In the example embodiments, the embodiments of the present application also provide a computer program product, including a computer program, which can be executed by the processor 901 of the home appliance 900 to complete the steps described in the method of the embodiments of the present application.
[0139] It should be noted that "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0140] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0141] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A control method of a household appliance, the household appliance comprising an infrared sensing device for detecting a human body, the infrared sensing device comprising an infrared emitter and an infrared receiver; the method comprising: controlling a driving port of the infrared emitter to operate with a pulse width modulation (PWM) signal at an initial duty cycle, and generating a first detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver; if it is determined that a human body is detected based on the first detection result, then adjusting the duty cycle of the PWM signal downward based on the initial duty cycle, and generating a second detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver; generating a third detection result representing that a human body leaves based on the second detection result.
2. The method of claim 1, wherein, The generating of the third detection result representing that a human body leaves based on the second detection result comprises: if it is determined that a human body is not detected based on the second detection result and a duration of the human body not being detected reaches a set duration, then controlling the driving port of the infrared emitter to restore the initial duty cycle of the PWM signal, and generating a fourth detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver; if it is determined that a human body is not detected based on the fourth detection result, then generating the third detection result representing that a human body leaves.
3. The method of claim 2, wherein, The method further comprises: if it is determined that a human body is detected based on the fourth detection result, then returning to the adjusting of the duty cycle of the PWM signal downward based on the initial duty cycle, and the generating of the second detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver.
4. The method of claim 2 or 3, wherein, The method further comprises: if it is determined that a human body is detected based on the second detection result, then resetting a first timer for counting down, and determining the duration of the human body not being detected based on an initial value and a current value of the first timer; or if it is determined that a human body is not detected based on the second detection result, then starting a second timer for counting, and determining the duration of the human body not being detected based on a current value of the second timer.
5. The method according to any one of claims 1 to 4, wherein, The adjusting of the duty cycle of the PWM signal downward based on the initial duty cycle, and the generating of the second detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver comprises: controlling the PWM signal to be adjusted downward from the initial duty cycle to a set duty cycle, and generating the second detection result of whether a human body is detected based on an electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal at the set duty cycle.
6. The method according to any one of claims 1 to 4, wherein, The adjusting of the duty cycle of the PWM signal downward based on the initial duty cycle, and the generating of the second detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver comprises: controlling the PWM signal to be adjusted downward from the initial duty cycle to a set duty cycle with a set step, until the duty cycle of the PWM signal is adjusted downward to the set duty cycle, and generating the second detection result of whether a human body is detected based on an electrical signal fed back by the output port of the infrared receiver under the driving of the PWM signal.
7. The method of claim 5 or 6, wherein, The farthest detection distance of the infrared sensor device in the direction away from the household appliance is less than or equal to the set detection distance under the driving of the PWM signal with the set duty cycle, wherein the set detection distance is the farthest detection distance of the infrared sensor device in the direction close to the household appliance under the driving of the PWM signal with the initial duty cycle.
8. The method according to any one of claims 1 to 7, wherein, The method further comprises: controlling the household appliance to operate in a first working state based on the first detection result; controlling the household appliance to operate in a second working state based on the third detection result; wherein the first working state is different from the second working state in at least one execution state of an execution mechanism. 9.A control device of a household appliance, the household appliance comprising an infrared sensor device for detecting a human body, the infrared sensor device comprising an infrared emitter and an infrared receiver; the control device comprising: a first processing module configured to control a driving port of the infrared emitter to work with a pulse width modulation (PWM) signal with an initial duty cycle, and to generate a first detection result of whether a human body is detected based on an electrical signal fed back by an output port of the infrared receiver; a second processing module configured to, if it is determined that a human body is detected based on the first detection result, lower the duty cycle of the PWM signal based on the initial duty cycle, and to generate a second detection result of whether a human body is detected based on an electrical signal fed back by the output port of the infrared receiver; a third processing module configured to generate a third detection result representing that a human body is leaving based on the second detection result.
10. An electric home appliance comprising an infrared sensor device for detecting a human body, the infrared sensor device comprising an infrared emitter and an infrared receiver, the electric home appliance further comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the method of any one of claims 1 to 8 when running the computer program.
11. The home appliance of claim 10, wherein, The household appliance comprises at least one of a washing machine, a dishwasher and a refrigerator. 12.A storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the method of any one of claims 1 to 8. 13.A computer program product comprising a computer program, the computer program being executed by a processor to implement the steps of the method of any one of claims 1 to 8.
Citation Information
Patent Citations
Environment self-adaption method based on infrared distance sensing device
CN111207782A
Energy -saving cooking utensil
CN206166584U
Intelligent socket
CN207165865U
Intelligent household electrical appliance and display screen automatic switching device thereof
CN215494637U
Wide range / high accuracy human body detection sensor
JP2010256045A