Control methods, electrical equipment and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SZ ZUVI TECH CO LTD
- Filing Date
- 2024-10-30
- Publication Date
- 2026-07-31
AI Technical Summary
Existing electrical equipment is prone to missing or incorrectly generating zero-crossing signals under power grid interference or abnormal conditions, which can affect the normal operation of the equipment and may lead to malfunctions.
By establishing a virtual clock, the future zero-crossing signal is predicted based on multiple actual zero-crossing signals of the alternating current, zero-crossing signal correction is performed, and the operation of electrical equipment is controlled based on the corrected zero-crossing signal, thereby enhancing the equipment's adaptability to grid voltage fluctuations and external interference.
It improves the operational stability and reliability of electrical equipment, extends the service life of the equipment, and reduces the impact of zero-crossing signal errors or omissions on equipment operation.
Smart Images

Figure CN122497922A_ABST
Abstract
Description
[Rule 91 correction 05.08.2025] Control method, electrical device and storage medium TECHNICAL FIELD
[0001] The present application relates to the technical field of electrical devices, and particularly relates to a control method, an electrical device and a storage medium. BACKGROUND
[0002] In the related art, for electrical devices using alternating current, such as drying devices (hair dryer, clothes dryer, etc.), electric heating devices, refrigeration devices, beauty devices, medical instruments, etc., the circuit of the electrical device can generally detect the zero-crossing signal of the alternating current, and control the conduction state or blocking state of the related components according to the zero-crossing signal. However, when the power grid or the electrical device itself is disturbed or abnormal, the circuit of the electrical device may miss or incorrectly generate a zero-crossing signal, thereby affecting the normal operation of the device and even causing device failure.
[0003] SUMMARY
[0004] The present application provides a control method, an electrical device and a storage medium.
[0005] The control method provided by the present application is used for an electrical device. The control method comprises: predicting the occurrence period of a future zero-crossing signal of an alternating current according to a plurality of actual zero-crossing signals of the alternating current, and establishing a virtual clock; during the operation of the electrical device, correcting the zero-crossing signal of the alternating current according to the virtual clock to obtain a corrected zero-crossing signal; and controlling the operation of the electrical device according to the corrected zero-crossing signal.
[0006] The electrical device provided by the present application comprises a zero-crossing detection circuit and a controller, and the zero-crossing detection circuit and the controller are electrically connected. The controller is configured to: detect the alternating current of the electrical device by the zero-crossing detection circuit to obtain a plurality of actual zero-crossing signals; predict the occurrence period of a future zero-crossing signal of the alternating current according to the plurality of actual zero-crossing signals of the alternating current of the electrical device, and establish a virtual clock; during the operation of the electrical device, correct the zero-crossing signal of the alternating current of the electrical device according to the virtual clock to obtain a corrected zero-crossing signal; and control the operation of the electrical device according to the corrected zero-crossing signal.
[0007] The storage medium provided in this application embodiment stores a program, which, when executed by a processor, implements the control method of this application embodiment. The control method includes: predicting the occurrence period of future zero-crossing signals of the AC current based on multiple actual zero-crossing signals of the AC current of the electrical device, and establishing a virtual clock; correcting the zero-crossing signal of the AC current according to the virtual clock during the operation of the electrical device to obtain a corrected zero-crossing signal; and controlling the operation of the electrical device according to the corrected zero-crossing signal.
[0008] In the control method, electrical equipment, and storage medium of this application, during the operation of the electrical equipment, the alternating current is corrected for zero-crossing signals according to a virtual clock, and the operation of the electrical equipment is controlled according to the corrected zero-crossing signals. For example, if the zero-crossing signal of the alternating current is incorrectly generated or omitted during the operation of the electrical equipment, the virtual clock can correct it. This can reduce the impact of the zero-crossing signal error or omission on the operation of the electrical equipment, enhance the adaptability of the electrical equipment to grid voltage fluctuations and external interference, improve the stability and reliability of the electrical equipment, and extend the service life of the electrical equipment.
[0009] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description
[0010] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:
[0011] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:
[0012] Figure 1 is a flowchart illustrating the control method of some embodiments of this application;
[0013] Figure 2 is a schematic diagram of the structure of a drying device according to certain embodiments of this application;
[0014] Figure 3(a) is a schematic diagram of the connection of power supply and electrical equipment in some embodiments of this application;
[0015] Figure 3(b) is a schematic diagram of the connection of power supply and electrical equipment in some other embodiments of this application;
[0016] Figure 3(c) is a schematic diagram of the connection of power supply and electrical equipment in some other embodiments of this application;
[0017] Figure 3(d) is a schematic diagram of the connection of power supply and electrical equipment in some other embodiments of this application;
[0018] Figure 4 is a schematic diagram of the control method of some embodiments of this application;
[0019] Figure 5 is a flowchart illustrating the control method of some embodiments of this application;
[0020] Figure 6 is a flowchart illustrating the control method of some embodiments of this application;
[0021] Figure 7 is a flowchart illustrating the control method of some embodiments of this application;
[0022] Figure 8 is a flowchart illustrating the control method of some embodiments of this application;
[0023] Figure 9 is a flowchart illustrating the control method of some embodiments of this application;
[0024] Figure 10 is a flowchart illustrating the control method of some embodiments of this application;
[0025] Figure 11 is a flowchart illustrating the control method of some embodiments of this application;
[0026] Figure 12 is a flowchart illustrating the control method of some embodiments of this application;
[0027] Figure 13 is a schematic diagram of the control method of some embodiments of this application;
[0028] Figure 14 is a schematic diagram of the connection status between the storage medium and the controller in some embodiments of this application.
[0029] Explanation of main component symbols: Drying equipment 100; Storage medium 200, program 210; Power supply 300; Housing 10; Heater 20; Radiation source 30; Switch 40; Controller 50; Zero-crossing detection circuit 60; Voltage detection circuit 70, Rectifier circuit 71; Voltage divider circuit 73. Detailed Implementation
[0030] The embodiments of this application will be further described below with reference to the accompanying drawings. The same or similar reference numerals in the drawings denote the same or similar elements or elements having the same or similar functions throughout. Furthermore, the embodiments of this application described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting this application.
[0031] In related technologies, for electrical equipment using alternating current (AC), such as high-power devices like drying equipment (e.g., hair dryers, tumble dryers), heating equipment, refrigeration equipment, beauty equipment, and medical instruments, devices include heating elements, radiation sources, and circuit breakers. Circuit breakers (e.g., silicon controlled rectifiers or MOSFETs) are used to turn on or off the power supply to the heating elements and radiation sources. Generally, the circuits of electrical equipment can detect the zero-crossing signal of the AC current and control the conduction or blocking state of relevant components (e.g., circuit breakers) based on the zero-crossing signal. It should be noted that alternating current is a current whose voltage direction changes periodically with time. The zero-crossing signal of AC current refers to the signal generated when the AC signal passes through zero (i.e., the voltage is zero) during the alternation of positive and negative half-cycles.
[0032] However, when the power grid or electrical equipment itself is interfered with or malfunctions, it may cause circuit omissions or incorrect zero-crossing signals, which will affect the normal operation of the equipment or even cause equipment failure. To solve this problem, embodiments of this application provide a control method (shown in FIG1), an electrical device (shown in FIG2), and a storage medium 200 (shown in FIG14). In the control method of various embodiments of this application, the electrical device can be any device with a switch, such as various drying equipment 100, heating equipment, refrigeration equipment, hair styling tools, welding machines, light radiation equipment, large motors, beauty equipment, medical instruments, and other high-power equipment. Heating equipment refers to devices primarily used for heating, such as electric heaters, induction cookers, ceramic cookers, electric water heaters, heating rods, and induction furnaces. Refrigeration equipment refers to devices used for cooling, often featuring high-power compressor motors, such as air conditioners (which can also be considered heating devices), refrigerators, and freezers. Hair styling equipment includes curling irons, straighteners, perming machines, and hair dyeing machines. Light radiation equipment includes high-power incandescent lamps, multi-lamp light boxes / light walls, infrared lamps, and ultraviolet lamps. Furthermore, circuit breakers are used in welding equipment to control welding current, in motor frequency conversion technology (e.g., variable frequency air conditioners and fans) to control speed, in electric vehicles to control motors, in LEDs to control conduction time, and in chargers and inverters to control current and voltage. Therefore, electrical equipment also includes any of the above-mentioned devices.
[0033] The following description mainly uses drying equipment 100 as an example. Drying equipment 100 includes, but is not limited to, hair dryers, beauty equipment, medical instruments, etc. Its main function is to promote the evaporation of moisture from the target object, but whether a drying process actually occurs should not be used as a limitation on drying equipment 100.
[0034] Please refer to Figures 1 and 2. The control method provided in this application includes:
[0035] 01: Based on multiple actual zero-crossing signals of the AC current of the drying equipment 100, predict the occurrence period of future zero-crossing signals of the AC current and establish a virtual clock.
[0036] 04: During the operation of the drying equipment 100, the AC current is corrected for zero-crossing signal according to the virtual clock to obtain the corrected zero-crossing signal; and
[0037] 05: Control the operation of the drying equipment 100 according to the corrected zero-crossing signal.
[0038] Referring to Figure 2, the above control method can be used in drying equipment 100. The drying equipment 100 provided in this application includes a controller 50, which is used to execute the control methods in 01, 04, and 05. That is, the controller 50 is used to predict the occurrence period of future zero-crossing signals of the alternating current based on multiple actual zero-crossing signals of the alternating current, and establish a virtual clock; during the operation of the drying equipment 100, the zero-crossing signal of the alternating current is corrected according to the virtual clock to obtain a corrected zero-crossing signal; and the drying equipment 100 is controlled to operate according to the corrected zero-crossing signal. The "actual zero-crossing signal" mentioned in this application refers to the zero-crossing signal that has been actually detected by relevant hardware, and is also the zero-crossing signal that occurred before the current moment, which will not be repeated hereafter.
[0039] The drying equipment 100 includes, but is not limited to, hair dryers, beauty devices, and medical instruments. It is understood that the above control method can also be applied to heating equipment, refrigeration equipment, beauty devices, and medical instruments. Heating equipment includes, but is not limited to, curling irons, hair straighteners, electric heaters, electric blankets, physiotherapy devices, beauty devices, and medical instruments. For ease of explanation, in the following embodiments, only the application of the above control method to the drying equipment 100 will be used as an example.
[0040] Furthermore, referring to Figures 3(a) to 3(d), in some embodiments, the drying equipment 100 may further include a housing 10, a heater 20, a radiation source 30, and a switch 40, all of which are disposed within the housing 10. The heater 20 is the structure in the drying equipment 100 used to generate heat. The heater 20 may be a resistance wire. The resistance wire may be made of materials such as nickel-chromium alloy, iron-chromium-aluminum alloy, stainless steel, or titanium alloy. The switch 40 is the structure in the drying equipment 100 used to control the AC signal to conduct or disconnect according to a control signal. The radiation source 30 is the structure in the drying equipment 100 capable of radiating light within a preset frequency band. The radiation source 30 may be a halogen lamp or a light-emitting diode.
[0041] Referring to Figure 3(a), in some embodiments, both the heater 20 and the radiation source 30 are included, and in this case, the heater 20 and the radiation source 30 are connected in parallel. Thus, the heater 20 and the radiation source 30 each have relatively independent power supply and control circuits. In other words, in the drying apparatus 100, the heater 20 and the radiation source 30 can be controlled and powered separately. Of course, in other examples, the heater 20 and the radiation source 30 can also be connected in series.
[0042] In other embodiments, the heater 20 includes at least two heaters, which can be connected in series, connected in parallel, or partially connected in series and partially connected in parallel. In one example, the radiation source 30 includes one heater. Wherein, when at least two heaters 20 are connected in series, the radiation source 30 can be connected in series with the at least two heaters 20; or, the radiation source 30 can be connected in parallel with the entire assembly formed by the series connection of the at least two heaters 20 (as shown in Figure 3(b)); where at least two heaters 20 are connected in parallel, the radiation source can be connected in parallel with the at least two heaters 20; or, the radiation source 30 can be connected in series with one of the at least two heaters 20.
[0043] In some other embodiments, the radiation source 30 includes at least two, which can be connected in series, connected in parallel, or partially connected in series and partially connected in parallel. In one example, the heater 20 includes one. Wherein, when at least two radiation sources 30 are connected in series, the heater 20 can be connected in series with the at least two radiation sources 30; or, the heater 20 can be connected in parallel with the entire assembly formed by the series connection of the at least two radiation sources 30 (as shown in FIG. 3(c)); where at least two radiation sources 30 are connected in parallel, the radiation source can be connected in parallel with the at least two radiation sources 30; or, the heater 20 can be connected in series with one of the at least two radiation sources 30.
[0044] In some embodiments, the heater 20 includes at least two heaters, which can be connected in series or in parallel. The radiation source 30 includes at least two radiation sources, which can be connected in series or in parallel. The at least two heaters 20 and the at least two radiation sources 30 can be connected together in series, in parallel, or in a combination of series and parallel connections.
[0045] For example, both the heater 20 and the radiation source 30 include two units. Referring to Figure 3(d), in one example, the two heaters 20 are connected in parallel, and the two radiation sources 30 are also connected in parallel and connected in parallel with the two heaters 20. In another example, the two heaters 20 are connected in parallel, and the two radiation sources 30 are connected in series and connected in series with one of the two heaters 20; or the two radiation sources are connected in series and connected in parallel with the two heaters 20.
[0046] It is understood that the number and connection method of the heater 20 and the radiation source 30 in the above embodiments are only illustrative examples. In other embodiments, the number and connection method of the heater 20 and the radiation source 30 may also include other forms, which will not be illustrated here.
[0047] Specifically, when the switch 40 is located between the power supply 300 and the heater 20, the switch 40 can be a silicon controlled rectifier (SCR), and the controller 50 can control the conduction of the SCR according to the zero-crossing signal of the AC current; when the switch 40 is located between the power supply 300 and the radiation source 30, the switch 40 can be a MOSFET, and the controller 50 can control the conduction and disconnection of the MOSFET according to the zero-crossing signal of the AC current.
[0048] In some more specific embodiments, the radiation source 30 can be a halogen lamp, which emits light when current is applied to its filament, causing the filament temperature to rise to incandescence. Since the peak frequency in the halogen lamp's radiation spectrum is related to the filament temperature, the duty cycle (the ratio of the load or circuit's on time to its off time) of the input current to the radiation source 30 can be controlled by the switch 40, thereby controlling the operating power and light frequency band of the radiation source 30. In some specific embodiments, when a power supply meeting preset requirements is input, the light emitted by the radiation source 30 is in the infrared band, capable of directly heating the irradiated object through thermal radiation. It is easy to understand that the higher the accuracy of the zero-crossing signal, the higher the control accuracy of the radiation source 30's operating power and light frequency band, resulting in a better user experience.
[0049] Specifically, referring to Figure 4, after predicting the occurrence period of future zero-crossing signals of the AC current based on multiple actual zero-crossing signals of the AC current of the drying equipment 100 (indicated by the solid arrows in Figure 4), the controller 50 can establish a virtual clock. The virtual clock is used to characterize the relationship between the zero-crossing signal and time. During the operation of the drying equipment 100, the zero-crossing signal of the AC current is corrected according to the virtual clock to obtain the corrected zero-crossing signal, and the operation of the drying equipment 100 is controlled according to the corrected zero-crossing signal. For example, the controller 50 can output a control signal according to the zero-crossing correction signal. When the thyristor receives the control signal, the thyristor can switch from the blocking state to the conducting state. At this time, the alternating current flows through the thyristor to the corresponding heater 20 to generate heat. The controller 50 can output a first control signal and a second control signal according to the zero-crossing correction signal. When the MOSFET receives the first control signal, the MOSFET can switch from the blocking state to the conducting state. At this time, the alternating current flows through the MOSFET to the corresponding radiation source 30 to radiate light of a preset frequency. When the MOSFET receives the second control signal, the MOSFET can switch from the conducting state to the blocking state. At this time, the alternating current cannot flow through the MOSFET to the corresponding radiation source 30.
[0050] In cases of grid fluctuations or external interference (such as poor contact at the plug of the drying equipment 100), a zero-voltage state may occur, leading to an incorrect zero-crossing signal. This means the generated zero-crossing signal does not correspond to the alternation of the positive and negative half-cycles of the AC current. For the MOSFET controlling the radiation source 30, if the AC current voltage is too high (e.g., near a peak) when the MOSFET is turned on based on the incorrect zero-crossing signal, a large turn-on current will be instantaneously generated due to the low resistance of the radiation source 30 when it is not powered on, potentially causing the MOSFET to break down. For the SCR controlling the heater 20, the incorrect zero-crossing signal will affect the SCR's conduction time, resulting in abnormal power output from the heater 20. The aforementioned abnormalities may also lead to a missed zero-crossing signal. A missing zero-crossing signal will affect the power control of the radiation source 30 and the heater 20, and may also incorrectly trigger a power-down detection (the drying equipment 100 stops working and archives data), affecting the normal operation of the drying equipment 100.
[0051] In this embodiment, the controller 50 corrects the zero-crossing signal of the AC current according to a virtual clock to obtain a corrected zero-crossing signal, and controls the drying equipment 100 to operate according to the corrected zero-crossing signal. That is, during the operation of the drying equipment 100, if an error or omission of the zero-crossing signal occurs, the controller 50 can correct the zero-crossing signal according to the virtual clock and control the drying equipment 100 to operate according to the corrected zero-crossing signal. This can prevent the error or omission of the zero-crossing signal from affecting the operation of the drying equipment 100, enhance the adaptability of the drying equipment 100 to power grid fluctuations, ensure the stability and reliability of the operation of the drying equipment 100, and extend the service life of the drying equipment 100.
[0052] In the control method of this application embodiment, during the operation of the drying equipment 100, the AC current is corrected for zero-crossing signal according to a virtual clock, and the operation of the drying equipment 100 is controlled according to the corrected zero-crossing signal. For example, if the zero-crossing signal of the AC current is incorrectly generated or omitted during the operation of the drying equipment 100, the virtual clock can correct it. This can reduce the impact of the zero-crossing signal error or omission on the operation of the drying equipment 100, enhance the adaptability of the drying equipment 100 to grid voltage fluctuations and external interference, improve the stability and reliability of the operation of the drying equipment 100, and extend the service life of the drying equipment 100.
[0053] Referring to Figures 2 and 5, in some embodiments, before performing zero-crossing signal correction on the AC current of the drying equipment 100 according to a virtual clock, the control method further includes:
[0054] 02: Verify the virtual clock to determine if it meets the requirements; and
[0055] 03: If the virtual clock meets the requirements, the AC current of the drying equipment 100 is corrected for zero crossing signal according to the virtual clock.
[0056] Referring to Figure 2, controller 50 is also used to execute the control methods in 02 and 03. That is, controller 50 is also used to: verify the virtual clock to determine whether the virtual clock meets the requirements; if the virtual clock meets the requirements, then perform zero-crossing signal correction on the AC current of drying equipment 100 according to the virtual clock.
[0057] Specifically, in some embodiments, before the controller 50 performs zero-crossing signal correction on the AC current of the drying equipment 100 according to the virtual clock, the controller 50 may verify the virtual clock to determine whether the virtual clock meets the requirements. This can improve the accuracy and reliability of the virtual clock in correcting the zero-crossing signal and ensure the normal operation of the drying equipment 100.
[0058] Further, referring to Figures 2 and 6, in some embodiments, 02: verifying the virtual clock to determine whether the virtual clock meets the requirements, including:
[0059] 021: Determine the corresponding AC frequency based on the occurrence period of the future zero-crossing signal in the virtual clock;
[0060] 023: When the AC frequency is within the preset frequency range, the virtual clock is confirmed to meet the requirements. The preset frequency range is the AC frequency range applicable to the drying equipment 100.
[0061] Referring to Figure 2, controller 50 is also used to execute the control methods in 021 and 023. That is, controller 50 is also used to: determine the corresponding AC frequency based on the occurrence period of the future zero-crossing signal in the virtual clock; when the AC frequency is within the preset frequency range, determine that the virtual clock meets the requirements, and the preset frequency range is the AC frequency range applicable to the drying equipment 100.
[0062] Specifically, as described above, the controller 50 can predict the occurrence period of future zero-crossing signals of the AC current based on multiple actual zero-crossing signals of the AC current of the drying equipment 100. Thus, the controller 50 can determine the corresponding AC frequency based on the occurrence period of future zero-crossing signals in the virtual clock, that is, determine the current AC frequency of the drying equipment 100. Furthermore, if the current AC frequency is within a preset frequency range, the controller 50 can determine that the virtual clock meets the requirements and the current AC frequency of the drying equipment 100 is within the applicable AC frequency range for the drying equipment 100. At this point, the drying equipment 100 can enter the working state. This prevents damage to the drying equipment 100 due to a mismatch between the AC frequency and the applicable AC frequency, thereby extending the service life of the drying equipment 100.
[0063] It should be noted that the preset frequency range can be known data, which can be either empirical values obtained before the drying equipment 100 leaves the factory, or settings entered manually when the drying equipment 100 is used after leaving the factory. For example, the preset frequency range can be 50Hz-60Hz. When the AC frequency is within 50Hz-60Hz, the virtual clock is determined to meet the requirements. For example, the circuit of the drying equipment 100 is designed with redundancy to allow for a 10% error in the AC frequency. When the AC frequency is within 45Hz-66Hz, the virtual clock is determined to meet the requirements.
[0064] Please refer to Figure 7. In some embodiments, 04: Zero-crossing signal correction is performed on the AC current of the drying device 100 according to the virtual clock to obtain the corrected zero-crossing signal, including:
[0065] 041: Generate a virtual zero-crossing signal based on the virtual clock;
[0066] 043: Determine the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal (i.e., the actual zero-crossing signal of the AC current during the operation of the drying equipment 100);
[0067] 045: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is less than or equal to the first threshold, the corresponding actual zero-crossing signal is used as the corrected zero-crossing signal;
[0068] 047: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold, the virtual zero-crossing signal is used as the corrected zero-crossing signal.
[0069] Referring to Figure 2, controller 50 is also used to execute control methods 041, 043, 045, and 047. Specifically, controller 50 is also used to: generate a virtual zero-crossing signal based on a virtual clock; determine the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal; when the difference between the virtual zero-crossing signal and the actual zero-crossing signal is less than or equal to a first threshold, use the corresponding actual zero-crossing signal as a corrected zero-crossing signal; when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold, use the virtual zero-crossing signal as a corrected zero-crossing signal. It should be noted that the "corrected zero-crossing signal" is only used to distinguish it from the actual zero-crossing signal and the virtual zero-crossing signal; it is not limited to necessarily modifying or correcting the actual zero-crossing signal. As shown above, when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is less than or equal to the first threshold, the actual zero-crossing signal is not corrected, and is directly used as the corrected zero-crossing signal.
[0070] Specifically, referring to Figure 4, in some embodiments, the controller 50 can generate a virtual zero-crossing signal based on a virtual clock (indicated by the dashed arrow in Figure 4), and compare the virtual zero-crossing signal with the actual zero-crossing signal of the AC current during the operation of the drying equipment 100 to determine the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal. Specifically, when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is less than or equal to a first threshold, the controller 50 can use the corresponding actual zero-crossing signal as the correct zero-crossing signal. In this case, the controller 50 can use the corresponding actual zero-crossing signal as a corrected zero-crossing signal, so that the controller 50 controls the drying equipment 100 to operate according to the corrected zero-crossing signal. When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold, the controller 50 can use the corresponding actual zero-crossing signal as an incorrect zero-crossing signal (the actual zero-crossing signal may be an incorrectly generated or omitted zero-crossing signal). In this case, the controller 50 can use the virtual zero-crossing signal as a corrected zero-crossing signal, so that the controller 50 controls the drying equipment 100 to operate according to the corrected zero-crossing signal. This prevents erroneous zero-crossing signals caused by grid voltage fluctuations or external interference from affecting the normal operation of the drying equipment. As a result, the drying equipment's adaptability to grid voltage fluctuations and external interference is enhanced, thereby improving the stability and reliability of the drying equipment.
[0071] It should be noted that, in some embodiments, the controller 50 generates the virtual zero-crossing signal based on the virtual clock in the following way: the controller 50 obtains the frequency of the actual zero-crossing signal based on the multiple actual zero-crossing signals obtained when establishing the virtual clock, and predicts the future zero-crossing signal based on the frequency of the actual zero-crossing signal, that is, generates the virtual zero-crossing signal based on the frequency of the actual zero-crossing signal.
[0072] Please refer to Figure 8. In some embodiments, 047: when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold, the virtual zero-crossing signal is used as a corrected zero-crossing signal, including:
[0073] 0471: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold and less than the second threshold, the virtual zero-crossing signal is used as the corrected zero-crossing signal.
[0074] 0473: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, the drying equipment 100 is controlled to enter the protection state.
[0075] Referring to Figure 2, controller 50 is also used to execute the control methods in 0471 and 0473. That is, controller 50 is also used to: when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold and less than a second threshold, use the virtual zero-crossing signal as a corrected zero-crossing signal; when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, control the drying equipment 100 to enter a protection state.
[0076] Specifically, in some embodiments, if the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold and less than a second threshold, it indicates that the grid voltage fluctuates and the fluctuation amplitude is small. In this case, the controller 50 can use the corresponding actual zero-crossing signal as the erroneous zero-crossing signal and the virtual zero-crossing signal as the corrected zero-crossing signal. If the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, it indicates that the grid voltage fluctuates and the fluctuation amplitude is large. In this case, the controller 50 can control the drying equipment 100 to enter a protection state to avoid damage to the components (such as the heater 20, the radiation source 30, and the switch 40) inside the drying equipment 100 after the voltage fluctuation is too large.
[0077] The drying device 100 entering a protection state can be caused by the software within the drying device 100 terminating its operation or becoming unresponsive to user commands. It should be noted that after the drying device 100 enters a protection state, the user needs to restart, re-plug, or use other preset methods via buttons on the drying device 100 to deactivate the protection state. In other embodiments, the protection state can also be set to directly shut down the drying device 100, or to issue warning messages such as sound, light, and vibration to prompt the user to shut down. It should be noted that while the protection state can prevent the drying device 100 from being damaged by abnormal voltage, it also renders the drying device 100 temporarily unusable. If the sensitivity for entering the protection state is too high, the user will frequently enter the protection state during use, affecting the user experience; if the sensitivity is too low, the drying device 100 may operate in an unsuitable voltage environment, affecting its lifespan. The following sections will describe in detail how to ensure the sensitivity for entering the protection state is within a reasonable range.
[0078] It should be noted that, in some embodiments, both the first threshold and the second threshold can be known data. These can be empirical values obtained before the drying equipment 100 leaves the factory, or set values entered by the user when using the drying equipment 100 after it leaves the factory. They can also be set values obtained or changed by firmware upgrades via OTA (Over-the-Air Technology) after the drying equipment 100 leaves the factory, or empirical values obtained by the controller 50 processing historical data after the drying equipment 100 leaves the factory.
[0079] Further, referring to Figures 2 and 9, in some embodiments, 0473: when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a second threshold, the drying equipment 100 is controlled to enter a protection state, including:
[0080] 0475: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than or equal to the second threshold, the corresponding actual zero-crossing signal is filtered out, and the number of filtered signals is recorded.
[0081] 0477: When the number of filtered signals exceeds the preset threshold, the drying equipment 100 is controlled to enter the protection state.
[0082] Referring to Figure 2, controller 50 is also used to execute the control methods in 0475 and 0477. That is, controller 50 is also used to: filter out the corresponding actual zero-crossing signal when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than or equal to a second threshold, and record the number of filtered signals; when the number of filtered signals is greater than a preset threshold, control the drying equipment 100 to enter a protection state.
[0083] Because the drying equipment 100 may experience power grid voltage fluctuations, drops, or abnormal operation of internal components during operation, the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal may be greater than or equal to the second threshold. For example, in areas with poor power grid construction, the power grid may frequently experience large voltage fluctuations. If the controller 50 directly controls the drying equipment 100 to enter the protection state under such circumstances, users in the area will feel that the drying equipment 100 frequently enters the protection state, which will damage the user experience. Therefore, in some embodiments of this application, when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than or equal to the second threshold, the controller 50 can filter out the corresponding actual zero-crossing signal. At this time, the drying equipment 100 can still operate normally. When the number of filtered signals is greater than the preset number threshold, the controller 50 can control the drying equipment 100 to enter the protection state. In this way, on the one hand, the drying equipment 100 can be prevented from frequently entering the protection state, so as to ensure the user experience as much as possible. On the other hand, it can avoid damage to the components (such as the heater 20, the radiation source 30, and the switch 40, etc.) inside the drying equipment 100 after the voltage fluctuation is too large.
[0084] It should be noted that, in some embodiments, the preset quantity threshold can be known data. This could be an empirical value obtained before the drying equipment 100 leaves the factory, a setting value input by the user when using the drying equipment 100 after it leaves the factory, a setting value obtained or changed through OTA (Over-the-Air Technology) firmware upgrades after the drying equipment 100 leaves the factory, or an empirical value obtained by the controller 50 processing historical data after the drying equipment 100 leaves the factory. For example, the preset quantity threshold can be 5, meaning that when the number of filtered signals is greater than 5, the controller 50 can control the drying equipment 100 to enter a protection state.
[0085] Referring to Figure 10, in some embodiments, 01: Based on multiple actual zero-crossing signals of the AC current of the drying device 100, the occurrence period of future zero-crossing signals of the AC current is predicted, and a virtual clock is established, including:
[0086] 011: Within a preset time, the AC current of the drying equipment 100 is zero-crossed to obtain at least two adjacent actual zero-crossing signals;
[0087] 013: Verify at least two actual zero-crossing signals according to the preset verification strategy;
[0088] 019: If the verification passes, the virtual clock is obtained by predicting the occurrence period of future zero-crossing signals based on the occurrence periods of at least two adjacent actual zero-crossing signals.
[0089] Referring to Figure 2, controller 50 is also used to execute control methods 011, 013, and 019. That is, controller 50 is also used to: perform zero-crossing detection on the AC current of drying equipment 100 within a preset time to obtain at least two adjacent actual zero-crossing signals; verify the at least two actual zero-crossing signals according to a preset verification strategy; and, if the verification passes, predict the occurrence period of future zero-crossing signals based on the occurrence period of the at least two adjacent actual zero-crossing signals to obtain a virtual clock.
[0090] Specifically, in some embodiments, the controller 50 can perform zero-crossing detection on the AC current of the drying equipment 100 within a preset time to obtain at least two adjacent actual zero-crossing signals. These at least two actual zero-crossing signals are then verified according to a preset verification strategy. If the verification passes, a virtual clock is obtained by predicting the occurrence period of future zero-crossing signals based on the occurrence period of the at least two adjacent actual zero-crossing signals. Therefore, compared to at least two actual zero-crossing signals not being verified by the preset verification strategy, the virtual clock obtained by the controller 50 can more accurately correct the AC current for zero-crossing signals, thereby ensuring the stability and reliability of the drying equipment 100's operation.
[0091] It should be noted that in some embodiments, the preset verification strategy can be known data, which can be data obtained before the drying equipment 100 leaves the factory, data input by the user when using the drying equipment 100 after it leaves the factory, or data obtained or modified by firmware upgrades via OTA (Over-the-Air Technology) after the drying equipment 100 leaves the factory. The preset verification strategy includes, but is not limited to, frequency difference, signal stability, and signal presence / absence. For example, if the preset time is 10ms, and zero-crossing detection is performed on the AC current of the drying equipment 100 within the preset time, resulting in four actual zero-crossing signals with time intervals of 3ms, 3.2ms, and 1.1ms respectively, then the frequency difference of the last actual zero-crossing signal is too large. In this case, the verification fails, and the controller 50 cannot obtain the virtual clock. If the time intervals between the four actual zero-crossing signals are 3ms, 3.2ms, and 3.1ms respectively, then the frequency difference of the four actual zero-crossing signals is small. In this case, the verification passes, and the controller 50 can obtain the virtual clock.
[0092] Please refer to Figures 2 and 10. In some embodiments, after verifying at least two actual zero-crossing signals according to a preset verification strategy, the control method further includes:
[0093] 015: If the verification fails, the virtual clock setup is deemed to have failed;
[0094] 018: Control the drying equipment 100 to enter the protection state.
[0095] Referring to Figure 2, controller 50 is also used to execute the control methods in 015 and 018. That is, controller 50 is also used to: determine that the virtual clock establishment has failed if the verification fails, and control the drying equipment 100 to enter the protection state.
[0096] The protection state in this embodiment is exactly the same as the protection state described above, and will not be repeated here. Specifically, if the verification fails, that is, if the controller 50 verifies at least two actual zero-crossing signals according to the preset verification strategy and the verification fails, the controller 50 can control the drying equipment 100 to enter the protection state to avoid damage to the components (such as the heater 20, radiation source 30, and switch 40) inside the drying equipment 100 due to excessive voltage fluctuations.
[0097] Furthermore, referring to Figure 10, in some embodiments, before controlling the drying equipment 100 to enter a protective state, the control method further includes:
[0098] 016: Record the number of times the virtual clock fails to be established, and re-detect the zero-crossing of the AC current of the drying equipment 100 within the preset time to obtain at least two adjacent actual zero-crossing signals and verify them.
[0099] 017: If the verification fails, it is determined that the virtual clock establishment has failed, and the number of virtual clock establishment failures is updated until the number of virtual clock establishment failures exceeds the preset threshold, at which point the drying equipment 100 is controlled to enter the protection state.
[0100] Referring to Figure 2, controller 50 is also used to execute the control methods in 016 and 017. That is, controller 50 is also used to: record the number of times the virtual clock setup fails, re-detect the zero-crossing of the AC current of the drying equipment 100 within a preset time, obtain at least two adjacent actual zero-crossing signals and verify them; if the verification fails, determine that the virtual clock setup has failed, and update the number of virtual clock setup failures until the number of virtual clock setup failures exceeds a preset threshold, then control the drying equipment 100 to enter a protection state.
[0101] Because temporary small fluctuations in grid voltage may cause the actual zero-crossing signal to fail to meet the preset verification strategy, the controller can determine that the virtual clock establishment has failed, and the controller 50 will directly control the drying equipment 100 to enter the protection state. However, the drying equipment 100 only needs to try again to successfully establish the virtual clock, resulting in poor intelligence of the drying equipment 100 and affecting the user experience. In some embodiments of this application, after the virtual clock establishment fails, the controller 50 can record the number of virtual clock establishment failures and return to execute steps 011 and 013. That is, the controller 50 re-performs zero-crossing detection of the AC current of the drying equipment 100 within a preset time to obtain at least two adjacent actual zero-crossing signals, and verifies at least two actual zero-crossing signals according to the preset verification strategy; and if the verification fails, it is determined that the virtual clock establishment has failed. At this time, the controller 50 can update the number of virtual clock establishment failures until the number of virtual clock establishment failures exceeds a preset threshold, and then control the drying equipment 100 to enter the protection state. This can reduce the sensitivity of the protection state of the drying equipment 100, thereby improving the intelligence of the drying equipment 100 and ensuring the user experience.
[0102] Referring to Figure 2, in some embodiments, when the controller 50 establishes a virtual clock, the virtual clock will not change during the operation of the drying equipment 100 until the drying equipment 100 is shut down, and the controller 50 can re-establish a new virtual clock when the drying equipment 100 is started again.
[0103] In other embodiments, once the controller 50 establishes a virtual clock, the virtual clock remains unchanged during the operation of the drying equipment 100 until the drying equipment 100 is shut down, and the controller 50 can store the virtual clock. Upon the next startup of the drying equipment 100, the controller 50 can use the stored virtual clock to perform zero-crossing signal correction on the AC current without needing to re-establish the virtual clock. This reduces the computing power consumption of the controller 50, prevents controller 50 from experiencing lag, and improves the stability of the drying equipment 100's operation.
[0104] Furthermore, in some embodiments, when the drying equipment 100 is started, if the drying equipment 100 stores a virtual clock, the controller 50 needs to determine whether the stored virtual clock is applicable based on the actual zero-crossing signal of the alternating current of the drying equipment 100 within a predetermined time. If it is not applicable, the controller 50 needs to re-establish the virtual clock; if it is applicable, the controller 50 does not need to re-establish the virtual clock.
[0105] Referring to Figure 2, in some implementations, after establishing the virtual clock, the control method further includes:
[0106] 07: Record the creation time of the virtual clock; when the creation time of the virtual clock reaches the preset time, a new virtual clock is created.
[0107] The controller 50 is also used to execute the control method in 07. That is, the controller 50 is also used to: record the establishment duration of the virtual clock; and re-establish a new virtual clock when the establishment duration of the virtual clock reaches the preset duration.
[0108] Specifically, in some embodiments, the controller 50 can record the setup duration of the virtual clock, and when the setup duration of the virtual clock reaches a preset duration, a new virtual clock is re-established. Each established virtual clock only performs zero-crossing signal correction on the AC current within the preset duration. For example, the preset duration can be 1 second. When the setup duration of the virtual clock reaches 1 second, the controller 50 can re-establish a new virtual clock. It should be noted that in some embodiments, if the drying device 100 has been running for 10 seconds and the controller 50 re-establishes a new virtual clock, the controller 50 can establish the virtual clock based on the zero-crossing signals of the AC current of the drying device 100 during the first 1-6 seconds of the drying device 100's operation.
[0109] It is understood that in this embodiment, the zero-crossing signal referenced by the Nth (N≥2)th virtual clock establishment has been corrected by the (N-1)th virtual clock establishment, thus preventing fluctuations in the grid voltage due to accumulated errors. For example, if the controller 50 does not iteratively update the virtual clock, it is possible that during a period of time after the drying equipment 100 starts operating, the difference between the zero-crossing signal generated by the virtual clock and the corresponding actual zero-crossing signal is less than the second threshold; after a period of accumulation, the difference between the zero-crossing signal generated by the virtual clock and all corresponding actual zero-crossing signals is greater than the second threshold. At this time, the controller 50 will judge all actual zero-crossing signals as erroneous zero-crossing signals, causing the drying equipment 100 to mistakenly enter the protection state. However, if the controller 50 re-establishes a new virtual clock when the establishment time of the virtual clock reaches the preset time, that is, iteratively updates the virtual clock as the drying equipment 100 is used, after a period of accumulation, the zero-crossing signal referenced by the re-established virtual clock is corrected, thereby preventing error accumulation and preventing all actual zero-crossing signals from being judged as erroneous zero-crossing signals, causing the drying equipment 100 to mistakenly enter the protection state.
[0110] In a specific example, due to the limited accuracy of hardware and software detection and calculation, the zero-crossing signal period in the virtual clock differs from the actual period of the mains voltage by 0.01s, and the second threshold is set to 0.05s. Therefore, the difference is 0.01s in the first cycle, 0.02s in the second cycle, and so on, reaching 0.05s in the fifth cycle. From the sixth cycle onwards, the difference between each zero-crossing signal generated by the virtual clock and its corresponding actual zero-crossing signal is greater than 0.05s, causing the drying equipment 100 to falsely enter a protection state. If the preset time is set to the duration of four AC power cycles, and the virtual clock is re-established after the fourth cycle, the difference in the fifth cycle will be 0.01s, and so on until the ninth cycle, when the difference between the zero-crossing signal generated by the virtual clock and its corresponding actual zero-crossing signal is less than 0.05s. Then, a new virtual clock is established again. This ensures that the drying equipment 100 operates normally and will not falsely enter a protection state due to accumulated errors.
[0111] Please refer to Figures 2 and 11. In some embodiments, the control method further includes:
[0112] 081: When the drying equipment 100 is in working condition, acquire the AC signal when the AC voltage is 0;
[0113] 083: If the duration of the AC voltage being 0 is less than a preset duration threshold, the AC signal when the AC voltage is 0 is determined to be the zero-crossing signal of the AC voltage.
[0114] 085: If the duration of the AC voltage being 0 is longer than the preset duration threshold, confirm that the drying equipment 100 has entered the shutdown state and control the drying equipment 100 to store data.
[0115] Referring to Figure 2, controller 50 is also used to execute the control methods in 081, 083, and 085. That is, controller 50 is also used to: acquire an AC signal when the AC voltage is 0 when the drying equipment 100 is in operation; determine that the AC signal when the AC voltage is 0 is a zero-crossing signal when the duration of the 0 AC voltage is less than a preset duration threshold; and confirm that the drying equipment 100 has entered a shutdown state when the duration of the 0 AC voltage is greater than the preset duration threshold, and control the drying equipment 100 to store data. The shutdown state of the drying equipment 100 can be: the user manually stops the drying equipment 100 from working or disconnects the power to the drying equipment 100. For some electrical equipment, the user directly turns off the power when shutting down. In some embodiments of this application, during the operation of the drying equipment 100, the drying equipment 100 can record operating data, such as continuous operating time and the current gear of the drying equipment 100; when the drying equipment 100 enters the shutdown state, the drying equipment 100 can be briefly powered by a capacitor so that the controller 50 can store the recorded operating data.
[0116] In some embodiments of this application, a voltage of 0 is used as the criterion for determining the shutdown state, ensuring that even if the user directly disconnects the power supply to the drying equipment 100 (e.g., directly unplugs the power cord from the socket), the drying equipment 100 can still correctly enter the shutdown state and store relevant data. If the controller 50 mistakenly identifies the zero-crossing signal of the AC power as a shutdown signal, it will cause the controller 50 to incorrectly confirm that the drying equipment 100 has entered the shutdown state during operation and incorrectly execute the relevant data storage, affecting the normal operation of the drying equipment 100 and resulting in a poor user experience. In some embodiments of this application, a preset duration is used as the criterion. If the duration of the AC voltage being 0 is less than a preset duration threshold, the controller 50 can determine that the AC signal with the AC voltage being 0 is the AC zero-crossing signal; if the duration of the AC voltage being 0 is greater than the preset duration threshold, the controller 50 can confirm that the drying equipment 100 has entered the shutdown state and control the drying equipment 100 to store data. This prevents misjudgment of shutdown signals and zero-crossing signals of AC power, ensuring the stability and reliability of the drying equipment and improving the user experience.
[0117] Please refer to Figures 2 and 12. In some embodiments, the actual zero-crossing signal is obtained by at least one of the following methods:
[0118] 091: Zero-crossing detection circuit 60 detects the passing AC current and generates actual zero-crossing signals;
[0119] 093: Controller 50 reads the voltage signal output by voltage detection circuit 70 and generates an actual zero-crossing signal when the voltage is 0.
[0120] Referring to Figure 2, controller 50 is also used to execute the control methods in 091 and 093. That is, controller 50 is also used for: zero-crossing detection circuit 60 to detect the passing AC current and generate an actual zero-crossing signal; controller 50 to read the voltage signal output by voltage detection circuit 70 and generate an actual zero-crossing signal when the voltage is 0.
[0121] In some embodiments, the drying equipment 100 further includes a zero-crossing detection circuit 60 and a voltage detection circuit 70, both electrically connected to the controller 50. The zero-crossing detection circuit 60 is a circuit structure in the drying equipment 100 used to generate a zero-crossing signal based on the zero-crossing time of the AC signal. The controller 50 detects the passing AC current through the zero-crossing detection circuit 60 and generates an actual zero-crossing signal. The controller 50 can read the voltage signal output by the voltage detection circuit 70 and generate an actual zero-crossing signal when the voltage is 0. The controller 50 can cross-check the actual zero-crossing signal obtained through the zero-crossing detection circuit 60 with the actual zero-crossing signal obtained through the voltage detection circuit 70. This ensures that the controller 50 obtains a virtual clock based on the correct actual zero-crossing signal, improving the anti-interference performance of the drying equipment 100 and guaranteeing its normal operation.
[0122] Under normal circumstances, the actual zero-crossing signal obtained by controller 50 through zero-crossing detection circuit 60 is essentially the same as the actual zero-crossing signal obtained by controller 50 through voltage detection circuit 70, provided that neither circuit is affected by external factors. An incorrect actual zero-crossing signal will only occur when both circuits malfunction simultaneously, thus reducing the probability of generating an incorrect actual zero-crossing signal. The actual zero-crossing signal described in the preceding and following sections can come directly from either zero-crossing detection circuit 60 or voltage detection circuit 70, or the two circuits can be cross-checked first to determine the zero-crossing signal.
[0123] Specifically, referring to Figure 3, in some embodiments, the voltage detection circuit 70 may include a rectifier circuit 71 and a voltage divider circuit 73. The rectifier circuit 71 is connected between the controller 50 and the voltage divider circuit 73. The rectifier circuit 71 receives the AC signal from the power supply 300 and outputs a DC signal to the voltage divider circuit 73. The voltage divider circuit 73 is connected between the rectifier circuit 71 and the controller 50. The voltage divider circuit 73 can divide the DC signal output by the rectifier circuit 71, thereby outputting the divided DC signal to the controller 50 to supply power to the controller 50.
[0124] In some implementations, 093: The controller 50 reads the voltage signal output by the voltage detection circuit 70 and generates an actual zero-crossing signal when the voltage is 0, specifically including:
[0125] 0931: Controller 50 reads the voltage signal output by voltage detection circuit 70. When the voltage in the voltage signal is less than the threshold, it starts detecting whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0; and / or,
[0126] 0933: The controller 50 reads the voltage signal output by the voltage detection circuit 70. When the voltage change in the voltage signal meets the preset rate of change, it starts to detect whether the voltage is 0 and generates an actual zero-crossing signal when the voltage is 0.
[0127] The controller 50 is also used to execute the control methods in 0931 and 0933. That is, the controller 50 is also used to: read the voltage signal output by the voltage detection circuit 70, and when the voltage in the voltage signal is less than a threshold, start detecting whether the voltage is 0, and generate an actual zero-crossing signal when the voltage is 0; and / or, the controller 50 reads the voltage signal output by the voltage detection circuit 70, and when the voltage change in the voltage signal meets a preset rate of change, start detecting whether the voltage is 0, and generate an actual zero-crossing signal when the voltage is 0.
[0128] Specifically, in some embodiments, based on the characteristics of alternating current, the voltage change of the alternating current is continuous. Thus, the controller 50 can read the voltage signal output by the voltage detection circuit 70, and the controller 50 only performs the process of detecting whether the voltage is 0 when the voltage in the voltage signal is less than a threshold, and generates an actual zero-crossing signal when the voltage is 0; however, if the voltage in the voltage signal is 0 before it is less than the threshold, the controller 50 will not determine it as an actual zero-crossing signal, thereby reducing the possibility of false zero-crossing signals of the alternating current. The threshold is a small value close to 0, such as 3V, 5V, etc.
[0129] For example, please refer to Figure 13, where the dashed line represents the threshold. The controller 50 reads the voltage signal output by the voltage detection circuit 70. When the voltage in the signal is less than the threshold, i.e., when the voltage is between points c and b, the controller 50 begins to detect whether the voltage is 0 and generates an actual zero-crossing signal when the voltage is 0, i.e., an actual zero-crossing signal is generated at point b. However, at point a, the voltage is always greater than the threshold, and the controller 50 does not perform the process of detecting whether the voltage is 0. Therefore, even if the voltage of the signal becomes 0 at point a, the controller 50 will not determine it as an actual zero-crossing signal, thereby preventing the false generation of a zero-crossing signal for the AC current.
[0130] In other embodiments, the controller 50 can read the voltage signal output by the voltage detection circuit 70, and when the voltage change in the voltage signal meets the preset rate of change, it starts to detect whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0; however, if the voltage change in the voltage signal is greater than the preset rate of change, even if the voltage is 0, the controller 50 will not determine it as an actual zero-crossing signal, thereby preventing the false generation of the zero-crossing signal of the AC current.
[0131] In one specific implementation, when a user uses the drying equipment 100, the power socket may experience poor contact due to collision, aging, or improper plugging, resulting in a momentary circuit break and a voltage of 0. Through the above process, it is possible to avoid such a momentary circuit break being mistakenly identified as a zero-crossing signal.
[0132] Referring to Figure 14, this application also provides a storage medium 200 on which a program 210 is stored. When the program 210 is executed by one or more controllers 50, it implements the control method of any of the embodiments described above.
[0133] For example, referring to Figures 1 and 2, when program 210 is executed by controller 50, the following control method is implemented:
[0134] 01: Based on multiple actual zero-crossing signals of the AC current of the drying equipment 100, predict the occurrence period of future zero-crossing signals of the AC current and establish a virtual clock.
[0135] 04: During the operation of the drying equipment 100, the AC current is corrected for zero-crossing signal according to the virtual clock to obtain the corrected zero-crossing signal; and
[0136] 05: Control the operation of the drying equipment 100 according to the corrected zero-crossing signal.
[0137] For example, when program 210 is executed by controller 50, it can also implement the control methods in 011, 013, 015, 016, 017, 018, 019, 02, 021, 023, 03, 04, 041, 043, 045, 047, 0471, 0473, 0475, 0477, 07, 081, 083, 085, 091, 093, 0931, and 0933.
[0138] It should be noted that the explanations of the control methods and electrical equipment in the foregoing embodiments also apply to the storage medium 200 in the embodiments of this application, and will not be elaborated here.
[0139] In the storage medium 200 of this application, during the operation of the drying equipment 100, the AC current is corrected for zero-crossing signals according to a virtual clock, and the operation of the drying equipment 100 is controlled according to the corrected zero-crossing signals. For example, if the zero-crossing signal of the AC current is incorrectly generated or omitted during the operation of the drying equipment 100, the virtual clock can correct it. This can reduce the impact of the zero-crossing signal error or omission on the operation of the drying equipment 100, enhance the adaptability of the drying equipment 100 to power grid voltage fluctuations and external interference, improve the stability and reliability of the operation of the drying equipment 100, and extend the service life of the drying equipment 100.
[0140] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0141] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.
[0142] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, a storage medium can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples of storage media (a non-exhaustive list) include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the storage medium could be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0143] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0144] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a storage medium, and when executed, it includes one or a combination of the steps of the method embodiments. Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.
[0145] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A control method for electrical equipment, characterized in that, The control method includes: Based on multiple actual zero-crossing signals of the AC current of the electrical equipment, the occurrence period of future zero-crossing signals of the AC current is predicted, and a virtual clock is established. During the operation of the electrical equipment, the alternating current is corrected for zero-crossing signals according to the virtual clock to obtain a corrected zero-crossing signal; and The electrical equipment is controlled to operate according to the corrected zero-crossing signal.
2. The control method according to claim 1, characterized in that, Before performing zero-crossing signal correction on the AC current of the electrical equipment according to the virtual clock, the control method further includes: The virtual clock is verified to determine whether it meets the requirements; and If the virtual clock meets the requirements, the AC current of the electrical equipment is corrected for zero-crossing signal according to the virtual clock.
3. The control method according to claim 2, characterized in that, The step of verifying the virtual clock to determine whether the virtual clock meets the requirements includes: Based on the occurrence period of the future zero-crossing signal in the virtual clock, determine the corresponding AC frequency; and When the AC frequency is within a preset frequency range, the virtual clock is determined to meet the requirements. The preset frequency range is the AC frequency range applicable to the electrical equipment.
4. The control method according to claim 1, characterized in that, The step of correcting the AC current of the electrical equipment according to the virtual clock to obtain the corrected zero-crossing signal includes: A virtual zero-crossing signal is generated based on the virtual clock; Determine the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal; When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is less than or equal to a first threshold, the corresponding actual zero-crossing signal is used as the corrected zero-crossing signal; and When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold, the virtual zero-crossing signal is used as the corrected zero-crossing signal.
5. The control method according to claim 4, characterized in that, The step of using the virtual zero-crossing signal as the corrected zero-crossing signal when the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold includes: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold and less than the second threshold, the virtual zero-crossing signal is used as the corrected zero-crossing signal; and When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, the electrical equipment is controlled to enter a protection state.
6. The control method according to claim 5, characterized in that, When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, controlling the electrical equipment to enter a protection state includes: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than or equal to the second threshold, the corresponding actual zero-crossing signal is filtered out, and the number of filtered signals is recorded; and When the number of filtered signals exceeds a preset threshold, the electrical equipment is controlled to enter a protection state.
7. The control method according to claim 1, characterized in that, The step of predicting the occurrence period of future zero-crossing signals of the AC current based on multiple actual zero-crossing signals of the AC current of the electrical equipment, and establishing a virtual clock, includes: The AC current of the electrical equipment is zero-crossing detected within a preset time to obtain at least two adjacent actual zero-crossing signals. Verify at least two actual zero-crossing signals according to a preset verification strategy; and If the verification passes, the virtual clock is obtained by predicting the occurrence period of future zero-crossing signals based on the occurrence periods of at least two adjacent actual zero-crossing signals.
8. The control method according to claim 7, characterized in that, After verifying at least two actual zero-crossing signals according to a preset verification strategy, the control method further includes: If the verification fails, it is determined that the virtual clock has failed to be established, and the electrical equipment is controlled to enter a protection state.
9. The control method according to claim 8, characterized in that, Before the electrical equipment is put into a protection state, the control method further includes: Record the number of times the virtual clock setup fails, re-detect the zero-crossing of the AC current of the electrical equipment within the preset time, obtain at least two adjacent actual zero-crossing signals, and verify them; and If the verification fails, it is determined that the virtual clock has failed to be established, and the number of virtual clock establishment failures is updated until the number of virtual clock establishment failures exceeds a preset threshold, at which point the electrical equipment is controlled to enter a protection state.
10. The control method according to claim 1, characterized in that, After establishing the virtual clock, the control method further includes: Record the establishment time of the virtual clock; when the establishment time of the virtual clock reaches the preset time, re-establish the virtual clock.
11. The control method according to claim 1, characterized in that, The control method further includes: When the electrical equipment enters the working state, the AC signal when the AC voltage is 0 is acquired; If the duration of the alternating current voltage being 0 is less than a preset duration threshold, the alternating current signal when the alternating current voltage is 0 is determined to be the zero-crossing signal of the alternating current; and If the duration of the AC voltage being 0 exceeds a preset duration threshold, the electrical equipment is confirmed to have entered a shutdown state, and the electrical equipment is controlled to store data.
12. The control method according to claim 1, characterized in that, The actual zero-crossing signal is obtained through at least one of the following methods: The zero-crossing detection circuit detects the passing AC current and generates the actual zero-crossing signal. The controller reads the voltage signal output by the voltage detection circuit and generates the actual zero-crossing signal when the voltage is 0.
13. The control method according to claim 12, characterized in that, The controller reads the voltage signal output by the voltage detection circuit and generates an actual zero-crossing signal when the voltage is 0, specifically including: The controller reads the voltage signal output by the voltage detection circuit. When the voltage in the voltage signal is less than a threshold, it starts detecting whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0; and / or, The controller reads the voltage signal output by the voltage detection circuit. When the voltage change in the voltage signal meets the preset rate of change, it starts to detect whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0.
14. An electrical device, characterized in that, It includes a zero-crossing detection circuit and a controller, the zero-crossing detection circuit and the controller being electrically connected; the controller is used for: The AC current of the electrical equipment is detected by the zero-crossing detection circuit to obtain multiple actual zero-crossing signals; Based on multiple actual zero-crossing signals of the AC current of the electrical equipment, the occurrence period of future zero-crossing signals of the AC current is predicted, and a virtual clock is established. During the operation of the electrical equipment, the AC current of the electrical equipment is corrected for zero-crossing signal according to the virtual clock to obtain a corrected zero-crossing signal; and The electrical equipment is controlled to operate according to the corrected zero-crossing signal.
15. The electrical equipment according to claim 14, characterized in that, The controller is also used for: The virtual clock is verified to determine whether it meets the requirements; and If the virtual clock meets the requirements, the AC current of the electrical equipment is corrected for zero-crossing signal according to the virtual clock.
16. The electrical equipment according to claim 15, characterized in that, The controller is also used for: Based on the occurrence period of the future zero-crossing signal in the virtual clock, determine the corresponding AC frequency; and When the AC frequency is within a preset frequency range, the virtual clock is determined to meet the requirements. The preset frequency range is the AC frequency range applicable to the electrical equipment.
17. The electrical equipment according to claim 14, characterized in that, The controller is also used for: A virtual zero-crossing signal is generated based on the virtual clock; Determine the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal; When the difference between the virtual zero-crossing signal and the actual zero-crossing signal is less than or equal to the first threshold, the corresponding actual zero-crossing signal is used as the corrected zero-crossing signal. and When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than a first threshold, the virtual zero-crossing signal is... The sign is used as the corrected zero-crossing signal.
18. The electrical equipment according to claim 17, characterized in that, The controller is also used for: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the first threshold and less than the second threshold, the virtual zero-crossing signal is used as the corrected zero-crossing signal. and When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than the second threshold, the electrical equipment is controlled to enter a protection state.
19. The electrical equipment according to claim 18, characterized in that, The controller is also used for: When the difference between the virtual zero-crossing signal and the corresponding actual zero-crossing signal is greater than or equal to the second threshold, the corresponding actual zero-crossing signal is filtered out, and the number of filtered signals is recorded; and When the number of filtered signals exceeds a preset threshold, the electrical equipment is controlled to enter a protection state.
20. The electrical equipment according to claim 14, characterized in that, The controller is also used for: The AC current of the electrical equipment is zero-crossing detected within a preset time to obtain at least two adjacent actual zero-crossing signals. Verify at least two actual zero-crossing signals according to the preset verification strategy; and If the verification passes, the virtual clock is obtained by predicting the occurrence period of future zero-crossing signals based on the occurrence periods of at least two adjacent actual zero-crossing signals.
21. The electrical equipment according to claim 20, characterized in that, The controller is also used for: If the verification fails, it is determined that the virtual clock has failed to be established, and the electrical equipment is controlled to enter a protection state.
22. The electrical equipment according to claim 21, characterized in that, The controller is also used for: Record the number of times the virtual clock fails to be established, and re-detect the zero-crossing of the AC current of the electrical equipment within the preset time to obtain at least two adjacent actual zero-crossing signals and verify them; and If the verification fails, it is determined that the virtual clock has failed to be established, and the number of virtual clock establishment failures is updated until the number of virtual clock establishment failures exceeds a preset threshold, at which point the electrical equipment is controlled to enter a protection state.
23. The electrical equipment according to claim 14, characterized in that, The controller is also used for: Record the establishment time of the virtual clock; when the establishment time of the virtual clock reaches the preset time, re-establish the virtual clock.
24. The electrical equipment according to claim 14, characterized in that, The controller is also used for: When the electrical equipment enters the working state, the AC signal when the AC voltage is 0 is acquired; If the duration of the AC voltage being 0 is less than a preset duration threshold, the AC signal is determined to be the working zero-crossing signal. and If the duration of the AC voltage being 0 exceeds a preset duration threshold, the electrical equipment is confirmed to have entered a shutdown state, and the electrical equipment is controlled to store data.
25. The electrical equipment according to claim 14, characterized in that, The electrical equipment further includes a voltage detection circuit, which is electrically connected to the controller; the actual zero-crossing signal is obtained through at least one of the following methods: The zero-crossing detection circuit detects the passing AC current and generates the actual zero-crossing signal. The controller reads the voltage signal output by the voltage detection circuit and generates the actual zero-crossing signal when the voltage is 0.
26. The electrical equipment according to claim 25, characterized in that, The controller is also used for: The controller reads the voltage signal output by the voltage detection circuit. When the voltage in the voltage signal is less than the threshold, it starts to detect whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0. And / or, The controller reads the voltage signal output by the voltage detection circuit. When the voltage change in the voltage signal meets the preset rate of change, it starts to detect whether the voltage is 0, and generates an actual zero-crossing signal when the voltage is 0.
27. The electrical equipment according to claim 14, characterized in that, The electrical equipment is any one of the following: drying equipment, heating equipment, refrigeration equipment, hair styling tools, motor control equipment, and light radiation equipment.
28. A storage medium having a program stored thereon, characterized in that, When the program is executed by the controller, it implements the control method according to any one of claims 1-13.