Washing machine door lock virtual electricity detection method, device, electronic device and storage medium

By combining door lock and zero-crossing circuits to compare pulse duty cycles and adjust detection methods based on error thresholds, the method enhances virtual electricity detection accuracy in washing machine door locks, reducing false alarms and ensuring reliable operation.

CN114481546BActive Publication Date: 2024-12-17WUXI FILIN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111564903.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2024-12-17
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

Existing virtual electricity detection methods for washing machine door locks suffer from low accuracy, leading to frequent false alarms due to virtual electricity, which is commonly generated in humid environments.

Method used

A method involving the combination of a door lock detection circuit and a zero-crossing circuit to detect virtual electricity, where the circuits' pulse duty cycles are compared, and the detection method is adjusted based on the error thresholds to enhance accuracy, using the zero-crossing circuit when normal and the door lock detection circuit when abnormal.

Benefits of technology

The method achieves high-accuracy virtual electricity detection, improving the detection accuracy from 50% to 80% of the rated voltage, reducing false alarms and ensuring reliable door lock operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114481546B_ABST
    Figure CN114481546B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for detecting virtual electricity in a washing machine door lock. The method comprises: obtaining a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating the error between the first pulse duty cycle and the second pulse duty cycle; based on the error being less than a first preset threshold, using the zero-crossing circuit and the door lock detection circuit to perform virtual electricity detection; or, based on the error being greater than or equal to the first preset threshold, only using the door lock detection circuit to perform virtual electricity detection. The method of the present application realizes a combination of virtual electricity detection using a zero-crossing circuit and virtual electricity detection using a door lock detection circuit, and can accurately detect the virtual electricity generated on the washing machine door lock during actual application. The virtual electricity detection has high accuracy and can well meet the needs of actual application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrical equipment, and in particular to a method and device for detecting virtual electricity in a washing machine door lock, electronic equipment and a storage medium. Background Art

[0002] Clothes processing equipment such as drum washing machines have become indispensable household appliances in people's daily lives. Drum washing machines and other clothing processing equipment are often in a humid environment, and it is very easy for virtual electricity to be generated on the door lock of the washing machine, resulting in frequent locking and unlocking false alarms caused by virtual electricity on the door lock of the washing machine during use. For example, the false alarm problem of the door lock of the drum washing machine currently on the market is particularly serious. In the prior art, the virtual electricity detection method is simply used to detect virtual electricity on the door lock of the washing machine, and the detection accuracy is not high, which needs to be improved urgently. Summary of the invention

[0003] The main purpose of the present invention is to provide a method, device, electronic device and storage medium for detecting virtual electricity in a washing machine door lock, aiming to solve the technical problem that the existing virtual electricity detection method for the washing machine door lock is simply performed using virtual electricity software detection and the detection accuracy is low.

[0004] To achieve the above object, the present invention proposes a method for detecting virtual electricity in a washing machine door lock, comprising:

[0005] Obtaining a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle;

[0006] According to the error being less than the first preset threshold, using the zero-crossing circuit and the door lock detection circuit to perform virtual power detection; or,

[0007] According to the error being greater than or equal to the first preset threshold, only the door lock detection circuit is used to perform virtual power detection.

[0008] Preferably, the using the zero-crossing circuit and the door lock detection circuit to perform virtual power detection includes:

[0009] Determining whether the zero-crossing circuit works normally;

[0010] According to the normal operation of the zero-crossing circuit, the zero-crossing circuit and the door lock detection circuit are used to perform virtual power detection;

[0011] According to the abnormal operation of the zero-crossing circuit, only the door lock detection circuit is used to perform virtual power detection.

[0012] Preferably, it further comprises:

[0013] According to the virtual power detection using only the door lock detection circuit, determining whether the first pulse duty cycle is greater than a preset virtual power voltage duty cycle;

[0014] According to the first pulse duty cycle being less than the preset pseudo voltage duty cycle, determining that the pulse signal of the door lock detection circuit is pseudo voltage; or,

[0015] According to the first pulse duty cycle being greater than or equal to the preset virtual voltage duty cycle, it is determined that the pulse signal of the door lock detection circuit is a normal voltage.

[0016] Preferably, it further comprises:

[0017] Based on the determination of using the zero-crossing circuit and the door lock detection circuit to perform virtual power detection, judging whether the error is greater than a second preset threshold; wherein the second preset threshold is greater than the first preset threshold;

[0018] According to the error being greater than a second preset threshold, determining that the pulse signal of the door lock detection circuit is a virtual voltage; or,

[0019] According to the quotient of the error and the second pulse duty cycle being less than or equal to the second preset threshold, it is determined that the pulse signal of the door lock detection circuit is a normal voltage.

[0020] Preferably, before acquiring the first pulse duty cycle of the door lock detection circuit and the second pulse duty cycle of the zero-crossing circuit, the method further comprises:

[0021] The washing machine door lock is powered on, and the door lock detection circuit is used to detect whether the door lock is locked successfully. If the detection result shows that the door lock fails to lock, a lock failure warning message is issued; or

[0022] According to the detection result that the door lock is locked successfully, the step of obtaining the first pulse duty cycle of the door lock detection circuit and the second pulse duty cycle of the zero-crossing circuit is entered.

[0023] Preferably, according to determining that the pulse signal of the door lock detection circuit is a virtual voltage, the method further comprises:

[0024] Issue a lock failure warning message.

[0025] Preferably, according to determining that the pulse signal of the door lock detection circuit is a normal voltage, the method further comprises:

[0026] A successful lock prompt message is issued.

[0027] The present invention also provides a washing machine door lock virtual electricity detection device, comprising:

[0028] An acquisition module, used for acquiring a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle;

[0029] A detection module, configured to perform virtual power detection using the zero-crossing circuit and the door lock detection circuit according to the error being less than a first preset threshold; or,

[0030] The detection module is used to perform virtual power detection using only the door lock detection circuit according to the error being greater than or equal to the first preset threshold.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the above-mentioned methods for detecting virtual electricity in a washing machine door lock.

[0032] The present invention also provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement any of the above-mentioned methods for detecting virtual electricity in a washing machine door lock.

[0033] The method for detecting virtual electricity in a washing machine door lock of the technical solution of the present invention obtains a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, compares the first pulse duty cycle with the second pulse duty cycle, determines and executes a subsequent virtual electricity detection method based on the comparison result, and realizes a combination of virtual electricity detection using a zero-crossing circuit and virtual electricity detection using a door lock detection circuit. The virtual electricity generated on the washing machine door lock during actual application can be accurately detected, and the virtual electricity detection has high accuracy, which can well meet the needs of actual application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0035] Figure 1 A flow chart of a method for detecting virtual electricity in a washing machine door lock according to an embodiment of an implementation scheme;

[0036] Figure 2 for Figure 1 Flow chart of step S00;

[0037] Figure 3 It is the circuit diagram of the door lock detection circuit;

[0038] Figure 4 is a flowchart of step S301 in one implementation mode;

[0039] Figure 5 A flow chart of a method for detecting virtual electricity in a washing machine door lock according to another embodiment of an embodiment;

[0040] Figure 6 A flow chart of a method for detecting virtual electricity in a washing machine door lock according to another embodiment;

[0041] Figure 7 A flow chart of a method for detecting virtual electricity in a washing machine door lock according to an implementation of another embodiment;

[0042] Figure 8 It is a structural block diagram of a virtual electricity detection device for a washing machine door lock according to another embodiment;

[0043] Fig. 9 is a structural block diagram of an electronic device according to another embodiment;

[0044] Fig.10 A schematic diagram of a computer-readable storage medium according to another embodiment.

[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0048] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0049] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0051] The door lock of a clothing processing device such as a washing machine is an electronic door lock, and the washing machine door lock is used to lock the door of the clothing processing device during the process of processing clothing (such as washing clothing). The clothing processing device may be, for example, a drum washing machine, a pulsator washing machine, a washer-dryer or other types of clothing processing devices. A control unit is installed in the clothing processing device, and the control unit may be, for example, a processor, a microcontroller or a microprocessor. The control unit is electrically connected to the washing machine door lock. The power supply of the clothing processing device may generally be a mains supply. A door lock detection circuit is provided between the control unit and the washing machine door lock. The control unit is also connected to the output end of the zero-crossing circuit, and the input end of the zero-crossing detection unit is connected to the power supply. The output end of the door lock detection circuit and the output end of the zero-crossing circuit are electrically connected to the control unit respectively. The input end of the door lock detection circuit is electrically connected to the washing machine door lock. When the washing machine door lock is locked, the power supply, the washing machine door lock, the door lock detection circuit and the control unit circuit are connected. The power supply, the zero-crossing circuit and the control unit circuit are also connected. When the washing machine door lock is unlocked, the power supply, the washing machine door lock, the door lock detection circuit and the control unit circuit are no longer connected.

[0052] like Figure 1 As shown, an embodiment of the present application provides a method for detecting virtual electricity in a washing machine door lock, which may include the following steps:

[0053] S00, power on the door lock of the washing machine, and detect whether the door lock is locked successfully through the door lock detection circuit.

[0054] In some embodiments, step S00 includes: powering on the washing machine door lock, executing a first virtual power detection method after the washing machine door lock executes a locking instruction, and determining whether the washing machine door lock is locked successfully according to the detection result.

[0055] The first virtual power detection mode is set as the default virtual power detection mode. The first virtual power detection mode is a mode of using a door lock detection circuit to perform virtual power detection. For a clothing processing device such as a drum washing machine, after the washing machine door lock is locked, the default virtual power detection mode is first used to perform detection to determine whether the washing machine door lock is locked successfully.

[0056] like Figure 2 As shown, in some embodiments, the steps of the first virtual power detection method include steps S001 to S003:

[0057] S001. Obtain a feedback signal from a door lock detection circuit.

[0058] S002: Compare the first pulse duty cycle with the preset virtual voltage duty cycle. The first pulse duty cycle is the pulse duty cycle of the feedback signal of the door lock detection circuit.

[0059] S003. Determine whether the voltage of the washing machine door lock is a virtual voltage according to the comparison result.

[0060] In some embodiments, step S003 includes:

[0061] According to the first pulse duty cycle being less than the preset pseudo voltage duty cycle, the voltage of the washing machine door lock is determined to be pseudo voltage; otherwise, the voltage of the washing machine door lock is determined to be normal voltage. The preset pseudo voltage duty cycle can be set according to actual needs.

[0062] In some embodiments, judging whether the washing machine door lock is locked successfully according to the execution result includes: determining that the locking is successful according to the comparison result that the voltage of the washing machine door lock is not a virtual voltage; determining that the locking fails according to the comparison result that the voltage of the washing machine door lock is a virtual voltage. Further, if the detection result is that the door lock fails to lock, a locking failure warning message is issued.

[0063] S10. According to whether the washing machine door is locked successfully, a first pulse duty cycle of the door lock detection circuit and a second pulse duty cycle of the zero-crossing circuit are obtained.

[0064] The second pulse duty cycle is the pulse duty cycle of the detection signal of the zero-crossing circuit.

[0065] The circuit structure and parameters of the door lock detection circuit are exactly the same as those of the zero-crossing circuit. The circuit structure diagram of the door lock detection circuit is shown in Figure 3 As shown. Figure 3The circuit structure diagram of the door lock detection circuit is shown. The door lock detection circuit includes seven resistors R1, R2, R3, R47, R5, R6 and R9, a diode D3, a photocoupler U1, a transistor Q1 and a capacitor C6. The LOCK_TEST terminal is connected to the washing machine door lock. R2, R3 and the first pin 1 of U1 are connected in sequence. The first end of R6 and the negative end of D3 are respectively connected to the first pin 1 of U1. The second end of R6 and the positive end of D3 are respectively connected to the second pin 2 of U1. The transistor Q1 is an NPN transistor, the first end of R5 is connected to the third pin 3 of U1, the second end of R5 and the first end of R9 are both connected to the base of Q1, and the second end of R9 and the emitter 2 of Q1 are both grounded. The collector 3 is respectively connected to the first end of R1 and the first end of R47, the first end of C6 is connected to the second end of R47, and the second end of C6 is grounded. The second end of R47 is connected to the LOCK_TEST terminal. The circuit structure and parameters of the zero-crossing circuit are exactly the same as those of the door lock detection circuit.

[0066] If the washing machine door lock is determined to be locked successfully according to the execution result, the feedback signal of the door lock detection circuit and the detection signal of the zero-crossing circuit are obtained. If the washing machine door lock is determined to be locked unsuccessfully according to the execution result, a lock failure warning message is issued.

[0067] Among them, the input end of the door lock detection circuit is connected to the door lock of the washing machine; the input end of the door lock of the washing machine and the input end of the zero-crossing circuit are respectively connected to the power supply, and the power supply can usually be a mains power supply. The structure and parameters of the zero-crossing circuit and the door lock detection circuit are exactly the same; the zero-crossing circuit and the door lock detection circuit are exactly the same, that is, the structure and parameters are exactly the same. The feedback signal of the door lock detection circuit is the output signal of the door lock detection circuit, and the detection signal of the zero-crossing circuit is the output signal of the zero-crossing circuit, both of which are pulse signals. The feedback signal of the door lock detection circuit and the detection signal of the zero-crossing circuit are input into a microcontroller or microprocessor, such as a microprocessor or microcontroller of a washing machine, and are processed by the microcontroller or microprocessor. The pulse signal is a form of electrical signal propagation through square waves, propagated through high and low levels, and encoded as 00 or 01, 01 is a high level, and 00 is a low level.

[0068] S20. Compare the first pulse duty cycle with the second pulse duty cycle to obtain a first comparison result.

[0069] The pulse duty cycle refers to the proportion of the high level in a pulse cycle.

[0070] Specifically, S20 may include: taking the second pulse duty cycle as a reference value, calculating a relative error between the first pulse duty cycle and the second pulse duty cycle; the relative error is the first comparison result.

[0071] S30: Determine and execute a subsequent virtual power detection method according to the first comparison result.

[0072] In some embodiments, step S30 includes: judging whether the zero-crossing circuit is operating normally based on the first comparison result; and performing virtual electricity detection using the zero-crossing circuit and the door lock detection circuit based on the normal operation of the zero-crossing circuit; and performing virtual electricity detection using only the door lock detection circuit based on the abnormal operation of the zero-crossing circuit.

[0073] In some embodiments, step S30 includes step S301 and step S302:

[0074] S301. According to the first comparison result that a relative error between the first pulse duty cycle and the second pulse duty cycle is less than a first error threshold, it is determined that the zero-crossing circuit is normal, and the second virtual power detection method is selected as a subsequent virtual power detection method.

[0075] Specifically, if the relative error between the first pulse duty cycle and the second pulse duty cycle is less than the first error threshold, the zero-crossing circuit is determined to be normal, and the zero-crossing circuit is used for virtual power detection as a subsequent virtual power detection method and executed.

[0076] The calculation formula of the relative error between the first pulse duty cycle and the second pulse duty cycle is as follows:

[0077] Relative error=|(first pulse duty cycle−second pulse duty cycle)| / second pulse duty cycle*100%.

[0078] The first error threshold may be set to, for example, 2%, or other values, which may be set according to actual needs.

[0079] Among them, Figure 4 As shown, the second virtual power detection method is a method of using a zero-crossing circuit and a door lock detection circuit to perform virtual power detection; the steps of the second virtual power detection method may include steps S3011-step S3013:

[0080] S3011. Obtain a feedback signal from a door lock detection circuit and a detection signal from a zero-crossing circuit.

[0081] S3012. Compare the first pulse duty cycle with the second pulse duty cycle to obtain a second comparison result.

[0082] S3013: If the second comparison result satisfies the first preset condition, determine that the voltage of the washing machine door lock is a virtual voltage; otherwise, determine that the voltage of the washing machine door lock is a normal voltage.

[0083] In some implementations, step S3012 includes: calculating a relative error between the first pulse duty cycle and the second pulse duty cycle, and using the relative error as a second comparison result.

[0084] The second comparison result in step S3013 satisfies the first preset condition that the relative error is greater than the second error threshold. Step S3013 includes step S30131 and step S30132:

[0085] S30131. When the relative error is greater than a second preset error threshold, it is determined that the voltage of the washing machine door lock is a pseudo-electric voltage.

[0086] The second preset error threshold may be set to, for example, 5%, or other values, and may be set according to actual needs.

[0087] S30132. When the relative error is less than or equal to a second preset error threshold, it is determined that the voltage of the washing machine door lock is a normal voltage.

[0088] In some embodiments, step S3012 includes: calculating an absolute value of an absolute error between the first pulse duty cycle and the second pulse duty cycle.

[0089] The comparison result in step S3013 satisfies the first preset condition that the absolute value of the absolute error is greater than the third preset error threshold. Step S3013 includes step S30131' and step S30132':

[0090] S30131′: when it is detected that the absolute value of the absolute error between the duty cycle of the door lock feedback signal and the duty cycle of the zero-crossing circuit signal is greater than a third preset error threshold, it is determined that the voltage of the washing machine door lock is a virtual voltage.

[0091] The third preset error threshold can be set according to actual needs.

[0092] S30132′: when it is detected that the absolute value of the absolute error between the duty cycle of the door lock feedback signal and the duty cycle of the zero-crossing circuit signal is less than or equal to a third preset error threshold, it is determined that the voltage of the washing machine door lock is a normal voltage.

[0093] S302: According to the first comparison result that a relative error between the first pulse duty cycle and the second pulse duty cycle is greater than or equal to the first preset error threshold, select the first virtual power detection mode as a subsequent virtual power detection mode.

[0094] Specifically, if the relative error between the first pulse duty cycle and the second pulse duty cycle is greater than or equal to the first error threshold (eg, 2%), the door lock detection circuit will be used to perform virtual power detection as a subsequent virtual power detection method.

[0095] In some embodiments, step S20 specifically includes:

[0096] Calculating the difference between the first pulse duty cycle and the second pulse duty cycle, and calculating the quotient of the difference and the second pulse duty cycle; the quotient of the difference and the second pulse duty cycle is the first comparison result;

[0097] Furthermore, step S30 specifically includes:

[0098] If the quotient of the difference and the second pulse duty cycle is less than a first preset threshold, a zero-crossing circuit is used to perform virtual power detection;

[0099] If the quotient of the difference and the second pulse duty cycle is greater than or equal to the first preset threshold, the door lock detection circuit is used to perform virtual power detection.

[0100] In some embodiments, when using a zero-crossing circuit for virtual power detection, first determine whether the second pulse duty cycle is greater than a preset virtual power voltage duty cycle;

[0101] If the quotient of the difference and the second pulse duty cycle is greater than a second preset threshold, it is determined that the pulse signal of the zero-crossing circuit is a virtual voltage; wherein the second preset threshold is greater than the first preset threshold;

[0102] If the quotient of the difference and the second pulse duty cycle is less than or equal to the second preset threshold, it is determined that the pulse signal of the zero-crossing circuit is a normal voltage.

[0103] The accuracy of virtual electricity detection using a zero-crossing circuit is higher than that of virtual electricity detection using a door lock detection circuit, and the virtual electricity detection result using a zero-crossing circuit is not affected by temperature.

[0104] like Figure 5 As shown, in some embodiments, the method further comprises:

[0105] S40. If the second virtual electricity detection method is used as the subsequent virtual electricity detection method, when a signal failure of the zero-crossing circuit is detected in the step of executing the second virtual electricity detection method, the first virtual electricity detection method is used to replace the second virtual electricity detection method as the subsequent virtual electricity detection method and executed.

[0106] In certain embodiments, the method further comprises:

[0107] After determining that the pulse signal of the door lock detection circuit is a virtual voltage, issuing a locking failure warning message;

[0108] After determining that the pulse signal of the door lock detection circuit is a normal voltage, a locking success prompt message is issued.

[0109] like Figure 6 As shown, another embodiment of the present application provides a method for detecting virtual electricity in a washing machine door lock, comprising steps S1 to S4:

[0110] S1, obtaining a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle;

[0111] S2. Determine whether the error is less than a first preset threshold;

[0112] S3, if yes, use the zero-crossing circuit and the door lock detection circuit to perform virtual power detection;

[0113] In some embodiments, using the zero-crossing circuit and the door lock detection circuit to perform virtual power detection includes:

[0114] Determining whether the zero-crossing circuit works normally;

[0115] According to the normal operation of the zero-crossing circuit, the zero-crossing circuit and the door lock detection circuit are used to perform virtual power detection;

[0116] According to the abnormal operation of the zero-crossing circuit, only the door lock detection circuit is used to perform virtual power detection.

[0117] S4. If no, only the door lock detection circuit is used for virtual power detection.

[0118] In certain embodiments, the method further comprises:

[0119] According to using only the door lock detection circuit to perform virtual power detection, determining whether the first pulse duty cycle is greater than a preset virtual power voltage duty cycle;

[0120] According to the first pulse duty cycle being less than the preset pseudo voltage duty cycle, determining that the pulse signal of the door lock detection circuit is pseudo voltage; or,

[0121] According to the first pulse duty cycle being greater than or equal to the preset virtual voltage duty cycle, it is determined that the pulse signal of the door lock detection circuit is a normal voltage.

[0122] In certain embodiments, the method further comprises:

[0123] Based on determining to use the zero-crossing circuit and the door lock detection circuit to perform virtual power detection, judging whether the error is greater than a second preset threshold; wherein the second preset threshold is greater than the first preset threshold;

[0124] According to the error being greater than a second preset threshold, determining that the pulse signal of the door lock detection circuit is a virtual voltage; or,

[0125] According to the error being less than or equal to the second preset threshold, it is determined that the pulse signal of the door lock detection circuit is a normal voltage.

[0126] Another embodiment of the present application proposes a method for detecting virtual electricity in a washing machine door lock, which uses a zero-crossing circuit for virtual electricity detection and a door lock detection circuit for virtual electricity detection to collaboratively detect virtual electricity in the washing machine door lock.

[0127] When designing the hardware, the door lock detection circuit and the zero-crossing circuit are designed to have exactly the same circuit topology, and ensure that the selection and parameters of each component in the door lock detection circuit and the zero-crossing circuit are the same. This ensures that under normal circumstances, the pulse signals generated by the door lock detection circuit and the zero-crossing circuit are basically the same.

[0128] Figure 7 The flowchart of the method for detecting virtual electricity in the door lock of a washing machine according to an implementation of the present embodiment is shown. In the process of detecting whether the door lock of the washing machine is locked or unlocked, the pulse signal of the zero-crossing circuit collected can be used as a reference value. Only when the pulse signal detected from the door lock of the washing machine is substantially consistent with the reference value (for example, the relative error of the duty cycle is within 5%), the voltage of the door lock of the washing machine is determined to be a normal voltage, and the rest of the cases (for example, when the relative error of the duty cycle is greater than or equal to 5%) are determined as the voltage of the door lock of the washing machine to be a virtual electricity voltage. In the embodiment of the present application, a detection method combining virtual electricity detection using a zero-crossing circuit and virtual electricity detection using a door lock detection circuit is adopted, which can improve the detection accuracy of the virtual electricity voltage of the door lock of the washing machine from 50% of the rated voltage of the prior art to 80% of the rated voltage.

[0129] The method for detecting virtual electricity in the door lock of a washing machine in an embodiment of the present application obtains a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, compares the first pulse duty cycle with the second pulse duty cycle, determines and executes a subsequent virtual electricity detection method based on the comparison result, and realizes a combination of virtual electricity detection using a zero-crossing circuit and virtual electricity detection using a door lock detection circuit. The virtual electricity generated on the door lock of the washing machine during actual application can be accurately detected, and the virtual electricity detection has high accuracy, which can well meet the needs of actual applications.

[0130] like Figure 8 As shown, another embodiment of the present application provides a washing machine door lock virtual electricity detection device, comprising:

[0131] The power-on detection module is used to power on the door lock of the washing machine and detect whether the door lock is locked successfully through the door lock detection circuit.

[0132] The acquisition module is used to acquire the first pulse duty cycle of the door lock detection circuit and the second pulse duty cycle of the zero-crossing circuit according to whether the washing machine door lock is successfully locked.

[0133] The comparison module is used to compare the first pulse duty cycle with the second pulse duty cycle to obtain a first comparison result.

[0134] A determination execution module is used to determine and execute a subsequent virtual power detection method according to the first comparison result.

[0135] In certain embodiments, the device further comprises:

[0136] A replacement module is used to replace the second virtual current detection mode with the first virtual current detection mode as the subsequent virtual current detection mode and execute the second virtual current detection mode if the second virtual current detection mode is used as the subsequent virtual current detection mode, when a signal failure of the zero-crossing circuit is detected in the step of executing the second virtual current detection mode.

[0137] In some embodiments, the device further comprises an information sending module, the information sending module being configured to:

[0138] After determining that the pulse signal of the door lock detection circuit is a virtual voltage, issuing a locking failure warning message;

[0139] After determining that the pulse signal of the door lock detection circuit is a normal voltage, a locking success prompt message is issued.

[0140] Another embodiment of the present application provides a washing machine door lock virtual electricity detection device, comprising:

[0141] An acquisition module, used for acquiring a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle;

[0142] A detection module, configured to perform virtual power detection using a zero-crossing circuit and a door lock detection circuit according to the error being less than a first preset threshold; or,

[0143] The detection module is used to perform virtual power detection using only the door lock detection circuit according to the error being greater than or equal to the first preset threshold.

[0144] The washing machine door lock virtual electricity detection device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.

[0145] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for detecting virtual electricity in a washing machine door lock according to any of the above-mentioned embodiments.

[0146] like Fig. 9As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected via the bus 102; the memory 101 stores a computer program that can be run on the processor 100, and the processor 100 executes the method provided in any of the aforementioned embodiments of the present application when running the computer program.

[0147] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0148] The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 101 is used to store programs, and the processor 100 executes the programs after receiving execution instructions. The method disclosed in any implementation of the above-mentioned embodiment of the present application may be applied to the processor 100, or implemented by the processor 100.

[0149] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 100 or an instruction in the form of software. The above processor 100 may be a general-purpose processor, which may include a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the above method in combination with its hardware.

[0150] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by them.

[0151] Another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the method for detecting virtual electricity in a washing machine door lock of any of the above-mentioned embodiments.

[0152] refer to Fig.10 The computer-readable storage medium shown is an optical disc 20 on which a computer program (ie, a program product) is stored. When the computer program is executed by a processor, the method provided in any of the aforementioned embodiments is executed.

[0153] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0154] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0155] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A method for detecting virtual electricity in a washing machine door lock, characterized in that: include: Obtaining a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle; The door lock detection circuit has the same circuit structure and parameters as the zero-crossing circuit; According to the error being less than a first preset threshold, using the zero-crossing circuit and the door lock detection circuit to perform virtual power detection; or, According to the error being greater than or equal to the first preset threshold, only the door lock detection circuit is used to perform virtual power detection; According to using only the door lock detection circuit to perform virtual power detection, determining whether the first pulse duty cycle is greater than a preset virtual power voltage duty cycle; According to the first pulse duty cycle being less than the preset virtual voltage duty cycle, determining that the pulse signal of the door lock detection circuit is a virtual voltage; or, According to the first pulse duty cycle being greater than or equal to the preset virtual voltage duty cycle, determining that the pulse signal of the door lock detection circuit is a normal voltage; The use of the zero-crossing circuit and the door lock detection circuit to perform virtual power detection includes: Determining whether the zero-crossing circuit works normally; According to the normal operation of the zero-crossing circuit, the zero-crossing circuit and the door lock detection circuit are used to perform virtual power detection; According to the abnormal operation of the zero-crossing circuit, only the door lock detection circuit is used to perform virtual power detection.

2. The method according to claim 1, characterized in that Further including: Based on determining to use the zero-crossing circuit and the door lock detection circuit to perform virtual power detection, judging whether the error is greater than a second preset threshold; wherein the second preset threshold is greater than the first preset threshold; According to the error being greater than a second preset threshold, determining that the pulse signal of the door lock detection circuit is a virtual voltage; or, According to the error being less than or equal to the second preset threshold, it is determined that the pulse signal of the door lock detection circuit is a normal voltage.

3. The method according to claim 1, characterized in that: Before acquiring the first pulse duty cycle of the door lock detection circuit and the second pulse duty cycle of the zero-crossing circuit, the method further includes: The washing machine door lock is powered on, and the door lock detection circuit is used to detect whether the door lock is locked successfully. If the detection result shows that the door lock fails to lock, a locking failure warning message is issued; or According to the detection result that the door lock is locked successfully, the step of obtaining the first pulse duty cycle of the door lock detection circuit and the second pulse duty cycle of the zero-crossing circuit is entered.

4. The method according to claim 1 or 2, characterized in that: According to determining that the pulse signal of the door lock detection circuit is a virtual voltage, further comprising: Issue a lock failure warning message.

5. The method according to claim 1 or 2, characterized in that: According to determining that the pulse signal of the door lock detection circuit is a normal voltage, further comprising: A successful locking prompt message is issued.

6. A washing machine door lock virtual electricity detection device, characterized in that: include: An acquisition module, used for acquiring a first pulse duty cycle of a door lock detection circuit and a second pulse duty cycle of a zero-crossing circuit, and calculating an error between the first pulse duty cycle and the second pulse duty cycle; The door lock detection circuit has the same circuit structure and parameters as the zero-crossing circuit; A detection module, configured to perform virtual power detection using the zero-crossing circuit and the door lock detection circuit according to the error being less than a first preset threshold; or, The detection module is used to perform virtual power detection using only the door lock detection circuit according to the error being greater than or equal to the first preset threshold; According to using only the door lock detection circuit to perform virtual power detection, determining whether the first pulse duty cycle is greater than a preset virtual power voltage duty cycle; According to the first pulse duty cycle being less than the preset virtual voltage duty cycle, determining that the pulse signal of the door lock detection circuit is a virtual voltage; or, According to the first pulse duty cycle being greater than or equal to the preset virtual voltage duty cycle, determining that the pulse signal of the door lock detection circuit is a normal voltage; The detection module is further used for: Determining whether the zero-crossing circuit works normally; According to the normal operation of the zero-crossing circuit, the zero-crossing circuit and the door lock detection circuit are used to perform virtual power detection; According to the abnormal operation of the zero-crossing circuit, only the door lock detection circuit is used to perform virtual power detection.

7. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 5.