Adaptive single live wire dimming method and device, processor and computer readable storage medium thereof

By using an adaptive single-wire dimming method, the dimmer automatically switches between front and back modes, adjusts the dimming range, and calibrates the zero-crossing point, thus solving the compatibility and dimming stability issues of the single-wire dimmer under different loads and improving the user experience.

CN121463288APending Publication Date: 2026-02-03SIMON ELECTRIC CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411020931.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

Existing single-wire phase-cut dimmers have poor compatibility and dimming comfort when facing different loads. They cannot automatically adapt to the front and rear cutting modes, have insensitive zero-crossing detection, and have inappropriate dimming ranges, resulting in abnormal load operation or poor user experience.

Method used

The system employs a pre- and post-cut adaptive strategy, a dimming range self-adjustment strategy, a zero-crossing calibration strategy, and a zero-crossing signal jitter stabilization strategy. Through load current monitoring, zero-crossing detection circuit feedback, and MCU signal analysis, it automatically switches modes, adjusts the dimming range, and calibrates the zero-crossing point to stabilize the zero-crossing signal.

Benefits of technology

It enables adaptive dimming of the dimmer under different loads, improves compatibility and dimming comfort, and ensures the stability of the dimmer and dimming stability when the zero-crossing detection signal jitters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121463288A_ABST
    Figure CN121463288A_ABST
Patent Text Reader

Abstract

The invention relates to a dimming method for a self-adaptive single live wire, and a front-back switching self-adaptive strategy comprises the following steps: carrying out slow dimming action, and monitoring and analyzing load current in the process; the dimming range self-adjusting strategy is that the minimum dimming range and the maximum dimming range are automatically adjusted by detecting the time interval between a rising edge signal and a falling edge signal fed back to the MCU by the zero-cross detection circuit; the zero-crossing calibration strategy comprises the following steps: automatically calibrating a zero-crossing occurrence point by detecting a time interval between a rising edge signal and a falling edge signal fed back on the MCU by the zero-crossing detection circuit; the zero-crossing signal jitter stability maintaining strategy is that a periodic or half-periodic signal is output by gradually and slightly increasing or reducing the output period or the output half-periodic signal. By adopting the self-adaptive single-live-wire dimming method and device, the processor and the computer readable storage medium, a single-live-wire dimmer can automatically switch a proper front-back switching mode, automatically set a proper dimming range, automatically calibrate a zero crossing point and output relatively stable dimming when a zero crossing detection signal jitters.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of lamps, especially to the field of LED filament lamps, in particular to a self-adaptive single-firewire dimming method and device, a processor and a computer readable storage medium thereof. BACKGROUND

[0002] There are some problems in the current single-firewire phase-cut dimming.

[0003] For example, a dimmer may be connected to various loads such as LED dimming drivers, incandescent lamps, LED filament lamps, etc. Due to the large difference in the working characteristics of these loads, some may be suitable for forward cutting, and some may be suitable for backward cutting. Currently, there is a lack of technology on the market that can automatically adapt to forward and backward cutting.

[0004] Furthermore, due to the differences in various loads, their suitable working conduction phase angle ranges are also different, which leads to different dimming ranges. If the dimming range is too large, it may cause abnormal operation of the load or abnormality of the dimmer, and if the dimming range is too small, it may affect the experience. Currently, there is a lack of related adaptive technology on the market.

[0005] In addition, due to the differences in various loads and power grids, the time interval between the actual zero-crossing signal detected by the dimmer and the real zero-crossing point is not the same, which leads to compatibility problems.

[0006] In addition, in order to prevent the lights from being slightly bright or flashing when various lamp loads are turned off, the zero-crossing detection circuit is usually designed in a super low power consumption mode. In addition, there are also reasons such as fluctuations in power grid voltage. These may cause the dimmer to be not sensitive to zero-crossing detection or have large errors. The current dimmer lacks adaptive measures, which may output a dimming waveform with obvious jitter, resulting in poor dimming comfort and compatibility of the dimmer. SUMMARY

[0007] The present application aims to overcome the above-mentioned shortcomings of the prior art, and provides a self-adaptive single-firewire dimming method, device, processor and computer readable storage medium thereof, which satisfy good dimming comfort, good compatibility and a relatively wide range of applications.

[0008] In order to achieve the above-mentioned purpose, the self-adaptive single-firewire dimming method, device, processor and computer readable storage medium thereof of the present application are as follows: The main feature of the self-adaptive single-firewire dimming method is that the method includes a forward and backward cutting adaptive strategy, a dimming range self-adjusting strategy, a zero-crossing calibration strategy and a zero-crossing signal jitter stabilizing strategy, The forward and backward cutting adaptive strategy is specifically: The dimmer slowly brightens or dims, and automatically switches between forward cutting mode and backward cutting mode by monitoring and analyzing the load current during the process. The dimming range self-adjusting strategy specifically includes the following steps: The dimmer captures AC rising edge signals and falling edge signals, and automatically adjusts the minimum dimming range and the maximum dimming range by detecting the time interval between the rising edge signals and the falling edge signals fed back to the MCU through the zero-crossing detection circuit; The zero-crossing calibration strategy specifically includes the following steps: The dimmer captures AC rising edge signals and falling edge signals, and automatically calibrates the zero-crossing occurrence point by detecting the time interval between the rising edge signals and the falling edge signals fed back to the MCU through the zero-crossing detection circuit; and estimates the time difference between the rising edge signals or the falling edge signals and the true AC zero-crossing point by calibrating the zero-crossing occurrence point; The zero-crossing signal jitter maintaining strategy specifically includes the following steps: When the dimmer detects that the predicted zero-crossing point is inconsistent with the end point of the current output cycle or half cycle, the dimmer gradually increases or reduces the output cycle or half cycle signal by a small amount, so that the end time point of the next cycle or half cycle approaches the next predicted zero-crossing point; The front and rear switching adaptive strategy, the dimming range self-adjusting strategy, the zero-crossing calibration strategy, and the zero-crossing signal jitter maintaining strategy can be executed simultaneously.

[0009] Preferably, the dimmer is provided with a built-in load current detection circuit, and the front and rear switching adaptive strategy specifically includes the following steps: (1-1) When the light is turned on after the dimmer is powered on, slowly brighten from low to high in the previously stored or default phase-cut mode, and monitor the load current change in the process; (1-2) If the load current growth change smoothness is low during the light-on process, continue to step (1-3); if the load current decrease change smoothness is high during the light-off process, continue to step (1-4); if the current growth change smoothness is high during this light-on process, continue to step (1-5); (1-3) When the light is turned off, slowly dim from high to low in the phase-cut mode opposite to the previously stored phase-cut mode, and monitor the load current change in the process; (1-4) When the light is turned on next time, slowly brighten from low to high in the phase-cut mode opposite to the previously stored phase-cut mode, and monitor the load current change in the process; (1-5) Apply or store the new phase-cut mode.

[0010] Preferably, the dimmer is provided with a built-in load current detection function which is closed or short-circuited when no current detection is performed.

[0011] Preferably, the dimming range self-adjusting strategy specifically includes the following steps: (2-1) The dimmer ensures capturing AC rising edge signal and falling edge signal by performing slightly delayed turn-on after zero-crossing or slightly early turn-off before zero-crossing during slow turn-on or turn-off process in off state; (2-2) The dimmer automatically adjusts minimum dimmable range and maximum dimmable range by detecting the time interval between rising edge signal and falling edge signal feedback on MCU through zero-crossing detection circuit.

[0012] Preferably, the dimmer increases minimum dimmable range or decreases maximum dimmable range if the time interval between adjacent rising edge signal and falling edge signal detected occupies a smaller proportion of AC cycle, or the time interval between adjacent falling edge signal and rising edge signal occupies a larger proportion of AC cycle; The dimmer decreases minimum dimmable range or increases maximum dimmable range if the time interval between adjacent rising edge signal and falling edge signal detected occupies a larger proportion of AC cycle, or the time interval between adjacent falling edge signal and rising edge signal occupies a smaller proportion of AC cycle.

[0013] Preferably, the dimmer smoothly transitions from performing slightly delayed turn-on after zero-crossing or slightly early turn-off before zero-crossing to resuming normal zero-crossing turn-on or turn-off in multiple steps before the end of slow turn-on process, i.e. resuming to normal working state without user's awareness; The dimmer smoothly transitions from normal zero-crossing turn-on or turn-off to performing slightly delayed turn-on after zero-crossing or slightly early turn-off before zero-crossing in multiple steps at the beginning of slow turn-off process.

[0014] Preferably, the zero-crossing calibration strategy specifically includes the following steps: (3-1) The dimmer ensures capturing AC rising edge signal and falling edge signal by performing slightly delayed turn-on after zero-crossing or slightly early turn-off before zero-crossing during slow turn-on or turn-off process in off state; (3-2) The dimmer automatically calibrates zero-crossing occurrence point by detecting the time interval between rising edge signal and falling edge signal feedback on MCU through zero-crossing detection circuit; (3-3) The dimmer estimates the time difference between rising edge signal or falling edge signal and real AC zero-crossing point by calibrating zero-crossing occurrence point.

[0015] Preferably, the dimmer calibrates zero-crossing occurrence point by compensating the delay of rising edge signal and falling edge signal generated by zero-crossing detection circuit, and the time delay of signal reaction and processing by MCU.

[0016] Preferably, the compensation delay is measured using an incandescent lamp as a load under a standard AC waveform, and the relevant value is stored in the MCU or memory within the dimmer.

[0017] Preferably, the zero-crossing signal jitter stabilization strategy specifically includes the following steps: When the end time of a half-cycle or cycle output is before the predicted zero-crossing time, the end time of the half-cycle or cycle is delayed by adding a small amount of time in the next output half-cycle or cycle. When the end time of a half-cycle or cycle output is after the predicted zero-crossing time, the end time of the half-cycle or cycle is moved forward by reducing the time slightly in the next output half-cycle or cycle. When the end time of the half-cycle or cycle output is near the predicted zero-crossing time, the output half-cycle or cycle gradually approaches the detected average half-cycle or cycle of the grid AC.

[0018] When the output half-cycle or cycle increases or decreases, the limit is set to the detected AC average cycle or half-cycle plus or minus a certain limit value; if the output end time of the half-cycle or cycle is found to be significantly different from the predicted zero-crossing time point, the predicted zero-crossing time point is used as the starting point of the next output cycle.

[0019] The main feature of this adaptive single-wire dimming device is that the device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the adaptive single-wire dimming method described above.

[0020] The main feature of this adaptive single-wire dimming processor is that the processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the aforementioned adaptive single-wire dimming method.

[0021] The computer-readable storage medium is characterized in that it stores a computer program that can be executed by a processor to implement the various steps of the adaptive single-wire dimming method described above.

[0022] The adaptive single-wire dimming method, device, processor, and computer-readable storage medium of the present invention enable the single-wire dimmer to automatically switch between appropriate front and back-switch modes, automatically set an appropriate dimming range, automatically calibrate the zero-crossing point, and still output relatively stable dimming even when the zero-crossing detection signal jitters. Attached Figure Description

[0023] Figure 1 This is a flowchart illustrating the overall process of the adaptive single-wire dimming method of the present invention.

[0024] Figure 2 This is a schematic diagram of the rising edge, falling edge signal, and compensation gap of the adaptive single-wire dimming method of the present invention. Detailed Implementation

[0025] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.

[0026] The adaptive single-wire dimming method of the present invention includes a pre- and post-cut adaptive strategy, a dimming range self-adjustment strategy, a zero-crossing calibration strategy, and a zero-crossing signal jitter stabilization strategy. Specifically, the aforementioned adaptive pre- and post-cutting strategy is as follows: The dimmer slowly brightens or dims the screen, and automatically switches between pre-cut and post-cut modes by monitoring and analyzing the load current during the process. Specifically, the dimming range self-adjustment strategy is as follows: The dimmer captures the rising and falling edge signals of the AC signal and automatically adjusts the minimum and maximum dimming range by detecting the time interval between the rising and falling edge signals fed back to the MCU by the zero-crossing detection circuit. Specifically, the zero-crossing calibration strategy is as follows: The dimmer captures the rising and falling edge signals of the AC circuit. By detecting the time interval between the rising and falling edge signals fed back to the MCU by the zero-crossing detection circuit, the zero-crossing point is automatically calibrated. By calibrating the zero-crossing point, the time difference between the rising or falling edge signal and the actual AC zero-crossing point is estimated. The zero-crossing signal jitter stabilization strategy is specifically as follows: When the dimmer detects that the predicted zero-crossing point is inconsistent with the end point of the current full output cycle or half cycle, the dimmer gradually increases or decreases the output cycle or half cycle signal to make the end time of the next cycle or half cycle approach the next predicted zero-crossing point. The aforementioned adaptive pre- and post-cut strategies, dimming range self-adjustment strategies, zero-crossing calibration strategies, and zero-crossing signal jitter stabilization strategies can be executed simultaneously.

[0027] In a preferred embodiment of the present invention, the dimmer has a built-in load current detection circuit, and the pre- and post-cut adaptive strategy specifically includes the following steps: (1-1) When the lights are turned on after the dimmer is powered on, the brightness is slowly increased from low to high using the previously stored or default phase-cutting mode, and the load current changes are monitored during the process. (1-2) If the smoothness of the load current increase during the light-on process is low, continue to step (1-3); if the smoothness of the load current decrease during the light-off process is high, continue to step (1-4); if the smoothness of the current increase during the light-on process is high, continue to step (1-5). (1-3) When turning off the lights, dim them slowly from high to low using a phase-cutting method that is the opposite of the previously stored phase-cutting mode, and monitor the load current changes during the process; (1-4) When turning on the lights again, use a phase-cutting method opposite to the previously stored phase-cutting mode to slowly increase the brightness from low to high, and monitor the load current changes during the process; (1-5) Apply or store new phase cutting modes.

[0028] In a preferred embodiment of the present invention, the built-in load current detection function of the dimmer is turned off or short-circuited when no current detection is performed.

[0029] As a preferred embodiment of the present invention, the dimming range self-adjustment strategy specifically includes the following steps: (2-1) The dimmer ensures that the AC rising edge signal and falling edge signal are captured when the lights are off, or performs a zero-crossing delayed turn-on or zero-crossing early turn-off operation during the slow turn-on or turn-off process. (2-2) The minimum and maximum dimming ranges are automatically adjusted by detecting the time interval between the rising edge signal and the falling edge signal fed back to the MCU by the zero-crossing detection circuit.

[0030] As a preferred embodiment of the present invention, if the dimmer detects that the time interval between adjacent rising edge signals and falling edge signals is small in proportion to the AC cycle, or the time interval between adjacent falling edge signals and rising edge signals is large in proportion to the AC cycle, then the minimum dimmable range is increased or the maximum dimmable range is decreased. If the time interval between adjacent rising and falling edges is a large proportion of the AC cycle, or the time interval between adjacent falling and rising edges is a small proportion of the AC cycle, then the minimum adjustable dimming range should be reduced or the maximum adjustable dimming range should be increased.

[0031] As a preferred embodiment of the present invention, the dimmer smoothly transitions from performing a slightly delayed turn-on after zero crossing or a slightly earlier turn-off before zero crossing operation in multiple steps to returning to normal zero-crossing turn-on or zero-crossing cut-off before the end of the slow light-on process, that is, it returns to the normal working state without the user noticing. When the dimming device begins the slow light-off process, it smoothly transitions from the normal zero-crossing conduction or zero-crossing cutoff state in multiple steps to perform a slightly delayed conduction after zero crossing or a slightly earlier cutoff before zero crossing.

[0032] In a preferred embodiment of the present invention, the zero-crossing calibration strategy specifically includes the following steps: (3-1) The dimmer captures the rising and falling edge signals of the AC when the lights are off, or performs a zero-crossing delay turn-on or a zero-crossing early cut-off operation during the slow turn-on or turn-off process to ensure that the rising and falling edge signals of the AC are captured. (3-2) The zero-crossing point is automatically calibrated by detecting the time interval between the rising edge signal and the falling edge signal fed back to the MCU by the zero-crossing detection circuit; (3-3) By calibrating the zero-crossing point, estimate the time difference between the rising edge signal or the falling edge signal and the actual AC zero-crossing point.

[0033] In a preferred embodiment of the present invention, the dimmer compensates for the delay of the rising and falling edge signals generated by the zero-crossing detection circuit, as well as the time delay of the MCU in responding to and processing the signal, to calibrate the zero-crossing point.

[0034] In a preferred embodiment of the present invention, the compensation delay is measured using an incandescent lamp as a load under a standard AC waveform, and the relevant value is stored in the MCU or memory within the dimmer.

[0035] As a preferred embodiment of the present invention, the zero-crossing signal jitter stabilization strategy specifically includes the following steps: When the end time of a half-cycle or cycle output is before the predicted zero-crossing time, the end time of the half-cycle or cycle is delayed by adding a small amount of time in the next output half-cycle or cycle. When the end time of a half-cycle or cycle output is after the predicted zero-crossing time, the end time of the half-cycle or cycle is moved forward by reducing the time slightly in the next output half-cycle or cycle. When the end time of the half-cycle or cycle output is near the predicted zero-crossing time, the output half-cycle or cycle gradually approaches the detected average half-cycle or cycle of the grid AC.

[0036] When the output half-cycle or cycle increases or decreases, the limit is set to the detected AC average cycle or half-cycle plus or minus a certain limit value; if the output end time of the half-cycle or cycle is found to be significantly different from the predicted zero-crossing time point, the predicted zero-crossing time point is used as the starting point of the next output cycle.

[0037] The adaptive single-wire dimming device of the present invention, wherein the device comprises: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the adaptive single-wire dimming method described above.

[0038] The adaptive single-wire dimming processor of the present invention is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the adaptive single-wire dimming method described above.

[0039] The computer-readable storage medium of the present invention stores a computer program thereon, which can be executed by a processor to implement the various steps of the above-described adaptive single-wire dimming method.

[0040] In specific embodiments of the present invention, such as Figure 1 As shown, this solution designs a series of strategies to improve the performance of the single-wire dimmer. These strategies include a pre- and post-cut adaptive strategy, a dimming range self-adjustment strategy, a zero-crossing calibration strategy, and a zero-crossing signal jitter stabilization strategy. These strategies aim to improve the compatibility of the single-wire dimmer with various loads, enhance the user experience, and improve the adaptability, compatibility, and dimming stability of the single-wire AC phase-cut dimmer for multiple lighting loads. The pre- and post-cut adaptive strategy, the dimming range self-adjustment strategy, the zero-crossing calibration strategy, and the zero-crossing signal jitter stabilization strategy are independent of each other and can be executed simultaneously.

[0041] 1. Adaptive pre-cut and post-cut strategy: The dimmer automatically switches between pre-cut and post-cut modes by implementing slow brightening or dimming actions and monitoring and analyzing the load current during the process.

[0042] The specific method is as follows: The dimmer has a built-in load current detection circuit. When the dimmer is powered on and the light is turned on, it slowly brightens from low to high using the previously stored or default phase-cutting mode (front-cut / back-cut), while monitoring the load current changes during the process. If the smoothness of the load current increase during the light-on process is low, then when the light is turned off, it slowly dims from high to low using the opposite phase-cutting mode, while monitoring the load current changes during the process. If the smoothness of the load current decrease during the light-off process is good, then the next time the light is turned on, it slowly brightens from low to high using the opposite phase-cutting mode, while monitoring the load current changes during the process. If the smoothness of the current increase during this light-on process is significantly improved compared to the previous phase-cutting mode, that is, the smoothness of the current increase is higher, then the new phase-cutting mode is applied or stored.

[0043] In the above methods, each judgment condition can be repeated multiple times individually or in combination before proceeding with the subsequent measures.

[0044] The dimmer is set to back-cut mode by default.

[0045] Preferably, the built-in load current detection function of the dimmer is turned off or shorted when not performing current detection to save energy.

[0046] 2. Dimming Range Self-Adjustment Strategy: The dimmer captures the rising and falling edge signals of the AC signal when the lights are off, or performs a slight delay on after the zero-crossing or a slight early cut-off operation before the zero-crossing during the process of slowly turning the lights on or off to ensure the capture of the rising and falling edge signals of the AC signal. The minimum and maximum dimming ranges are automatically adjusted by detecting the time interval between the rising and falling edge signals fed back to the MCU by the zero-crossing detection circuit.

[0047] If the time interval between adjacent rising and falling edges (starting with the rising edge and ending with the falling edge) is relatively small compared to the AC cycle, or if the time interval between adjacent falling and rising edges (starting with the falling edge and ending with the falling edge) is relatively large compared to the AC cycle, then the minimum adjustable range should be increased or the maximum adjustable range should be decreased appropriately. Conversely, if the time interval between adjacent rising and falling edges is relatively large compared to the AC cycle, or if the time interval between adjacent falling and rising edges is relatively small compared to the AC cycle, then the minimum adjustable range should be decreased or the maximum adjustable range should be increased appropriately.

[0048] Before the slow light-on process ends, the system smoothly transitions from performing a slight delay in conduction after zero crossing or a slight early cut-off before zero crossing in multiple steps to resuming normal zero-crossing conduction or zero-crossing cut-off, so that the user is unaware of the process and the system returns to normal operating status.

[0049] Similarly, at the start of the slow light-off process, the system smoothly transitions from the normal zero-crossing conduction or zero-crossing cutoff state to performing a slightly delayed conduction after zero crossing or a slightly earlier cutoff before zero crossing in multiple steps.

[0050] The reason for recommending a slight delay in switching on after zero crossing or a slight early cutoff before zero crossing during the slow switching on or off process to ensure capture of the rising and falling edges of the AC signal is that, during actual operation, the waveform of the AC signal divided across the dimmer may be distorted due to variations in the load. Since the load is still operating during the slow switching on or off process, the signal measured in this case is closest to the signal during normal operation.

[0051] 3. Zero-crossing calibration strategy: such as Figure 2As shown, the dimmer captures the rising and falling edges of the AC signal when the lights are off, or performs a slight delay on-time after a zero-crossing or a slight advance on-time before a zero-crossing during slow light-on or off operation to ensure capture of the AC rising and falling edges. It automatically calibrates the zero-crossing point by detecting the time interval between the rising and falling edges fed back to the MCU by the zero-crossing detection circuit. The main task of calibrating the zero-crossing point is to estimate the time difference between the rising or falling edge signal and the actual AC zero-crossing point.

[0052] Preferably, the zero-crossing point can be further calibrated by compensating for the delay of the rising and falling edge signals generated by the zero-crossing detection circuit, as well as the time delay of the MCU's signal response and processing.

[0053] Preferably, the aforementioned compensation delay can be measured using an incandescent lamp as a load under a standard AC waveform, and the relevant value can be stored in the MCU or memory within the dimmer.

[0054] Now, assume the AC period is T. In half a period of the AC waveform, a rising edge and a falling edge are detected. Let t_rise represent the time difference between the rising edge and the initial true zero-crossing point of the half-wave, and t_fall represent the time difference between the falling edge and the initial true zero-crossing point of the half-wave. (t_fall + t_rise) / 2 represents the midpoint of the time between the rising and falling edges, while the true midpoint of the AC half-wave is T / 4. Let the difference between the two midpoints be t_compensation. Then we have... t_compensation=(t_fall+t_rise) / 2-T / 4……(Formula 1) The transformation formula yields the time interval for predicting the next zero-crossing point from the falling edge: t1=T / 2-t_fall=T / 4-t_compensation-(t_fall-t_rise) / 2……(Formula 2) The transformation formula yields the time interval for predicting the next zero-crossing point from the rising edge as follows: t2=T / 2-t_rise=T / 4-t_compensation+(t_fall-t_rise) / 2……(Formula 3) The t_compensation in Formula 1 can be easily measured when the dimmer is connected to an incandescent lamp load under good AC conditions. It can be a single constant or a set of constants, which can be directly used in the dimmer software program later.

[0055] Formula 2 is mainly used in the back-cut software program, while Formula 3 is mainly used in the front-cut software program. In these two formulas, except for t_compensation which is a constant that can be used directly, its period T can be obtained by detecting the time interval between each adjacent falling edge or adjacent rising edge. The time interval (t_fall - t_rise) can be obtained by capturing the AC rising edge signal and falling edge signal in the light-off state, or by performing a slight delay after zero crossing or a slight early cut-off operation before zero crossing during the process of slowly turning on or off the lights to ensure the capture of the AC rising edge and falling edge signal, and by measuring the time difference between them.

[0056] 4. Zero-crossing signal jitter stabilization strategy: When the dimmer detects that the predicted zero-crossing point is inconsistent with the end point of the current complete output cycle or half-cycle, the dimmer gradually increases or decreases the output cycle or half-cycle signal to make the end point of the next cycle or half-cycle closer to the next predicted zero-crossing point. The end point of each output cycle or half-cycle is immediately followed by the start point of the next output cycle or half-cycle.

[0057] The specific method is as follows: When the end time of a half-cycle or cycle output is before the predicted zero-crossing time, a small time increment is added to the next output half-cycle or cycle to make the end time of this half-cycle or cycle later, so as to approach the next predicted zero-crossing point.

[0058] When the end time of a half-cycle or cycle output is after the predicted zero-crossing time, the end time of the next half-cycle or cycle is brought forward by reducing the time slightly in the next output half-cycle or cycle, so as to approach the next predicted zero-crossing point.

[0059] When the difference between the end time of the half-cycle or cycle output and the predicted zero-crossing time is small, the output half-cycle or cycle gradually approaches the detected average half-cycle or cycle of the grid AC.

[0060] When the output half-cycle or cycle increases or decreases, the limit is set to the detected AC average cycle or half-cycle plus or minus a certain limit value, which prevents the output cycle from being too large or too small. At this time, if the difference between the half-cycle or cycle output end time and the predicted zero-crossing time point is large, the predicted zero-crossing time point is directly used as the starting point of the next output cycle to deal with the situation when a fault occurs.

[0061] When the zero-crossing detection time point is randomly varied and inaccurate, this method can avoid causing obvious light jitter because the output period remains relatively stable without large jumps.

[0062] For the specific implementation scheme of this embodiment, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0063] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0064] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0065] Any process or method description 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 the invention 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 functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0066] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. 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.

[0067] 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 corresponding program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.

[0068] Furthermore, the functional units in the various embodiments of the present invention 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.

[0069] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0070] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. 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.

[0071] The adaptive single-wire dimming method, device, processor, and computer-readable storage medium of the present invention enable the single-wire dimmer to automatically switch between appropriate front and back-switch modes, automatically set an appropriate dimming range, automatically calibrate the zero-crossing point, and still output relatively stable dimming even when the zero-crossing detection signal jitters.

[0072] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.

Claims

1. An adaptive single-wire dimming method, characterized in that, The method includes an adaptive pre- and post-cut strategy, a dimming range self-adjustment strategy, a zero-crossing calibration strategy, and a zero-crossing signal jitter stabilization strategy. Specifically, the aforementioned adaptive pre- and post-cutting strategy is as follows: The dimmer slowly brightens or dims the screen, and automatically switches between pre-cut and post-cut modes by monitoring and analyzing the load current during the process. Specifically, the dimming range self-adjustment strategy is as follows: The dimmer captures the rising and falling edge signals of the AC signal and automatically adjusts the minimum and maximum dimming range by detecting the time interval between the rising and falling edge signals fed back to the MCU by the zero-crossing detection circuit. Specifically, the zero-crossing calibration strategy is as follows: The dimmer captures the rising and falling edge signals of the AC circuit. By detecting the time interval between the rising and falling edge signals fed back to the MCU by the zero-crossing detection circuit, the zero-crossing point is automatically calibrated. By calibrating the zero-crossing point, the time difference between the rising or falling edge signal and the actual AC zero-crossing point is estimated. The zero-crossing signal jitter stabilization strategy is specifically as follows: When the dimmer detects that the predicted zero-crossing point is inconsistent with the end point of the current full output cycle or half cycle, the dimmer gradually increases or decreases the output cycle or half cycle signal to make the end time of the next cycle or half cycle approach the next predicted zero-crossing point. The aforementioned adaptive pre- and post-cut strategies, dimming range self-adjustment strategies, zero-crossing calibration strategies, and zero-crossing signal jitter stabilization strategies can be executed simultaneously.

2. The adaptive single-wire dimming method according to claim 1, characterized in that, The dimmer has a built-in load current detection circuit, and the adaptive pre- and post-cut strategy specifically includes the following steps: (1-1) When the lights are turned on after the dimmer is powered on, the brightness is slowly increased from low to high using the previously stored or default phase-cutting mode, and the load current changes are monitored during the process. (1-2) If the smoothness of the load current increase during the light-on process is low, continue to step (1-3); if the smoothness of the load current decrease during the light-off process is high, continue to step (1-4); if the smoothness of the current increase during the light-on process is high, continue to step (1-5). (1-3) When turning off the lights, dim them slowly from high to low using a phase-cutting method that is the opposite of the previously stored phase-cutting mode, and monitor the load current changes during the process; (1-4) When turning on the lights again, use a phase-cutting method opposite to the previously stored phase-cutting mode to slowly increase the brightness from low to high, and monitor the load current changes during the process; (1-5) Apply and store new phase cutting modes.

3. The adaptive single-wire dimming method according to claim 1, characterized in that, The dimmer has a built-in load current detection function that is turned off or short-circuited when no current detection is being performed.

4. The adaptive single-wire dimming method according to claim 1, characterized in that, The dimming range self-adjustment strategy specifically includes the following steps: (2-1) The dimmer ensures that the AC rising edge signal and falling edge signal are captured when the lights are off, or performs a zero-crossing delayed turn-on or zero-crossing early turn-off operation during the slow turn-on or turn-off process. (2-2) The minimum and maximum dimming ranges are automatically adjusted by detecting the time interval between the rising edge signal and the falling edge signal fed back to the MCU by the zero-crossing detection circuit.

5. The adaptive single-wire dimming method according to claim 4, characterized in that, If the dimmer detects that the time interval between adjacent rising and falling edge signals is small relative to the AC cycle, or that the time interval between adjacent falling and rising edge signals is large relative to the AC cycle, then the minimum adjustable dimming range is increased or the maximum adjustable dimming range is decreased. If the time interval between adjacent rising and falling edges is a large proportion of the AC cycle, or the time interval between adjacent falling and rising edges is a small proportion of the AC cycle, then the minimum adjustable dimming range should be reduced or the maximum adjustable dimming range should be increased.

6. The adaptive single-wire dimming method according to claim 4, characterized in that, Before the slow light-on process ends, the dimmer smoothly transitions from performing a slightly delayed turn-on after zero crossing or a slightly earlier turn-off before zero crossing in multiple steps to returning to normal zero-crossing turn-on or zero-crossing cut-off, so that the user does not notice the change and the dimmer returns to its normal working state. When the dimming device begins the slow light-off process, it smoothly transitions from the normal zero-crossing conduction or zero-crossing cutoff state in multiple steps to perform a slightly delayed conduction after zero crossing or a slightly earlier cutoff before zero crossing.

7. The adaptive single-wire dimming method according to claim 1, characterized in that, The zero-crossing calibration strategy specifically includes the following steps: (3-1) The dimmer captures the rising and falling edge signals of the AC when the lights are off, or performs a zero-crossing delay turn-on or a zero-crossing early cut-off operation during the slow turn-on or turn-off process to ensure that the rising and falling edge signals of the AC are captured. (3-2) The zero-crossing point is automatically calibrated by detecting the time interval between the rising edge signal and the falling edge signal fed back to the MCU by the zero-crossing detection circuit; (3-3) By calibrating the zero-crossing point, estimate the time difference between the rising edge signal or the falling edge signal and the actual AC zero-crossing point.

8. The adaptive single-wire dimming method according to claim 7, characterized in that, The dimmer is used to calibrate the zero-crossing point by compensating for the delay of the rising and falling edge signals generated by the zero-crossing detection circuit, as well as the time delay of the MCU's signal response and processing.

9. The adaptive single-wire dimming method according to claim 8, characterized in that, The compensation delay is measured using an incandescent lamp as a load under a standard AC waveform, and the relevant value is stored in the MCU or memory within the dimmer.

10. The adaptive single-wire dimming method according to claim 1, characterized in that, The zero-crossing signal jitter stabilization strategy specifically includes the following steps: When the end time of a half-cycle or cycle output is before the predicted zero-crossing time, the end time of the half-cycle or cycle is delayed by adding a small amount of time in the next output half-cycle or cycle. When the end time of a half-cycle or cycle output is after the predicted zero-crossing time, the end time of the half-cycle or cycle is moved forward by reducing the time slightly in the next output half-cycle or cycle. When the end time of the half-cycle or cycle output is near the predicted zero-crossing time, the output half-cycle or cycle gradually approaches the detected average half-cycle or cycle of the grid AC.

11. When the output half-cycle or cycle increases or decreases, the limit is set to the detected AC average cycle or half-cycle plus or minus a certain limit value; if the detected half-cycle or cycle output end time differs greatly from the predicted zero-crossing time point, then the predicted zero-crossing time point is used as the starting point of the next output cycle.

12. An adaptive single-wire dimming device, characterized in that, The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the adaptive single-wire dimming method according to any one of claims 1 to 10.

13. An adaptive single-wire dimming processor, characterized in that, The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the steps of the adaptive single-wire dimming method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the steps of the adaptive single-wire dimming method according to any one of claims 1 to 10.