Method and system for controlling washing machine down lamp capable of preventing false triggering
By using a gated magnetic switch and an adaptive control method based on multi-dimensional signal acquisition, the problem of false triggering of the washing machine drum lighting was solved, improving the reliability and energy efficiency of lighting control.
Patent Information
- Application Number
- CN202610201904.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-12
- Publication Date
- 2026-05-01
AI Technical Summary
The washing machine drum lighting is easily triggered by door shaking or unintentional contact, affecting the user experience and accelerating the aging of the lighting components.
The system determines a valid door opening event by using a door-controlled magnetic switch, and collects multi-dimensional intent signals by combining sensing electrodes, infrared detection, and photoresistors. It then executes adaptive supplementary lighting decisions to generate lighting drive commands and controls the drive circuit connected to the downlight.
It effectively avoids false triggering, improves the reliability of lighting control, and reduces unnecessary energy consumption and device aging.
Smart Images

Figure CN121968411A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of washing machine control technology, specifically to a control method and system for preventing accidental triggering of the washing machine drum light. Background Technology
[0002] During the use of a washing machine, the drum lighting is usually directly related to the opening status of the door. When the door is slightly shaken, the magnetic switch vibrates, or the user does not actively touch it, the lighting device, such as the drum light, is triggered and turns on. Due to the lack of comprehensive judgment on the user's true intention to open the machine and the ambient light conditions, the lighting control is easily activated incorrectly when the whole machine is moved, the door is briefly touched, or the light changes. This not only affects the user experience but also causes unnecessary energy consumption and accelerates the aging of the lighting components. Summary of the Invention
[0003] This application provides a control method and system for preventing accidental triggering of washing machine drum lights, which addresses the technical problem of accidental triggering of washing machine drum lighting in the prior art.
[0004] In view of the above problems, this application provides a control method and system for preventing accidental triggering of the washing machine drum light.
[0005] The first aspect of this application provides a control method for a washing machine drum light to prevent accidental triggering, the method comprising: Based on the on / off state switching of the door control magnetic switch, it is determined whether a valid door opening event exists. When a valid door opening event exists, the intent judgment process is triggered and the timer window of the hardware timer is started. The MCU collects the auxiliary verification signal in the timer window, wherein the auxiliary verification signal includes a valid contact intent dimension, a valid opening intent dimension, and a valid supplementary lighting intent dimension. The verification threshold embedded in the MCU is triggered, and the timestamp condition judgment based on the auxiliary verification signal and the adaptive supplementary lighting decision based on the valid supplementary lighting intent dimension are executed. A lighting drive command is generated according to the determined PWM duty cycle parameter. According to the lighting drive command, the driving circuit connected to the drum light in the washing machine drum is managed for lighting control.
[0006] A second aspect of this application provides a control system for preventing accidental triggering of a washing machine drum light, the system comprising: The system comprises the following modules: a judgment module for determining whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch; an acquisition module for triggering an intent judgment process and starting a timer window of a hardware timer when a valid door opening event exists, wherein the MCU acquires auxiliary verification signals within the timer window, including valid contact intent, valid opening intent, and valid supplementary lighting intent; a decision module for triggering a verification threshold embedded in the MCU, performing a timestamp-based condition judgment based on the auxiliary verification signals and an adaptive supplementary lighting decision based on the valid supplementary lighting intent, and generating a lighting drive command based on the determined PWM duty cycle parameters; and a lighting control management module for managing the lighting control of the drive circuit connected to the drum light inside the washing machine drum according to the lighting drive command.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: This application determines whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch. When a valid door opening event exists, an intent judgment process is triggered and a timer window of the hardware timer is started. The MCU collects auxiliary verification signals within the timer window, wherein the auxiliary verification signals include a valid contact intent dimension, a valid opening intent dimension, and a valid supplementary lighting intent dimension. The MCU triggers a verification threshold embedded within it, performs a timestamp condition judgment based on the auxiliary verification signals, and an adaptive supplementary lighting decision based on the valid supplementary lighting intent dimension. A lighting drive command is generated according to the determined PWM duty cycle parameters. Based on the lighting drive command, the drive circuit connected to the drum light in the washing machine is managed for lighting control. This invention solves the technical problem of false triggering of the lighting inside the washing machine drum in the prior art. By verifying and judging the multi-dimensional intent signals after a valid door opening event and controlling the lighting trigger, it achieves the technical effect of effectively avoiding false triggering and improving the reliability of lighting control. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 A schematic flowchart of a control method for preventing accidental triggering of a washing machine drum light provided in an embodiment of this application; Figure 2 This is a schematic diagram of a control system for preventing accidental triggering of a washing machine drum light, provided in an embodiment of this application.
[0010] Explanation of reference numerals in the attached diagram: Judgment module 11, data acquisition module 12, decision-making module 13, lighting control management module 14. Detailed Implementation
[0011] This application provides a control method and system for preventing accidental triggering of washing machine drum lights. It addresses the technical problem of accidental triggering of washing machine drum lighting in the prior art by verifying and judging the multi-dimensional intention signal after a valid door opening event and controlling the lighting trigger, thereby effectively avoiding accidental triggering and improving the reliability of lighting control.
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0013] It should be noted that any variation of the terms "comprising" and "having" is intended to cover non-exclusive inclusion, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such processes, methods, products, or devices.
[0014] Example 1, as Figure 1 As shown, this application provides a control method for a washing machine drum light to prevent accidental triggering, the method comprising: Step S100: Determine whether there is a valid door opening event based on the on / off state switching of the door control magnetic switch.
[0015] In this embodiment, a door-controlled magnetic switch is installed at the washing machine door to sense changes in the relative position between the door and the door frame. The door-controlled magnetic switch remains closed when the door is closed, and switches to open / closed state when the door is opened. The MCU monitors the switching of the open / closed state by detecting changes in the level of the output signal of the door-controlled magnetic switch, and defines the rising edge of the detection pin as the trigger condition for a valid door opening event. To avoid misjudgments caused by mechanical jitter, the mechanical contact signal of the door-controlled magnetic switch is first filtered by an RC low-pass filter to suppress switch jitter before being connected to the external interrupt pin of the MCU. When the door-controlled magnetic switch switches to the open state and the corresponding high-level signal lasts for a preset stable time, the MCU determines that a valid door opening event has occurred.
[0016] Furthermore, in the method provided in the application embodiments, determining whether a valid door opening event exists further includes: A valid door opening event is set, wherein the MCU is configured to detect the rising edge of the pin as a valid door opening event; the door cover magnetic control switch is mechanically contacted to determine whether the door control magnetic control switch switches to the open state and a stable opening signal lasts for a preset time, thus determining that a valid door opening event exists. The switch is switched to the open state by pulling up the resistor to a high level; the mechanical contact signal of the door cover magnetic control switch is connected to the external interrupt pin of the MCU through an RC low-pass filter, and the RC low-pass filter performs switch bounce suppression.
[0017] In this embodiment, by setting a valid door opening event, the MCU is first configured to monitor the level change of the detection pin via an interrupt, and the rising edge signal generated at the detection pin is explicitly used as the trigger condition for the valid door opening event. A door cover magnetic switch is installed at the corresponding position of the door cover and the door frame. The door cover magnetic switch consists of a magnet and mechanical contacts, and is used to convert the mechanical opening action of the door cover into an electrical signal state. When the door cover is in the closed state, the mechanical contacts of the door cover magnetic switch remain conductive; when the door cover is opened, the mechanical contacts of the door cover magnetic switch switch to the open state.
[0018] When the magnetic switch for the door cover is in the off state, its output is pulled high by the pull-up resistor, causing the switch to switch from a low to a high level. This level switch is represented as a rising edge signal at the MCU detection pin. The MCU captures this rising edge signal via an external interrupt to obtain the timing information of the on / off state switch of the magnetic switch for the door cover.
[0019] Because the mechanical contacts of the door cover magnetic switch are prone to jitter signals during the switching process, an RC low-pass filter is installed between the door cover magnetic switch and the MCU to prevent these jitter signals from being misidentified as multiple valid door opening events. The RC low-pass filter, composed of resistors and capacitors, is used to suppress switch jitter. By filtering out the high-frequency jitter signals generated during the mechanical contact switching process, it allows only low-frequency signals with stable trends to pass through, thus performing hardware debouncing on the mechanical contact signals of the door cover magnetic switch. The signal processed by the RC low-pass filter is then connected to the MCU's external interrupt pin to ensure the stability of the input signal.
[0020] After capturing the rising edge signal, the MCU determines the duration of the high-level state generated by the magnetic door switch and measures the duration of the stable opening signal through an internal timing mechanism. When the stable opening signal lasts for a preset time threshold, the MCU confirms that the magnetic door switch has stably switched to the off state, eliminating the influence of momentary interference and incomplete opening actions, thus determining that a valid door opening event has occurred.
[0021] Step S200: When a valid door opening event exists, the intent judgment process is triggered and the timer window of the hardware timer is started. The MCU collects the auxiliary verification signal in the timer window, wherein the auxiliary verification signal includes the valid contact intent dimension, the valid opening intent dimension, and the valid supplementary lighting intent dimension.
[0022] In this embodiment, when the MCU determines that a valid door opening event exists, it triggers the intent judgment process and simultaneously starts a hardware timer to form a timer window for intent recognition. Within the time range defined by the timer window, the MCU centrally collects and processes auxiliary verification signals, which are composed of valid contact intent, valid opening intent, and valid supplementary lighting intent.
[0023] The effective contact intent dimension is achieved through the sensing electrodes embedded in the door handle. When a user touches the door handle, the equivalent capacitance change is converted into an absolute frequency value by a capacitance-to-digital converter chip and transmitted to the MCU via the communication bus. The MCU determines whether to generate the first effective contact intent based on the absolute frequency value. The effective opening intent dimension is achieved through infrared emitting and receiving tubes located at the door frame and door cover positions. During the opening of the door cover, changes in the infrared light path obstruction cause changes in the output current and voltage of the receiving tube. When the voltage data exceeds the reference voltage, the voltage comparator outputs a high-level signal. The MCU measures the width of the high-level pulse to generate the second effective opening intent. The effective supplementary lighting intent dimension is obtained through a voltage divider circuit composed of a photoresistor and a fixed resistor connected in series. The MCU periodically samples the voltage at the midpoint of the voltage divider to reflect the ambient light level inside the cylinder and generate the third effective supplementary lighting intent.
[0024] Furthermore, in the method provided in the application embodiment, the MCU collects auxiliary verification signals within a timer window, the auxiliary verification signals including a valid contact intent dimension, and further including: A sensing electrode is embedded in the door handle and connected to the input terminal of a capacitance-to-digital converter chip, wherein the capacitance-to-digital converter chip communicates with an MCU via a bus. By contacting the door handle, equivalent capacitance data is generated. The equivalent capacitance data is converted into an absolute frequency value by the digital converter chip, wherein the absolute frequency value quantifies the contact strength. The MCU detects the absolute frequency value via the communication bus, and if the preset contact conditions are met, a first valid contact intention is generated.
[0025] In this embodiment, a sensing electrode is embedded within the door handle, positioned inside the handle and corresponding to the area contacted by the user's hand, thus forming a reference capacitance structure when not in contact. Simultaneously, the sensing electrode is connected to the input terminal of a capacitance-to-digital converter chip, enabling it to participate in the capacitance measurement circuit within the chip. The capacitance-to-digital converter chip communicates with the MCU via a bus to transmit measurement results and receive control commands.
[0026] When a user touches the door handle, the human body, as a conductor, forms an additional capacitance path with the sensing electrode, causing a change in the equivalent capacitance of the sensing electrode to ground. This change in equivalent capacitance is detected in real time by a capacitance-to-digital converter chip. The capacitance-to-digital converter chip applies periodic charging and discharging excitation to the sensing electrode, causing the sensing electrode to complete the charging and discharging process in each measurement cycle, and samples the time parameters corresponding to the charging and discharging process to obtain equivalent capacitance data reflecting the contact state.
[0027] The capacitor-to-digital converter chip then introduces the equivalent capacitance data into the internal oscillation circuit, making the equivalent capacitance a determining parameter of the oscillation period in the generation of the oscillation signal. The capacitor-to-digital converter chip counts the number of pulses of the oscillation signal within a fixed time window and calculates the ratio of the counting result to the duration of the fixed time window, thereby converting it into an absolute frequency value output that corresponds one-to-one with the equivalent capacitance. The absolute frequency value has a corresponding relationship with the change of the equivalent capacitance and is used to quantify the contact strength.
[0028] Finally, the MCU reads the absolute frequency value through the communication bus and performs detection and comparison judgment on the absolute frequency value. When the absolute frequency value meets the preset contact conditions, it generates the first valid contact intention, which is used to characterize the door handle contact behavior to meet the valid contact requirements and is output as the valid contact intention dimension in the auxiliary verification signal.
[0029] Furthermore, in the method provided in the application embodiments, the MCU collects auxiliary verification signals within a timer window, the auxiliary verification signals including a valid activation intent dimension, and further including: Infrared emitters and receivers are installed opposite each other at the door frame and door cover positions. The output of the receiver is connected to the inverting input of a voltage comparator, and a reference voltage is set at the non-inverting input of the voltage comparator. The output of the voltage comparator is connected to an MCU. As the door cover opens, the infrared light path generated by the emitters and receivers is less obstructed, and the receiver generates current data to determine the voltage data. When the voltage data is greater than the reference voltage, the voltage comparator flips to a high level, and the MCU continuously measures the pulse width of the high level to generate a second valid opening intention. The pulse width of the high level is positively correlated with the opening angle of the door cover.
[0030] In this embodiment, infrared emitters and receivers are installed opposite each other at the door frame and door cover positions, respectively. An infrared beam detection method is used to construct a door cover opening status sensing structure. The infrared emitters emit continuous infrared beams towards the receivers, and the receivers receive the infrared light signals transmitted through the door cover. By connecting the output of the receiver to the inverting input of a voltage comparator, the analog electrical signal generated by the receiver enters the comparison path. A reference voltage is set at the non-inverting input of the voltage comparator to establish a benchmark for determining the infrared reception intensity. The output of the voltage comparator is connected to an MCU to transmit the comparison result to the MCU.
[0031] As the door opens, the obstruction of the infrared light path between the infrared emitting and receiving tubes gradually decreases, causing the intensity of the infrared light reaching the receiving tube to gradually increase. The receiving tube then converts the received infrared light intensity into a corresponding photocurrent signal based on the photoelectric conversion principle. This photocurrent flows through the load resistor at the output terminal of the receiving tube, creating a voltage drop across the load resistor proportional to the amplitude of the photocurrent. This voltage data, reflecting the change in infrared received intensity, is then input to the inverting input of a voltage comparator.
[0032] The voltage comparator continuously compares the voltage data at the inverting input with the reference voltage set at the non-inverting input. When the voltage data rises with the increase of infrared light reception intensity and exceeds the reference voltage, the output state of the voltage comparator flips, switching from low level to high level, and a high-level signal corresponding to the door opening process is generated at the output.
[0033] The MCU continuously samples the high-level signal output by the voltage comparator and measures the duration of the high-level signal through an internal timing and counting mechanism to obtain the corresponding high-level pulse width. Since a larger door opening angle results in a longer duration of reduced infrared light path obstruction, the time for the voltage data output by the receiving tube to be higher than the reference voltage is correspondingly extended. This leads to an increase in the high-level duration maintained by the voltage comparator output. Therefore, the high-level pulse width is positively correlated with the door opening angle. The MCU generates a second valid opening intention based on the high-level pulse width to characterize the door opening behavior as meeting the valid opening conditions.
[0034] Furthermore, in the method provided in the application embodiment, the MCU acquires an auxiliary verification signal within a timer window, the auxiliary verification signal including the dimension of effective supplementary lighting intention, and further including: A voltage divider circuit is connected between the power supply and ground. The voltage divider circuit consists of a photoresistor and a fixed resistor connected in series, and the midpoint of the voltage divider is connected to the MCU. As the illuminance of the ambient light inside the cylinder changes, the resistance of the photoresistor changes in the same frequency, and the voltage value at the midpoint of the voltage divider changes in the same frequency. The MCU generates a third effective supplementary lighting intention by periodically sampling the voltage value, wherein a low voltage value represents low illuminance.
[0035] In this embodiment, a voltage divider circuit is first connected between the power supply and ground. The voltage divider circuit consists of a photoresistor and a fixed resistor connected in series. The resistance change of the photoresistor is mapped to a voltage change using the series voltage divider principle. The midpoint of the voltage divider circuit is directly connected to the analog input pin of the MCU, so that the voltage at the midpoint of the voltage divider serves as an analog input signal that can be acquired by the MCU, thereby establishing a basic correspondence between the ambient illuminance inside the cylinder and the analog voltage.
[0036] Secondly, as the ambient light level inside the washing machine drum changes, the resistance of the photoresistor changes synchronously based on the photoelectric effect. When the ambient light level inside the drum decreases, the resistance of the photoresistor increases, and when the ambient light level inside the drum increases, the resistance of the photoresistor decreases. In the voltage divider circuit formed by the photoresistor and the fixed resistor connected in series, the change in the resistance of the photoresistor changes the voltage division ratio, so that the voltage value at the midpoint of the voltage divider changes synchronously with the change in resistance according to the voltage division formula, thereby forming analog voltage data corresponding to the change in ambient light level inside the drum.
[0037] The MCU then performs periodic sampling of the analog voltage connected to the midpoint of the voltage divider. Within a preset sampling period, the MCU triggers an analog-to-digital conversion process to hold and quantize the analog voltage at the midpoint of the voltage divider, converting the continuously changing analog voltage into discrete digital voltage data. The digital voltage data reflects the instantaneous magnitude of the voltage at the midpoint of the voltage divider in numerical form, thus completing the conversion process from analog voltage to digital signal.
[0038] Finally, the MCU calculates and judges the digital voltage data. By comparing the sampled digital voltage data with the preset illuminance judgment conditions, when the corresponding digital voltage data is in the lower value range, it is determined that the voltage at the midpoint of the voltage divider is low. The low voltage value represents low illuminance. Based on this, the MCU generates a third effective supplementary lighting intention to represent insufficient ambient light inside the tube and to provide a basis for subsequent lighting supplementary lighting control.
[0039] Step S300: Trigger the verification threshold embedded in the MCU, perform time stamp condition judgment based on the auxiliary verification signal and adaptive supplementary lighting decision based on the effective supplementary lighting intention dimension, and generate lighting drive instructions according to the determined PWM duty cycle parameters.
[0040] In this embodiment, after the synchronous acquisition of auxiliary verification signals is completed within the timer window, the MCU triggers its embedded verification threshold to enter the judgment process. The verification threshold is used to uniformly judge the dimensions of valid contact intention, valid activation intention, and valid supplementary lighting intention. The MCU first performs a timestamp condition judgment based on the auxiliary verification signals. The timestamp condition is used to confirm that each auxiliary verification signal meets the standard at least once within the timer window. When any auxiliary verification signal does not meet the timestamp condition, the MCU generates a false touch command and terminates the lighting control response.
[0041] Once all auxiliary verification signals meet the timestamp condition, the MCU triggers the second verification threshold and executes adaptive supplementary lighting decisions based on the effective supplementary lighting intention dimension. The adaptive supplementary lighting decision is based on a preset linear supplementary lighting relationship, where illuminance and PWM duty cycle are negatively correlated, resulting in a higher PWM duty cycle when the ambient illuminance inside the canopy is low. The MCU determines the PWM duty cycle parameters that match the current effective supplementary lighting intention dimension based on the linear supplementary lighting relationship, and generates lighting drive commands accordingly. These commands are marked with a lighting timestamp and serve as the control basis for subsequent canopy lighting drive and lamp control management.
[0042] Furthermore, in the method provided in the application embodiments, generating lighting driving instructions further includes: The MCU synchronously acquires auxiliary verification signals and triggers a verification threshold. The verification threshold receives the auxiliary verification signals. When the auxiliary verification signals meet the timestamp condition, it makes a PWM duty cycle decision based on the effective brightness and generates a lighting drive command. The timestamp condition is that the auxiliary verification signals meet the standard at least once within the timer window.
[0043] In this embodiment, within the timer window defined by the hardware timer, the MCU synchronously acquires the auxiliary verification signals. This is achieved by periodically sampling the effective contact intention dimension, the effective activation intention dimension, and the effective supplementary lighting intention dimension during the timer window, and recording the corresponding timestamp for each sampling result. This ensures that all auxiliary verification signals originate from the same time window and have a clear temporal correspondence.
[0044] After synchronous acquisition is completed, the MCU triggers its embedded verification threshold. The verification threshold receives auxiliary verification signals and performs timestamp condition judgment. Specifically, within the timer window, the sampling records of the valid contact intention dimension, valid activation intention dimension, and valid supplemental lighting intention dimension are checked one by one. When it is confirmed that each of the above auxiliary verification signals has at least one sampling result that meets the corresponding judgment condition within the timer window, the timestamp condition is determined to be true, thus allowing the process to proceed to the brightness decision-making stage.
[0045] After the timestamp condition is met, the MCU executes a PWM duty cycle decision based on the effective brightness, which is determined by the sampled data corresponding to the effective supplementary lighting intention dimension. The MCU first reads the voltage data corresponding to the effective supplementary lighting intention dimension and limits this data to a preset minimum and maximum brightness input value to prevent control distortion caused by abnormal sampling. Then, based on a pre-set linear mapping relationship, the MCU proportionally converts the input value of the effective supplementary lighting intention dimension into a PWM duty cycle parameter. This means mapping the proportion of the current value of the effective supplementary lighting intention dimension within its input range to the output range of the PWM duty cycle, resulting in a larger calculated PWM duty cycle when the ambient light level is low and a smaller calculated PWM duty cycle when the ambient light level is high. For example, when the voltage data corresponding to the effective supplementary lighting intention dimension is close to the lower input limit, the MCU calculates a value close to the upper limit of the PWM duty cycle according to a linear ratio; when the voltage data is close to the upper input limit, the MCU calculates a value close to the lower limit of the PWM duty cycle.
[0046] After completing the PWM duty cycle parameter calculation, the MCU combines the PWM duty cycle parameter with the lighting trigger flag and the current timestamp to generate a lighting drive instruction. The lighting drive instruction is used to explicitly indicate the PWM duty cycle parameter required for the drum light inside the washing machine.
[0047] Furthermore, the method provided in the application embodiments also includes: A linear supplementary lighting relationship is set, wherein the linear supplementary lighting relationship is defined by the negative correlation between illuminance and PWM duty cycle; by activating the verification threshold in the MCU, according to the first verification threshold, a satisfaction judgment is performed based on the first valid contact intention, the second valid turn-on intention and the third valid supplementary lighting intention within the timer window. If any one of them is not satisfied, a false touch command is generated and no lamp control response is performed.
[0048] In this embodiment, a linear supplementary lighting relationship is first established. This relationship clarifies the correspondence between the ambient illuminance inside the tube and the lighting control parameters. The linear supplementary lighting relationship is defined by the negative correlation between illuminance and PWM duty cycle. The ambient illuminance inside the tube is used as the input and the PWM duty cycle as the output. A pre-defined linear mapping rule establishes the correspondence between the two, thereby ensuring that in subsequent supplementary lighting control, a larger PWM duty cycle corresponds to a decrease in ambient illuminance, and a smaller PWM duty cycle corresponds to an increase in ambient illuminance. This provides a definite calculation basis for adjusting the lighting brightness.
[0049] After setting the linear supplementary lighting relationship, the judgment process is initiated by activating the verification threshold in the MCU. Based on the first verification threshold, the multi-dimensional intent signals are comprehensively judged. The first verification threshold receives the first valid contact intent, the second valid opening intent, and the third valid supplementary lighting intent, and checks whether each of these intents meets the corresponding judgment conditions within the timer window. Specifically, the first valid contact intent indicates whether the user has made a clear contact operation; the second valid opening intent indicates whether the door / cover has reached a valid open state; and the third valid supplementary lighting intent indicates whether there is a need for supplementary lighting in the ambient light inside the tube.
[0050] The MCU then performs a satisfaction check based on the result of the first verification threshold. When the first valid touch intention, the second valid opening intention, and the third valid supplementary lighting intention all meet their respective judgment conditions within the timer window, the verification threshold is passed, allowing entry into the subsequent lighting control process. If any intention does not meet its corresponding judgment condition within the timer window, the MCU determines that the current trigger does not meet the expected lighting conditions and generates a false touch command, while not performing a lighting control response. This avoids erroneous triggering of the washing machine drum light due to non-real operation, abnormal door status, or no need for supplementary lighting.
[0051] Furthermore, the method provided in the application embodiments also includes: If satisfied, the second verification threshold is triggered; the second verification threshold receives the third valid supplementary lighting intention, performs adaptive supplementary lighting decision based on the linear supplementary lighting relationship, determines the PWM duty cycle parameter, and generates a lighting drive command, wherein the lighting drive command is identified by a lighting timestamp.
[0052] In this embodiment, after the first verification threshold is satisfied, the second verification threshold is triggered. The second verification threshold then receives a third valid supplementary lighting intention, which is sampled by the MCU within a timer window using a voltage divider circuit and is used to characterize the ambient light level inside the washing machine drum. The second verification threshold uses the sampled data corresponding to the third valid supplementary lighting intention as input for adaptive supplementary lighting decision-making to ensure that supplementary lighting control is directly based on the current ambient light conditions.
[0053] Next, the second verification threshold performs adaptive supplementary lighting decision based on the linear supplementary lighting relationship. This linear supplementary lighting relationship is defined by the negative correlation between illuminance and PWM duty cycle. The MCU substitutes the illuminance representation corresponding to the third effective supplementary lighting intention into the pre-set linear mapping relationship for calculation. The PWM duty cycle parameter that matches the current illuminance is determined through linear conversion, so that a larger PWM duty cycle corresponds to a lower ambient light illuminance inside the cylinder, and a smaller PWM duty cycle corresponds to a higher ambient light illuminance.
[0054] Finally, after determining the PWM duty cycle parameters, the MCU generates a lighting drive instruction and writes the PWM duty cycle parameters into the lighting drive instruction as a lighting drive control quantity. At the same time, the lighting drive instruction is marked with a lighting timestamp to record the time when the lighting drive instruction is generated, thus providing a clear basis for the subsequent drive execution and timing management of the drum light inside the washing machine.
[0055] Step S400: According to the lighting drive command, perform lighting control management on the drive circuit connected to the drum light inside the washing machine drum.
[0056] In this embodiment, when managing the lighting control of the drive circuit connected to the drum light in the washing machine drum according to the lighting drive command, the lighting drive command is first sent to the power supply to drive the drum light into the working state. During the lighting process, the MCU continuously monitors the voltage drop across the resistor in the drive circuit to determine the operating current of the drum light and performs abnormal lighting response judgment accordingly. Then, at the end of the lighting stage, the MCU controls the PWM duty cycle to smoothly drop to zero, so that the drum light exits the working state in an orderly manner and returns to the low-power standby state. Specifically, when the operating current of the drum light is detected to be zero, the MCU determines that there is a fault in the drum light or the drive circuit, turns off the PWM duty cycle output, and generates an abnormal record. When the operating current of the drum light is detected to be much greater than the rated value, the MCU triggers overcurrent protection to achieve safe and stable lighting control management of the drum light drive circuit in the washing machine drum.
[0057] Furthermore, in the method provided in the application embodiment, the lighting control management of the drive circuit connected to the drum light inside the washing machine drum according to the lighting drive command also includes: The lighting drive command is sent to the power supply to drive the drive circuit connected to the downlight; the MCU continuously monitors the resistor voltage drop to determine the downlight operating current and performs abnormal lighting response judgment; when the lighting ends, the MCU smoothly reduces the PWM duty cycle to zero and returns to a low-power standby state; wherein, the abnormal lighting response judgment includes: if the downlight operating current is zero, the MCU determines that the downlight or drive circuit is faulty, shuts down the PWM duty cycle output and generates an abnormal record; if the downlight operating current is much greater than the rated value, the MCU triggers overcurrent protection.
[0058] In this embodiment, after generating the lighting drive instruction, the MCU sends the lighting drive instruction to the power supply. The lighting drive instruction includes PWM duty cycle parameters for controlling the lighting brightness. The power supply drives the drive circuit connected to the downlight according to the PWM duty cycle parameters, so that the drive circuit provides controlled current to the downlight according to the turn-on and turn-off rhythm of the PWM signal, thereby enabling the downlight to enter the normal lighting working state.
[0059] While the downlight is in illumination mode, the MCU continuously monitors the voltage drop across the resistor in the drive circuit. This voltage drop originates from a detection resistor connected in series in the downlight circuit. The MCU obtains the voltage drop data by periodically sampling the voltage across the detection resistor and, combined with the known resistance value, calculates the downlight's operating current based on the relationship between voltage drop and current. This allows for a quantitative assessment of the downlight's real-time operating status. Specifically, when calculating the downlight's operating current, the sampled voltage drop value is divided by the resistance value of the detection resistor to obtain the current value passing through the detection resistor; this current value is the downlight's operating current.
[0060] Based on the calculated downlight operating current, the MCU performs abnormal lighting response judgment. When the downlight operating current is detected to be zero, the MCU determines that there is a fault such as an open circuit, abnormal connection, or device failure in the downlight or drive circuit, and immediately shuts down the PWM duty cycle output to stop driving the drive circuit, while generating an abnormal record corresponding to the abnormal state. When the downlight operating current is detected to be much greater than the rated value, the MCU determines that there is an overcurrent risk in the drive circuit and triggers overcurrent protection, limiting or interrupting the PWM duty cycle output to prevent damage to the downlight and drive circuit.
[0061] When the lighting process ends or the preset lighting termination condition is met, the MCU performs smooth descent control on the PWM duty cycle, gradually reducing the PWM duty cycle parameter over consecutive control cycles. This gradually reduces the current output by the drive circuit, thus preventing sudden current surges from impacting the downlight. After the PWM duty cycle drops to zero, the MCU stops driving the lighting in the drive circuit and returns to a low-power standby state, thereby completing safe and orderly lighting control management of the drive circuit connected to the downlight inside the washing machine drum.
[0062] In summary, the embodiments of this application have at least the following technical effects: This application determines whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch. When a valid door opening event exists, an intent judgment process is triggered and a timer window of the hardware timer is started. The MCU collects auxiliary verification signals within the timer window, wherein the auxiliary verification signals include a valid contact intent dimension, a valid opening intent dimension, and a valid supplementary lighting intent dimension. The MCU triggers a verification threshold embedded within it, performs a timestamp condition judgment based on the auxiliary verification signals, and an adaptive supplementary lighting decision based on the valid supplementary lighting intent dimension. A lighting drive command is generated according to the determined PWM duty cycle parameters. Based on the lighting drive command, the drive circuit connected to the drum light in the washing machine is managed for lighting control. This invention solves the technical problem of false triggering of the lighting inside the washing machine drum in the prior art. By verifying and judging the multi-dimensional intent signals after a valid door opening event and controlling the lighting trigger, it achieves the technical effect of effectively avoiding false triggering and improving the reliability of lighting control.
[0063] Example 2, based on the same inventive concept as the control method for preventing accidental triggering of a washing machine drum light in the foregoing examples, such as... Figure 2 As shown, this application provides a control system for a washing machine drum light that prevents accidental triggering. The system and method embodiments in this application are based on the same inventive concept. The system includes: The judgment module 11 is used to determine whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch; the acquisition module 12 is used to trigger the intent judgment process and start the timer window of the hardware timer when a valid door opening event exists, and the MCU acquires the auxiliary verification signal in the timer window, wherein the auxiliary verification signal includes a valid contact intent dimension, a valid opening intent dimension, and a valid supplementary lighting intent dimension; the decision module 13 is used to trigger the verification threshold embedded in the MCU, perform a timestamp condition judgment based on the auxiliary verification signal and an adaptive supplementary lighting decision based on the valid supplementary lighting intent dimension, and generate a lighting drive command according to the determined PWM duty cycle parameter; the lighting control management module 14 is used to perform lighting control management on the drive circuit connected to the drum light in the washing machine drum according to the lighting drive command.
[0064] Furthermore, the system is also used to implement the following functions: A valid door opening event is set, wherein the MCU is configured to detect the rising edge of the pin as a valid door opening event; the door cover magnetic control switch is mechanically contacted to determine whether the door control magnetic control switch switches to the open state and a stable opening signal lasts for a preset time, thus determining that a valid door opening event exists. The switch is switched to the open state by pulling up the resistor to a high level; the mechanical contact signal of the door cover magnetic control switch is connected to the external interrupt pin of the MCU through an RC low-pass filter, and the RC low-pass filter performs switch bounce suppression.
[0065] Furthermore, the system is also used to implement the following functions: The MCU synchronously acquires auxiliary verification signals and triggers the verification threshold. The verification threshold receives the auxiliary verification signal. When the auxiliary verification signal meets the timestamp condition, it makes a PWM duty cycle decision based on the effective brightness and generates a lighting drive command. The timestamp condition is that the auxiliary verification signal meets the standard at least once within the timer window.
[0066] Furthermore, the system is also used to implement the following functions: A sensing electrode is embedded in the door handle and connected to the input terminal of a capacitance-to-digital converter chip, wherein the capacitance-to-digital converter chip communicates with an MCU via a bus. By contacting the door handle, equivalent capacitance data is generated. The equivalent capacitance data is converted into an absolute frequency value by the digital converter chip, wherein the absolute frequency value quantifies the contact strength. The MCU detects the absolute frequency value via the communication bus, and if the preset contact conditions are met, a first valid contact intention is generated.
[0067] Furthermore, the system is also used to implement the following functions: Infrared emitters and receivers are installed opposite each other at the door frame and door cover positions. The output of the receiver is connected to the inverting input of a voltage comparator, and a reference voltage is set at the non-inverting input of the voltage comparator. The output of the voltage comparator is connected to an MCU. As the door cover opens, the infrared light path generated by the emitters and receivers is less obstructed, and the receiver generates current data to determine the voltage data. When the voltage data is greater than the reference voltage, the voltage comparator flips to a high level, and the MCU continuously measures the pulse width of the high level to generate a second valid opening intention. The pulse width of the high level is positively correlated with the opening angle of the door cover.
[0068] Furthermore, the system is also used to implement the following functions: A voltage divider circuit is connected between the power supply and ground. The voltage divider circuit consists of a photoresistor and a fixed resistor connected in series, and the midpoint of the voltage divider is connected to the MCU. As the illuminance of the ambient light inside the cylinder changes, the resistance of the photoresistor changes in the same frequency, and the voltage value at the midpoint of the voltage divider changes in the same frequency. The MCU generates a third effective supplementary lighting intention by periodically sampling the voltage value, wherein a low voltage value represents low illuminance.
[0069] Furthermore, the system is also used to implement the following functions: A linear supplementary lighting relationship is set, wherein the linear supplementary lighting relationship is defined by the negative correlation between illuminance and PWM duty cycle; by activating the verification threshold in the MCU, according to the first verification threshold, a satisfaction judgment is performed based on the first valid contact intention, the second valid turn-on intention and the third valid supplementary lighting intention within the timer window. If any one of them is not satisfied, a false touch command is generated and no lamp control response is performed.
[0070] Furthermore, the system is also used to implement the following functions: If satisfied, the second verification threshold is triggered; the second verification threshold receives the third valid supplementary lighting intention, performs adaptive supplementary lighting decision based on the linear supplementary lighting relationship, determines the PWM duty cycle parameter, and generates a lighting drive command, wherein the lighting drive command is identified by a lighting timestamp.
[0071] Furthermore, the system is also used to implement the following functions: The lighting drive command is sent to the power supply to drive the drive circuit connected to the downlight; the MCU continuously monitors the resistor voltage drop to determine the downlight operating current and performs abnormal lighting response judgment; when the lighting ends, the MCU smoothly reduces the PWM duty cycle to zero and returns to a low-power standby state; wherein, the abnormal lighting response judgment includes: if the downlight operating current is zero, the MCU determines that the downlight or drive circuit is faulty, shuts down the PWM duty cycle output and generates an abnormal record; if the downlight operating current is much greater than the rated value, the MCU triggers overcurrent protection.
[0072] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are possible or may be advantageous.
[0073] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A control method for a washing machine drum light to prevent accidental triggering, characterized in that, The method includes: The system determines whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch. When a valid door opening event occurs, the intent judgment process is triggered and the timer window of the hardware timer is started. The MCU collects the auxiliary verification signal within the timer window. Trigger the verification threshold embedded in the MCU, execute the timestamp condition judgment based on the auxiliary verification signal and the adaptive supplementary lighting decision based on the effective supplementary lighting intention dimension, and generate lighting drive instructions according to the determined PWM duty cycle parameters; According to the lighting drive command, the drive circuit connected to the drum light inside the washing machine drum is controlled by lighting management. The generation of lighting drive instructions includes: By activating the verification threshold in the MCU, according to the first verification threshold, within the timer window, the first valid contact intention is judged based on the absolute frequency value of the equivalent capacitance data, the second valid turn-on intention is judged based on the pulse width under the high voltage flip of the voltage comparator, and the third valid supplementary lighting intention is judged based on the change of the resistance value of the photoresistor and the voltage value of the midpoint of the voltage divider. If any of these conditions are not met, a false touch command is generated and no lighting control response is performed. If satisfied, the second verification threshold is triggered. The second verification threshold receives the third valid supplementary lighting intention, makes an adaptive supplementary lighting decision based on the linear supplementary lighting relationship, determines the PWM duty cycle parameter, and generates a lighting drive command, wherein the lighting drive command is identified by a lighting timestamp.
2. The control method for preventing accidental triggering of a washing machine drum light as described in claim 1, characterized in that, Determining whether a valid door opening event exists includes: Set a valid door opening event, where the MCU is configured to detect the rising edge of the pin as a valid door opening event; By mechanically judging the magnetic switch of the door cover, if the magnetic switch of the door is switched to the switch-off state, and the stable opening signal lasts for a preset time, it is determined that there is a valid door opening event. In this case, the switch-off state is switched by pulling up the pull-up resistor to a high level. The mechanical contact signal of the magnetic switch for the door cover is connected to the external interrupt pin of the MCU through an RC low-pass filter, which performs switch jitter suppression.
3. The control method for preventing accidental triggering of a washing machine drum light as described in claim 1, characterized in that, Generate lighting drive instructions, including: The MCU synchronously acquires auxiliary verification signals and triggers the verification threshold. The verification threshold receives the auxiliary verification signal. When the auxiliary verification signal meets the timestamp condition, it makes a PWM duty cycle decision based on the effective brightness and generates a lighting drive command. The timestamp condition is that the auxiliary verification signal meets the standard at least once within the timer window.
4. The control method for preventing accidental triggering of a washing machine drum light as described in claim 3, characterized in that, The MCU acquires auxiliary verification signals within a timer window. These auxiliary verification signals include a valid contact intent dimension, including: A sensing electrode is embedded in the door handle, and the sensing electrode is connected to the input terminal of a capacitor-to-digital converter chip, wherein the capacitor-to-digital converter chip communicates with the MCU via a bus. Equivalent capacitance data is generated by contacting the door handle; The equivalent capacitance data is converted into an absolute frequency value by the digital conversion chip, wherein the absolute frequency value quantifies the contact strength. The MCU detects the absolute frequency value via the communication bus. If the preset contact conditions are met, a first valid contact intention is generated.
5. The control method for preventing accidental triggering of a washing machine drum light as described in claim 4, characterized in that, The MCU acquires auxiliary verification signals within a timer window. These auxiliary verification signals include a valid activation intent dimension, including: Infrared emitting and receiving tubes are installed opposite each other at the door frame and door cover positions. The output of the receiving tube is connected to the inverting input of a voltage comparator, a reference voltage is set at the non-inverting input of the voltage comparator, and the output of the voltage comparator is connected to the MCU. As the door is opened, the infrared light path generated by the infrared emitting tube and the receiving tube is less blocked, and the receiving tube generates current data to determine voltage data. When the voltage data is greater than the reference voltage, the voltage comparator flips to a high level, and the MCU continuously measures the pulse width of the high level to generate a second valid opening intention, wherein the pulse width of the high level is positively correlated with the door opening angle.
6. The control method for preventing accidental triggering of a washing machine drum light as described in claim 5, characterized in that, The MCU acquires auxiliary verification signals within a timer window. These auxiliary verification signals include the dimension of valid supplementary lighting intent, including: A voltage divider circuit is connected between the power supply and ground. The voltage divider circuit is composed of a photoresistor and a fixed resistor connected in series, and the midpoint of the voltage divider is connected to the MCU. As the ambient light intensity inside the cylinder changes, the resistance of the photoresistor changes synchronously, and the voltage value at the midpoint of the voltage divider changes synchronously. The MCU generates a third effective supplementary lighting intention by periodically sampling the voltage value, where a low voltage value represents low illumination.
7. The control method for preventing accidental triggering of a washing machine drum light as described in claim 6, characterized in that, A linear supplementary lighting relationship is established, wherein the linear supplementary lighting relationship is defined by the negative correlation between illuminance and PWM duty cycle.
8. The control method for preventing accidental triggering of a washing machine drum light as described in claim 1, characterized in that, According to the lighting drive command, the drive circuit connected to the drum light inside the washing machine drum is managed for lighting control, including: The lighting drive command is sent to the power supply to drive the drive circuit connected to the downlight; The MCU continuously monitors the voltage drop across the resistor to determine the operating current of the downlight and makes judgments on abnormal lighting responses. When the lighting is turned off, the MCU smoothly reduces the PWM duty cycle to zero and returns to a low-power standby state; The abnormal lighting response determination includes: If the downlight's operating current is zero, the MCU determines that the downlight or the drive circuit is faulty, shuts down the PWM duty cycle output, and generates an exception record. If the operating current of the downlight is much greater than the rated value, the MCU will trigger overcurrent protection.
9. A control system for preventing accidental triggering of a washing machine drum light, characterized in that, The system is used to execute a control method for a washing machine drum light to prevent accidental triggering as described in any one of claims 1-8, the system comprising: The judgment module is used to determine whether a valid door opening event exists based on the on / off state switching of the door control magnetic switch; The acquisition module is used to trigger the intent judgment process and start the timer window of the hardware timer when a valid door opening event exists. The MCU acquires the auxiliary verification signal in the timer window, wherein the auxiliary verification signal includes the valid contact intent dimension, the valid opening intent dimension, and the valid supplementary lighting intent dimension. The decision module is used to trigger the verification threshold embedded in the MCU, perform time stamp condition judgment based on the auxiliary verification signal and adaptive supplementary lighting decision based on the effective supplementary lighting intention dimension, and generate lighting drive instructions according to the determined PWM duty cycle parameters. The lighting control management module is used to manage the lighting control of the drive circuit connected to the drum light inside the washing machine drum according to the lighting drive command. The generation of lighting drive instructions includes: By activating the verification threshold in the MCU, according to the first verification threshold, within the timer window, the first valid contact intention is judged based on the absolute frequency value of the equivalent capacitance data, the second valid turn-on intention is judged based on the pulse width under the high voltage flip of the voltage comparator, and the third valid supplementary lighting intention is judged based on the change of the resistance value of the photoresistor and the voltage value of the midpoint of the voltage divider. If any of these conditions are not met, a false touch command is generated and no lighting control response is performed. If satisfied, the second verification threshold is triggered. The second verification threshold receives the third valid supplementary lighting intention, makes an adaptive supplementary lighting decision based on the linear supplementary lighting relationship, determines the PWM duty cycle parameter, and generates a lighting drive command, wherein the lighting drive command is identified by a lighting timestamp.