Zero-crossing detection methods, detection devices, and computer-readable storage media for electrical appliances
By adjusting the monitoring parameters of the zero-crossing detection circuit and setting preset conditions that depend on the load type, the problem of inaccurate voltage detection in traditional electrical appliances under interference was solved, enabling stable operation of the appliances under load changes and power grid fluctuations, thereby improving the reliability of the appliances and the user experience.
Patent Information
- Application Number
- CN202511226285.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-08-29
AI Technical Summary
The voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference. In particular, the detection accuracy and stability are affected when the mains voltage fluctuates and the load operates.
By acquiring the current load status of the electrical appliance, the monitoring parameters of the zero-crossing detection circuit are adjusted, such as the high-level duration and voltage rise frequency. Preset conditions are set according to the load type to determine whether the power supply voltage is abnormal. This includes pause detection and repetitive detection mechanisms to ensure that the voltage status can still be accurately identified under interference.
It improves the accuracy and reliability of voltage judgment in electrical appliances under interference environments, reduces electrical appliance failures and damage caused by abnormal voltage, and enhances user experience and appliance lifespan.
Smart Images

Figure CN120741926B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of zero-crossing detection, in particular to a zero-crossing detection method of an electrical appliance, a zero-crossing detection device of an electrical appliance and a computer readable storage medium. BACKGROUND
[0002] With the popularity of modern electrical appliances, such as washing machines, air conditioners, refrigerators, etc., the requirements for power system stability and power supply voltage quality are increasing. The normal operation of electrical appliances highly depends on stable power supply voltage. However, the existing technology still has many challenges and deficiencies in detecting whether the power supply voltage of the electrical appliance is abnormal.
[0003] The voltage detection circuit used in traditional electrical appliances can monitor the basic changes of the voltage, but often cannot accurately determine whether the power supply voltage is abnormal in the presence of interference. SUMMARY
[0004] The main purpose of the present application is to provide a zero-crossing detection method of an electrical appliance, a zero-crossing detection device of an electrical appliance and a computer readable storage medium, to at least solve the problem that the voltage detection circuit used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a zero-crossing detection method of an electrical appliance is provided, comprising: obtaining the current load condition of the electrical appliance, the current load condition including whether there is a load running at the current time and the type of the load in the case of the load running; detecting preset level data of a zero-crossing detection circuit of the electrical appliance according to the current load condition, and determining whether the preset level data meets a preset condition to obtain a determination result, and determining whether the power supply voltage of the electrical appliance is abnormal according to the determination result; wherein the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the zero line and the live line of the electrical appliance.
[0006] Optionally, according to the current load condition, preset level data of the zero-crossing detection circuit of the electrical appliance is detected, whether the preset level data meets preset conditions is judged, a judgment result is obtained, and whether the power supply voltage of the electrical appliance is abnormal is determined according to the judgment result, including: in the case that the current load condition is load operation and the type of the running load is small-power inductive load and / or large-power resistive load, the rising edge of the voltage of the zero-crossing detection circuit is detected; in the case that the rising edge of the voltage of the zero-crossing detection circuit is detected, the frequency of the rising edge of the voltage of the zero-crossing detection circuit is determined, and a detection frequency is obtained; in the case that the detection frequency is within a first preset frequency range, it is determined that the power supply voltage of the electrical appliance is normal; in the case that the detection frequency is not within the first preset frequency range, it is determined that the power supply voltage of the electrical appliance is abnormal.
[0007] Optionally, after detecting the rising edge of the voltage of the zero-crossing detection circuit, the method further includes: suspending the detection step, suspending detection for a first preset time in the case that the rising edge of the voltage of the zero-crossing detection circuit is not detected, and recording the number of times of suspension detection; repeating the detection step, after suspending detection for the first preset time, re-detecting the rising edge of the voltage of the zero-crossing detection circuit, and determining whether the rising edge of the voltage of the zero-crossing detection circuit is detected; the suspension detection step and the repeated detection step are repeatedly executed until the rising edge of the voltage of the zero-crossing detection circuit is detected, or the number of times of suspension detection reaches a maximum suspension number, and it is determined that the power supply voltage of the electrical appliance is abnormal.
[0008] Optionally, according to the current load condition, preset level data of the zero-crossing detection circuit of the electrical appliance is detected, whether the preset level data meets preset conditions is judged, a judgment result is obtained, and whether the power supply voltage of the electrical appliance is abnormal is determined according to the judgment result, including: in the case that the current load condition is load operation and the type of the running load is small-power inductive load and / or large-power resistive load, the rising edge of the voltage of the zero-crossing detection circuit is detected; in the case that the rising edge of the voltage of the zero-crossing detection circuit is detected, the frequency of the rising edge of the voltage of the zero-crossing detection circuit is determined, and a detection frequency is obtained; in the case that the detection frequency is within a first preset frequency range, it is determined that the power supply voltage of the electrical appliance is normal; in the case that the detection frequency is not within the first preset frequency range, it is determined that the power supply voltage of the electrical appliance is abnormal.
[0009] Optionally, the rising edge of the voltage of the zero-crossing detection circuit is detected in a preset period, including: determining a detection period, the detection period including a detection period and a non-detection period; in the detection period, the rising edge of the voltage of the zero-crossing detection circuit is detected in the preset period; in the non-detection period, the rising edge of the voltage of the zero-crossing detection circuit is stopped.
[0010] Optionally, the preset level is a high level, and according to the current load condition, preset level data of a zero-crossing detection circuit of the electrical appliance is detected, and it is determined whether the preset level data meets preset conditions to obtain a determination result, and according to the determination result, it is determined whether the power supply voltage of the electrical appliance is abnormal, including: in the case that the current load condition is a load operation and the type of the load in operation is a high-power inductive load, the duration of the high level of the zero-crossing detection circuit is detected; it is determined whether the duration of the high level of the zero-crossing detection circuit is within a preset range; in the case that the duration of the high level of the zero-crossing detection circuit is within the preset range, the high level is continuously detected, and the frequency of the high level is determined; it is determined whether the frequency of the high level is within a second preset frequency range; in the case that the frequency of the high level is within the second preset frequency range, it is determined that the power supply voltage of the electrical appliance is normal; in the case that the frequency of the high level is not within the second preset frequency range, it is determined that the power supply voltage of the electrical appliance is abnormal.
[0011] Optionally, after it is determined whether the duration of the high level of the zero-crossing detection circuit is within a preset range, the method further includes: in the case that the duration of the high level of the zero-crossing detection circuit is not within the preset range, it is determined whether the controller is operating normally; in the case that the controller is operating normally, it is determined that the power supply voltage of the electrical appliance is abnormal; in the case that the controller is not operating normally, it is determined whether the power supply voltage of the controller is abnormal; in the case that the power supply voltage of the controller is normal, it is determined that the power supply voltage of the controller is abnormal; in the case that the power supply voltage of the controller is abnormal, the controller is controlled to reset.
[0012] According to another aspect of the present application, a zero-crossing detection device of an electrical appliance is provided, including: an acquisition unit configured to acquire a current load condition of an electrical appliance, the current load condition including whether a load is operating at a current time and the type of the load in operation; a determination unit configured to, according to the current load condition, detect preset level data of a zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets preset conditions to obtain a determination result, and according to the determination result, determine whether the power supply voltage of the electrical appliance is abnormal; wherein the preset level data includes the duration of a preset level of the zero-crossing detection circuit and / or the frequency of a rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the zero line and the live line of the electrical appliance.
[0013] According to another aspect of the present application, a computer readable storage medium is provided, including a stored program, wherein when the program is running, the device where the computer readable storage medium is located is controlled to perform any one of the zero-crossing detection methods of the electrical appliance.
[0014] According to another aspect of the present application, a washing machine is provided, comprising: a zero-crossing detection circuit, wherein the zero-crossing detection method of the electric appliance is used to perform zero-crossing detection on the washing machine.
[0015] According to the technical solution of the present application, the zero-crossing detection method of the electric appliance first acquires the current load condition of the electric appliance, which includes whether there is a load running at the current time and the type of the load in the case of load running; secondly, according to the current load condition, the preset level data of the zero-crossing detection circuit of the electric appliance is detected, and it is judged whether the preset level data meets the preset condition to obtain a judgment result, and according to the judgment result, it is determined whether the power supply voltage of the electric appliance is abnormal; wherein the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the zero line and the live line of the electric appliance. This method adjusts the monitoring parameters of the zero-crossing detection circuit according to the type of the load currently running by the electric appliance, such as the duration of the high level and the frequency of the voltage rising edge. This means that the electric appliance can more accurately identify whether the voltage is abnormal, and even when a high-power inductive load is started, it can effectively avoid the influence of the transient current and electromagnetic interference caused by the load action on the voltage detection, ensuring the accuracy and reliability of the voltage judgment, and solving the problem that the voltage detection circuit used in the traditional electric appliance cannot accurately judge whether the power supply voltage is abnormal in the presence of interference. BRIEF DESCRIPTION OF DRAWINGS
[0016] The drawings accompanying the specification of the present application form a part thereof, serve to provide further understanding of the present application, and together with the specification explain the application. The use of these drawings in explaining the application does not, in any way, limit the application. In the drawings:
[0017] Figure 1 A hardware structure block diagram of a mobile terminal for performing a zero-crossing detection method of an electric appliance according to an embodiment of the present application is shown;
[0018] Figure 2 A flowchart of a zero-crossing detection method of an electric appliance according to an embodiment of the present application is shown;
[0019] Figure 3 A flowchart of another zero-crossing detection method of an electric appliance according to an embodiment of the present application is shown;
[0020] Figure 4 A flowchart of still another zero-crossing detection method of an electric appliance according to an embodiment of the present application is shown;
[0021] Figure 5 A structure block diagram of a zero-crossing detection device of an electric appliance according to an embodiment of the present application is shown.
[0022] Wherein, the above figures include the following reference signs:
[0023] 102, processor; 104, memory; 106, transmission device; 108, input and output device. DETAILED DESCRIPTION
[0024] It should be noted that the embodiments and features in the present application can be combined with each other without conflict. The technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0025] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0027] As introduced in the background, although the voltage detection circuit used in the traditional electrical appliance can monitor the basic change of the voltage, it often cannot accurately determine whether the supply voltage is abnormal in the case of frequent grid voltage fluctuation, inaccurate zero-crossing detection and interference caused by electrical appliance load action. For example, when the grid voltage fluctuates, the zero-crossing position may change, but the existing zero-crossing detection circuit often cannot adjust the detection logic in time, resulting in distorted detection results, affecting the accuracy and safety of electrical appliance control.
[0028] Furthermore, during the start or running of the electrical appliance, especially for high-power inductive load, such as the start of the motor of the washing machine, a large transient current and electromagnetic interference will be generated. These interferences will affect the accuracy of the zero-crossing detection circuit, resulting in inaccurate supply voltage.
[0029] Currently, the control circuits used in most electrical equipment, especially zero-crossing detection circuits, can reduce interference caused by load operation to a certain extent, but their detection accuracy and stability are greatly reduced when faced with large fluctuations in the mains voltage.
[0030] To address the problem that voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference, embodiments of this application provide a zero-crossing detection method, a zero-crossing detection device, and a computer-readable storage medium for electrical appliances.
[0031] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0032] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a zero-crossing detection method for electrical appliances according to an embodiment of the present invention. (See diagram below.) Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0033] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the zero-crossing detection method of the electrical appliance in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] This embodiment provides a zero-crossing detection method for an electrical appliance operating on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0035] Figure 2 This is a flowchart of a zero-crossing detection method for an electrical appliance according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:
[0036] Step S201: Obtain the current load status of the electrical appliance. The current load status includes whether there is a load running at the current moment and the type of the load if there is a load running.
[0037] Specifically, the aforementioned appliance could be a washing machine. The system needs not only to know if the appliance is under load, but also to identify the type of load. Different types of loads have different voltage and current requirements, and they may generate different electromagnetic interferences. For example, a high-power motor will generate a significant current surge when starting, while the heating element may have higher requirements for voltage stability. By identifying the load type, the zero-crossing detection circuit can be controlled to use different zero-crossing detection strategies to detect whether the supply voltage is abnormal under different load conditions, ensuring the accuracy of the detection.
[0038] Load types generally include low-power inductive loads, high-power inductive loads, and high-power resistive loads.
[0039] Low-power inductive load is a term used in circuit theory and electrical engineering to refer to electrical appliances or electronic components that exhibit inductive properties and consume relatively low power during operation. Due to their inductive characteristics, these loads generate a back electromotive force (EMF) in the circuit during startup or operation, particularly noticeable during sudden current changes, such as the instant of power switching or the start-up and shutdown of the load. This back EMF can cause a sudden voltage rise in the circuit, a phenomenon more pronounced in high-power inductive loads. However, even low-power inductive loads can affect certain sensitive parts of the circuit.
[0040] There is no universally accepted standard for the exact power limit of a low-power inductive load, as it depends on the specific application scenario and system design. However, generally speaking, if the power requirement of an inductive load is less than or equal to tens of watts (W), it can be considered a low-power inductive load. For example, the inlet valve and drain pump in a washing machine are usually considered low-power inductive loads. In practical applications, engineers will define what constitutes a low-power inductive load based on factors such as the appliance's design power and the operating environment.
[0041] Low-power inductive loads can affect the accuracy of zero-crossing detection circuits during appliance operation. Even with low power, the back electromotive force generated during start-up and shutdown can still interfere with the circuit. When the inductive load is disconnected, the magnetic field energy stored in its windings is suddenly released, generating a back electromotive force that affects the voltage signal waveform, potentially making zero-crossing identification ambiguous or inaccurate. Inductive loads, regardless of power, can generate electromagnetic interference within the appliance, leading to inaccurate zero-crossing detection and consequently, incorrect judgments about whether the supply voltage is abnormal.
[0042] In electrical engineering, there is no fixed power limit for high-power inductive loads. However, generally speaking, when the power requirement of an appliance or equipment exceeds several hundred watts (W) to several kilowatts (kW), it can be considered a high-power inductive load. For example, the main motor in a washing machine, the compressor in an air conditioner, and the large compressor in a refrigerator are all typical high-power inductive loads.
[0043] During start-up, shutdown, or sudden current changes, high-power inductive loads generate strong back electromotive force (EMF). This instantaneous high-voltage pulse interferes with the zero-crossing detection circuit, making it difficult to accurately determine the zero-crossing point in the AC cycle. This leads to errors in judging whether the supply voltage is abnormal, causing premature or delayed triggering of control signals, affecting the performance and lifespan of the appliance. The high-frequency magnetic field generated by the high-power inductive load during operation creates electromagnetic interference (EMI), affecting nearby circuits (including the zero-crossing detection circuit). EMI may increase the noise of the detection signal, reducing the accuracy of zero-crossing detection. During start-up or shutdown, high-power inductive loads experience current surges, i.e., a sudden and significant increase or decrease in current. These current surges may briefly alter the voltage distribution inside the appliance, thus affecting the detection state of the zero-crossing detection circuit.
[0044] High-power resistive loads refer to electrical appliances or devices that primarily exhibit resistive characteristics in a circuit. In electrical engineering, there is no absolute standard to define "high power," but generally, when the power demand of a resistive load exceeds several hundred watts (W), or even reaches several kilowatts (kW), it can be considered a high-power resistive load. Examples include heating elements in electric water heaters, heating wires in electric ovens, and resistance heaters in certain industrial heating applications.
[0045] High-power resistive loads consume a significant amount of electrical energy during startup or operation, resulting in substantial changes in current and voltage. While these changes do not generate back electromotive force like those of inductive loads, they can still interfere with zero-crossing detection circuits. This is especially true when current suddenly increases, potentially causing overload or distortion of the input signal and affecting the accuracy of zero-crossing detection. High-power resistive loads also generate considerable heat during operation. This thermal effect can impact not only the load's performance and lifespan but also indirectly interfere with the stability of the zero-crossing detection circuit. For example, high temperatures can cause changes in component parameters, affecting the accuracy of voltage and current measurements. Furthermore, the operation of high-power resistive loads can affect the circuit's noise level. Excessive background noise can interfere with the zero-crossing detection circuit, making it difficult to accurately identify zero-crossing points in the voltage waveform, thus affecting the control accuracy and reliability of the load by the electrical appliance.
[0046] In summary, different load conditions in electrical appliances will cause different interference to the zero-crossing detection circuit. Therefore, different detection strategies need to be set for different load conditions to match the interference caused by different load conditions, so as to make the detection of whether the power supply voltage is abnormal more accurate.
[0047] Step S202: Based on the current load condition, detect the preset level data of the zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result; wherein, the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0048] Specifically, zero-crossing detection circuits play a crucial role in washing machines. For example, they can detect whether there is voltage on the live and neutral wires, and they can detect the zero-crossing time of the live and neutral wires to control the load's on-time. High-power inductive loads include the washing machine motor, washing machine compressor, and washing machine fan; low-power inductive loads include the water inlet valve, dispensing pump, and drain pump; high-power resistive loads include water heating elements, drying heating elements, steam heating elements, and PTC heaters. The preset level is high. The main function of the zero-crossing detection circuit is to detect the moment when the AC power supply voltage waveform transitions from positive to negative or from negative to positive, i.e., the zero-crossing point. The preset level data includes two key parameters: the duration of the preset level in the zero-crossing detection circuit and the frequency of voltage rise edges. The former refers to the duration of the high-level (or specific-level) signal detected by the circuit; the latter refers to the number of voltage changes from low to high (i.e., rise edges) per unit time.
[0049] Preset conditions refer to the expected values or threshold ranges of signal characteristics that the zero-crossing detection circuit should detect under normal operating conditions of an electrical system. For example, for 50Hz AC power, the zero-crossing detection circuit should detect two rising edges of the voltage in each cycle, and the duration of each high level should correspond to half an AC cycle. If the preset level data deviates from the preset conditions, it indicates that there may be a problem with the power supply voltage, such as frequency instability or voltage distortion. Since different load conditions cause different interferences to the zero-crossing detection circuit, the preset conditions set for different load conditions are also different.
[0050] The zero-crossing detection method for the electrical appliance described in this application first obtains the current load status of the appliance, including whether a load is running at the current moment and, if so, the type of load. Second, based on the current load status, it detects the preset level data of the zero-crossing detection circuit of the appliance and determines whether the preset level data meets preset conditions, obtaining a judgment result. Based on the judgment result, it determines whether the power supply voltage of the appliance is abnormal. The preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the voltage rise edge of the zero-crossing detection circuit. The power supply voltage is the voltage between the neutral and live wires of the appliance. This method adjusts the monitoring parameters of the zero-crossing detection circuit according to the current load type of the appliance, such as the duration of the high level and the frequency of the voltage rise edge. This means that the appliance can more accurately identify whether the voltage is abnormal. Even when a high-power inductive load starts, it can effectively avoid the influence of transient currents and electromagnetic interference caused by load operation on voltage detection, ensuring the accuracy and reliability of voltage judgment. This solves the problem that voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference.
[0051] The process includes the following steps: based on the current load conditions, detecting the preset level data of the zero-crossing detection circuit of the electrical appliance, determining whether the preset level data meets preset conditions, obtaining a judgment result, and determining whether the power supply voltage of the electrical appliance is abnormal based on the judgment result.
[0052] Step S301: When the current load condition is that the load is running and the type of the running load is a low-power inductive load and / or a high-power resistive load, the rising edge of the voltage of the zero-crossing detection circuit is detected.
[0053] Step S302: When the rising edge of the voltage of the zero-crossing detection circuit is detected, the frequency of the rising edge of the voltage of the zero-crossing detection circuit is determined to obtain the detection frequency.
[0054] Step S303: If the detection frequency is within the first preset frequency range, determine that the power supply voltage of the electrical appliance is normal.
[0055] Step S304: If the detection frequency is not within the first preset frequency range, determine that the power supply voltage of the electrical appliance is abnormal.
[0056] Specifically, the first preset frequency range is generally 49Hz to 51Hz. When the above detection frequency is within the first preset frequency range, it indicates that there is a normal 50Hz live and neutral wire voltage.
[0057] Low-power loads and high-power resistive loads cause less interference to the zero-crossing detection signal during operation, and can detect the grid power supply frequency, i.e., 50 Hz, relatively accurately. This threshold is set to reflect the grid power supply situation accurately. The grid power supply voltage and frequency vary in different regions. Here, 50 Hz is just an example. This value can be appropriately changed according to different loads and machine conditions.
[0058] By monitoring the voltage rise frequency of the zero-crossing detection circuit and comparing it with a preset normal frequency range, the system can accurately identify the stability of the power supply voltage. When the detection frequency falls within the first preset frequency range (usually within the tolerance range of the standard power grid frequency, such as 49Hz to 51Hz for a 50Hz power grid), it indicates that the power supply voltage is stable and the electrical appliances can operate normally; otherwise, it indicates that the power supply voltage is abnormal and appropriate measures may need to be taken.
[0059] By monitoring signal changes in the zero-crossing detection circuit in real time, the electrical control system can respond promptly to voltage anomalies, preventing appliances from operating under unstable voltage conditions and thus reducing the risk of circuit damage, appliance malfunctions, or safety accidents. For example, when an abnormal voltage frequency is detected, the system may suspend appliance operation until power supply returns to normal, or alert the user to the voltage issue. When appliances detect abnormal power supply voltage, they can trigger protection mechanisms, such as automatically shutting down certain loads or reducing the appliance's operating power. This helps reduce wear and tear on appliances under harsh power supply conditions, extends their lifespan, and reduces the failure rate caused by voltage problems.
[0060] Through the aforementioned control methods, appliances can promptly detect power supply voltage issues that may affect normal operation and take preventative measures to avoid sudden shutdowns or functional impairments, thereby improving the user experience. Simultaneously, users can understand the power supply status through the appliance's prompts and take appropriate actions, such as checking their home's electrical circuits or contacting the power company to resolve voltage anomalies and ensure the long-term stable operation of the appliances. Accurately determining the power supply voltage status allows appliances to adjust their operating strategies based on the actual voltage conditions, avoiding unnecessary power waste and achieving energy savings while ensuring safe operation. Reducing appliance malfunctions caused by voltage anomalies lowers repair and maintenance costs and the burden of after-sales service, benefiting both manufacturers and users.
[0061] After detecting the rising edge of the voltage of the zero-crossing detection circuit, the method further includes the following steps:
[0062] The detection process is paused. If no rising edge of the voltage of the zero-crossing detection circuit is detected, the detection is paused for a first preset time, and the number of pauses is recorded.
[0063] Repeat the detection steps, after pausing the detection for the first preset time, re-detect the rising edge of the voltage of the zero-crossing detection circuit, and determine whether the rising edge of the voltage of the zero-crossing detection circuit has been detected.
[0064] Repeat the above-mentioned pause detection step and repeat detection step until the rising edge of the voltage of the above-mentioned zero-crossing detection circuit is detected, or the above-mentioned pause detection count reaches the maximum number of pauses, and determine that the power supply voltage of the above-mentioned electrical appliance is abnormal.
[0065] Specifically, the first preset time ranges from 10ms to 30ms, preferably 15ms, with a maximum of two pauses. After detecting the rising edge of the voltage in the zero-crossing detection circuit, if the expected rising edge is not detected, the system will not immediately determine that the voltage is abnormal. Instead, it will pause detection for the first preset time and record the number of pauses. This mechanism helps prevent misjudgments of abnormal power supply voltage due to transient interference or signal fluctuations, improving the stability of the control logic. After pausing detection, the system will retry detecting the rising edge of the voltage in the zero-crossing detection circuit. This repeated detection process is adaptive, meaning that the system will continue to try until a signal is detected, or the number of pauses reaches the set maximum value. This design ensures that even in cases of grid instability or circuit interference, the system has the opportunity to resume normal zero-crossing detection. A maximum number of pauses is set; once this number is reached, the system will determine that the power supply voltage is abnormal. This fail-safe mechanism prevents electrical appliances from continuously operating under uncertain power supply conditions in the event of continuous failure of the zero-crossing detection circuit or long-term grid anomalies, thereby avoiding potential electrical appliance damage or safety accidents. By employing adaptive logic for pausing and re-detecting, the system avoids triggering unnecessary power checks or appliance operation changes during brief signal anomalies, thereby reducing the risk of false alarms and misoperations, and improving appliance operating efficiency and user experience. Reducing unnecessary or misjudged fault handling lowers appliance maintenance costs and failure rates. Simultaneously, more stable operation and fewer false alarms enhance user satisfaction and trust, positively impacting appliance brands and market reputation.
[0066] Specifically, such as Figure 3As shown, when the washing machine is powered on with both a low-power load and a high-power resistive load, the microcontroller unit (MCU) continuously detects the rising edge of the zero-crossing circuit. If the zero-crossing detection circuit detects a rising edge signal, it continuously checks whether the frequency of the rising edge is between 49Hz and 51Hz. If it is within this frequency range, the washing machine has a neutral-to-live wire voltage of 50Hz. If the frequency is not within this range, the washing machine reports a voltage abnormality signal. When the zero-crossing detection circuit cannot detect the signal, it first pauses the detection for a time b, where b ranges from 10ms to 30ms, preferably 15ms. The number of pauses g is accumulated. If the signal is still not detected after more than two pauses, a voltage abnormality signal is also issued.
[0067] The process includes the following steps: based on the current load conditions, detecting the preset level data of the zero-crossing detection circuit of the electrical appliance, determining whether the preset level data meets preset conditions, obtaining a judgment result, and determining whether the power supply voltage of the electrical appliance is abnormal based on the judgment result.
[0068] Step S401: When the current load condition is no load operation, the rising edge of the voltage of the zero-crossing detection circuit is detected cyclically according to a preset cycle.
[0069] Step S402: If the rising edge of the voltage of the zero-crossing detection circuit is detected continuously for at least a first preset number of times within the preset period, it is determined that the power supply voltage of the electrical appliance is normal.
[0070] Step S403: If the rising edge of the voltage of the zero-crossing detection circuit is not detected for at least a second preset number of consecutive cycles within the preset period, it is determined that the power supply voltage of the electrical appliance is abnormal.
[0071] Specifically, the preset period is 21-30ms, preferably 25ms. The first preset number of times is twice, and the second preset number of times is five. For example: when detecting the rising edge of the voltage, first continuously detect for 25ms. If a rising edge is detected, then continuously detect for another 25ms. If a rising edge is still detected, it is determined that the appliance has a normal 50Hz neutral and live wire voltage. When detecting the rising edge of the voltage, first continuously detect for 25ms. If no rising edge is detected, then continuously detect for another 25ms. If no rising edge is detected after five consecutive 25ms detections, it is determined that the appliance's power supply voltage is abnormal.
[0072] When operating under no-load conditions, the electrical system cyclically detects the rising edge of the zero-crossing detection circuit according to a preset period. This periodic detection method ensures that the system can monitor changes in the mains voltage in a timely manner without adding unnecessary computational burden due to excessively frequent detection, thus striking a balance between efficiency and accuracy. Determining whether the supply voltage is abnormal by counting the number of consecutive voltage rising edges detected is a statistically based method. For example, if a voltage rising edge is detected for at least the first preset number of times (e.g., 2 times) within a preset period, the system will determine that the supply voltage is stable and without abnormalities. Conversely, if no voltage rising edge is detected for at least the second preset number of times (e.g., 5 times), the system will determine that the supply voltage is abnormal. This count-based judgment logic can effectively filter out occasional signal interference, improving the robustness and accuracy of the judgment.
[0073] When an abnormal power supply voltage is detected, the system can respond quickly and take appropriate measures, such as issuing alarms, stopping the operation of electrical appliances, or switching to a backup power supply scheme, to prevent electrical appliances from operating under unstable voltage and avoid damage or safety accidents. The judgment logic based on the number of consecutive detections reduces false alarms caused by single abnormal detections, thereby reducing unnecessary shutdowns or restarts of electrical appliances and improving the user experience. By periodically monitoring and accurately judging the power supply voltage status, electrical appliances can effectively avoid frequent starts or stops caused by voltage abnormalities, reducing wear and tear on internal components and extending the service life of the appliances.
[0074] The process of cyclically detecting the rising edge of the voltage in the zero-crossing detection circuit according to a preset period includes the following steps:
[0075] Step S4011: Determine the detection cycle, which includes the detection period and non-detection period;
[0076] Step S4012: During the detection period, the rising edge of the voltage of the zero-crossing detection circuit is detected cyclically according to the preset cycle.
[0077] Step S4013: During the non-detection period, stop detecting the rising edge of the voltage of the zero-crossing detection circuit.
[0078] Specifically, the system defines a detection cycle consisting of detection periods and non-detection periods, achieving effective resource management. The detection period monitors the zero-crossing detection circuit, while the non-detection period temporarily halts detection. This alternating pattern avoids the system burden caused by the continuous operation of the zero-crossing detection circuit, thus optimizing detection efficiency. During the detection period, the system cyclically detects the voltage rising edge according to a preset cycle, ensuring continuous monitoring capabilities and timely detection of any potential supply voltage anomalies, such as zero-crossing point deviations or frequency changes. Stopping voltage rising edge detection during non-detection periods reduces the system's resource consumption in the detection circuit, including computational resources and power consumption. This is particularly important for improving the overall energy efficiency of electrical appliances and extending battery life (for some portable or wireless appliances).
[0079] Alternating detection and non-detection periods can effectively reduce false alarms caused by momentary interference or signal noise, reduce unnecessary data processing and misjudgment, and enhance system stability.
[0080] Specifically, the appliance is a washing machine, such as... Figure 3 As shown, under no-load operation, the zero-crossing circuit cyclically detects the voltage rising edge of the zero-crossing detection circuit every 1 second, with a time interval of 'a' as one cycle. The value of 'a' is 21-30ms, preferably 25ms. Specifically, the detection time is 1 second for detection and 1 second for stopping. During this 1-second detection time, the voltage rising edge of the zero-crossing detection circuit is cyclically detected with a time interval of 'a' as one cycle. This reduces the operation of the microcontroller unit (MCU). The MCU determines whether the zero-crossing detection circuit can detect the signal and accumulates the number 'n' of the number of times the zero-crossing detection circuit can detect the signal. When a rising edge signal is detected twice consecutively within 1 second, the washing machine is considered to be powered normally, thus eliminating false alarms. Similarly, the number 'm' of the number of times the zero-crossing detection circuit cannot detect the signal is accumulated. If the zero-crossing detection circuit cannot detect the signal more than 5 times within a 1-second cycle, a voltage abnormality signal is issued. After the 1-second detection time is elapsed, 'm' and 'n' are reset to zero.
[0081] The preset level is high. Based on the current load, the preset level data of the zero-crossing detection circuit of the electrical appliance is detected, and it is determined whether the preset level data meets the preset conditions. A judgment result is obtained, and based on the judgment result, it is determined whether the power supply voltage of the electrical appliance is abnormal. This includes the following steps:
[0082] Step S501: When the current load condition is that the load is running and the type of the running load is a high-power inductive load, the duration of the high level of the zero-crossing detection circuit is detected.
[0083] Step S502: Determine whether the duration of the high level of the zero-crossing detection circuit is within a preset range;
[0084] Step S503: When the duration of the high level of the zero-crossing detection circuit is within the preset range, the high level is continuously detected and the frequency of the high level is determined.
[0085] Step S504: Determine whether the frequency of the high level is within the second preset frequency range;
[0086] Step S505: If the frequency of the high level is within the second preset frequency range, determine that the power supply voltage of the electrical appliance is normal.
[0087] Step S506: If the frequency of the high level is not within the second preset frequency range, it is determined that the power supply voltage of the electrical appliance is abnormal.
[0088] Specifically, by detecting the duration of the high-level signal, real-time changes in the grid voltage can be captured, especially for the specific voltage characteristics during the startup and operation of high-power inductive loads (such as motors and compressors). Determining whether the duration of the high-level signal is within a preset range, based on grid standards and the operating parameters of the appliances, can effectively identify abnormal power supply conditions, such as excessively low or high voltage.
[0089] Continuous monitoring of the high-level frequency further verifies the stability of the mains voltage. Since the operation of high-power inductive loads can cause instantaneous voltage fluctuations, monitoring the frequency ensures that these fluctuations do not negatively impact the operation of electrical appliances. Determining whether the high-level frequency falls within a second preset frequency range, which typically matches the mains frequency standard (e.g., 50Hz or 60Hz), effectively eliminates voltage anomaly detection caused by frequency instability. Through dual checks of frequency and duration, the system can accurately determine whether the supply voltage is abnormal, avoiding false alarms that may result from relying on a single indicator, thus improving the accuracy and reliability of the judgment.
[0090] Accurate voltage monitoring prevents electrical appliances from operating under unstable voltage conditions, thus preventing damage to internal components, extending the appliance's lifespan, and reducing inconvenience and trouble for users caused by appliance malfunctions. Detecting abnormal supply voltage ensures that appliances operate in a safe voltage environment, preventing potential safety accidents such as fires and electric shocks. Precise voltage monitoring can provide early warnings of potential power grid problems, offering users and maintenance personnel timely fault diagnosis and preventative measures, reducing appliance maintenance costs and after-sales service burden.
[0091] After determining whether the duration of the high level of the zero-crossing detection circuit is within a preset range, the method further includes the following steps:
[0092] Step S601: If the duration of the high level of the zero-crossing detection circuit is not within the preset range, determine whether the controller is operating normally.
[0093] Step S602: Under the condition that the controller is operating normally, determine that the power supply voltage of the electrical appliance is abnormal;
[0094] Step S603: If the controller is not operating normally, determine whether the power supply voltage of the controller is abnormal.
[0095] Step S604: If the power supply voltage of the controller is normal, determine that the power supply voltage of the controller is abnormal.
[0096] Step S605: If the power supply voltage of the controller is abnormal, control the controller to reset.
[0097] Specifically, the system checks whether the high-level duration of the zero-crossing detection circuit exceeds the preset range. If it does, the operating status of the controller is further checked. This step ensures the accuracy of anomaly detection and eliminates misjudgments caused by controller malfunctions. After confirming normal controller operation, the system identifies abnormal power supply voltage. This hierarchical diagnostic logic helps to accurately locate problems, avoiding misattribution of controller failures to power grid issues and improving the targeting and efficiency of diagnosis. Checking for abnormal controller operation helps avoid false reports of abnormal power supply voltage due to internal controller faults, thereby reducing unnecessary system resets or user interference and enhancing system stability. Even if the controller's power supply voltage is normal, the system can still accurately determine that the controller's power supply voltage is abnormal. This dual confirmation mechanism ensures the safe operation of the system in complex environments. After confirming an abnormal power supply voltage in the controller, the system actively controls the controller to reset. This is not only a fault recovery mechanism but also reflects the system's initiative and intelligence in the face of problems, enabling rapid restoration of normal operation, reducing service interruption time, and improving user satisfaction.
[0098] Through precise fault diagnosis and proactive recovery, users can obtain solutions more quickly when encountering electrical malfunctions, avoiding long wait times and unnecessary repair services, thus improving the user experience. The system's self-diagnostic and self-recovery capabilities help reduce the number of on-site repairs, lower maintenance costs and after-sales service pressure, and also extend the lifespan of electrical appliances. The system's ability to detect and reset abnormal power supply voltages to the controller protects it from voltage fluctuations, extending its operational life and ensuring long-term stable operation of the electrical appliances. By checking the duration of high-level signals and the controller's operating status, the system can efficiently utilize resources, avoiding resource waste caused by unnecessary detection and processing procedures.
[0099] After determining whether the high-level duration of the zero-crossing detection circuit is within the preset range, through additional fault diagnosis steps (S601~S605), the electrical appliance can not only improve the accuracy of fault diagnosis, but also enhance the stability and safety of the system, reduce user inconvenience, and optimize maintenance costs.
[0100] Specifically, such as Figure 4 As shown, during the turn-on of a high-power inductive load, the MCU identifies a high-level voltage as V1; the voltage of V1 is 90% of the VDD voltage (the value varies depending on the chip; here, the MCU's identification voltage is increased to improve the recognition rate); based on the time width t1 of the MCU's identification of the high-level V1 voltage, it is determined whether the time t1 is between 2ms and 10ms; this time data is assembled from the zero-crossing circuit and the frequency of the power supply voltage. The lower the power supply frequency, the shorter the duration t1 of the high level.
[0101] Specifically, under normal circumstances, the voltage frequency f of the power grid is 50 Hz; then one cycle T of 220V AC is 20 ms, i.e., T = 1 / f; the zero-crossing detection circuit conducts during the first half of the AC sine wave, i.e., 10 ms; due to circuit differences, the time for the MCU to recognize the high level cannot reach 10 ms; therefore, the value of t1 should be less than 10 ms, so setting it to 2 ms-10 ms is a reasonable range for t1.
[0102] If the high-level time width t1 is outside this range, it is determined whether the chip is working properly; if the chip is working properly, a voltage abnormality signal is issued. If the chip is not working properly, it is determined whether the MCU power supply voltage is normal; if the power supply is abnormal, a voltage abnormality signal is issued. If the MCU power supply voltage is normal, the main chip is reset. After resetting, it resumes operation. If the high-level detection time t1 is within this range, and the frequency of the high-level detection is continuously detected within 48Hz-52Hz, it can be determined that the 50Hz live / neutral wire is normal; if it is outside this frequency range, a voltage abnormality signal is issued.
[0103] In addition, upon receiving a signal indicating an abnormal power supply voltage, the appliance (e.g., a washing machine) will stop all loads and enter a fault program.
[0104] This application also provides a zero-crossing detection device for electrical appliances. It should be noted that the zero-crossing detection device for electrical appliances in this application can be used to execute the zero-crossing detection method for electrical appliances provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0105] The following describes the zero-crossing detection device for electrical appliances provided in the embodiments of this application.
[0106] Figure 5 This is a schematic diagram of a zero-crossing detection device for an electrical appliance according to an embodiment of this application. Figure 5 As shown, the device includes an acquisition unit 10 and a determination unit 20. The acquisition unit 10 is used to acquire the current load status of the electrical appliance, including whether there is a load running at the current moment and the type of the load if so. The determination unit 20 is used to detect the preset level data of the zero-crossing detection circuit of the electrical appliance based on the current load status, and determine whether the preset level data meets the preset conditions, obtain the determination result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the determination result. The preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0107] The zero-crossing detection device for the aforementioned electrical appliance of this application includes an acquisition unit and a determination unit. The acquisition unit acquires the current load status of the electrical appliance, including whether there is a load running at the current moment and, if so, the type of load. The determination unit detects the preset level data of the zero-crossing detection circuit of the electrical appliance based on the current load status, determines whether the preset level data meets preset conditions, obtains a determination result, and determines whether the power supply voltage of the electrical appliance is abnormal based on the determination result. The preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the voltage rise edge of the zero-crossing detection circuit. The power supply voltage is the voltage between the neutral and live wires of the electrical appliance. This device adjusts the monitoring parameters of the zero-crossing detection circuit, such as the duration of the high level and the frequency of the voltage rise edge, according to the current load type of the electrical appliance. This means that the electrical appliance can more accurately identify whether the voltage is abnormal. Even when a high-power inductive load starts, it can effectively avoid the influence of transient currents and electromagnetic interference generated by load operation on voltage detection, ensuring the accuracy and reliability of voltage judgment. This solves the problem that voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference.
[0108] As an optional solution, the determining unit includes a first detection module, a first determining module, a second determining module, and a third determining module. The first detection module is used to detect the rising edge of the voltage of the zero-crossing detection circuit when the current load condition is that the load is operating under load and the type of the operating load is a low-power inductive load and / or a high-power resistive load. The first determining module is used to determine the frequency of the rising edge of the voltage of the zero-crossing detection circuit when the rising edge of the voltage of the zero-crossing detection circuit is detected, thereby obtaining a detection frequency. The second determining module is used to determine that the power supply voltage of the electrical appliance is normal when the detection frequency is within a first preset frequency range. The third determining module is used to determine that the power supply voltage of the electrical appliance is abnormal when the detection frequency is not within the first preset frequency range. By monitoring the rising edge frequency of the voltage of the zero-crossing detection circuit and comparing it with the preset normal frequency range, the system can accurately identify the stability of the power supply voltage.
[0109] As an optional solution, the above-mentioned device further includes a pause detection module, a repeat detection module, and a repeat execution module. The pause detection module is used to pause detection for a first preset time after detecting the rising edge of the voltage of the zero-crossing detection circuit, if no rising edge of the voltage of the zero-crossing detection circuit is detected, and to record the number of pause detections. The repeat detection module is used to re-detect the rising edge of the voltage of the zero-crossing detection circuit after pausing detection for the first preset time, and to determine whether the rising edge of the voltage of the zero-crossing detection circuit has been detected. The repeat execution module is used to repeatedly execute the pause detection step and the repeat detection step until the rising edge of the voltage of the zero-crossing detection circuit is detected, or the number of pause detections reaches the maximum number of pauses, and to determine that the power supply voltage of the electrical appliance is abnormal. By reducing unnecessary or misjudged fault handling, the maintenance cost and failure rate of the electrical appliance can be reduced.
[0110] As an optional solution, the determining unit includes a second detection module, a fourth determining module, and a fifth determining module. The second detection module is used to cyclically detect the rising edge of the voltage of the zero-crossing detection circuit according to a preset cycle when the current load condition is no-load operation. The fourth determining module is used to determine that the power supply voltage of the electrical appliance is normal if the rising edge of the voltage of the zero-crossing detection circuit is detected for at least a first preset number of consecutive cycles within the preset cycle. The fifth determining module is used to determine that the power supply voltage of the electrical appliance is abnormal if the rising edge of the voltage of the zero-crossing detection circuit is not detected for at least a second preset number of consecutive cycles within the preset cycle. When operating without load, the electrical system cyclically detects the rising edge of the voltage of the zero-crossing detection circuit according to a preset cycle. This periodic detection method ensures that the system can monitor changes in the grid voltage in a timely manner without increasing unnecessary computational burden due to excessively frequent detection, thus achieving a balance between efficiency and accuracy.
[0111] As an optional solution, the second detection module includes a determination submodule, a detection submodule, and a stop detection submodule. The determination submodule is used to determine the detection cycle, which includes a detection period and a non-detection period. The detection submodule is used to cyclically detect the rising edge of the voltage of the zero-crossing detection circuit according to the preset cycle during the detection period. The stop detection submodule is used to stop detecting the rising edge of the voltage of the zero-crossing detection circuit during the non-detection period. The detection period is used to monitor the zero-crossing detection circuit, while the non-detection period allows the system to temporarily stop detection. This alternating mode can avoid the system burden caused by the continuous operation of the zero-crossing detection circuit, thereby optimizing the detection efficiency.
[0112] As an optional solution, the preset level is a high level. The determining unit includes a third detection module, a sixth determining module, a seventh determining module, an eighth determining module, a ninth determining module, and a tenth determining module. The third detection module is used to detect the duration of the high level of the zero-crossing detection circuit when the current load condition is that the device is operating under load and the type of load is a high-power inductive load. The sixth determining module is used to determine whether the duration of the high level of the zero-crossing detection circuit is within a preset range. The seventh determining module is used to continuously detect the high level and determine the frequency of the high level when the duration of the high level of the zero-crossing detection circuit is within the preset range. The eighth determining module is used to determine whether the frequency of the high level is within a second preset frequency range. The ninth determining module is used to determine that the power supply voltage of the appliance is normal when the frequency of the high level is within the second preset frequency range. The tenth determining module is used to determine that the power supply voltage of the appliance is abnormal when the frequency of the high level is not within the second preset frequency range. Determining whether the high level duration is within the preset range is based on the power grid standard and the operating parameters of the appliance, and can effectively identify abnormal power supply conditions, such as voltage that is too low or too high.
[0113] As an optional solution, the above-mentioned device further includes an eleventh determining module, a twelfth determining module, a thirteenth determining module, a fourteenth determining module, and a reset module. The eleventh determining module is used to determine whether the controller is operating normally if the duration of the high level of the zero-crossing detection circuit is within a preset range, and if the duration of the high level of the zero-crossing detection circuit is not within the preset range. The twelfth determining module is used to determine whether the power supply voltage of the electrical appliance is abnormal if the controller is operating normally. The thirteenth determining module is used to determine whether the power supply voltage of the controller is abnormal if the controller is not operating normally. The fourteenth determining module is used to determine whether the power supply voltage of the controller is abnormal if the power supply voltage of the controller is normal. The reset module is used to control the controller to reset if the power supply voltage of the controller is abnormal. Checking whether the duration of the high level of the zero-crossing detection circuit exceeds a preset range, and if so, further checking the operating status of the controller. This step ensures the accuracy of anomaly detection and eliminates misjudgments caused by controller malfunctions.
[0114] The zero-crossing detection device of the aforementioned electrical appliance includes a processor and a memory. The aforementioned acquisition units are all stored as program units in the memory, and the processor executes these program units stored in the memory to achieve the corresponding functions. All of the aforementioned modules are located in the same processor; alternatively, the aforementioned modules may be located in different processors in any combination.
[0115] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting the kernel parameters, the problem of voltage detection circuits used in traditional electrical appliances being unable to accurately determine whether the supply voltage is abnormal under interference conditions can be solved.
[0116] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0117] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the zero-crossing detection method of the electrical appliance.
[0118] Specifically, zero-crossing detection methods for electrical appliances include:
[0119] Step S201: Obtain the current load status of the electrical appliance. The current load status includes whether there is a load running at the current moment and the type of the load if there is a load running.
[0120] Specifically, the aforementioned appliance could be a washing machine. The system needs not only to know if the appliance is under load, but also to identify the type of load. Different types of loads have different voltage and current requirements, and they may generate different electromagnetic interferences. For example, a high-power motor will generate a significant current surge when starting, while the heating element may have higher requirements for voltage stability. By identifying the load type, the zero-crossing detection circuit can be controlled to use different zero-crossing detection strategies to detect whether the supply voltage is abnormal under different load conditions, ensuring the accuracy of the detection.
[0121] Step S202: Based on the current load condition, detect the preset level data of the zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result; wherein, the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0122] Specifically, zero-crossing detection circuits play a crucial role in washing machines. For example, they can detect whether there is voltage on the live and neutral wires, and they can detect the zero-crossing time of the live and neutral wires to control the load's on-time. High-power inductive loads include the washing machine motor, washing machine compressor, and washing machine fan; low-power inductive loads include the water inlet valve, dispensing pump, and drain pump; high-power resistive loads include water heating elements, drying heating elements, steam heating elements, and PTC heaters. The preset level is high. The main function of the zero-crossing detection circuit is to detect the moment when the AC power supply voltage waveform transitions from positive to negative or from negative to positive, i.e., the zero-crossing point. The preset level data includes two key parameters: the duration of the preset level in the zero-crossing detection circuit and the frequency of voltage rise edges. The former refers to the duration of the high-level (or specific-level) signal detected by the circuit; the latter refers to the number of voltage changes from low to high (i.e., rise edges) per unit time.
[0123] This invention provides a processor for running a program, wherein the program executes the zero-crossing detection method of the electrical appliance.
[0124] Specifically, zero-crossing detection methods for electrical appliances include:
[0125] Step S201: Obtain the current load status of the electrical appliance. The current load status includes whether there is a load running at the current moment and the type of the load if there is a load running.
[0126] Specifically, the aforementioned appliance could be a washing machine. The system needs not only to know if the appliance is under load, but also to identify the type of load. Different types of loads have different voltage and current requirements, and they may generate different electromagnetic interferences. For example, a high-power motor will generate a significant current surge when starting, while the heating element may have higher requirements for voltage stability. By identifying the load type, the zero-crossing detection circuit can be controlled to use different zero-crossing detection strategies to detect whether the supply voltage is abnormal under different load conditions, ensuring the accuracy of the detection.
[0127] Step S202: Based on the current load condition, detect the preset level data of the zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result; wherein, the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0128] Specifically, zero-crossing detection circuits play a crucial role in washing machines. For example, they can detect whether there is voltage on the live and neutral wires, and they can detect the zero-crossing time of the live and neutral wires to control the load's on-time. High-power inductive loads include the washing machine motor, washing machine compressor, and washing machine fan; low-power inductive loads include the water inlet valve, dispensing pump, and drain pump; high-power resistive loads include water heating elements, drying heating elements, steam heating elements, and PTC heaters. The preset level is high. The main function of the zero-crossing detection circuit is to detect the moment when the AC power supply voltage waveform transitions from positive to negative or from negative to positive, i.e., the zero-crossing point. The preset level data includes two key parameters: the duration of the preset level in the zero-crossing detection circuit and the frequency of voltage rise edges. The former refers to the duration of the high-level (or specific-level) signal detected by the circuit; the latter refers to the number of voltage changes from low to high (i.e., rise edges) per unit time.
[0129] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0130] Step S201: Obtain the current load status of the electrical appliance. The current load status includes whether there is a load running at the current moment and the type of the load if there is a load running.
[0131] Step S202: Based on the current load condition, detect the preset level data of the zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result; wherein, the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0132] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0133] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0134] Step S201: Obtain the current load status of the electrical appliance. The current load status includes whether there is a load running at the current moment and the type of the load if there is a load running.
[0135] Step S202: Based on the current load condition, detect the preset level data of the zero-crossing detection circuit of the electrical appliance, determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result; wherein, the preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the rising edge of the voltage of the zero-crossing detection circuit, and the power supply voltage is the voltage between the neutral wire and the live wire of the electrical appliance.
[0136] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0137] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0138] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0139] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0140] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0141] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0142] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0143] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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 memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0144] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0145] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0146] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0147] 1) The zero-crossing detection method for the electrical appliance described in this application first obtains the current load status of the appliance, including whether a load is running at the current moment and, if so, the type of load. Second, based on the current load status, it detects the preset level data of the zero-crossing detection circuit of the appliance and determines whether the preset level data meets preset conditions, obtaining a judgment result. Based on the judgment result, it determines whether the power supply voltage of the appliance is abnormal. The preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the voltage rise edge of the zero-crossing detection circuit. The power supply voltage is the voltage between the neutral and live wires of the appliance. This method adjusts the monitoring parameters of the zero-crossing detection circuit according to the current load type of the appliance, such as the duration of the high level and the frequency of the voltage rise edge. This means that the appliance can more accurately identify whether the voltage is abnormal. Even when a high-power inductive load starts, it can effectively avoid the influence of transient currents and electromagnetic interference generated by load operation on voltage detection, ensuring the accuracy and reliability of voltage judgment. This solves the problem that voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference.
[0148] 2) The zero-crossing detection device for the aforementioned electrical appliance of this application includes an acquisition unit and a determination unit. The acquisition unit is used to acquire the current load status of the electrical appliance, including whether there is a load running at the current moment and the type of load if so. The determination unit is used to detect the preset level data of the zero-crossing detection circuit of the electrical appliance based on the current load status, and determine whether the preset level data meets the preset conditions, obtain the judgment result, and determine whether the power supply voltage of the electrical appliance is abnormal based on the judgment result. The preset level data includes the duration of the preset level of the zero-crossing detection circuit and / or the frequency of the voltage rise edge of the zero-crossing detection circuit. The power supply voltage is the voltage between the neutral and live wires of the electrical appliance. This device adjusts the monitoring parameters of the zero-crossing detection circuit, such as the duration of the high level and the frequency of the voltage rise edge, according to the current load type of the electrical appliance. This means that the electrical appliance can more accurately identify whether the voltage is abnormal. Even when a high-power inductive load starts, it can effectively avoid the influence of transient current and electromagnetic interference generated by the load operation on voltage detection, ensuring the accuracy and reliability of voltage judgment. This solves the problem that voltage detection circuits used in traditional electrical appliances cannot accurately determine whether the power supply voltage is abnormal in the presence of interference.
[0149] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A zero-crossing detection method for an electrical appliance, characterized in that, The method comprises the following steps: acquiring a current load condition of an electrical appliance, the current load condition comprising whether a load is running at a current time and a type of the load if the load is running; detecting preset level data of a zero-crossing detection circuit of the electrical appliance according to the current load condition, determining whether the preset level data meets preset conditions to obtain a determination result, and determining whether a supply voltage of the electrical appliance is abnormal according to the determination result, the supply voltage being a voltage between a zero line and a live line of the electrical appliance; wherein detecting the preset level data of the zero-crossing detection circuit of the electrical appliance according to the current load condition comprises: in a case where the current load condition is that the load is running and the type of the running load is a small-power inductive load and / or a large-power resistive load, detecting a rising edge of a voltage of the zero-crossing detection circuit; in a case where the rising edge of the voltage of the zero-crossing detection circuit is detected, determining a frequency of the rising edge of the voltage of the zero-crossing detection circuit to obtain a detection frequency; in a case where the current load condition is that the load is not running, detecting the rising edge of the voltage of the zero-crossing detection circuit in a preset period; in a case where the current load condition is that the load is running and the type of the running load is a large-power inductive load, detecting a duration of a high level of the zero-crossing detection circuit, determining whether the duration of the high level of the zero-crossing detection circuit is within a preset range, and in a case where the duration of the high level of the zero-crossing detection circuit is within the preset range, continuously detecting the high level and determining a frequency of the high level.
2. The method of claim 1, wherein, determining whether the preset level data meets the preset conditions to obtain the determination result, and determining whether the supply voltage of the electrical appliance is abnormal according to the determination result comprises: in a case where the detection frequency is within a first preset frequency range, determining that the supply voltage of the electrical appliance is normal; in a case where the detection frequency is not within the first preset frequency range, determining that the supply voltage of the electrical appliance is abnormal.
3. The method of claim 1, wherein, after detecting the rising edge of the voltage of the zero-crossing detection circuit, the method further comprises: suspending the detection step, suspending the detection for a first preset time in a case where the rising edge of the voltage of the zero-crossing detection circuit is not detected, and recording a suspension detection number; repeatedly detecting step, after suspending the detection for the first preset time, re-detecting the rising edge of the voltage of the zero-crossing detection circuit, and determining whether the rising edge of the voltage of the zero-crossing detection circuit is detected; repeatedly executing the suspension detection step and the repeated detection step until the rising edge of the voltage of the zero-crossing detection circuit is detected, or the suspension detection number reaches a maximum suspension number, and determining that the supply voltage of the electrical appliance is abnormal.
4. The method of claim 1, wherein, determining whether the preset level data meets the preset conditions to obtain the determination result, and determining whether the supply voltage of the electrical appliance is abnormal according to the determination result comprises: in a case where the rising edge of the voltage of the zero-crossing detection circuit is detected at least a first preset number of times continuously within the preset period, determining that the supply voltage of the electrical appliance is normal; In a case where the rising edge of the voltage of the zero-crossing detection circuit is not detected for at least a second preset number of times continuously in the preset period, it is determined that the power supply voltage of the electrical appliance is abnormal.
5. The method of claim 1, wherein, The method comprises: determining a detection period, the detection period comprising a detection period and a non-detection period; in the detection period, the rising edge of the voltage of the zero-crossing detection circuit is detected cyclically according to the preset period; in the non-detection period, the rising edge of the voltage of the zero-crossing detection circuit is stopped.
6. The method of claim 1, wherein, The preset level is a high level, the preset level data is judged whether it meets the preset condition, the judgment result is obtained, and whether the power supply voltage of the electrical appliance is abnormal is determined according to the judgment result, comprising: determining whether the frequency of the high level is within a second preset frequency range; in a case where the frequency of the high level is within the second preset frequency range, it is determined that the power supply voltage of the electrical appliance is normal; in a case where the frequency of the high level is not within the second preset frequency range, it is determined that the power supply voltage of the electrical appliance is abnormal.
7. The method of claim 1, wherein, After determining whether the duration of the high level of the zero-crossing detection circuit is within a preset range, the method further comprises: in a case where the duration of the high level of the zero-crossing detection circuit is not within the preset range, it is determined whether the controller is running normally; in a case where the controller is running normally, it is determined that the power supply voltage of the electrical appliance is abnormal; in a case where the controller is not running normally, it is determined whether the power supply voltage of the controller is abnormal; in a case where the power supply voltage of the controller is normal, it is determined that the power supply voltage of the controller is abnormal; in a case where the power supply voltage of the controller is abnormal, the controller is reset.
8. A zero-crossing detection device for an electrical appliance, characterized in that comprising: an acquisition unit configured to acquire a current load condition of an electrical appliance, the current load condition comprising whether a load is running at a current time and a type of the load in a case where the load is running; a determination unit configured to detect preset level data of a zero-crossing detection circuit of the electrical appliance according to the current load condition, judge whether the preset level data meets a preset condition, obtain a judgment result, and determine whether a power supply voltage of the electrical appliance is abnormal according to the judgment result, the power supply voltage being a voltage between a zero line and a live line of the electrical appliance; the determination unit further comprises: a first detection module configured to detect a rising edge of a voltage of the zero-crossing detection circuit in a case where the current load condition is that a load is running and the type of the running load is a small-power inductive load and / or a large-power resistive load; a first determination module configured to determine a frequency of the rising edge of the voltage of the zero-crossing detection circuit in a case where the rising edge of the voltage of the zero-crossing detection circuit is detected, and obtain a detection frequency; a second detection module configured to detect the rising edge of the voltage of the zero-crossing detection circuit cyclically according to a preset period in a case where the current load condition is that no load is running; The third detection module is configured to detect the duration of the high level of the zero-crossing detection circuit when the current load condition is a load operation and the type of the running load is a high-power inductive load.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program controls the device where the computer readable storage medium is located to perform the zero-crossing detection method of the electric appliance in any one of claims 1 to 7 when the program is running.
Citation Information
Patent Citations
Power supply control method and device of server equipment, storage medium and electronic device
CN117608381A
Systems and methods for detecting load coupling and for detecting a load type
US20180219481A1