Household appliance and control method and device thereof, storage medium and product

By adjusting the duty cycle of the PWM signal and the timer mechanism of the infrared sensor, the problem of misjudgment caused by the hysteresis design of the infrared sensor in confined spaces was solved, and stable and accurate human body detection of the infrared sensor in confined spaces was achieved.

CN121742269APending Publication Date: 2026-03-27FOSHAN SHUNDE MIDEA WASHING APPLIANCES MANUFACTURING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In small kitchens, the hysteresis design of infrared sensors can cause appliances to misinterpret nearby objects as people still being there, affecting the stability of the detection signal.

Method used

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 on the detection signal is eliminated, ensuring accurate identification of human departure.

Benefits of technology

This improves the stability of infrared sensing signals in confined spaces, avoids misjudgments, and ensures the accuracy of human body detection functions in home appliances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121742269A_ABST
    Figure CN121742269A_ABST
Patent Text Reader

Abstract

The invention discloses a household appliance, a control method and device thereof, a storage medium and a product. The control method comprises the following steps: controlling a driving port of an infrared transmitter to work with a PWM signal with an initial duty ratio, and generating a first detection result whether a human body is detected or not based on an electric signal fed back by an output port of an infrared receiver; if it is determined that the human body is detected based on the first detection result, lowering the duty ratio of the PWM signal based on the initial duty ratio, and generating a second detection result about whether the human body is detected based on an electric signal fed back by the output port of the infrared receiver; and generating a third detection result representing human body leaving based on the second detection result. In the scene that the human body is far away from the household appliance, the interference influence of a closer object on the detection signal of the infrared sensing device caused by the hysteresis design of the infrared sensing device can be actively eliminated, so that whether the human body leaves or not can be accurately identified, and the stability of the detection signal of the infrared sensing device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of household appliances, and in particular to a household appliance, a control method and device thereof, a storage medium and a product. BACKGROUND

[0002] 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, household appliances are increasingly in demand. In order to improve the intelligent control level of household appliances, an infrared sensing device can be introduced into the household appliance to realize automatic detection of the user's approach or departure from the household appliance.

[0003] The household 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 time for manual dishwashing is also saved, greatly reducing manual labor. The dishwasher is generally deployed in a cabinet in the kitchen.

[0004] In related technologies, in order to avoid the misdetection of the infrared sensing device caused by the reasonable displacement of the user in the kitchen, and thus improve the stability of the detection result, a hysteresis design of the infrared sensing device is often introduced. For example, the infrared sensing device has 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 body opposite to the household appliance at a short distance may interfere with the judgment of whether the user leaves the household 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 household appliance and the above interference. SUMMARY

[0005] Therefore, the embodiments of the present application provide a household appliance, a control method and device thereof, a storage medium and a product, which aim to improve the stability of the detection signal of the infrared sensing device of the household appliance.

[0006] The technical scheme of the embodiments of the present application is as follows:

[0007] In a first aspect, the embodiments of the present application provide a control method of a household appliance. The household 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:

[0008] controlling a driving port of the infrared emitter to work with a PWM (Pulse-Width Modulation) 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;

[0009] based on the initial duty cycle, 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 if it is determined that a human body is detected based on the first detection result;

[0010] generating a third detection result of a human body leaving based on the second detection result.

[0011] In some embodiments, the generating a third detection result of the human body leaving based on the second detection result comprises:

[0012] based on the second detection result, if it is determined that a human body is not detected and a 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 a human body is detected based on the electrical signal fed back by the output port of the infrared receiver;

[0013] based on the fourth detection result, if it is determined that a human body is not detected, generating a third detection result of a human body leaving.

[0014] In some embodiments, the method further comprises:

[0015] based on the fourth detection result, if it is determined that a human body is detected, returning to the adjusting the duty cycle of the PWM signal based on the initial duty cycle, 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.

[0016] In some embodiments, the method further comprises:

[0017] based on the second detection result, if it is determined that a human body is detected, 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,

[0018] based on the second detection result, if it is determined that a human body is not detected, 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.

[0019] In some embodiments, the adjusting the duty cycle of the PWM signal based on the initial duty cycle, 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 comprises:

[0020] controlling the PWM signal to be lowered from the initial duty cycle to a set duty cycle, and generating 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 under driving of the PWM signal with the set duty cycle.

[0021] In some embodiments, the method further comprises:

[0022] controlling the PWM signal to be lowered from the initial duty cycle to a set duty cycle, and generating 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 under driving of the PWM signal with the set duty cycle.

[0023] In some embodiments, the infrared sensing device has a farthest detection distance in a direction in which a human body is away from the home appliance device under driving of the PWM signal with the set duty cycle, and the farthest detection distance is less than or equal to a set detection distance, where the set detection distance is a farthest detection distance of the infrared sensing device in a direction in which a human body is close to the home appliance device under driving of the PWM signal with the initial duty cycle.

[0024] In some embodiments, the method further comprises:

[0025] controlling the home appliance device to operate in a first working state based on the first detection result;

[0026] controlling the home appliance device to operate in a second working state based on the third detection result;

[0027] wherein the first working state is different from the second working state in at least one execution state of an execution mechanism.

[0028] In a second aspect, an embodiment of the present application provides a control device of a home appliance device, the home appliance device 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:

[0029] a first processing module configured to control a driving port of the infrared emitter to operate with 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 an output port of the infrared receiver;

[0030] 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;

[0031] a third processing module configured to generate a third detection result of a human body leaving based on the second detection result.

[0032] In a third aspect, an embodiment of the present application provides a household appliance, which comprises an infrared sensing device configured to detect a human body, the infrared sensing device comprising an infrared emitter and an infrared receiver, and the household appliance further comprises a processor and a memory configured to store a computer program capable of running on the processor, wherein the processor is configured to run the computer program to perform the steps of the method in the first aspect of the present application.

[0033] In some embodiments, the household appliance comprises at least one of a washing machine, a dishwasher, and a refrigerator.

[0034] In a fourth aspect, an embodiment of the present application provides a storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the method in the first aspect of the present application.

[0035] In a fifth aspect, an embodiment of the present application provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the method in the first aspect of the present application.

[0036] The technical scheme 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 cycle, 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 cycle of the PWM signal is adjusted 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; the third detection result of a human body leaving is generated based on the second detection result. In this way, by adjusting the duty cycle of the PWM signal to reduce the detection distance of the infrared sensing device, in the scenario that a 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 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 household appliance in the scenario of limited deployment space is facilitated. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1A schematic diagram of a hysteresis curve of an infrared sensing device in the related art;

[0038] Figure 2 A schematic diagram of a detection effect of an infrared sensing device with hysteresis effect introduced into a household appliance in the related art;

[0039] Figure 3 A schematic diagram of a control method of a household appliance according to an embodiment of the present application;

[0040] Figure 4 A schematic diagram of a structure of an infrared sensing device according to an embodiment of the present application;

[0041] Figure 5 A schematic diagram of a principle of detecting whether there is a person by an infrared sensing device according to an embodiment of the present application;

[0042] Figure 6 A schematic diagram of a structure of an infrared receiving chip according to an embodiment of the present application;

[0043] Figure 7 A schematic diagram of a control method of a dishwasher according to an embodiment of the present application;

[0044] Figure 8 A schematic diagram of a control device of a household appliance according to an embodiment of the present application;

[0045] Figure 9 A schematic diagram of a household appliance according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] The present application will be further described by examples with reference to the accompanying drawings.

[0047] 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.

[0048] The embodiment of the present application provides a control method of a household appliance, the household appliance comprises an infrared sensing device for detecting a human body, the infrared sensing device comprises an infrared emitter and an infrared receiver. The infrared emitter is used for emitting infrared rays to the surrounding environment, and the infrared receiver is used for receiving the reflected infrared rays. The household 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 exists within a set distance, the reflected infrared rays are received by the infrared receiver and an electric signal is output to the processor based on the intensity of the received infrared rays. In this way, the processor can realize detection of whether a human body exists near the household appliance, thereby improving the intelligent control level of the household appliance.

[0049] It should be noted that, in the related art, in order to avoid false detection of the infrared sensing device caused by reasonable displacement of the user, 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, Figure 1 A schematic diagram of a hysteresis curve of an infrared sensing device is shown, 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.

[0050] Figure 2 A schematic diagram of the detection effect of the infrared sensing device with hysteresis effect introduced in the household appliance is shown, wherein the variable L on the horizontal axis represents the distance between the human body and the household appliance, and the variable Vout on the vertical axis represents the voltage value of the electric 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 Figure 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 household appliance is L0, and the farthest distance at which the infrared sensing device can detect the human body in the direction away from the household 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 household appliance is greater than the farthest distance when the human body is close to the household appliance. If there is an object such as a wall between the household appliance and the human body, the object may be affected by the 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 household appliance to be controlled incorrectly.

[0051] Based on this, the application embodiment provides a control method of a household appliance, which can be executed by a processor of the household appliance, as shown in the method comprises: Figure 3

[0052] Step 301, control the driving port of the infrared emitter to work with a PWM signal of an initial duty ratio, 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.

[0053] Step 302, based on the first detection result, if it is determined that a human body is detected, adjust the duty ratio of the PWM signal based on the initial duty ratio, 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.

[0054] Step 303, generate a third detection result representing that a human body leaves based on the second detection result.

[0055] It should be noted that by adjusting the duty ratio of the PWM signal, the detection distance of the infrared sensing device can be actively reduced. The second detection result can be understood as the detection result of the infrared sensing device after adjusting the duty ratio of the PWM signal.

[0056] It can be understood that the control method of the application embodiment reduces the detection distance of the infrared sensing device by adjusting the duty ratio of the PWM signal, so that in the scenario where a 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 then the human body can be accurately identified whether 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 household appliance in the limited space scene is facilitated.

[0057] Exemplarily, the second detection result includes:

[0058] If it is determined that a human body is not detected and the duration of not detecting a human body reaches a set duration based on the second detection result, control the driving port of the infrared emitter to restore the initial duty ratio 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.

[0059] If it is determined that a human body is not detected based on the fourth detection result, generate a third detection result representing that a human body leaves.

[0060] ​It should be noted that the method of the embodiment of the present application can avoid false detection caused by temporary movement of the human body by introducing a threshold of a set time length, and can confirm whether the human body has truly left based on the detection amount of the forward stroke by rechecking (i.e., the process of generating the fourth detection result) by restoring the PWM signal to the initial duty cycle, thereby improving the stability and reliability of the detection result.

[0061] Exemplarily, the method further comprises:

[0062] If it is determined based on the fourth detection result that the human body is detected, returning to 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.

[0063] It can be understood that if the human body is detected based on the fourth detection result, it indicates that the human body has not truly left, which may be false detection caused by adjusting the duty cycle of the PWM signal. Therefore, the duty cycle of the PWM signal is adjusted based on the initial duty cycle again, i.e., the detection distance of the infrared sensing device is actively reduced, thereby avoiding the interference of objects close to the infrared sensing device on the detection signal of the infrared sensing device caused by the hysteresis design of the infrared sensing device. Based on the above detection logic, the interference of objects close to the infrared sensing device caused by the hysteresis design can be effectively avoided, and the situation that the human body leaves can be accurately detected by the infrared sensing device.

[0064] Exemplarily, the method further comprises:

[0065] If it is determined based on the second detection result that the human body is detected, resetting a first timer for countdown, and determining the duration of the human body not being detected based on the initial value and the current value of the first timer; or,

[0066] If it is determined based on the second detection result that the human body is not detected, starting a second timer for counting, and determining the duration of the human body not being detected based on the current value of the second timer.

[0067] It can be understood that the duration of the human body not being detected obtained based on the second detection result can be implemented by using a first timer for countdown, or can be implemented by using a second timer for counting, which is not limited in the embodiment of the present application.

[0068] Exemplarily, the method further comprises:

[0069] The PWM signal is controlled to be lowered from the initial duty cycle to a set duty cycle, and a second detection result of whether a human body is detected is generated based on an electrical signal fed back by an output port of the infrared receiver under driving of the PWM signal with the set duty cycle.

[0070] It can be understood that, in the embodiment of the present application, the initial duty cycle of the PWM signal can be directly switched to the set duty cycle when the duty cycle of the PWM signal is lowered, so that the detection distance of the infrared sensing device is reduced, and the second detection result is generated based on the PWM signal with the set duty cycle. Under the PWM signal with the set duty cycle, the farthest detection distance of the infrared sensing device in the direction in which the human body is 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 in which the human body is close to the household appliance under driving of the PWM signal with the initial duty cycle.

[0071] It can be understood that, by lowering the duty cycle of the PWM signal, Figure 2 The detection curve shown in the figure will be shifted to the left. It is assumed that, under the PWM signal with the set duty cycle, the farthest detection distance in the forward travel direction (i.e. the direction in which the human body is close to the household appliance) is iL0, and the farthest detection distance in the reverse travel direction (i.e. the direction in which the human body is away from the household appliance) is iL1, so that 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, so that the interference of objects with a relatively short distance caused by the hysteresis design can be avoided.

[0072] Exemplarily, the duty cycle of the PWM signal is lowered based on the initial duty cycle, and a second detection result of whether a human body is detected is generated based on an electrical signal fed back by an output port of the infrared receiver, including:

[0073] The duty cycle of the PWM signal is controlled to be lowered from the initial duty cycle to a set duty cycle with a set step size, and a second detection result of whether a human body is detected is generated based on an electrical signal fed back by an output port of the infrared receiver under driving of the PWM signal with the set duty cycle.

[0074] 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 the set step size until it is reduced to the set duty cycle, thereby avoiding excessive fluctuations in the detection distance caused by direct switching, thereby reducing the false detection caused by excessive fluctuations, and gradually reducing the detection distance of the infrared sensing device until the interference of the object close to the infrared sensing device is completely avoided. The second detection result described above 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 repeated here.

[0075] Exemplarily, the method further comprises:

[0076] controlling the household appliance to operate in a first working state based on the first detection result;

[0077] controlling the household appliance to operate in a second working state based on the third detection result;

[0078] The first working state is different from the second working state in at least one execution state of an execution mechanism.

[0079] 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 light belt 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 light belt of the household appliance to be extinguished; in addition, the processor can also control part of the execution mechanism to switch between the sleep state and the wake-up state, and the like, which is not limited in the application embodiment.

[0080] The control method of the household appliance in the application embodiment will be exemplarily described in combination with an application embodiment.

[0081] In the application embodiment, the household appliance with the infrared sensing device is a dishwasher installed in a kitchen. The farthest distance L0 sensed by the dishwasher when the human body is close is in the range of 40cm to 65cm, and the farthest distance L1 sensed by the dishwasher when the human body is away is in the range of 90cm to 130cm. 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 person, the cabinet (or wall) on the opposite side is less than L1, which causes the infrared sensing to detect the cabinet (or wall) on the opposite side due to the hysteresis characteristic, and the dishwasher makes a false judgment that the person has not left, resulting in an error control of the dishwasher.

[0082] As Figure 4As shown in this application embodiment, the infrared sensing device includes an infrared transmitter LD1 and an infrared receiver chip LD2. The processor of the home appliance may include a microcontroller. Pin 13 of the microcontroller serves as the drive port for the infrared transmitter. This drive port controls the output of a PWM signal, for example, a PWM signal with a carrier frequency of 38kHz, which controls the transistor Q2 to conduct, thereby controlling the infrared transmitter LD1 to emit infrared light into the surrounding environment. Exemplarily, the anode of the infrared transmitter LD1 is connected to a +5V power supply terminal via resistor R8, the cathode of the infrared transmitter LD1 is connected to the collector of the transistor Q2, the emitter of the transistor Q2 is grounded, and the base of the transistor Q2 is connected to the drive port via resistor R10. A resistor R12 is placed between the base of the transistor Q2 and the ground terminal. The base of the transistor Q2, driven by the PWM signal, controls the infrared transmitter LD1 to emit infrared light. The infrared receiver 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 via resistor R9, the second terminal 2 is grounded, and the third terminal 3 serves as the electrical signal output port, connected to the PIN20 pin of the microcontroller.

[0083] For example, when someone is in front of the dishwasher, the person will reflect the infrared signal emitted by the infrared transmitter LD1. When the infrared receiver in the infrared receiver chip LD2 receives the reflected infrared signal, it determines that someone is present and outputs a high-level (5V) signal to the microcontroller. If there is no infrared signal, it determines that no one is present and outputs a low-level (0V) signal to the microcontroller. Figure 5 As shown.

[0084] like Figure 6 As shown, the infrared receiver chip LD2 may include: an infrared receiver, an amplifier, a gain amplifier and filter (CGA and Filter), a demodulator, and an automatic gain and automatic tuning controller (AGC and ATC Control). The infrared receiver generates an electrical signal in response to the reflected infrared signal. The amplifier amplifies this signal, and the gain amplifier and filter further perform gain and filtering processing on the amplified signal. The demodulator demodulates the amplified signal to obtain a demodulated signal, which is then fed back to the microprocessor (i.e., the aforementioned microcontroller). The automatic gain and automatic tuning controller adjusts the gain and tuning parameters within the infrared receiver chip based on the feedback circuit, resulting in a hysteresis effect in the infrared sensing, thereby stabilizing the detected signal.

[0085] However, in actual application, the distance between the dishwasher and the opposite cabinet (or wall) may be between L0 and L1. After the infrared sensor of the dishwasher senses a person, the infrared sensor cannot distinguish whether the opposite obstacle is a person or the person has not left due to the hysteresis characteristic, resulting in a false judgment.

[0086] In the application embodiment, when the infrared emitter is driven to emit an infrared signal by a default carrier 38KHz and a duty cycle 50% PWM signal, the single-chip microcomputer can lower the duty cycle of the PWM signal when it is determined that a human body is detected based on the electrical signal fed back by the infrared sensing device, so that the sensing distance of the infrared sensing device becomes smaller. If a person is always detected, the duty cycle of the PWM signal is always in a low duty cycle state until it is detected that the human body has left for a set time (for example, 5 seconds), and the duty cycle of the PWM signal is adjusted to 50% again. In this way, the influence of the cabinet (or wall) close to the opposite side of the dishwasher can be eliminated.

[0087] As shown in Figure 7 the control method of the dishwasher in the application embodiment includes:

[0088] Step 701, set the infrared emission carrier PWM duty cycle to 50%.

[0089] 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 at a fixed time or based on the signal (such as sound, light change, etc.) detected by other sensors, so as to save the power consumption of the infrared sensing device.

[0090] Step 702, determine whether the infrared sensor detects a person, if yes, execute step 703; if no, execute step 709.

[0091] 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 determination of whether a human body is detected based on the first detection result), if yes, execute step 703; if no, execute step 709.

[0092] Step 703, set the timer T = 10 seconds, and execute step 704.

[0093] Here, the timer T can be understood as a countdown timer, and the initial value is set to 10 seconds.

[0094] Step 704, set the infrared emission carrier PWM duty cycle to 1%, so that the sensing distance becomes shorter.

[0095] Here, the infrared emission carrier PWM duty cycle is set to 1%, and the detection distance of the infrared sensor device is actively reduced.

[0096] Step 705, determine whether the infrared sensor detects a person, if yes, return to step 703; if no, execute step 706.

[0097] Here, the processor of the dishwasher determines 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 second detection result), if yes, return to step 703; if no, execute step 706.

[0098] Step 706, determine whether the timer T has 5 seconds left, if no, return to step 704; if yes, execute step 707.

[0099] 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.

[0100] It should be noted that the initial value of the timer T and the set duration threshold can be reasonably designed based on requirements, and the embodiments of the present application do not limit this.

[0101] Step 707, the infrared emission carrier PWM duty cycle is set to 50%, and the initial sensing distance is restored.

[0102] 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 truly left the dishwasher, and reduce the misjudgment.

[0103] Step 708, determine whether the infrared sensor detects a person, if yes, return to step 703; if no, execute step 709.

[0104] Here, the processor of the dishwasher determines 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 determined that the human body has left, and step 709 is executed; if yes, return to step 703 to repeat the detection logic of determining whether the human body has left.

[0105] Step 709, exit.

[0106] Exit the current detection logic, and the infrared sensor device can enter a sleep state.

[0107] Thus, the method of this application embodiment can actively eliminate the interference of nearby objects on the detection signal of the infrared sensor caused by the hysteresis design of the infrared sensor, thereby accurately identifying whether a human body has left, improving the stability of the detection signal of the infrared sensor, and meeting the requirements for the realization of the infrared human body detection function of the dishwasher in the narrow kitchen scene.

[0108] In order to implement the method of the embodiments of this application, the embodiments of this application also provide a control device for a home appliance. The control device for the home appliance corresponds to the control method of the home appliance described above, and each step in the control method embodiment of the home appliance is also fully applicable to the control device embodiment of this home appliance.

[0109] like Figure 8 As shown, the control device of this home appliance includes: a first processing module 801, a second processing module 802, and a third processing module 803. The first processing module 801 controls the drive port of the infrared transmitter to operate with a PWM signal at an initial duty cycle, and generates a first detection result (whether a human body is detected) based on the electrical signal fed back from the output port of the infrared receiver. The second processing module 802, based on the first detection result, if it determines that a human body has been detected, lowers the duty cycle of the PWM signal based on the initial duty cycle, and generates a second detection result (whether a human body is detected) based on the electrical signal fed back from the output port of the infrared receiver. The third processing module 803, based on the second detection result, generates a third detection result indicating that the human body has left.

[0110] For example, the third processing module 803 is specifically used for:

[0111] If, based on the second detection result, it is determined that no human body was detected and the duration of the absence of human body detection reaches the set duration, then the drive port of the infrared transmitter is controlled to restore the initial duty cycle of the PWM signal, and a fourth detection result of whether a human body was detected is generated based on the electrical signal fed back from the output port of the infrared receiver.

[0112] If the fourth detection result determines that no human body was detected, a third detection result indicating that the human body has left is generated.

[0113] For example, the third processing module 803 is further configured to:

[0114] If a human body is detected based on the fourth detection result, the second processing module 802 adjusts the duty cycle of the PWM signal based on the initial duty cycle and generates a second detection result based on the electrical signal fed back from the output port of the infrared receiver to determine whether a human body has been detected.

[0115] For example, the third processing module 803 is further configured to:

[0116] reset a first timer for counting down based on the second detection result, and determine the duration of the non-detection of the human body based on an initial value and a current value of the first timer.

[0117] start a second timer for counting based on the second detection result, and determine the duration of the non-detection of the human body based on a current value of the second timer.

[0118] Exemplarily, the second processing module 802 is specifically configured to:

[0119] control the PWM signal to be adjusted from the initial duty cycle to a set duty cycle, and generate 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 under the driving of the PWM signal with the set duty cycle.

[0120] Exemplarily, the second processing module 802 is specifically configured to:

[0121] control the PWM signal to be adjusted from the initial duty cycle to a set duty cycle, and generate 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 under the driving of the PWM signal with the set duty cycle.

[0122] Exemplarily, under the driving of the PWM signal with the set duty cycle, the farthest detection distance of the infrared sensor device in the direction in which the human body is away from the home appliance is less than or equal to a set detection distance, where the set detection distance is the farthest detection distance of the infrared sensor device in the direction in which the human body is close to the home appliance under the driving of the PWM signal with the initial duty cycle.

[0123] Exemplarily, the first processing module 801 is further configured to control the home appliance to operate in a first working state based on the first detection result.

[0124] The third processing module 803 is further configured to control the home appliance to operate in a second working state based on the third detection result.

[0125] The first working state is different from the second working state in at least one execution state of an execution mechanism.

[0126] In actual application, the first processing module 801, the second processing module 802 and the third processing module 803 can be implemented by a processor of the home appliance. Of course, the processor needs to run a computer program in a memory to realize its functions.

[0127] 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 when controlling 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-described 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.

[0128] Based on the hardware implementation of the program modules and in order to implement the method of the embodiments of the present application, the embodiments of the present application further provide a household appliance. Figure 9 Only exemplary structures of the household appliance are shown, not all structures, and the structures can be implemented according to needs Figure 9 Part of the structure or the whole structure.

[0129] As Figure 9 shown, the household appliance 900 provided in 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 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, in order to clearly illustrate, various buses are marked as the bus system 904 in Figure 9 .

[0130] 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.

[0131] The memory 902 in the embodiments of the present application is used to store various types of data to support the operation of the household appliance. Examples of these data include any computer programs used to operate on the household appliance.

[0132] The control method of the home appliance device disclosed in the embodiments of the present application can be applied to the processor 901 or implemented by the processor 901. The processor 901 can be an integrated circuit chip having a processing capability of a signal. In the implementation process, each step of the control method of the home appliance device can be completed by the integrated logic circuit or the instruction in the form of software of the hardware 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 each method, step and logic block 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 be executed by the decoding processor, or executed by the combination of the hardware and software modules in the decoding processor. The software module can be located in the storage medium, which is located in the memory 902, and 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 device provided in the embodiments of the present application.

[0133] In the exemplary embodiments, the processor of the home appliance device 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, micro controllers (MCUs), microprocessors (Microprocessors), or other electronic elements, for executing the foregoing method.

[0134] 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.

[0135] In the example embodiments, the embodiments of the present application further provide a storage medium, i.e., a computer storage medium, which can be specifically a computer readable storage medium, such as a 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.

[0136] In the example embodiments, the embodiments of the present application further provide a computer program product, which includes 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.

[0137] It should be noted that "first", "second", etc. are used to distinguish similar objects, and do not necessarily mean a specific order or sequence.

[0138] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and 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 within 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 method for controlling a household appliance, characterized in that, The home appliance includes an infrared sensor for detecting the human body, the infrared sensor including an infrared emitter and an infrared receiver; the method includes: The drive port of the infrared transmitter is controlled to operate with a pulse width modulation (PWM) signal with an initial duty cycle, and a first detection result of whether a human body is detected is generated based on the electrical signal fed back from the output port of the infrared receiver. If a human body is detected based on the first detection result, the duty cycle of the PWM signal is lowered based on the initial duty cycle, and a second detection result is generated based on the electrical signal fed back from the output port of the infrared receiver to determine whether a human body has been detected. A third detection result is generated based on the second detection result to characterize the departure of the human body.

2. The method according to claim 1, characterized in that, The generation of a third detection result characterizing the departure of the human body based on the second detection result includes: If, based on the second detection result, it is determined that no human body was detected and the duration of the absence of human body detection reaches the set duration, then the drive port of the infrared transmitter is controlled to restore the initial duty cycle of the PWM signal, and a fourth detection result of whether a human body was detected is generated based on the electrical signal fed back from the output port of the infrared receiver. If the fourth detection result determines that no human body was detected, a third detection result indicating that the human body has left is generated.

3. The method according to claim 2, characterized in that, The method further includes: If a human body is detected based on the fourth detection result, the process returns to the initial duty cycle of the PWM signal, which is then lowered, and a second detection result is generated based on the electrical signal fed back from the output port of the infrared receiver to determine whether a human body has been detected.

4. The method according to claim 2, characterized in that, The method further includes: If a human body is detected based on the second detection result, the first timer used for the countdown is reset, and the duration of the period without detected human body is determined based on the initial and current values ​​of the first timer; or, If it is determined that no human body was detected based on the second detection result, a second timer for timing is started, and the duration of the absence of human body detection is determined based on the current value of the second timer.

5. The method according to claim 1, characterized in that, The step of lowering the duty cycle of the PWM signal based on the initial duty cycle and generating a second detection result of whether a human body is detected based on the electrical signal fed back from the output port of the infrared receiver includes: The PWM signal is controlled to decrease from the initial duty cycle to a set duty cycle, and the electrical signal fed back from the output port of the infrared receiver, driven by the PWM signal with the set duty cycle, generates a second detection result of whether a human body is detected.

6. The method according to claim 1, characterized in that, The step of lowering the duty cycle of the PWM signal based on the initial duty cycle and generating a second detection result of whether a human body is detected based on the electrical signal fed back from the output port of the infrared receiver includes: The PWM signal is controlled to decrease its duty cycle by a set step size from the initial duty cycle until the duty cycle of the PWM signal is reduced to the set duty cycle. Based on the electrical signal fed back from the output port of the infrared receiver driven by the PWM signal, a second detection result of whether a human body is detected is generated.

7. The method according to claim 5 or 6, characterized in that, Driven by the PWM signal with the set duty cycle, the farthest detection distance of the infrared sensor in the direction where the human body is away from the home appliance is less than or equal to the set detection distance, wherein the set detection distance is the farthest detection distance of the infrared sensor in the direction where the human body is close to the home appliance under the PWM signal with the initial duty cycle.

8. The method according to claim 1, characterized in that, The method further includes: Based on the first detection result, the home appliance is controlled to operate in a first working state. Based on the three detection results, the home appliance is controlled to operate in a second working state; The first working state differs from the second working state in that it includes the execution state of at least one actuator.

9. A control device for a household appliance, characterized in that, The home appliance includes an infrared sensor for detecting the human body, the infrared sensor including an infrared transmitter and an infrared receiver; the control device includes: The first processing module is used to control the drive port of the infrared transmitter 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 the electrical signal fed back from the output port of the infrared receiver. The second processing module is used to, based on the first detection result, if it is determined that a human body has been detected, reduce the duty cycle of the PWM signal based on the initial duty cycle, and generate a second detection result of whether a human body has been detected based on the electrical signal fed back from the output port of the infrared receiver. The third processing module is used to generate a third detection result representing the departure of the human body based on the second detection result.

10. A household appliance, characterized in that, The home appliance includes an infrared sensor for detecting the human body, the infrared sensor including an infrared emitter and an infrared receiver, and the home appliance further includes a processor and a memory for storing a computer program capable of running on the processor. The processor, when running a computer program, performs the steps of the method according to any one of claims 1 to 8.

11. The household appliance according to claim 10, characterized in that, The household appliances include at least one of the following: washing machine, dishwasher, and refrigerator.

12. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.