A dimming method, device and equipment of a lamp and a storage medium

By adjusting the frequency and duty cycle of the control signal and calculating the effective value of the output current of the switching power supply, the problem of brightness stepwise changes and noise during the off period of the chopper-type dimming circuit of the switching power supply is solved, and the stepless smooth dimming effect of the lamp is realized.

CN116095902BActive Publication Date: 2026-04-07HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-02
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

The switching power supply chopper-type dimming circuit causes a stepped change in the brightness of the lamp during the off period, and the frequency of the dimming circuit cannot be set too high, causing noise problems.

Method used

By adjusting the frequency and duty cycle of the control signal, the effective value of the output current of the switching power supply is calculated, thereby achieving stepless and smooth dimming of the lamps and reducing noise interference.

Benefits of technology

It achieves stepless and smooth changes in lamp brightness, reduces noise generated by the switching power supply, and improves the dimming consistency of the dimming circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095902B_ABST
    Figure CN116095902B_ABST
Patent Text Reader

Abstract

This application provides a dimming method, apparatus, device, and storage medium for a lighting fixture, relating to the field of lighting technology. A dimming method for a lighting fixture includes: acquiring parameters of a control signal for a dimming circuit; the parameters of the control signal include the period, frequency, high-level period after chopping, and duty cycle of the control signal; acquiring the effective value of the output current of a switching power supply based on the period and high-level period after chopping of the control signal and the hardware parameters of the dimming circuit; and adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal during the dimming process from low to high, so as to dim the lighting fixture using the adjusted effective value of the output current. According to embodiments of this application, dimming can be achieved by adjusting the frequency and duty cycle of the control signal, which ensures a smooth, stepless change during dimming and reduces the dimming range that generates audible noise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting technology, and more specifically, to a dimming method, apparatus, device, and storage medium for a luminaire. Background Technology

[0002] Currently, switching power supply chopper-type dimming circuits have become the mainstream deep dimming products. Switching power supply chopper-type dimming circuits are relatively easy to implement deep dimming and have good dimming consistency.

[0003] The inventors of this application have discovered that during the off period of the switching power supply, changes in the control signal do not affect the effective value of the output current of the switching power supply, thereby causing the dimming circuit to produce a stepped brightness change of the lamp during the dimming process.

[0004] In situations where deep dimming of the lighting fixtures is required, the control signal frequency of the dimming circuit cannot be set too high due to the limitations of the control chip, causing the components of the dimming circuit to generate noise that is audible to the human ear. Summary of the Invention

[0005] According to one aspect of this application, a dimming method for a lamp is provided, comprising: acquiring parameters of a control signal of a dimming circuit; the parameters of the control signal including the period, frequency, high-level period after chopping, and duty cycle of the control signal; acquiring an effective value of the output current of a switching power supply based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit; and adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal during the dimming process of the lamp from low to high, so as to dim the lamp by means of the adjusted effective value of the output current.

[0006] According to some embodiments, obtaining the effective value of the output current of the switching power supply based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit includes: obtaining the hardware parameters of the dimming circuit, the hardware parameters of the dimming circuit including the period during which the effective value of the output current reaches its maximum value, preset parameters of the switching power supply, and control parameters of the switching power supply; and calculating the effective value of the output current during the low brightness stage, the brightness increase stage, and the high brightness stage of the lamp based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit.

[0007] According to some embodiments, the effective value of the output current during the low-brightness phase, the brightness-increasing phase, and the high-brightness phase of the lamp is calculated based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit. This includes: calculating the effective value of the output current during the low-brightness phase and the brightness-increasing phase of the lamp based on the period of the control signal, the high-level period after chopping, and the preset parameters of the switching power supply when the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value; and calculating the effective value of the output current during the high-brightness phase of the lamp based on the period of the control signal, the high-level period after chopping, the period when the effective value of the output current reaches its maximum value, and the control parameters of the switching power supply when the high-level period after chopping is greater than the period when the effective value of the output current reaches its maximum value.

[0008] According to some embodiments, adjusting the effective value of the output current based on the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current includes: adjusting the frequency and duty cycle of the control signal based on a preset minimum output high-level period of the control signal when the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceptible to the human ear; and dimming the lamp during its low-brightness phase based on the effective value of the output current obtained after adjusting the frequency and duty cycle of the control signal.

[0009] According to some embodiments, adjusting the effective value of the output current based on the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current further includes: increasing the duty cycle of the control signal when the high-level period after chopping is less than the period during which the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceptible to the human ear, so that the high-level period after chopping is increased and the high-level period after chopping is less than the period during which the effective value of the output current reaches its maximum value; increasing the frequency of the control signal; and dimming the lamp during the brightness enhancement phase based on the effective value of the output current obtained after increasing the frequency of the control signal.

[0010] According to some embodiments, adjusting the effective value of the output current based on the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current further includes: adjusting the duty cycle of the control signal when the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, so that the ratio of the off-time of the switching power supply to the period of the control signal is less than a preset minimum change accuracy of the duty cycle of the control signal; and dimming the lamp during the high-brightness phase based on the effective value of the output current obtained after adjusting the duty cycle of the control signal.

[0011] According to some embodiments, the parameters of the control signal include the frequency of the control signal; adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal to dim the lamp by means of the adjusted effective value of the output current includes: dimming the lamp by combining the frequency of the control signal and the effective value of the output current with a logarithmic curve.

[0012] According to one aspect of this application, a dimming device for a lamp is provided, comprising: a data acquisition module for acquiring parameters of a control signal and parameters of a dimming circuit; a data processing module for calculating the effective value of the output current of a switching power supply based on the period of the control signal and the high-level period after chopping, as well as the parameters of the dimming circuit; adjusting the frequency of the control signal and / or the duty cycle of the control signal; and a dimming module for dimming the lamp based on the effective value of the output current obtained by adjusting the frequency of the control signal and / or the duty cycle of the control signal.

[0013] According to one aspect of this application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs; and, when the one or more programs are executed by the one or more processors, causing the one or more processors to perform the method as described above.

[0014] According to one aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method as described above.

[0015] According to the embodiments of this application, the technical solution of this application controls the effective value of the output current of the switching power supply by adjusting the frequency and duty cycle of the control signal, thereby ensuring stepless and smooth changes during the dimming process of the lamp.

[0016] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application.

[0018] Figure 1 This diagram shows a waveform of the output current of the switching power supply in a chopper-type dimming circuit in the prior art.

[0019] Figure 2 This diagram shows the waveform of the output current of the switching power supply after chopping in a chopper-type dimming circuit in the prior art.

[0020] Figure 3 A flowchart illustrating a dimming method for a lamp according to an example embodiment of this application is shown.

[0021] Figure 4 A dimming flowchart of a luminaire according to an example embodiment of this application is shown.

[0022] Figure 5 A block diagram of a dimming device for a lamp according to an example embodiment of this application.

[0023] Figure 6 A block diagram of an electronic device according to an example embodiment of this application is shown. Detailed Implementation

[0024] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0025] The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of these specific details, or other methods, components, materials, apparatus, or operations may be employed. In these cases, well-known structures, methods, apparatuses, implementations, materials, or operations will not be shown or described in detail.

[0026] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0027] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0028] This application provides a dimming method, apparatus, device, and storage medium for a lamp, which can solve the problem of stepped brightness changes in the dimming circuit during the switching power supply shutdown period, as well as the noise problem of the dimming circuit caused by the inability to set the dimming chopping frequency too high.

[0029] The dimming method, apparatus, device, and storage medium of a lamp according to embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0030] Figure 1 This diagram shows a waveform of the output current of the switching power supply in a chopper-type dimming circuit in the prior art.

[0031] like Figure 1 As shown, Figure 1 The waveform on the upper side is the waveform of the PWM control signal. Figure 1 The bottom shows the waveform of the output current of the switching power supply.

[0032] like Figure 1 As shown, during the conduction period of the switching transistor in the switching power supply, during the high-level period of the PWM control signal, the effective value of the output current of the switching power supply is in time period t. up The value gradually increases to its maximum value I. max , i.e. t up This refers to the time period during which the effective value of the output current reaches its maximum. At t... up During the specified time period, the output current of the switching power supply can achieve stepless variation.

[0033] The waveform of the switching power supply output current after chopping is as follows: Figure 2 As shown, where, Figure 2 The waveform on the top is the waveform after the PWM control signal has been chopped. Figure 2 The lower part shows the waveform of the output current after chopping by the switching power supply, t on t represents the high-level period after the PWM control signal is chopped. off The current drop range of the switching power supply output after the PWM control signal is turned off is defined as T, where T is the period of the PWM control signal, and I is the current drop range of the switching power supply output. pk This represents the maximum value of the switch output current after chopping.

[0034] When the output current of the switching power supply reaches the maximum current I of the dimming circuit max Afterwards, the output current of the switching power supply varies within the preset ripple current of the dimming circuit. When the output current of the switching power supply reaches I... max The turn-off period t of the switching transistor in the subsequent switching power supply non The output current of the switching power supply is in the decreasing range, and at t non The output current of the switching power supply does not change with the PWM control signal during the time period.

[0035] When the PWM control signal is off, the output current of the switching power supply is as follows: Figure 1 The descending interval t down , or as Figure 2 The descending interval t off .

[0036] According to some embodiments, the operating current of a luminaire (such as an LED lamp) is linearly related to its luminous intensity. When the operating current of the luminaire changes in a logarithmic curve, the luminous intensity of the luminaire can also change in a logarithmic curve, matching the logarithmic curve of the human eye's sensitivity to light, thereby achieving a linear change perceived by the human eye.

[0037] like Figure 1 As shown, during the logarithmic curve dimming process of the luminaire, when the output current of the switching power supply is relatively small, the effective value of the current changes little, resulting in low operating power and low luminous intensity for the luminaire. If there exists a period t where the output current of the switching power supply does not change with the PWM control signal... non During a given period, the output current of the switching power supply will change in a stepped manner, and consequently, the luminous intensity of the lamp will also change in a stepped manner. Therefore, the dimming circuit can extend the period t during which the effective value of the switching power supply output current reaches its maximum value. up Duration and increase t up The stepless dimming of the lamps is achieved during periods when the output current of the switching power supply is relatively low, based on the proportion of the PWM control signal cycle.

[0038] According to some embodiments, the dimming circuit is used when the luminous intensity of the lamp is ≤t. up *F, and t on ≤t up When F ≤ 20KHz, the lamp can be infinitely dimmed, where F is the highest frequency of the PWM control signal.

[0039] Figure 3 A flowchart illustrating a dimming method for a lamp according to an example embodiment of this application is shown.

[0040] like Figure 3 As shown, in step S110, the dimming device acquires the parameters of the control signal of the dimming circuit.

[0041] For example, in step S110, the dimming device obtains relevant parameters of the control signal based on the waveform of the control signal, including the period of the control signal, the frequency of the control signal, and the high-level period after the control signal is chopped.

[0042] In step S120, the dimming device obtains the effective value of the output current of the switching power supply based on the parameters of the control signal and the hardware parameters of the dimming circuit.

[0043] For example, in step S120, the dimming device also obtains relevant parameters of the dimming circuit through the hardware configuration of the dimming circuit, including the time period when the effective value of the output current of the switching power supply reaches the maximum value, the preset parameters of the switching power supply, and the control parameters of the switching power supply.

[0044] The preset parameters of the switching power supply in the dimming circuit include the input voltage, output voltage, and inductance of the switching power supply. The control parameters of the switching power supply in the dimming circuit include the preset control coefficient, the maximum output current of the switching power supply after chopping, the input voltage, output voltage, and inductance of the switching power supply.

[0045] When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value, the dimming device calculates the effective value of the output current I of the switching power supply according to the parameters of the control signal and the preset parameters of the switching power supply in the dimming circuit parameters using formula (1):

[0046]

[0047] Among them, t on To control the high-level period after signal chopping, V in V is the input voltage of the switching power supply. o L is the output voltage of the switching power supply, L is the inductance, and T is the period of the control signal.

[0048] According to some embodiments, V in formula (1) in V o Since L is a constant in a given dimming circuit, the effective value of the output current I of the switching power supply only changes with the high-level period t after chopping. on It is related to the period T of the control signal.

[0049] When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value, the dimming device calculates the effective value of the output current I of the switching power supply using formula (2) based on the parameters of the control signal and the dimming circuit parameters, the period when the effective value of the output current reaches its maximum value, and the control parameters of the switching power supply.

[0050]

[0051] Where K is a preset control coefficient and K < 1, I pk t represents the maximum output current of the switching power supply after chopping. on To control the high-level period after signal chopping, t up V represents the period during which the effective value of the switching power supply output current reaches its maximum value. in V is the input voltage of the switching power supply. o L is the output voltage of the switching power supply, L is the inductance, and T is the period of the control signal.

[0052] According to some embodiments, K and I in formula (2) pk t up V in V o Since L is a constant in a given dimming circuit, the effective value of the output current I of the switching power supply only changes with the high-level period t after chopping. on It is related to the period T of the control signal.

[0053] In step S130, the dimming device adjusts the effective value of the output current according to the frequency and / or duty cycle of the control signal, so as to dim the lamp by means of the adjusted effective value of the output current.

[0054] For example, in step S130, when the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest perceptible frequency of the human ear (usually 20KHz), the switching power supply is in a low current output period, and the lamp is in a low brightness stage.

[0055] The dimming device adjusts the frequency of the control signal so that the frequency of the control signal does not exceed the frequency corresponding to the minimum high-level output period of the preset control signal, and adjusts the duty cycle of the control signal so that it is lower than the duty cycle threshold of the low current output period of the preset switching power supply.

[0056] The dimming device obtains the adjusted effective value of the output current according to the frequency and duty cycle of the adjusted control signal through formula (1) to dim the lamp, including the deep dimming of the lamp.

[0057] According to some embodiments, the dimming device can simultaneously adjust the frequency and duty cycle of the control signal, or it can alternately adjust the frequency and duty cycle of the control signal.

[0058] Furthermore, when the high-level period after chopping gradually increases and becomes less than the period when the effective value of the output current reaches its maximum value, and the highest frequency of the control signal is less than or equal to the highest perceptible frequency of the human ear, the dimming device increases the duty cycle of the control signal so that the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value, and there is a certain margin between the high-level period after chopping and the period when the effective value of the output current reaches its maximum value. At this time, the lamp is in the brightness increase stage.

[0059] After adjusting the duty cycle of the control signal, the dimming device increases the frequency of the control signal, ensuring that the frequency does not exceed the highest perceptible frequency of the human ear. The dimming device then uses the formula (1) above to calculate the effective value of the output current of the switching power supply, which increases with the increase of the control signal frequency.

[0060] Based on the frequency of the control signal and the effective value of the output current of the switching power supply obtained by formula (1), the dimming device performs stepless dimming of the lamp by combining the logarithmic curve.

[0061] When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the switching power supply is in a high-current output period, and the lamp is in a high-brightness stage.

[0062] The dimming device uses a logarithmic curve to adjust the duty cycle of the control signal, so that the ratio t of the off-time of the switching power supply to the period of the control signal is... non / T is less than the preset minimum duty cycle change accuracy of the control signal (i.e., the ratio of the minimum duty cycle of the control signal to the period of the control signal).

[0063] The dimming device calculates the effective value of the output current of the switching power supply according to the duty cycle of the adjusted control signal using the above formula (2), and uses this to perform smooth dimming of the lamp.

[0064] According to the embodiments of this application, the dimming device obtains the effective value of the output current of the switching power supply by increasing the frequency of the control signal and increasing the duty cycle of the control signal, and performs dimming, thereby ensuring stepless and smooth changes during dimming and reducing the dimming range of noise generated by the switching power supply.

[0065] Figure 4 A dimming flowchart of a luminaire according to an example embodiment of this application is shown.

[0066] like Figure 4 As shown, in step S210, when the lamp is in a low brightness stage, the dimming device dims the lamp by adjusting the frequency and duty cycle of the control signal.

[0067] For example, in step S210, when the high-level period after chopping is less than or equal to the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest perceptible frequency of the human ear (typically 20kHz), the switching power supply is in a low-current output period. Since the operating current of a fixed lamp is linearly related to its luminous intensity, when the switching power supply is in a low-current output stage, the lamp is in a low-power operating state with a relatively low operating current, and its luminous intensity is at the low end of the luminous intensity range.

[0068] According to some embodiments, the control signal has a minimum high-level time, and the dimming device cannot adjust the frequency of the control signal too high when the switching power supply is in the low current output stage to perform deep dimming of the lamp.

[0069] Therefore, when the switching power supply is in the low current output stage, the dimming device adjusts the frequency of the control signal to no more than the frequency corresponding to the minimum output high level period of the preset control signal, and adjusts the duty cycle of the control signal to be lower than the preset duty cycle threshold of the low current output period of the switching power supply, so as to dim the lamp.

[0070] In step S220, when the lamp is in the brightness increase stage, the dimming device dims the lamp by adjusting the frequency of the control signal.

[0071] For example, in step S220, as the effective value of the output current of the switching power supply continues to increase, the dimming device increases the duty cycle of the control signal until the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value, and there is a certain margin between the high-level period after chopping and the period when the effective value of the output current reaches its maximum value, and the frequency of the control signal is increased to increase the effective value of the output current of the switching power supply.

[0072] The dimming device obtains the effective value of the output current of the switching power supply, which increases with the frequency of the control signal, through formula (1), and dims the lamps by using the frequency of the control signal and the effective value of the output current.

[0073] In step S230, when the lamp is at high brightness, the dimming device dims the lamp by adjusting the duty cycle of the control signal.

[0074] For example, in step S230, when the dimming device increases the duty cycle of the control signal so that the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value, and the dimming device increases the frequency of the control signal so that the frequency of the control signal is higher than the highest perceptible frequency of the human ear, the output current of the switching power supply is larger, and the square of the rate of change of the output current is proportional to the rate of change of the high-level period after chopping.

[0075] To ensure the output current of the switching power supply conforms to the logarithmic curve, the dimming device adjusts the duty cycle of the control signal to control the effective value of the output current of the switching power supply. During the adjustment of the duty cycle of the control signal, the ratio t of the switching power supply's off-time to the period of the control signal is controlled by the dimming device. non / T is less than the minimum change accuracy of the duty cycle of the preset control signal, so that the dimming device can obtain the effective value of the output current of the switching power supply according to the adjusted duty cycle of the control signal through formula (2), and dim the lamp accordingly.

[0076] According to the embodiments of this application, the dimming device dims lamps in different states by adjusting the combination of the frequency and duty cycle of the control signal, ensuring the accuracy and dimming depth of the dimming circuit, and achieving stepless dimming that matches the logarithmic curve change of the human eye's sensitivity to light.

[0077] Figure 5 A block diagram of a dimming device for a lamp according to an example embodiment of this application.

[0078] like Figure 5 As shown, the dimming device 300 includes a data acquisition module 310, a data processing module 320, and a dimming module 330.

[0079] The data acquisition module 310 is used to acquire parameters of the control signal, including the period and frequency of the control signal and the high-level period after the control signal is chopped.

[0080] The data acquisition module 310 is also used to acquire parameters of the dimming circuit, including the time period during which the effective value of the output current reaches its maximum value, the input voltage of the switching power supply, the output voltage of the switching power supply, the inductance, the preset control coefficient, and the maximum output current of the switching power supply after chopping.

[0081] The data processing module 320 calculates the effective value of the output current of the switching power supply according to the parameters of the control signal obtained by the data acquisition module 310 and the parameters of the dimming circuit, respectively, using formula (1) and formula (2).

[0082] When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency that the human ear can perceive, the data processing module 320 adjusts the frequency and duty cycle of the control signal according to the preset minimum output high-level period of the control signal.

[0083] When the high-level period after chopping is shorter than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceived by the human ear, the data processing module 320 increases the duty cycle of the control signal so that the high-level period after chopping is longer and shorter than the period when the effective value of the output current reaches its maximum value, and increases the frequency of the control signal.

[0084] When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the data processing module 320 adjusts the duty cycle of the control signal so that the ratio of the off period of the switching power supply to the period of the control signal is less than the preset minimum change accuracy of the duty cycle of the control signal.

[0085] When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceived by the human ear, the dimming module 330 dims the lamp according to the effective value of the output current obtained after adjusting the frequency and duty cycle of the control signal.

[0086] When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency that the human ear can perceive, the dimming module 330 dims the lamp according to the effective value of the output current obtained after increasing the frequency of the control signal.

[0087] When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the dimming module 330 dims the lamp according to the effective value of the output current obtained after adjusting the duty cycle of the control signal.

[0088] Figure 6 A block diagram of an electronic device according to an example embodiment of this application is shown.

[0089] like Figure 6 As shown, the electronic device 600 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0090] like Figure 6As shown, the electronic device 600 is manifested in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc. The storage unit stores program code, which can be executed by the processing unit 610, causing the processing unit 610 to perform the methods described in this specification according to the various exemplary embodiments of this application. For example, the processing unit 610 can perform, for example... Figure 3 The method shown.

[0091] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.

[0092] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0093] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0094] Electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0095] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. The technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this application.

[0096] Software products may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0097] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0098] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0099] The aforementioned computer-readable medium carries one or more programs, which, when executed by a device, cause the computer-readable medium to perform the aforementioned functions.

[0100] Those skilled in the art will understand that the above modules can be distributed in the device as described in the embodiments, or they can be modified to be uniquely different from one or more devices in this embodiment. The modules in the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.

[0101] According to some embodiments of this application, the technical solution of this application reduces the power supply turn-off time by adjusting the frequency and duty cycle of the control signal, thereby reducing the impact on the dimming circuit caused by the lack of external control signal control during the power supply turn-off period and realizing stepless dimming of the lamp.

[0102] The embodiments of this application have been described in detail above. These descriptions are solely for the purpose of helping to understand the method and core ideas of this application. Furthermore, any changes or modifications made by those skilled in the art based on the ideas of this application, its specific implementation methods, and its application scope, are all within the scope of protection of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A dimming method for a lamp, characterized in that, include: Obtain the parameters of the control signal for the dimming circuit; the parameters of the control signal include the period, frequency, high-level period after chopping, and duty cycle of the control signal; The effective value of the output current of the switching power supply is obtained based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit. During the dimming process of the lamp from low to high brightness, the effective value of the output current is adjusted according to the frequency and / or duty cycle of the control signal, so as to dim the lamp by means of the adjusted effective value of the output current; The method of obtaining the effective value of the output current of the switching power supply based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit includes: calculating the effective value of the output current during the low-brightness stage, the brightness-increasing stage, and the high-brightness stage of the lamp based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit; wherein the effective value of the output current of the switching power supply is only related to the high-level period after chopping and the period of the control signal; Adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current includes: When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceived by the human ear, the frequency and duty cycle of the control signal are adjusted according to the preset minimum high-level period of the control signal; the dimming of the lamp in the low-brightness stage is performed based on the effective value of the output current obtained after adjusting the frequency and duty cycle of the control signal. Increase the duty cycle of the control signal so that the high-level period after chopping is longer and the high-level period after chopping is shorter than the period when the effective value of the output current reaches its maximum value; increase the frequency of the control signal; and dim the lamp during the brightness increase phase based on the effective value of the output current obtained after increasing the frequency of the control signal. If the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the duty cycle of the control signal is adjusted so that the ratio of the off period of the switching power supply to the period of the control signal is less than the preset minimum change accuracy of the duty cycle of the control signal; the high-brightness phase of the lamp is dimmed based on the effective value of the output current obtained after adjusting the duty cycle of the control signal. The parameters of the control signal include the frequency of the control signal; Adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current includes: The lamp is dimmed based on the frequency of the control signal and the effective value of the output current, combined with a logarithmic curve.

2. The method according to claim 1, characterized in that, The effective value of the output current of the switching power supply is obtained based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit. The method further includes: Obtain the hardware parameters of the dimming circuit, which include the time period during which the effective value of the output current reaches its maximum value, preset parameters of the switching power supply, and control parameters of the switching power supply.

3. The method according to claim 2, characterized in that, Based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit, the effective value of the output current during the low-brightness phase, the increasing-brightness phase, and the high-brightness phase of the lamp is calculated, including: If the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value, the effective value of the output current during the low-brightness phase and the brightening phase of the lamp is calculated based on the period of the control signal, the high-level period after chopping, and the preset parameters of the switching power supply. If the high-level period after chopping is longer than the period during which the effective value of the output current reaches its maximum value, the effective value of the output current during the high-brightness stage of the lamp is calculated based on the period of the control signal, the high-level period after chopping, the period during which the effective value of the output current reaches its maximum value, and the control parameters of the switching power supply.

4. A dimming device for a lamp, characterized in that, include: The data acquisition module is used to acquire the parameters of the control signals and the dimming circuit. The data processing module calculates the effective value of the output current of the switching power supply based on the period of the control signal, the high-level period after chopping, and the parameters of the dimming circuit. Adjust the frequency of the control signal and / or the duty cycle of the control signal; The dimming module dims the lamps based on the effective value of the output current obtained by adjusting the frequency of the control signal and / or the duty cycle of the control signal. The method of obtaining the effective value of the output current of the switching power supply based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit includes: calculating the effective value of the output current during the low-brightness stage, the brightness-increasing stage, and the high-brightness stage of the lamp based on the period of the control signal, the high-level period after chopping, and the hardware parameters of the dimming circuit; wherein the effective value of the output current of the switching power supply is only related to the high-level period after chopping and the period of the control signal; When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency that the human ear can perceive, the data processing module adjusts the frequency and duty cycle of the control signal according to the preset minimum output high-level period of the control signal. When the high-level period after chopping is shorter than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest perceptible frequency of the human ear, the data processing module increases the duty cycle of the control signal to increase the high-level period after chopping and make the high-level period after chopping shorter than the period when the effective value of the output current reaches its maximum value, and increases the frequency of the control signal. When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the data processing module adjusts the duty cycle of the control signal so that the ratio of the off period of the switching power supply to the period of the control signal is less than the preset minimum change accuracy of the duty cycle of the control signal. When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency perceived by the human ear, the dimming module dims the lamp during the low-brightness stage based on the effective value of the output current obtained after adjusting the frequency and duty cycle of the control signal. When the high-level period after chopping is less than the period when the effective value of the output current reaches its maximum value and the highest frequency of the control signal is less than or equal to the highest frequency of human hearing, the dimming module dims the lamp's brightness during the brightness increase phase based on the effective value of the output current obtained after increasing the frequency of the control signal. When the high-level period after chopping is longer than the period when the effective value of the output current reaches its maximum value and the frequency of the control signal is greater than the highest perceptible frequency of the human ear, the dimming module dims the lamp during the high-brightness stage based on the effective value of the output current obtained after adjusting the duty cycle of the control signal. Adjusting the effective value of the output current according to the frequency and / or duty cycle of the control signal to dim the lamp using the adjusted effective value of the output current includes: The lamp is dimmed based on the frequency of the control signal and the effective value of the output current, combined with a logarithmic curve.

5. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method for realizing stroboflash-free and noise-free PWM dimming

    CN110881234A

  • Dimming control method and dimming circuit

    CN113727486A