CN113923821A - Drive control method and circuit of LED lamp, computer equipment and storage medium - Google Patents

Drive control method and circuit of LED lamp, computer equipment and storage medium Download PDF

Info

Publication number
CN113923821A
CN113923821A CN202111253772.2A CN202111253772A CN113923821A CN 113923821 A CN113923821 A CN 113923821A CN 202111253772 A CN202111253772 A CN 202111253772A CN 113923821 A CN113923821 A CN 113923821A
Authority
CN
China
Prior art keywords
current
led lamp
pulse width
width modulation
modulation signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111253772.2A
Other languages
Chinese (zh)
Inventor
刘建华
王惠均
陈福强
唐海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Caiyi Light Co Ltd
Original Assignee
Guangzhou Caiyi Light Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Caiyi Light Co Ltd filed Critical Guangzhou Caiyi Light Co Ltd
Priority to CN202111253772.2A priority Critical patent/CN113923821A/en
Publication of CN113923821A publication Critical patent/CN113923821A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • H05B45/14Controlling the intensity of the light using electrical feedback from LEDs or from LED modules
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/50Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application relates to a drive control method and circuit of an LED lamp, a computer device and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining a dimming channel value of the LED lamp and current information fed back by the LED lamp, determining a state signal fed back by the LED lamp according to the current information, converting the dimming channel value into a pulse width modulation signal if the state signal indicates that the LED lamp is not abnormal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal. By adopting the method, the real-time dynamic correction of the output current can be realized, and the problems that the current is not controlled and the light source module is burnt due to the insufficient soldering of the detection pin in the production process of the driving chip are avoided.

Description

Drive control method and circuit of LED lamp, computer equipment and storage medium
Technical Field
The present application relates to the field of lighting technologies, and in particular, to a driving control method and circuit for an LED lamp, a computer device, and a storage medium.
Background
With the development of LED technology, LEDs are applied more and more widely in the field of lighting. The LED light source normally works by obtaining stable current through the driving circuit, the LED can not be applied to the LED driving circuit, and the constant current driving circuit has the advantages of sensitive response, high precision and the like, so that the LED light source becomes a control mode mainly used by the LED light source.
In the prior art, due to the constraints of factors such as light source layout, power supply voltage, driving current limit, heat dissipation and the like, an LED light source needs to be divided into a plurality of branches, each branch is composed of LED independent units in a serial-parallel manner, and in the whole power supply circuit, a corresponding driving chip or a peripheral driving device is generally allocated to an LED of each branch to provide current or voltage to enable the LED to normally work.
However, the drive chip or the peripheral drive device often has a problem of pin cold joint, so that the current exceeds the rated current of the light source, and the LED light source is greatly damaged or even instantly burnt.
Disclosure of Invention
In view of the above, it is necessary to provide a driving control method, a circuit, a computer device and a storage medium for an LED lamp capable of preventing a circuit from exceeding a rated current of a light source due to pin cold joint.
A method of drive control of an LED luminaire, the method comprising:
acquiring a dimming channel value of the LED lamp;
acquiring current information fed back by the LED lamp;
and determining a state signal fed back by the LED lamp according to the current information, converting the dimming channel value into a pulse width modulation signal when the state signal indicates that the LED lamp is not abnormal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
In one embodiment, the modifying the pwm signal according to the current information to obtain a target pwm signal includes:
comparing the current value in the current information with a first preset current threshold value;
and correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal.
In one embodiment, the modifying the duty ratio of the high-flat time of the pwm signal according to the comparison result to obtain the target pwm signal includes:
if the comparison result shows that the current value is larger than the first preset current threshold value, reducing the duty ratio of the high-level time of the pulse width modulation signal to a first preset duty ratio threshold value to obtain the target pulse width modulation signal;
if the comparison result is that the current value is smaller than the first preset current threshold value, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain the target pulse width modulation signal;
and if the comparison result shows that the current value is equal to the first preset current threshold value, determining the pulse width modulation signal as the target pulse width modulation signal.
In one embodiment, the determining the status signal and the current information fed back by the LED lamp includes:
acquiring an ADC interface numerical value, and converting the ADC interface numerical value into a current value in the current information;
if the current value in the current information is larger than a second preset current threshold value, generating a state signal indicating that the LED lamp is abnormal;
and if the current value in the current information is not greater than a second preset current threshold value, generating a state signal indicating that the LED lamp is not abnormal.
In one embodiment, the supplying power to the LED lamp according to the target pwm signal includes:
and transmitting the target pulse width modulation signal to a current driving circuit so as to instruct the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp.
In one embodiment, the method further comprises the following steps:
and if the state signal indicates that the LED lamp is abnormal, stopping converting the dimming channel value.
A drive control circuit for an LED light fixture, the circuit comprising: the controller of the LED lamp is used for executing the driving control method of the LED lamp in any embodiment.
In one embodiment, the driving control circuit further includes: the LED driving circuit comprises a starting circuit, a constant current driver and at least one LED circuit;
the output end of the starting circuit is connected with the input end of the controller, the output end of the controller is connected with the input end of the constant current driver, the output end of the constant current driver is respectively connected with the input end of each LED circuit, and the output end of each LED circuit is connected with the other input end of the controller;
the starting circuit is used for acquiring a dimming channel value of the LED lamp and transmitting the dimming channel value to the controller;
the controller is configured to perform any one of the above method embodiments according to the dimming channel value;
the constant current driver is used for converting a target pulse width modulation signal output by the controller into an output current and outputting the output current to each LED circuit.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a dimming channel value of the LED lamp;
and determining a state signal and current information fed back by the LED lamp, if the state signal indicates that the LED lamp is not abnormal, converting the dimming channel value into a pulse width modulation signal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a dimming channel value of the LED lamp;
and determining a state signal and current information fed back by the LED lamp, if the state signal indicates that the LED lamp is not abnormal, converting the dimming channel value into a pulse width modulation signal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
According to the drive control method, the circuit, the computer equipment and the storage medium of the LED lamp, the dimming channel value of the LED lamp and the current information fed back by the LED lamp are obtained, the dimming channel value is converted into the pulse width modulation signal, the pulse width modulation signal is corrected according to the current information, and finally electric energy is provided for the LED lamp according to the corrected pulse width modulation signal. In the method, the controller can correct the pulse width modulation signal according to the current information fed back by the LED lamp, so that the real-time dynamic correction of the driving current output by the driving circuit is realized, the LED light source works normally, the current is prevented from exceeding the rated current of the light source, and the effect of protecting the LED light source is achieved.
Drawings
Fig. 1 is an application environment diagram of a driving control method of an LED lamp according to an embodiment;
FIG. 2 is a schematic flow chart illustrating a method for controlling driving of an LED lamp according to an embodiment;
fig. 3 is a schematic flow chart illustrating a driving control method of an LED lamp according to another embodiment;
FIG. 4 is a flowchart illustrating a driving control method for an LED lamp according to another embodiment;
FIG. 5 is a flowchart illustrating a driving control method for an LED lamp according to another embodiment;
FIG. 6 is a circuit diagram of a driving control circuit of an LED lamp according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The driving control method of the LED lamp can be applied to the application environment shown in FIG. 1. The method comprises the following steps: controller 1, driver 2, LED lamps and lanterns 3. The controller 1 is configured to obtain a dimming channel value of the LED lamp and current information fed back by the LED lamp, convert the dimming channel value into a pulse width modulation signal, correct the pulse width modulation signal according to the current information, and finally provide electric energy for the LED lamp according to the corrected pulse width modulation signal. The driver 2 is used for converting a control signal of the controller 1 into a current/voltage signal, and controlling the LED lamp 3 according to the current/voltage signal, so that the LED lamp 3 works normally. The LED lamp 3 is used to receive a current/voltage signal of the driver 2. The controller 1 may be, but not limited to, a Micro Controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Programmable logic device (FPGA), and other control devices; the driver 2 can be a current driver or a voltage driver; the LED lamp 3 may be a multi-path parallel LED lamp, a multi-path series LED lamp, or a single-path LED lamp.
In one embodiment, as shown in fig. 2, a driving control method of an LED lamp is provided, which is described by taking the method as an example applied to the controller in fig. 1, and includes the following steps:
s201, obtaining a dimming channel value of the LED lamp.
The dimming channel value is a channel value of dimming brightness of the lamp, the dimming brightness value is an intensity value within the range of 0-255, and when the dimming brightness value is 0, the brightness is the weakest; when the dimming brightness value is 255, the brightness is brightest.
In this embodiment, the dimming channel value may be obtained by analyzing a digital dimming protocol (for example, DMX512 protocol) data packet sent by an external console of the lamp, or may be obtained by reading a setting parameter of an internal control panel of the lamp. Wherein, control panel includes in the lamps and lanterns: liquid crystal Display, Organic Light-Emitting Diode (OLED) Display, and man-machine interaction combination of digital Display with touch keys, Light touch keys, knob switches, and the like. The light console outside the light fixture includes: light control console, hand-held controller, notebook computer, etc. with control signal output function.
And S202, acquiring current information fed back by the LED lamp.
In this embodiment, when the LED lamp works, the working current may be fed back to the controller in real time or at regular time, specifically, when the LED lamp includes multiple paths of LED branch circuits, all the LED branch circuits in the LED lamp may feed back the working current to the controller, the controller receives current information fed back by the multiple paths of LED lamps, or after the controller receives currents fed back by the multiple paths of LED lamps, the controller may further perform an average operation to obtain an average current of each path of LED lamp, and the average current is used as current information fed back by the LED lamp.
S203, determining a state signal of the LED lamp according to the current information, judging whether the LED lamp is abnormal or not, and if the state signal indicates that the LED lamp is not abnormal, executing the step S204; if the status signal indicates that the LED lamp is abnormal, step S205 is executed.
The state signal fed back by the LED lamp represents that the LED lamp is abnormal or the LED lamp is abnormal.
In this embodiment, when the controller acquires current information fed back by the LED lamp, a status signal of the LED lamp can be obtained according to the current information, and then whether the LED lamp is abnormal is further determined by the status signal, and if the LED lamp is abnormal, it indicates that the current working current of the LED lamp exceeds the rated current of the light source, which may cause great damage or even burnout to the LED lamp; if no abnormity occurs, the working current of the current LED lamp is normal, and the electric energy can be normally provided for the LED lamp according to the previously acquired dimming channel value.
And S204, converting the dimming channel value into a pulse width modulation signal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
The pulse width modulation is an analog control mode, and the bias of a transistor base or a gate of a field effect transistor (MOS transistor) is modulated according to the change of a corresponding load, so that the change of the conduction time of the transistor or the MOS transistor is realized, and the change of the output of the switching regulated power supply is realized. A Pulse Width Modulation (PWM) signal is a signal that digitally encodes an analog signal level by modulating the Width of a series of pulses to obtain a desired waveform (including shape and amplitude).
In this case, before the controller provides the LED lamp with electric energy according to the dimming channel value, the controller may correct the pwm signal according to the current information fed back by the LED lamp, so that the controller may provide the LED lamp with electric energy according to the corrected pwm signal.
It should be noted that, when the controller specifically corrects the pwm signal, the duty ratio of the pwm signal may be corrected by adjusting, optionally, other parameters of the pwm signal may also be adjusted; optionally, the controller may pre-construct a correction network model, and use current information and the pulse width modulation signal fed back by the LED lamp as input information of the correction network model, so that the correction network model realizes the correction of the pulse width modulation signal according to the input information, and obtains the target pulse width modulation signal. The corrected network model can be obtained by training a neural network algorithm or a machine learning algorithm.
On the basis of the embodiment shown in fig. 2, in another embodiment, the method for driving and controlling the LED lamp further includes:
and S205, stopping converting the dimming channel value.
In this case, when the controller obtains the dimming channel value, the input of the current may be stopped without performing the conversion of the dimming channel value, so that no current information flows into the entire circuit. According to the method provided by the embodiment, the input of the current can be cut off at the first time under the condition that the lamp is abnormal, the safety of the whole LED lamp set is guaranteed, and convenience is provided for the maintenance process.
According to the drive control method of the LED lamp, the dimming channel value of the LED lamp and the current information fed back by the LED lamp are obtained, the dimming channel value is converted into the pulse width modulation signal, the pulse width modulation signal is corrected according to the current information, and finally the electric energy is provided for the LED lamp according to the corrected pulse width modulation signal. In the method, the controller can correct the pulse width modulation signal according to the current information fed back by the LED lamp, so that the real-time dynamic correction of the driving current output by the driving circuit is realized, the LED light source works normally, the current is prevented from exceeding the rated current of the light source, and the effect of protecting the LED light source is achieved.
Based on the embodiment shown in fig. 2, as shown in fig. 3, in an embodiment, a detailed implementation process of modifying the pwm signal according to the current information to obtain the target pwm signal includes:
and S301, comparing the current value in the current information with a first preset current threshold value.
The first preset current threshold is used for judging whether the current fed back by the LED lamp is too large or too small.
In this embodiment, when the controller acquires current information fed back by the LED lamp, a current value may be further extracted from the current information, and the current value is compared with a first preset current threshold, and if the current value is greater than the first preset current threshold, it indicates that the current flowing through the LED lamp is too large; if the current value is not greater than the preset current threshold value, it is indicated that the current flowing through the LED lamp is too small.
And S302, correcting the duty ratio of the high-flat time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal.
In this embodiment, the controller may decrease or increase the duty ratio of the high-flat time of the pwm signal according to the comparison result to obtain the modified pwm signal, i.e., the target pwm signal. The controller can adjust (reduce or increase) the current value through the proportional relation between the current value and the duty ratio, and further correct the pulse width modulation signal to obtain a target pulse width modulation signal. The current value and the duty ratio of the high-flat time of the pulse width modulation signal are in inverse proportion, namely the larger the current value is, the larger the duty ratio is. The preset current value of the pulse width modulation signal is searched from the pulse width modulation signal duty ratio and preset current value truth table, the dimming channel values of 0-255 correspond to 256 preset current values, and the truth table is loaded into a memory when a main program is initialized. Comparing the preset current value and the actually measured current value of the duty ratio of the existing pulse width modulation signal, and according to the inverse proportion relation, the relation between the current value and the duty ratio can be expressed as follows:
Figure BDA0003323209020000081
in the above formula, T1For a high level time, T, of a pulse width modulated signal2For the low level time of a pulse width modulated signal, T ═ T1+T2Is the cycle time of a pulse width modulated signal, IfThe current value at 100% output, IfIs a constant value, will
Figure BDA0003323209020000082
Set to a constant a. Therefore, the current value and the high level time T of the pulse width modulation signal1The relationship between them is:
I=A*T1
it should be noted that, the duty ratio of the high-flat time of the pwm signal may also be adjusted (decreased or increased) according to the current value in a lookup list manner, specifically, according to the actually measured current information obtained by the controller, the duty ratio of the pwm signal is looked up in the corresponding table of the duty ratio and the preset current value, and the current comparison is performed, and the target pwm signal after the correction is output according to the calculation of the proportional formula.
Optionally, a specific implementation manner of the foregoing S302 is provided, and as shown in fig. 4, the method includes:
s401, correcting the duty ratio of the high flat time of the pulse width modulation signal according to the comparison result, and executing the step S402 if the comparison result is that the current value is greater than a first preset current threshold value; if the comparison result is that the current value is smaller than the first preset current threshold, executing step S403; if the comparison result is that the current value is equal to the first predetermined current threshold, step S404 is executed.
In this embodiment, the comparison result indicates that the current value is greater than the first preset current threshold, which indicates that the current value flowing through the LED lamp is too large, and the duty ratio of the high-level time of the pulse width modulation signal needs to be reduced, so that when the driving circuit generates the driving current from the pulse width modulation signal, the optimal driving current can be generated to provide electric energy for the LED lamp, and the reduction of the service life of the LED lamp due to the fact that the LED lamp is in an excessive working current for a long time is avoided. The comparison result shows that the current value is smaller than the first preset current threshold value, which indicates that the current value flowing through the LED lamp is smaller, and the duty ratio of the high-level time of the pulse width modulation signal needs to be increased, so that when the driving circuit generates the driving current from the pulse width modulation signal, the optimal driving current can be generated to provide electric energy for the LED lamp, and the problem that the normal operation of the LED lamp is difficult to maintain due to insufficient driving current to provide electric energy for the LED lamp is avoided. And if the comparison result is that the current value is equal to the first preset current threshold, the current value flowing through the LED lamp is normal, and the pulse width modulation signal is determined to be the target pulse width modulation signal without correction.
S402, reducing the duty ratio of the high-level time of the pulse width modulation signal to a first preset duty ratio threshold value to obtain a target pulse width modulation signal.
If the current value in the current information is greater than the first preset threshold, the current value needs to be reduced, that is, the duty ratio of the high-flat time of the pulse width modulation signal is reduced, so as to obtain the target pulse width modulation signal. In the present embodiment, the duty ratio of the high flat time of the pwm signal is corrected according to the comparison result of step S302. If the current value in the current information is greater than the first preset threshold, the proportion of the duty ratio of the high-level time of the pulse width modulation signal needs to be reduced according to the proportion of the current increase, so as to obtain the target pulse width modulation signal. The target pulse width modulated signal may be formulated as:
Figure BDA0003323209020000091
in the above formula, T' is the target PWM signal, I1Is a measured current value, I2Is a first predetermined current threshold. The corrected duty cycle is:
Figure BDA0003323209020000092
in the above equation, D is the corrected duty ratio.
And S403, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain a target pulse width modulation signal.
And if the comparison result is that the current value is smaller than the first preset current threshold value, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain the target pulse width modulation signal.
In the present embodiment, the duty ratio of the high flat time of the pwm signal is corrected according to the comparison result of step S302. If the current value in the current information is smaller than the first preset threshold, the proportion of the duty ratio of the high-level time of the pulse width modulation signal needs to be increased according to the proportion of the current reduction, so as to obtain the target pulse width modulation signal. The target pulse width modulated signal may be formulated as:
Figure BDA0003323209020000101
in the above formula, T' is the target PWM signal, I1Is a measured current value, I2Is a first predetermined current threshold. The corrected duty cycle is:
Figure BDA0003323209020000102
in the above equation, D is the corrected duty ratio.
And S404, determining the pulse width modulation signal as a target pulse width modulation signal.
And if the current value in the current information is equal to the first preset threshold, directly determining the current pulse width modulation signal as the target pulse width modulation signal without correcting.
According to the driving control method of the LED lamp provided by this embodiment, according to the comparison result between the current value and the first preset threshold, when the current value is greater than the first preset current threshold, the high level duty ratio of the pulse width modulation signal is reduced; the current value is smaller than a first preset current threshold value, and the high-level duty ratio of the pulse width modulation signal is increased; the current value is equal to a first preset current threshold value, and the pulse width modulation signal is determined as a target pulse width modulation signal. According to the embodiment, the high-level duty ratio of the pulse width modulation signal can be flexibly adjusted according to different conditions, and the normal work of the LED lamp is ensured.
In this embodiment, as shown in fig. 5, the driving control method of the LED lamp mainly includes the following steps:
s501, obtaining a dimming channel value of the LED lamp;
s502, obtaining an ADC interface numerical value, and converting the ADC interface numerical value into a current value in current information;
s503, judging whether the current value in the current information is larger than a second preset threshold value, and if the current value in the current information is larger than the second preset threshold value, executing the step S504; if the current value in the current information is not greater than the second preset current threshold, executing step S505;
s504, generating a state signal indicating that the LED lamp is abnormal, and executing the step S510;
s505, generating a state signal indicating that the LED lamp is not abnormal, and executing the step S506;
s506, comparing the current value in the current information with a first preset current threshold value;
s507, converting the dimming channel value of the LED lamp into a pulse width modulation signal;
s508, correcting the duty ratio of the high flat time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal;
s509, transmitting the target pulse width modulation signal to a current driving circuit to indicate the current driving circuit to convert the target pulse width modulation signal into an output current to provide electric energy for the LED lamp;
and S510, stopping converting the dimming channel value.
The driving control method for the LED lamp provided in this embodiment obtains a dimming channel value of the LED lamp, obtains an ADC interface value, converts the ADC interface value into a current value in current information, determines whether the current value in the current information is greater than a second preset threshold, generates a status signal indicating that the LED lamp is abnormal if the current value in the current information is greater than the second preset current threshold, and stops converting the dimming channel value; if the current value in the current information is not larger than the second preset current threshold, generating a state signal indicating that the LED lamp is not abnormal, comparing the current value in the current information with the first preset current threshold, correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal, and transmitting the target pulse width modulation signal to a current driving circuit so as to instruct the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp. According to the method provided by the embodiment, one driving chip controls the multi-channel driving peripheral circuit in a shared mode, the design space is greatly saved, the number of the driving chips is reduced, heating components are reduced, heating power consumption is reduced, simultaneously, the output waveforms of each driving circuit are completely consistent, the currents are consistent, the starting is also completely consistent, the problem of difference of dimming curves generated by driving multiple light sources due to difference of multiple driving chips is solved, and the light emitting effect of the LED lamp module is improved. Through setting up controller control output current functional module, realized output current real time dynamic correction, still avoided taking place to detect the foot rosin joint in the drive IC production process and lead to the electric current uncontrolled, burn out the light source module problem.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, a driving control circuit of an LED lamp is provided, including: and a controller.
The controller is configured to perform all of the above method embodiments according to the dimming channel value.
The controller includes a Micro Controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Programmable logic device (FPGA), and other control devices. The controller is connected with the constant current driver, the constant current driver is connected with multiple paths of peripheral driving circuits, and each path of peripheral driving circuit is connected with each path of LED small branch of the module.
In this embodiment, the controller obtains a dimming channel value of the LED lamp in a driving circuit of the LED lamp, obtains an ADC interface value, converts the ADC interface value into a current value in the current information, determines whether the current value in the current information is greater than a second preset threshold, generates a status signal indicating that the LED lamp is abnormal if the current value in the current information is greater than the second preset current threshold, and stops converting the dimming channel value; if the current value in the current information is not larger than the second preset current threshold, generating a state signal indicating that the LED lamp is not abnormal, comparing the current value in the current information with the first preset current threshold, correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal, and transmitting the target pulse width modulation signal to a current driving circuit so as to instruct the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp.
The driving control circuit of the LED lamp provided in this embodiment monitors the current flowing through the LED lamp through the controller, so as to ensure normal operation of the LED lamp, and if the current flowing through the LED lamp is abnormal, the controller corrects the pwm signal according to the current, outputs the target pwm signal, and transmits the target pwm signal to the current driving circuit, so as to instruct the current driving circuit to convert the target pwm signal into the output current, thereby providing electric energy for the LED lamp. The embodiment monitors the output current functional module through the setting controller, realizes the real-time dynamic correction of the output current, and also avoids the problem that the current is not controlled and the light source module is burnt out due to the insufficient soldering of the detection pin in the production process of the drive IC.
In another embodiment, as shown in fig. 6, the driving control circuit of the LED lamp further includes: the LED driving circuit comprises a starting circuit, a constant current driver and at least one LED circuit.
The output end of the starting circuit is connected with the input end of the controller, the output end of the controller is connected with the input end of the constant current driver, the output end of the constant current driver is respectively connected with the input end of each LED circuit, and the output end of each LED circuit is connected with the other input end of the controller;
the starting circuit is used for acquiring a dimming channel value of the LED lamp and transmitting the dimming channel value to the controller;
the constant current driver is used for converting a target pulse width modulation signal output by the controller into an output current and outputting the output current to each LED circuit.
The drive control circuit of the LED lamp comprises: the LED lamp comprises a light control console, a manual control panel, a controller, a constant current driver and a plurality of paths of LED lamps. The constant current driver includes: non-embedded field effect transistor (MOS) constant current drivers such as LM3409HV, HV9910B, and HV 9961.
According to the drive control circuit of the LED lamp, after the starting circuit obtains the dimming channel value of the LED lamp, the dimming channel value is transmitted to the controller, the controller obtains current information fed back by the LED lamp, a target pulse width modulation signal is determined according to the current information and the dimming channel value, the constant current driver converts the target pulse width modulation signal into output current, the output current is output to each LED circuit, and normal work of the LED circuits is guaranteed. The circuit provided by the embodiment monitors the current flowing through the LED lamp through the controller, and ensures the normal work of the drive control circuit of the LED lamp.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of driving control of an LED lamp. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a dimming channel value of the LED lamp;
acquiring current information fed back by the LED lamp;
and determining a state signal fed back by the LED lamp according to the current information, converting the dimming channel value into a pulse width modulation signal when the state signal indicates that the LED lamp is not abnormal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, comprising:
comparing the current value in the current information with a first preset current threshold value;
and correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal, and the method comprises the following steps:
if the comparison result is that the current value is larger than a first preset current threshold value, reducing the duty ratio of the high-level time of the pulse width modulation signal to a first preset duty ratio threshold value to obtain a target pulse width modulation signal;
if the comparison result is that the current value is smaller than the first preset current threshold value, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain a target pulse width modulation signal;
and if the comparison result is that the current value is equal to the first preset current threshold value, determining the pulse width modulation signal as a target pulse width modulation signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining status signals and current information fed back by the LED lamp, comprising:
acquiring an ADC interface numerical value, and converting the ADC interface numerical value into a current value in current information;
if the current value in the current information is larger than a second preset current threshold value, generating a state signal indicating that the LED lamp is abnormal;
and if the current value in the current information is not greater than a second preset current threshold value, generating a state signal indicating that the LED lamp is not abnormal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: providing electrical energy to the LED luminaire according to the target pulse width modulation signal, comprising:
and transmitting the target pulse width modulation signal to a current driving circuit so as to indicate the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp.
In one embodiment, the processor, when executing the computer program, further performs the steps of: further comprising:
and if the state signal indicates that the LED lamp is abnormal, stopping converting the dimming channel value.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a dimming channel value of the LED lamp;
acquiring current information fed back by the LED lamp;
and determining a state signal fed back by the LED lamp according to the current information, converting the dimming channel value into a pulse width modulation signal when the state signal indicates that the LED lamp is not abnormal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, comprising:
comparing the current value in the current information with a first preset current threshold value;
and correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal, and the method comprises the following steps:
if the comparison result is that the current value is larger than a first preset current threshold value, reducing the duty ratio of the high-level time of the pulse width modulation signal to a first preset duty ratio threshold value to obtain a target pulse width modulation signal;
if the comparison result is that the current value is smaller than the first preset current threshold value, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain a target pulse width modulation signal;
and if the comparison result is that the current value is equal to the first preset current threshold value, determining the pulse width modulation signal as a target pulse width modulation signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining status signals and current information fed back by the LED lamp, comprising:
acquiring an ADC interface numerical value, and converting the ADC interface numerical value into a current value in current information;
if the current value in the current information is larger than a second preset current threshold value, generating a state signal indicating that the LED lamp is abnormal;
and if the current value in the current information is not greater than a second preset current threshold value, generating a state signal indicating that the LED lamp is not abnormal.
In one embodiment, the computer program when executed by the processor further performs the steps of: providing electrical energy to the LED luminaire according to the target pulse width modulation signal, comprising:
and transmitting the target pulse width modulation signal to a current driving circuit so as to indicate the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp.
In one embodiment, the computer program when executed by the processor further performs the steps of: further comprising:
and if the state signal indicates that the LED lamp is abnormal, stopping converting the dimming channel value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A driving control method of an LED lamp is characterized by comprising the following steps:
acquiring a dimming channel value of the LED lamp;
acquiring current information fed back by the LED lamp;
and determining a state signal fed back by the LED lamp according to the current information, converting the dimming channel value into a pulse width modulation signal when the state signal indicates that the LED lamp is not abnormal, correcting the pulse width modulation signal according to the current information to obtain a target pulse width modulation signal, and providing electric energy for the LED lamp according to the target pulse width modulation signal.
2. The method of claim 1, wherein the modifying the pwm signal according to the current information to obtain a target pwm signal comprises:
comparing the current value in the current information with a first preset current threshold value;
and correcting the duty ratio of the high-level time of the pulse width modulation signal according to the comparison result to obtain a target pulse width modulation signal.
3. The method of claim 2, wherein the modifying the duty cycle of the high flat time of the pwm signal according to the comparison result to obtain the target pwm signal comprises:
if the comparison result shows that the current value is larger than the first preset current threshold value, reducing the duty ratio of the high-level time of the pulse width modulation signal to a first preset duty ratio threshold value to obtain the target pulse width modulation signal;
if the comparison result is that the current value is smaller than the first preset current threshold value, increasing the duty ratio of the high-level time of the pulse width modulation signal to a second preset duty ratio threshold value to obtain the target pulse width modulation signal;
and if the comparison result shows that the current value is equal to the first preset current threshold value, determining the pulse width modulation signal as the target pulse width modulation signal.
4. The method of any one of claims 1-3, wherein the determining the status signal and the current information fed back by the LED lamp comprises:
acquiring an ADC interface numerical value, and converting the ADC interface numerical value into a current value in the current information;
if the current value in the current information is larger than a second preset current threshold value, generating a state signal indicating that the LED lamp is abnormal;
and if the current value in the current information is not greater than a second preset current threshold value, generating a state signal indicating that the LED lamp is not abnormal.
5. The method of claim 1, wherein the powering the LED light fixture according to the target pwm signal comprises:
and transmitting the target pulse width modulation signal to a current driving circuit so as to instruct the current driving circuit to convert the target pulse width modulation signal into output current to provide electric energy for the LED lamp.
6. The method of claim 1, further comprising:
and if the state signal indicates that the LED lamp is abnormal, stopping converting the dimming channel value.
7. A controller for an LED luminaire, the controller being configured to perform the method of any one of claims 1-6 above.
8. A drive control circuit of an LED lamp, the drive control circuit comprising the controller of claim 7, the drive control circuit further comprising: the LED driving circuit comprises a starting circuit, a constant current driver and at least one LED circuit;
the output end of the starting circuit is connected with the input end of the controller, the output end of the controller is connected with the input end of the constant current driver, the output end of the constant current driver is respectively connected with the input end of each LED circuit, and the output end of each LED circuit is connected with the other input end of the controller;
the starting circuit is used for acquiring a dimming channel value of the LED lamp and transmitting the dimming channel value to the controller;
the controller is configured to perform the method of any one of claims 1-6 according to the dimming channel value;
the constant current driver is used for converting a target pulse width modulation signal output by the controller into an output current and outputting the output current to each LED circuit.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202111253772.2A 2021-10-27 2021-10-27 Drive control method and circuit of LED lamp, computer equipment and storage medium Pending CN113923821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111253772.2A CN113923821A (en) 2021-10-27 2021-10-27 Drive control method and circuit of LED lamp, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111253772.2A CN113923821A (en) 2021-10-27 2021-10-27 Drive control method and circuit of LED lamp, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113923821A true CN113923821A (en) 2022-01-11

Family

ID=79243233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111253772.2A Pending CN113923821A (en) 2021-10-27 2021-10-27 Drive control method and circuit of LED lamp, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113923821A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201550318U (en) * 2009-07-03 2010-08-11 东莞市友美电源设备有限公司 Digitized high-performance LED drive power supply
CN203387717U (en) * 2012-06-29 2014-01-08 小泉照明株式会社 Lighting device
US20150311804A1 (en) * 2014-04-23 2015-10-29 Guangzhou On-Bright Electronics Co., Ltd. Systems and methods for output current regulation in power conversion systems
CN110191540A (en) * 2019-06-10 2019-08-30 京东方科技集团股份有限公司 Light-dimming method, dimming device and the computer-readable medium of LED
WO2020038708A1 (en) * 2018-08-23 2020-02-27 Tridonic Gmbh & Co Kg Led current source with pwm operation and synchronized adc sampling
CN213715424U (en) * 2020-11-04 2021-07-16 深圳创维-Rgb电子有限公司 LED lamp strip detection circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201550318U (en) * 2009-07-03 2010-08-11 东莞市友美电源设备有限公司 Digitized high-performance LED drive power supply
CN203387717U (en) * 2012-06-29 2014-01-08 小泉照明株式会社 Lighting device
US20150311804A1 (en) * 2014-04-23 2015-10-29 Guangzhou On-Bright Electronics Co., Ltd. Systems and methods for output current regulation in power conversion systems
WO2020038708A1 (en) * 2018-08-23 2020-02-27 Tridonic Gmbh & Co Kg Led current source with pwm operation and synchronized adc sampling
CN110191540A (en) * 2019-06-10 2019-08-30 京东方科技集团股份有限公司 Light-dimming method, dimming device and the computer-readable medium of LED
CN213715424U (en) * 2020-11-04 2021-07-16 深圳创维-Rgb电子有限公司 LED lamp strip detection circuit

Similar Documents

Publication Publication Date Title
US9374860B2 (en) Lighting device
US9900945B1 (en) Color temperature control
US6373733B1 (en) Field effect transistor controlled AC/DC power conversion circuit
EP3217764B1 (en) Driving circuit for a light-emitting diode backlight and method for driving the same
US9967945B2 (en) Electronic apparatus
JP2011035368A (en) Light-emitting diode driver and driving method of the same
WO2011105086A1 (en) Driving circuit for light emitting element, light emitting device using same, and display apparatus
JP2012195291A (en) Adaptive switch mode led system
KR100876191B1 (en) Driving circuit of light emitting element and driving method thereof
US20190098717A1 (en) Ballast system, luminaire, lighting control system, lighting control method and non-transitory computer readable medium
US8258716B2 (en) Driving power supply system of an active type LED with multiple channels
JP2013191522A (en) Illuminating device
WO2016158035A1 (en) Dimming device and light source device
JP6049357B2 (en) LED driving device and lighting apparatus
CN113923821A (en) Drive control method and circuit of LED lamp, computer equipment and storage medium
US20170041992A1 (en) Light source driving device and dimming/toning control method
JP2021086763A (en) Lighting device
JP2012074693A (en) Driver circuit for light-emitting component
US20180192498A1 (en) Environmental management device, system and method thereof
RU165573U1 (en) LIGHTING CONTROL DEVICE
WO2015036551A1 (en) Controller for controlling a current regulating element of a lighting load
JP7203348B2 (en) Lighting device and lighting device
JP2018018624A (en) Led light emission device
CN110784100B (en) Power conversion device and power management method
KR101961850B1 (en) Apparatus for controlling the led lighting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination