LED Driving Power Supply Control Method, Device, Storage Medium and Electronic Device
By monitoring the phase-cut voltage oscillation to adjust the gradient step value and generating PWM digital control signal, the flashing problem of LED driver power supply in complex scenarios is solved, and the smooth change of light brightness is achieved.
Patent Information
- Application Number
- CN202210394903.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-14
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-04-14
AI Technical Summary
In the prior art, LED driver power supply is difficult to flexibly control in complex application scenarios, causing LED lights to flicker under oscillating input signals, affecting user experience.
By monitoring the oscillation of the phase-cut voltage, adjust the gradient step value and generate the PWM digital control signal to extend the dimming time and avoid the LED light flickering.
Under the oscillating input signal, the light brightness changes slowly, reducing flickering and improving user experience.
Smart Images

Figure CN114698190B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of LEDs, and more particularly, to a method, device, storage medium, and electronic device for controlling an LED driving power supply. Background Art
[0002] With the development of society and the progress of science, LED lights are applied to various scenarios. LED lights need to be controlled by an LED driving power supply. The LED driving power supply is a power converter that converts the power supply into a specific voltage and current to drive the LED to emit light. Generally, the input of the LED driving power supply includes high-voltage industrial frequency alternating current (i.e., commercial power), low-voltage direct current, high-voltage direct current, low-voltage high-frequency alternating current (such as the output of an electronic transformer), etc. And the output of the LED driving power supply is mostly a constant current source whose voltage can change with the forward voltage drop value of the LED.
[0003] By controlling the LED driving power supply, the LED lights can be managed and controlled. How to flexibly control the LED driving power supply in the current complex multi-application scenarios has become a difficult problem that concerns those skilled in the art. Summary of the Invention
[0004] The purpose of the present application is to provide a method, device, storage medium, and electronic device for controlling an LED driving power supply to at least partially improve the above problems.
[0005] To achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for controlling an LED driving power supply, the method including:
[0007] Determining whether a first type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage;
[0008] wherein the first type of oscillation represents periodic fluctuating changes around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold;
[0009] If the first type of oscillation occurs, adjusting the gradual change step value to be greater than a preset step threshold;
[0010] Performing gradual dimming based on the current phase-cutting voltage and the gradual change step value to generate a corresponding PWM digital control signal, where the PWM digital control signal is used as the control signal for the LED driving power supply.
[0011] In a second aspect, an embodiment of the present application provides an LED driving power supply control device, the device including:
[0012] A processing unit, configured to determine whether a first type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage;
[0013] Among them, the first type of oscillation is characterized by periodic fluctuations around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold;
[0014] The processing unit is further configured to, if the first type of oscillation occurs, adjust the gradual step value to be greater than a preset step threshold;
[0015] An execution unit is configured to perform gradual dimming according to the current phase-cutting voltage and the gradual step value to generate a corresponding PWM digital control signal, where the PWM digital control signal is used as a control signal for an LED driving power supply.
[0016] In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0017] In a fourth aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a processor and a memory, and the memory is configured to store one or more programs; when the one or more programs are executed by the processor, the above method is implemented.
[0018] Compared with the prior art, a method, device, storage medium, and electronic device for controlling an LED driving power supply provided by an embodiment of the present application include: determining whether the first type of oscillation occurs according to the current phase-cutting voltage and the historical phase-cutting voltage; among them, the first type of oscillation is characterized by periodic fluctuations around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold; if the first type of oscillation occurs, adjust the gradual step value to be greater than a preset step threshold; perform gradual dimming according to the current phase-cutting voltage and the gradual step value to generate a corresponding PWM digital control signal, where the PWM digital control signal is used as a control signal for an LED driving power supply. When the first type of oscillation occurs, by adjusting the gradual step value to be greater than a preset step threshold, the dimming time in the intermediate process is lengthened, and the change in the light brightness is slow, and no obvious flicker change can be seen in the brightness of the LED lamp from the naked-eye perception.
[0019] To make the above objects, features, and advantages of the present application more obvious and understandable, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. Description of the Drawings
[0020] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained according to these drawings without creative efforts.
[0021] Figure 1 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application;
[0022] Figure 2 It is one of the schematic structural diagrams of the electronic device provided by the embodiment of the present application;
[0023] Figure 3 It is a schematic flowchart of the LED driving power supply control method provided by the embodiment of the present application;
[0024] Figure 4 It is a waveform diagram of the output current (C4) under the condition of A / D input (C1) disturbance provided by the embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of the sub-steps of S109 provided by the embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of the PWM-ADC relationship provided by the embodiment of the present application;
[0027] Figure 7 It is a schematic diagram of the units of the LED driving power supply control device provided by the embodiment of the present application.
[0028] In the figure: 10 - processor; 11 - memory; 12 - bus; 13 - communication interface; 14 - thyristor phase-cutting voltage acquisition circuit; 15 - LED driving power supply; 201 - processing unit; 202 - execution unit. Specific embodiments
[0029] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. Usually, the components of the embodiments of the present application described and illustrated herein can be arranged and designed in various different configurations.
[0030] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0031] It should be noted that like reference numerals and letters denote like items in the following figures, and thus, once an item is defined in one figure, further definition and explanation thereof is not required in subsequent figures. Also, in the description of the present application, terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be construed as indicating or implying relative importance.
[0032] It should be noted that, in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not preclude the existence of additional identical elements in the process, method, article or device comprising the said element.
[0033] In the description of the present application, it should be noted that the orientation or positional relationship indicated by terms such as "upper", "lower", "inner", "outer", etc. is based on the orientation or positional relationship shown in the figures, or the orientation or positional relationship in which the product of this application is customarily placed during use. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation on the present application.
[0034] In the description of the present application, it should also be noted that unless otherwise clearly specified and defined, the terms "arrange", "connect" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0035] The following will describe in detail some embodiments of the present application with reference to the figures. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0036] TRIAC-based dimmers can be used for resistive loads such as incandescent lamps. However, when they are used for non-linear loads such as switched LED power supplies, flickering problems may occur. This is due to insufficient holding current, where the current consumed by the LED lamp is less than the holding current of the thyristor, as well as current oscillations, etc., often triggered during the TRIAC conduction period. To ensure reliable followability when users adjust the LED brightness using a thyristor dimmer, the gradual step value Step is often set to a low value so that the light can reach the target brightness faster. Therefore, in the presence of an oscillating input signal externally, the ADC input voltage input to the microcontroller will also oscillate. If no processing is done and the ADC-PWM relationship diagram is directly used for gradual dimming, since the gradual change time is short and fixed, the Duty Next output during the intermediate process will also oscillate with the input change, causing the output current at the backend to fluctuate and resulting in the LED lamp flickering. Prolonged exposure to such a lighting environment by the human eye can easily cause discomfort in perception.
[0037] An embodiment of the present application provides an electronic device. Please refer to Figure 1 , the structural schematic diagram of the electronic device. The electronic device includes a processor 10, a memory 11, and a bus 12. The processor 10 and the memory 11 are connected through the bus 12. The processor 10 is used to execute an executable module stored in the memory 11, such as a computer program.
[0038] The processor 10 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the LED drive power control method can be completed through the integrated logic circuit in the hardware of the processor 10 or instructions in software form. The above-mentioned processor 10 can be a general-purpose processor, including a central processing unit (CPU for short) and a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0039] The memory 11 may include a high-speed random access memory (RAM: Random Access Memory), and may also include non-volatile memory, such as at least one disk memory.
[0040] The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Figure 1 Although only one bidirectional arrow is used in the figure, it does not mean that there is only one bus 12 or only one type of bus 12 .
[0041] The memory 11 is used to store programs, such as programs corresponding to the LED driving power supply control device. The LED driving power supply control device includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or fixed in the operating system (OS) of the electronic device. After receiving the execution instruction, the processor 10 executes the program to implement the LED driving power supply control method.
[0042] Possibly, the electronic device provided in the embodiment of the present application further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.
[0043] Alternatively, if Figure 2 As shown, the electronic device also includes a thyristor phase-cut voltage acquisition circuit 14 and an LED driving power supply 15, and the thyristor phase-cut voltage acquisition circuit 14, the processor 10, and the LED driving power supply 15 are connected in sequence. The thyristor phase-cut voltage acquisition circuit 14 is used to collect the phase-cut voltage and transmit the phase-cut voltage to the processor 10. The phase-cut voltage is equivalent to an analog dimming signal. The processor 10 is used to receive the phase-cut voltage, and use the phase-cut voltage to execute the LED driving power supply control method provided by the present application scheme to generate a corresponding PWM digital control signal. The processor 10 is also used to transmit the PWM digital control signal to the LED driving power supply 15, wherein the PWM digital control signal is used as a control signal of the LED driving power supply 15.
[0044] It should be understood that Figure 1 and Figure 2 The structure shown is only a schematic diagram of a portion of the electronic device. The electronic device may also include Figure 1 and Figure 2 More or fewer components as shown, or with Figure 1 and Figure 2 Different configurations are shown. Figure 1 and Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0045] The LED driving power supply control method provided in the embodiment of the present application can be applied to but not limited toFigure 1 and Figure 2 For the electronic device shown, for the specific process, please refer to Figure 3 , the LED driving power supply control method includes: S101, S102, and S109, which are specifically described as follows.
[0046] S101, determine whether a first type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage. If so, execute S102; if not, execute S103.
[0047] Among them, the first type of oscillation represents periodic fluctuations around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold.
[0048] The historical phase-cutting voltage can be the phase-cutting voltage value within a preset time length before the acquisition time of the current phase-cutting voltage.
[0049] It should be understood that when the first type of oscillation occurs, it means that the fluctuation amplitude of the phase-cutting voltage is large, that is, the input fluctuation amplitude of the processor 10 is large, and the input disturbance will cause unstable output. Visually, the brightness on the LED lamp shows obvious flicker changes. To overcome this problem, the gradient step value Step is set to a larger value. For example, when the gradient step value is adjusted to be greater than the preset step threshold, the dimming time in the intermediate process is lengthened, and the brightness change of the lamp is slow. Visually, no obvious flicker change can be seen in the brightness on the LED lamp, making the LED lamp in a similar static mode. Therefore, when the first type of oscillation occurs, S102 can be executed. Otherwise, other control processes can be matched and S103 can be executed.
[0050] S102, adjust the gradient step value to be greater than the preset step threshold.
[0051] Optionally, the final size of the gradient step value can be determined by the maximum amplitude. For example, when the maximum amplitude of the phase-cutting voltage is greater than the preset first amplitude threshold, the gradient step value is positively correlated with the maximum amplitude.
[0052] S109, perform gradient dimming based on the current phase-cutting voltage and the gradient step value to generate a corresponding PWM digital control signal.
[0053] Among them, the PWM digital control signal is used as the control signal for the LED driving power supply.
[0054] It should be understood that the PWM digital control signal can control the LED driving power supply to supply power to the LED lighting module, so that the LED lighting module emits light.
[0055] A method for controlling an LED driving power supply provided by an embodiment of the present application includes: determining whether a first type of oscillation occurs based on a current phase-cutting voltage and a historical phase-cutting voltage; wherein, the first type of oscillation represents periodic fluctuating changes around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold; if the first type of oscillation occurs, adjust the gradual step value to be greater than a preset step threshold; perform gradual dimming based on the current phase-cutting voltage and the gradual step value to generate a corresponding PWM digital control signal, where the PWM digital control signal is used as a control signal for the LED driving power supply. When the first type of oscillation occurs, by adjusting the gradual step value to be greater than the preset step threshold, the dimming time in the intermediate process is lengthened, and the change in the light brightness is slow, so that no obvious flicker change can be seen in the brightness of the LED lamp from the naked-eye perception.
[0056] Please continue to refer to Figure 3 , in a possible implementation manner, the method for controlling an LED driving power supply further includes: S103, S104, S105, S106, S107, and S108, which are specifically described as follows.
[0057] S103, determine whether the current phase-cutting voltage is greater than the phase-cutting voltage threshold. If so, execute S104; if not, execute S106.
[0058] S104, determine whether it is in the downward dimming stage based on the change trend of the current phase-cutting voltage and the historical phase-cutting voltage. If so, execute S105; if not, execute S106.
[0059] It should be understood that when the current phase-cutting voltage is greater than the phase-cutting voltage threshold and is in the downward dimming stage, it means that the LED is quickly dimmed downward in a high-brightness state. If the brightness changes slowly, when the power supply is at a high output power, the input power is insufficient, resulting in the phenomenon of LED flash-off. To solve this problem, in the solution of the present application, in the fast-down mode (that is, when the current phase-cutting voltage is greater than the phase-cutting voltage threshold and is in the downward dimming stage), the gradual step value is reduced, that is, execute S105 to adjust the gradual step value to be less than the step threshold, so that the intermediate process of the brightness change is shortened, and the output power can be reduced more quickly, thereby eliminating the LED flash-off phenomenon.
[0060] Optionally, the change trend can be determined by analyzing the current phase-cutting voltage and the historical phase-cutting voltage. For example, the change process of the phase-cutting voltage is 11, 10, 9.5, 9..., and the change trend is downward, indicating that it is in the downward dimming stage.
[0061] S105, adjust the gradual step value to be less than the step threshold.
[0062] Optionally, when the current phase-cutting voltage is greater than the phase-cutting voltage threshold and in the downward dimming stage, the magnitude of the gradual step value is inversely correlated with the change trend of the current phase-cutting voltage and the historical phase-cutting voltage, that is, the steeper the change trend, the smaller the gradual step value.
[0063] Optionally, after S105, S109 can be executed.
[0064] S106, determine whether the second type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage. If so, execute S107; if not, execute S108.
[0065] Among them, the second type of oscillation represents periodic fluctuating changes around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset second amplitude threshold, and the second amplitude threshold is less than the first amplitude threshold.
[0066] It should be understood that when the second type of oscillation occurs, if it is executed normally, it will cause the LED lamp to flicker. At this time, it is necessary to keep the output PWM digital control signal unchanged, that is, execute S107, update the current phase-cutting voltage to the midpoint value of the phase-cutting voltage, and adjust the gradual step value to the step threshold; on the contrary, it is in the dynamic dimming mode, and it is necessary to ensure that the followability of the light change is enhanced and it can be adjusted to the target LED brightness faster, that is, execute S108, and adjust the gradual step value to the step threshold.
[0067] S107, update the current phase-cutting voltage to the midpoint value of the phase-cutting voltage to fix the duty cycle of the PWM digital control signal.
[0068] It should be understood that if the current phase-cutting voltage always remains at the midpoint value of the phase-cutting voltage, the duty cycle of the fixed PWM digital control signal, the PWM digital control signal remains unchanged, and the brightness of the LED remains unchanged, which is equivalent to stopping the gradual dimming.
[0069] S108, adjust the gradual step value to the step threshold.
[0070] It should be understood that when it is detected that the user is turning the dimmer, it will return to the normal gradual step value (step threshold), that is, the dynamic dimming mode, so that the followability of the light change is enhanced at this time and it can be adjusted to the target LED brightness faster.
[0071] Please refer to Figure 4 , Figure 4 For the waveform diagram of the output current (C4) under the disturbance of the A / D input (C1) after applying the LED driving power supply control method provided by the present application. From Figure 4 It can be seen that when there is a large A / D disturbance, the change in the output current is small, and it is basically imperceptible to the human eye in terms of the LED output brightness.
[0072] The LED driver power control method provided by this application aims to change the method of using a fixed gradual dimming step value Step as the dimming time. Instead, it selects a dimming method that monitors the degree and trend of input voltage changes and matches a more suitable current input state in real time. The advantage is that it can avoid or prevent the LED lights from flickering due to too rapid a change in Duty when the Step is small, even in the presence of oscillating input signals. At the same time, it can ensure the smooth and seamless change of the light during normal dimming by the user. Next When the change of Duty is too fast, it will cause the LED lights to flicker. At the same time, it can ensure the smooth and seamless change of the light during normal dimming by the user.
[0073] Based on Figure 3 , regarding how to generate the corresponding PWM digital control signal, the embodiment of this application also provides a possible implementation method. Please refer to Figure 5 , S109 includes: S109-1, S109-2, S109-3, S109-4, and S109-5, which are specifically described as follows.
[0074] S109-1: Determine the target duty cycle based on the current phase-cutting voltage and the PWM duty cycle-phase-cutting voltage mapping relationship.
[0075] Optionally, the processor 10 or the memory 11 stores the A / D values collected at the previous moment and the current moment. The PWM duty cycle-phase-cutting voltage mapping relationship can be a PWM-ADC relationship table. Please refer to Figure 6 , Figure 6 which is a schematic diagram of the PWM-ADC relationship provided by the embodiment of this application. Among them, ADC represents the current phase-cutting voltage, and PWM represents the PWM duty cycle.
[0076] S109-2: Gradually adjust the PWM output duty cycle based on the target duty cycle, the gradual dimming step value, and the PWM output duty cycle corresponding to the previous moment.
[0077] Optionally, the formula for adjusting the PWM output duty cycle is as follows:
[0078]
[0079] where Duty Next represents the adjusted PWM output duty cycle, Duty Src represents the PWM output duty cycle corresponding to the previous moment, Duty Dst represents the target duty cycle, Step represents the gradual dimming step value during the gradual dimming process. When Duty Dst >Duty Src , the formula is an accumulation relationship. When Duty Dst <Duty Src , the formula is a subtraction relationship until DutyDst = Duty Src 。
[0080] S109-3. Generate a corresponding PWM digital control signal according to the adjusted PWM output duty cycle.
[0081] Optionally, the processor 10 outputs a PWM wave with a duty cycle of Duty Next until finally a PWM wave with a duty cycle of the target duty cycle is output.
[0082] S109-4. Determine whether the adjusted PWM output duty cycle is the same as the target duty cycle. If so, execute S109-5; if not, execute S109-2.
[0083] It should be noted that the Duty determined at the previous moment Next is equivalent to the PWM output duty cycle Duty corresponding to the previous moment at this time Src 。
[0084] S109-5. End.
[0085] Please refer to Figure 7 , Figure 7 which is a LED driving power supply control device provided by an embodiment of the present application. Optionally, the LED driving power supply control device is applied to the electronic device described above.
[0086] The LED driving power supply control device includes: a processing unit 201 and an execution unit 202.
[0087] The processing unit 201 is configured to determine whether a first type of oscillation occurs according to the current phase-cutting voltage and the historical phase-cutting voltage;
[0088] wherein, the first type of oscillation represents periodic fluctuation around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold;
[0089] The processing unit 201 is further configured to, if the first type of oscillation occurs, adjust the gradual change step value to be greater than a preset step threshold;
[0090] The execution unit 202 is configured to perform gradual dimming according to the current phase-cutting voltage and the gradual change step value to generate a corresponding PWM digital control signal, wherein the PWM digital control signal is used as a control signal for the LED driving power supply.
[0091] Optionally, the execution unit 202 is further configured to determine a target duty cycle according to the current phase-cutting voltage and the PWM duty cycle-phase-cutting voltage mapping relationship; gradually adjust the PWM output duty cycle according to the target duty cycle, the gradient step value, and the PWM output duty cycle corresponding to the previous moment; generate a corresponding PWM digital control signal according to the adjusted PWM output duty cycle; determine whether the adjusted PWM output duty cycle is consistent with the target duty cycle. If not, repeat the step of gradually adjusting the PWM output duty cycle according to the target duty cycle, the gradient step value, and the PWM output duty cycle corresponding to the previous moment until the adjusted PWM output duty cycle is consistent with the target duty cycle.
[0092] Optionally, the processing unit 201 may execute the above S101 - S108; the execution unit 202 may execute the above S109.
[0093] It should be noted that the LED driving power supply control device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve corresponding technical effects. For the sake of brief description, for the parts not mentioned in this embodiment, reference may be made to the corresponding contents in the above embodiments.
[0094] The embodiment of the present application further provides a storage medium, which stores computer instructions and programs. When the computer instructions and programs are read and run, they execute the LED driving power supply control method of the above embodiment. The storage medium may include memory, flash memory, registers, or a combination thereof, etc.
[0095] Next, an electronic device is provided, as Figure 1 shown in the electronic device, which can implement the above LED driving power supply control method; specifically, the electronic device includes: a processor 10, a memory 11, and a bus 12. The processor 10 may be a CPU. The memory 11 is used to store one or more programs. When the one or more programs are executed by the processor 10, the LED driving power supply control method of the above embodiment is executed.
[0096] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0097] In addition, in each embodiment of this application, the various functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.
[0098] If the above functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0099] The above are only the preferred embodiments of this application and are not used to limit this application. For those skilled in the art, this application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.
[0100] For those skilled in the art, it is obvious that the present application is not limited to the details of the above-described exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present application is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be embraced within the present application. Any reference signs in the claims should not be construed as limiting the claims concerned.
Claims
1. A method for controlling an LED driving power supply, characterized in that, The method includes: Determining whether a first type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage; wherein, the first type of oscillation characterizes a periodic fluctuation around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold; If the first type of oscillation occurs, adjusting the gradual step value to be greater than a preset step threshold; Performing gradual dimming according to the current phase-cutting voltage and the gradual step value to generate a corresponding PWM digital control signal, wherein the PWM digital control signal is used as a control signal for an LED driving power supply; In the case where the first type of oscillation does not occur, determining whether the current phase-cutting voltage is greater than a phase-cutting voltage threshold; If the current phase-cutting voltage is greater than the phase-cutting voltage threshold, determining whether it is in a downward dimming stage according to the change trend of the current phase-cutting voltage and the historical phase-cutting voltage; If it is in the downward dimming stage, adjusting the gradual step value to be less than the step threshold.
2. The LED driving power supply control method according to claim 1, wherein The method further includes: When the current phase-cutting voltage is less than or equal to the phase-cutting voltage threshold, or not in the downward stage, determining whether a second type of oscillation occurs according to the current phase-cutting voltage and the historical phase-cutting voltage; wherein, the second type of oscillation characterizes a periodic fluctuation around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset second amplitude threshold, and the second amplitude threshold is less than the first amplitude threshold; If the second type of oscillation occurs, updating the current phase-cutting voltage to the midpoint value of the phase-cutting voltage to fix the duty cycle of the PWM digital control signal.
3. The LED driving power supply control method according to claim 2, wherein The method further includes: If the second type of oscillation does not occur, adjusting the gradual step value to the step threshold.
4. The LED driving power supply control method according to claim 1, characterized in that The performing gradual dimming according to the current phase-cutting voltage and the gradual step value to generate a corresponding PWM digital control signal includes: Determining a target duty cycle according to the current phase-cutting voltage and a PWM duty cycle-phase-cutting voltage mapping relationship; Gradually adjusting the PWM output duty cycle according to the target duty cycle, the gradual step value, and the PWM output duty cycle corresponding to the previous moment; Generating a corresponding PWM digital control signal according to the adjusted PWM output duty cycle; Determining whether the adjusted PWM output duty cycle is consistent with the target duty cycle. If not, repeating the step of gradually adjusting the PWM output duty cycle according to the target duty cycle, the gradual step value, and the PWM output duty cycle corresponding to the previous moment until the adjusted PWM output duty cycle is consistent with the target duty cycle.
5. The LED driving power supply control method according to claim 1, characterized in that The arithmetic formula for adjusting the PWM output duty cycle is: Among them, Duty Next represents the duty cycle of the adjusted PWM output, Duty Src represents the duty cycle of the corresponding PWM output at the previous moment, Duty Dst is the target duty cycle, Step represents the gradual step value in the gradual dimming process. When Duty Dst > Duty Src , the relationship in the formula is an accumulation relationship. When Duty Dst < Duty Src , the relationship in the formula is a subtraction relationship until Duty Dst = Duty Src .
6. An LED driving power control device, characterized in that, The device includes: A processing unit for determining whether a first type of oscillation occurs based on the current phase-cutting voltage and the historical phase-cutting voltage; wherein, the first type of oscillation characterizes a periodic fluctuation around the midpoint value of the phase-cutting voltage, and the maximum amplitude is greater than a preset first amplitude threshold; The processing unit is further configured to, if the first type of oscillation occurs, adjust the gradual step value to be greater than a preset step threshold; An execution unit, configured to perform gradual dimming according to the current phase-cutting voltage and the gradual step value, and generate a corresponding PWM digital control signal, where the PWM digital control signal is used as a control signal for an LED driving power supply; The processing unit is further configured to determine whether the current phase-cutting voltage is greater than a phase-cutting voltage threshold when the first type of oscillation does not occur; if the current phase-cutting voltage is greater than the phase-cutting voltage threshold, determine whether it is in the downward dimming stage according to the change trend of the current phase-cutting voltage and the historical phase-cutting voltage; if it is in the downward dimming stage, adjust the gradual step value to be less than the step threshold.
7. The LED driving power supply control device according to claim 6, characterized in that, The execution unit is further configured to determine a target duty cycle according to the current phase-cutting voltage and the PWM duty cycle-phase-cutting voltage mapping relationship; gradually adjust the PWM output duty cycle according to the target duty cycle, the gradual step value, and the PWM output duty cycle corresponding to the previous moment; Generate a corresponding PWM digital control signal according to the adjusted PWM output duty cycle; Determine whether the adjusted PWM output duty cycle is consistent with the target duty cycle. If not, repeat the step of gradually adjusting the PWM output duty cycle according to the target duty cycle, the gradual step value, and the PWM output duty cycle corresponding to the previous moment until the adjusted PWM output duty cycle is consistent with the target duty cycle.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the method described in any one of claims 1-5 is implemented.
9. An electronic device, characterized in that, Comprising: A processor and a memory, where the memory is used to store one or more programs; When the one or more programs are executed by the processor, the method described in any one of claims 1-5 is implemented.
Citation Information
Patent Citations
Light regulator
CN108040403A