CN101466186A - Driving method and driving device capable of adjusting brightness of high-power LED - Google Patents

Driving method and driving device capable of adjusting brightness of high-power LED Download PDF

Info

Publication number
CN101466186A
CN101466186A CNA2008101868641A CN200810186864A CN101466186A CN 101466186 A CN101466186 A CN 101466186A CN A2008101868641 A CNA2008101868641 A CN A2008101868641A CN 200810186864 A CN200810186864 A CN 200810186864A CN 101466186 A CN101466186 A CN 101466186A
Authority
CN
China
Prior art keywords
led
brightness
adjusting
pwm
current
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
CNA2008101868641A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNA2008101868641A priority Critical patent/CN101466186A/en
Publication of CN101466186A publication Critical patent/CN101466186A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of El Displays (AREA)
  • Led Devices (AREA)

Abstract

The invention provides a driving method and a device capable of adjusting the brightness of a high-power LED, wherein the method obtains the brightness data of the LED by receiving control information input from the outside, sets the current flowing through the LED by a current adjusting unit connected with a driving unit, and lights the LED to enable the brightness of the LED to reach a target value; or the current flowing through the LED is firstly set according to the method, the brightness of the LED is preliminarily adjusted, then the signal duty ratio of the PWM adjusting unit connected with the current adjusting unit in parallel is further set, and the brightness of the LED is further adjusted to finally reach the target value; and turning off the LED by setting the duty ratio of the PWM regulating unit signal to be 0%. By utilizing the technical scheme provided by the invention, the brightness of the LED can be dynamically adjusted in real time, the EMC (electromagnetic compatibility) performance of the device can be obviously improved, and the service life of the LED is prolonged.

Description

一种能够调节大功率LED亮度的驱动方法和驱动装置 A driving method and a driving device capable of adjusting the brightness of a high-power LED

技术领域 technical field

本发明涉及一种大功率LED,尤其涉及一种能够调节大功率LED亮度的驱动方法和驱动装置。The invention relates to a high-power LED, in particular to a driving method and a driving device capable of adjusting the brightness of the high-power LED.

背景技术 Background technique

在现有技术中,通常采用PWM方式来调节LED的亮度,对于小功率的LED而言,因为驱动电流不大,驱动电压不高,PWM调光方式是可行的。但对于大功率LED,因驱动电流大(通常为数百毫安),驱动电压高(当多个大功率LED串连驱动时,驱动电压往往达数十伏),这就极大地限制了PWM信号所能达到的最高频率,所以采用PWM方式对大功率LED调光的调光效果不很理想,主要表现在灰度级别和灰度刷新频率难以提高这两方面。另外,PWM方式导致LED驱动回路电流的快速通断,在大电流高电压的情况下,会对周围环境形成很强的电磁辐射,恶化装置或设备的EMC(ElectromagneticCompatibility;电磁兼容)性能。PWM导致流经LED的电流在极短时间内从0到数百毫安的剧烈变动,也会影响到LED的工作寿命。In the prior art, PWM is usually used to adjust the brightness of LEDs. For low-power LEDs, the PWM dimming method is feasible because the driving current is not large and the driving voltage is not high. But for high-power LEDs, due to the large driving current (usually hundreds of milliamps), the high driving voltage (when multiple high-power LEDs are driven in series, the driving voltage often reaches tens of volts), which greatly limits the power of PWM. The highest frequency that the signal can reach, so the dimming effect of high-power LED dimming by PWM method is not very ideal, mainly in the two aspects that the gray level and gray refresh frequency are difficult to improve. In addition, the PWM method leads to the rapid on-off of the LED drive circuit current. In the case of high current and high voltage, it will form strong electromagnetic radiation to the surrounding environment and deteriorate the EMC (Electromagnetic Compatibility; Electromagnetic Compatibility) performance of the device or equipment. PWM causes the current flowing through the LED to fluctuate drastically from 0 to hundreds of milliamps in a very short period of time, which will also affect the working life of the LED.

发明内容 Contents of the invention

为解决现有技术所存在的上述问题,本发明提供一种实时动态电流调节与PWM调节相结合的大功率LED的驱动方法,并提供一种大功率LED的驱动装置。In order to solve the above problems in the prior art, the present invention provides a high-power LED driving method combining real-time dynamic current regulation and PWM regulation, and provides a high-power LED driving device.

本发明采用如下技术方案:The present invention adopts following technical scheme:

接收外界输入的控制信号,从中得到LED的亮度数据,通过软件计算或数值查表,得到一个对应的数值,将该数值输给与一驱动单元连接的一电流调节单元,调节流经LED的电流值,从而达到调节LED亮度之目的;或者将这个经计算或查表所得的对应数值分成两部分,一部分输入电流调节单元,先调节流经LED的电流来初步调节所述LED的亮度,即“粗调”,另一部分输入与所述驱动单元连接的PWM调节单元,设置其输出信号的占空比,进一步调节所述LED的亮度,即“细调”,最终将LED亮度调节到目标值;通过设置该PWM调节单元输出信号的占空比为0%,以关灭所述LED。Receive the control signal input from the outside, get the brightness data of the LED from it, get a corresponding value through software calculation or numerical table lookup, and output the value to a current adjustment unit connected to a drive unit to adjust the current flowing through the LED Value, so as to achieve the purpose of adjusting the brightness of the LED; or divide the corresponding value obtained by calculation or table lookup into two parts, one part is input into the current adjustment unit, and first adjust the current flowing through the LED to initially adjust the brightness of the LED, that is, " Coarse adjustment”, the other part is input to the PWM adjustment unit connected to the drive unit, and the duty cycle of its output signal is set to further adjust the brightness of the LED, that is, “fine adjustment”, and finally adjust the brightness of the LED to the target value; The LED is turned off by setting the duty ratio of the output signal of the PWM adjustment unit to 0%.

所述电流调节单元包括一个参考电压发生器,该参考电压发生器的输出经一个数字电位器分压后得到一个基准电压,该基准电压输入到所述比较器的负相输入端;所述基准电压还可以由一PWM发生器的输出信号经缓冲、RC滤波后得到,然后输入到所述比较器的负相输入端。The current regulating unit includes a reference voltage generator, the output of the reference voltage generator is divided by a digital potentiometer to obtain a reference voltage, and the reference voltage is input to the negative phase input terminal of the comparator; the reference voltage The voltage can also be obtained by buffering and RC filtering the output signal of a PWM generator, and then input to the negative phase input terminal of the comparator.

所述电流调节单元的输入信号还包含一个采样电压,该采样电压由所述驱动单元的一个采样电阻所提供,直接或经缓冲放大后输入至所述电流调节单元的一个比较器的正相输入端,该比较器的输出接到一个逻辑电路。The input signal of the current regulation unit also includes a sampling voltage, which is provided by a sampling resistor of the drive unit, and is input to the positive phase input of a comparator of the current regulation unit directly or after being buffered and amplified. terminal, the output of the comparator is connected to a logic circuit.

所述逻辑电路连接有振荡器;The logic circuit is connected with an oscillator;

所述PWM调节单元与所述电流调节单元由一个微控制器控制。The PWM adjustment unit and the current adjustment unit are controlled by a microcontroller.

一种能够调节大功率LED亮度的驱动装置,包含依次连接的大功率LED驱动单元、PWM调节单元,以及电流调节单元和微控制器,该电流调节单元与所述PWM调节单元并联连接于该微控制器和所述驱动单元之间。A drive device capable of adjusting the brightness of a high-power LED, comprising a high-power LED drive unit, a PWM adjustment unit, a current adjustment unit and a microcontroller connected in sequence, the current adjustment unit and the PWM adjustment unit are connected in parallel to the micro between the controller and the drive unit.

所述电流调节单元包含依次连接的数字电位器、比较器,以及逻辑电路,该逻辑电路与一个振荡器连接。The current regulation unit includes a digital potentiometer, a comparator, and a logic circuit connected in sequence, and the logic circuit is connected with an oscillator.

所述驱动单元包含与门,该与门与所述PWM调节单元以及所述电流调节单元连接。The drive unit includes an AND gate connected to the PWM adjustment unit and the current adjustment unit.

所述驱动单元包含场效应晶体管,该场效应晶体管的一端与比较器的正相输入端和采样电阻相连,另一端连接LED和肖特基二极管,场效应晶体管的栅极与所述与门相连。The drive unit includes a field effect transistor, one end of the field effect transistor is connected to the non-inverting input end of the comparator and the sampling resistor, the other end is connected to the LED and the Schottky diode, and the gate of the field effect transistor is connected to the AND gate .

所述驱动单元还包含采样电阻、电感、肖特基二极管。The drive unit also includes a sampling resistor, an inductor, and a Schottky diode.

本发明所提供的技术方案,具有如下优点:The technical scheme provided by the present invention has the following advantages:

(1)采用电流调节单元对大功率LED进行动态电流调节来调节LED的发光亮度,在不改变LED亮度的时候,流经LED的电流恒定不变,相对于现有的PWM方式的LED亮度调节技术,极大地提高LED亮度调节的灰度级别和灰度刷新频率(本发明所提供的技术方案的灰度刷新频率相当于无穷大),同时还可改善系统的电磁兼容性能,延长LED的工作寿命;(1) The current adjustment unit is used to dynamically adjust the high-power LED to adjust the brightness of the LED. When the brightness of the LED is not changed, the current flowing through the LED is constant. Compared with the existing PWM method of LED brightness adjustment technology, which greatly improves the gray level and gray refresh frequency of LED brightness adjustment (the gray refresh frequency of the technical solution provided by the present invention is equivalent to infinity), and can also improve the electromagnetic compatibility performance of the system and prolong the working life of LED ;

(2)采用微控制器对电流调节单元的电流参数进行实时设置,能够根据外部控制信号,随时对流经LED的电流值进行调整;(2) The microcontroller is used to set the current parameters of the current regulation unit in real time, and the current value flowing through the LED can be adjusted at any time according to the external control signal;

(3)采用PWM技术作为LED亮度调节的辅助手段,在通过电流调节单元对LED亮度进行“粗调”后,还可以采用与之并联的PWM调节单元进一步对LED亮度进行“细调”,以得到更为丰富的灰度级别(当使用红、绿、蓝三色LED进行混光、混色时,丰富的灰度级别使混出的色彩更为逼真)。通过设置PWM调节单元可以将LED设置为全灭。(3) PWM technology is used as an auxiliary means of LED brightness adjustment. After the "rough adjustment" of the LED brightness through the current adjustment unit, the PWM adjustment unit connected in parallel can be used to further "fine-adjust" the LED brightness, so as to Get richer gray levels (when red, green and blue LEDs are used for light mixing and color mixing, the richer gray levels make the mixed colors more realistic). The LED can be set to be completely off by setting the PWM adjustment unit.

以下将结合附图,对本发明的技术方案给予详细阐释。The technical solutions of the present invention will be explained in detail below in conjunction with the accompanying drawings.

附图说明 Description of drawings

图1为根据本发明的一种能够调节大功率LED亮度的驱动方法的流程示意图;Fig. 1 is a schematic flow chart of a driving method capable of adjusting the brightness of a high-power LED according to the present invention;

图2为根据本发明的一种能够调节大功率LED亮度的驱动装置的方块示意图;Fig. 2 is a schematic block diagram of a driving device capable of adjusting the brightness of a high-power LED according to the present invention;

图3为根据本发明的一种能够调节大功率LED亮度的驱动装置的结构示意图。Fig. 3 is a structural schematic diagram of a driving device capable of adjusting the brightness of a high-power LED according to the present invention.

图中,10、微控制器,20、电流调节单元,201、数字电位器,202、比较器,203、逻辑电路,204、振荡器,205、参考电压发生器,30、PWM调节单元/PWM发生器,40、驱动单元,401、与门,402、场效应晶体管,403、肖特基二极管,404、电感,405、采样电阻,50、大功率LED。In the figure, 10, microcontroller, 20, current regulation unit, 201, digital potentiometer, 202, comparator, 203, logic circuit, 204, oscillator, 205, reference voltage generator, 30, PWM regulation unit/PWM Generator, 40, drive unit, 401, AND gate, 402, field effect transistor, 403, Schottky diode, 404, inductor, 405, sampling resistor, 50, high-power LED.

具体实施方式 Detailed ways

参考图1,本发明所提供的能够调节大功率LED亮度的驱动方法,包含如下步骤:Referring to Fig. 1, the driving method capable of adjusting the brightness of a high-power LED provided by the present invention includes the following steps:

于步骤S1:由微控制器接收外部发来的控制信号;In step S1: the microcontroller receives an external control signal;

于步骤S2:微控制器对收到的控制信号进行判别。判别外部控制信号是要完全熄灭LED,还是要将LED调整到某个亮度,若要完全熄灭LED,则执行步骤S6,若要将LED调整到某个亮度值,则执行步骤S3;In step S2: the microcontroller judges the received control signal. Determine whether the external control signal is to completely turn off the LED or adjust the LED to a certain brightness, if it is necessary to completely turn off the LED, then perform step S6, and if it is necessary to adjust the LED to a certain brightness value, then perform step S3;

于步骤S6:由微控制器将PWM调节单元的占空比设为0%,完全关断LED驱动单元,LED熄灭,到此完成一次亮度调节过程;In step S6: the microcontroller sets the duty cycle of the PWM adjustment unit to 0%, completely turns off the LED drive unit, and the LED goes out, and completes a brightness adjustment process;

于步骤S3:由微控制器中的软件根据收到的外部控制信号中的LED亮度目标值进行计算或进行软件数值查表,得到将要写入电流调节单元的数据A和将要写入PWM调节单元的数据B;In step S3: the software in the microcontroller calculates according to the LED brightness target value in the received external control signal or performs a software value look-up table to obtain the data A to be written into the current regulation unit and the data to be written into the PWM regulation unit data B;

接着,于步骤S4:微控制器将数据A写入电流调节单元,设置流经LED的电流值,使LED的亮度达到或接近目标值;Next, in step S4: the microcontroller writes the data A into the current adjustment unit, and sets the current value flowing through the LED so that the brightness of the LED reaches or approaches the target value;

再接着,于步骤S5:微控制器将数据B写入PWM调节单元,设置PWM调节单元的占空比,进一步“细调”LED的亮度达到目标值。若不需进一步“细调”LED亮度,在此将PWM调节单元的占空比设为100%。到此完成一次亮度调节过程;Next, in step S5: the microcontroller writes the data B into the PWM adjustment unit, sets the duty ratio of the PWM adjustment unit, and further "finely adjusts" the brightness of the LED to reach the target value. If it is not necessary to further "fine-tune" the LED brightness, here the duty cycle of the PWM adjustment unit is set to 100%. This completes a brightness adjustment process;

参考图2,依据上述方法本发明提供一种能够调节大功率LED亮度的驱动装置,包含依次连接的微控制器10、电流调节单元20、PWM调节单元30、驱动单元40,以及大功率LED 50,所述电流调节单元20与所述PWM调节单元30并联连接于所述微控制器10和所述驱动单元40之间。所述电流调节单元20用于通过驱动单元40动态调节流经LED 50的电流值来控制LED的亮度,PWM控制单元30用于通过改变输出信号的占空比从而改变LED 50在一个PWM周期内的“亮”/“灭”的时长比例来控制LED的亮度。而微控制器10用于随时对电流调节单元20和PWM调节单元30的工作参数进行设定,实现该驱动装置对LED 50亮度的实时控制。With reference to Fig. 2, according to the above method, the present invention provides a driving device capable of adjusting the brightness of a high-power LED, comprising a microcontroller 10, a current regulating unit 20, a PWM regulating unit 30, a driving unit 40, and a high-power LED 50 sequentially connected , the current regulation unit 20 and the PWM regulation unit 30 are connected in parallel between the microcontroller 10 and the driving unit 40 . The current regulation unit 20 is used to dynamically adjust the current value flowing through the LED 50 through the drive unit 40 to control the brightness of the LED, and the PWM control unit 30 is used to change the duty cycle of the output signal to change the LED 50 within a PWM period. The ratio of "on"/"off" to control the brightness of the LED. The microcontroller 10 is used to set the operating parameters of the current regulating unit 20 and the PWM regulating unit 30 at any time, so as to realize the real-time control of the brightness of the LED 50 by the driving device.

进一步参考图3,所述电流调节单元20包含依次连接的数字电位器201、比较器202、逻辑电路203,振荡器204,以及参考电压发生器205;所述数字电位器201的输入端直接连接于微控制器10,A、B端分别接参考电压发生器205和地(GND),抽头W接到比较器202的负相输入端,所述逻辑电路203与驱动单元40中的与门401连接,换言之,该与门的一个输入端与所述PWM调节单元30直接连接,另一个输入端与所述电流调节单元20中的所述逻辑电路203直接连接;所述与门401的输出连接N沟道场效应晶体管402,该场效应晶体管402的S极与比较器202的正相输入端和采样电阻405相连,D极连接电感404和肖特基二极管403,G极与与门401的输出相连。电感404的另一端接大功率LED 50。With further reference to FIG. 3 , the current regulating unit 20 includes a digital potentiometer 201, a comparator 202, a logic circuit 203, an oscillator 204, and a reference voltage generator 205 connected in sequence; the input terminal of the digital potentiometer 201 is directly connected to In microcontroller 10, terminals A and B are respectively connected to reference voltage generator 205 and ground (GND), and tap W is connected to the negative phase input terminal of comparator 202. The logic circuit 203 and the AND gate 401 in the drive unit 40 In other words, one input end of the AND gate is directly connected to the PWM adjustment unit 30, and the other input end is directly connected to the logic circuit 203 in the current adjustment unit 20; the output of the AND gate 401 is connected to N-channel field effect transistor 402, the S pole of the field effect transistor 402 is connected with the non-inverting input terminal of the comparator 202 and the sampling resistor 405, the D pole is connected with the inductor 404 and the Schottky diode 403, the G pole is connected with the output of the AND gate 401 connected. The other end of the inductor 404 is connected to the high-power LED 50.

所述数字电位器201用于对参考电压发生器205的输出电压分压,得到一个基准电压并将其输入到比较器202中。所述比较器202用于比较该基准电压与采样电阻405提供的采样电压,并根据比较结果输出不同的电平。所述逻辑电路203将根据比较器202和振荡器204的输出信号来决定场效应晶体管402在一个振荡周期内的开、关时间比例,其功能是:上电复位时,输出低电平信号“0”,在振荡器204输出的信号的上升沿,其输出翻转为高电平信号“1”,在比较器202输出信号的上升沿,其输出翻转为低电平信号“0”;该逻辑电路的具体实现方法是电子电路领域中等程度的技术人员不难实现的,在此不加赘述。另外,所述比较器202和逻辑电路203的功能也可以用一片集成电路芯片NE555实现,在理解本发明的原理和NE555的工作机理的前提下,其具体实现方法是电子电路领域中等程度的技术人员不难实现的,因此在此也不再予以赘述。所述振荡器204用于产生振荡信号。所述场效应晶体管402用于驱动LED 50。The digital potentiometer 201 is used to divide the output voltage of the reference voltage generator 205 to obtain a reference voltage and input it into the comparator 202 . The comparator 202 is used to compare the reference voltage with the sampling voltage provided by the sampling resistor 405, and output different levels according to the comparison result. The logic circuit 203 will determine the on-off time ratio of the field-effect transistor 402 in one oscillation cycle according to the output signals of the comparator 202 and the oscillator 204, and its function is: when power-on reset, output a low-level signal " 0", at the rising edge of the signal output by the oscillator 204, its output is inverted as a high-level signal "1", and at the rising edge of the output signal of the comparator 202, its output is inverted as a low-level signal "0"; the logic The specific implementation method of the circuit is not difficult to realize by a person skilled in the field of electronic circuits, and will not be described in detail here. In addition, the functions of the comparator 202 and the logic circuit 203 can also be realized by an integrated circuit chip NE555. Under the premise of understanding the principle of the present invention and the working mechanism of the NE555, its specific implementation method is a medium-level technology in the field of electronic circuits. It is not difficult for personnel to realize, so it will not be repeated here. The oscillator 204 is used to generate an oscillating signal. The field effect transistor 402 is used to drive the LED 50.

再次参考图3,所述能够调节大功率LED亮度的驱动装置工作时,微控制器10向数字电位器201和PWM发生器30输入控制数据,例如设定此时PWM发生器30的输出信号占空比为100%,电平持续为“1”;设置数字电位器201向比较器202提供适当的基准电压;逻辑电路203于上电复位结束时,输出低电平信号“0”,与门401输出“0”,场效应晶体管402关断,采样电阻405提供的采样电压为0,低于比较器202负相端的基准电压,比较器202输出为“0”;当振荡器204输出信号的一个上升沿到来,触发逻辑电路203输出翻转为“1”,导致与门401输出“1”,这时场效应晶体管402导通,有电流流经LED 50和电感404、并经采样电阻405到地;因电感404的滞阻特性,回路中的电流将按积分曲线规律上升,使采样电阻405上端的采样电压也按积分曲线上升,该采样电压直接(或经缓冲放大)输入到比较器202的正相输入端,当该采样电压超过比较器202由数字电位器201提供的基准电压时,比较器202的输出即由“0”翻转为“1”,这个电平变化的上升沿使逻辑电路203的输出由“1”翻转为“0”,场效应晶体管402被关断,电感404通过肖特基二极管403放电,为LED 50提供持续电流;场效应晶体管402关断后,采样电阻405上端的电压降为0,比较器202输出变为“0”,逻辑电路203等待振荡器204产生的下一个信号上升沿的到来,接着进入下一个重复上述动作的工作周期;Referring to FIG. 3 again, when the driving device capable of adjusting the brightness of high-power LEDs is working, the microcontroller 10 inputs control data to the digital potentiometer 201 and the PWM generator 30, for example, the output signal of the PWM generator 30 is set at this time. The empty ratio is 100%, and the level is continuously "1"; the digital potentiometer 201 is set to provide an appropriate reference voltage to the comparator 202; the logic circuit 203 outputs a low-level signal "0" at the end of the power-on reset, and the AND gate 401 outputs "0", the field effect transistor 402 is turned off, the sampling voltage provided by the sampling resistor 405 is 0, which is lower than the reference voltage at the negative phase terminal of the comparator 202, and the output of the comparator 202 is "0"; when the oscillator 204 outputs the signal When a rising edge arrives, the output of the trigger logic circuit 203 is reversed to "1", causing the output of the AND gate 401 to be "1". ground; due to the hysteresis characteristic of the inductance 404, the current in the loop will rise according to the integral curve, so that the sampling voltage at the upper end of the sampling resistor 405 also rises according to the integral curve, and the sampling voltage is directly (or amplified by buffering) input to the comparator 202 When the sampling voltage exceeds the reference voltage provided by the digital potentiometer 201 of the comparator 202, the output of the comparator 202 is turned from "0" to "1", and the rising edge of this level change makes the logic The output of the circuit 203 is turned from "1" to "0", the field effect transistor 402 is turned off, and the inductor 404 discharges through the Schottky diode 403 to provide a continuous current for the LED 50; after the field effect transistor 402 is turned off, the sampling resistor 405 The voltage drop at the upper end is 0, the output of the comparator 202 becomes "0", the logic circuit 203 waits for the arrival of the rising edge of the next signal generated by the oscillator 204, and then enters the next working cycle that repeats the above-mentioned actions;

显然,在上述技术方案中,流经LED电流的平均值与振荡器204输出信号的上升沿到比较器202输出信号的上升沿之间的时间长度成正比,而这个“时间长度”是由比较器202的基准电平和采样电阻405的阻值、电感404的电感值决定的,在采样电阻405的阻值、电感404的电感值固定的情况下,完全由比较器202的基准电平所决定,所以微控制器10通过控制数字电位器201输出的基准电平,就可控制流经LED 50的平均电流大小,进而控制LED50的亮度。Obviously, in the above technical solution, the average value of the current flowing through the LED is proportional to the time length between the rising edge of the output signal of the oscillator 204 and the rising edge of the output signal of the comparator 202, and this "time length" is determined by comparing The reference level of the comparator 202, the resistance value of the sampling resistor 405, and the inductance value of the inductor 404 are determined. When the resistance value of the sampling resistor 405 and the inductance value of the inductor 404 are fixed, it is completely determined by the reference level of the comparator 202. , so the microcontroller 10 can control the average current flowing through the LED 50 by controlling the reference level output by the digital potentiometer 201, and then control the brightness of the LED 50.

另外,在本实施例中还设有一个PWM调节单元30,该PWM发生器30通过与门401与逻辑电路203的输出共同控制场效应晶体管402的通断,所以,微控制器10还可以通过设置PWM发生器30输出信号的占空比来调整LED的亮度。与电流调节单元20通过调节流经LED回路的电流大小来调节LED亮度的机制不同,PWM调节单元30是通过设置一个PWM信号周期内LED“亮”/“灭”的时长比例来控制LED的亮度的,显然,PWM调节单元30产生的PWM信号的频率要远低于振荡器204的信号频率,这样电流调节功能才能正常发挥作用。在本实施例中,PWM机制是作为LED亮度调节的辅助手段来使用的。In addition, in this embodiment, a PWM adjustment unit 30 is also provided, and the PWM generator 30 jointly controls the on-off of the field effect transistor 402 through the output of the AND gate 401 and the logic circuit 203. Therefore, the microcontroller 10 can also be controlled by The duty cycle of the output signal of the PWM generator 30 is set to adjust the brightness of the LED. Different from the mechanism that the current regulation unit 20 adjusts the brightness of the LED by adjusting the current flowing through the LED circuit, the PWM regulation unit 30 controls the brightness of the LED by setting the ratio of the LED "on"/"off" duration within a PWM signal cycle. Obviously, the frequency of the PWM signal generated by the PWM adjustment unit 30 is much lower than the signal frequency of the oscillator 204, so that the current adjustment function can work normally. In this embodiment, the PWM mechanism is used as an auxiliary means for adjusting the brightness of the LED.

因为电流调节机制通常不能将回路中的电流调整到0,所以要将LED设置为全灭时,必须使用PWM机制,这时通过微控制器10将PWM产生器30的信号占空比设置为0%即可。Because the current regulation mechanism usually cannot adjust the current in the loop to 0, so when the LED is set to be completely off, the PWM mechanism must be used. At this time, the signal duty cycle of the PWM generator 30 is set to 0 by the microcontroller 10 % is enough.

在上述实施例中,比较器202的基准电压是由数字电位器201的抽头W所提供的。另外一个可以选择的方案是,微控制器10控制一个PWM发生器,该PWM发生器输出的PWM信号经缓冲、RC滤波后得到的直流电平作为比较器202的基准电压。In the above embodiments, the reference voltage of the comparator 202 is provided by the tap W of the digital potentiometer 201 . Another optional solution is that the microcontroller 10 controls a PWM generator, and the PWM signal output by the PWM generator is buffered and the DC level obtained after RC filtering is used as the reference voltage of the comparator 202 .

从以上对本发明实施例的说明可见,本发明为LED亮度的控制提供了并联关系的两个机制:起主要作用的实时的、动态的电流调节机制和起辅助作用的PWM机制。微控制器可以采取适当的软件控制策略来运用这两个机制,使大功率LED的亮度调节达到最佳效果。一个成功的软件控制策略是,MCU接收外部控制信号,得到LED的目标亮度值,以之作为设置比较器基准电压或者PWM占空比的依据。除了需要将LED调整到很低的亮度外,一般仅使用电流调节机制。在需要将LED调整到很低的亮度时,先用电流调节机制将电流调到最小值(比如2mA),再采用PWM机制将LED亮度进一步调到更低,以得到更多的灰度级别。因为在较小电流状态下使用PWM,通常不会造成严重的EMC(电磁兼容)问题。From the above description of the embodiments of the present invention, it can be seen that the present invention provides two parallel mechanisms for controlling LED brightness: a real-time and dynamic current regulation mechanism that plays a major role and a PWM mechanism that plays an auxiliary role. The microcontroller can adopt appropriate software control strategies to use these two mechanisms to achieve the best effect on the brightness adjustment of high-power LEDs. A successful software control strategy is that the MCU receives an external control signal to obtain the target brightness value of the LED, which is used as the basis for setting the comparator reference voltage or PWM duty cycle. In addition to the need to adjust the LED to very low brightness, generally only the current regulation mechanism is used. When it is necessary to adjust the LED to a very low brightness, first use the current regulation mechanism to adjust the current to the minimum value (such as 2mA), and then use the PWM mechanism to further adjust the LED brightness to a lower level to obtain more gray levels. Because PWM is used in a small current state, it usually does not cause serious EMC (electromagnetic compatibility) problems.

最后要说明的是,以上实施例仅用以说明本发明的一个技术方案,而非对其限制。参照以上实施例的详细说明,本领域的普通技术人员应当能够理解并实施,同时还可以对上述实施例的技术方案进行修改或进行同等功能的替换,但这些修改或者替换若无显著的技术进步,则意味着仍未脱离本发明的实质和范围。Finally, it should be noted that the above embodiment is only used to illustrate a technical solution of the present invention, not to limit it. With reference to the detailed description of the above embodiments, those of ordinary skill in the art should be able to understand and implement them. At the same time, the technical solutions of the above embodiments can also be modified or replaced with equivalent functions, but if these modifications or replacements do not have significant technical progress , it means still not departing from the essence and scope of the present invention.

Claims (12)

1.一种能够调节大功率LED亮度的驱动方法,其特征在于,该方法包含下述步骤:1. A driving method capable of adjusting high-power LED brightness, characterized in that, the method comprises the following steps: 接收外界输入的控制信号,从中得到LED的亮度数据,通过软件计算或软件数值查表,得到一个对应数值,将该数值输入到与一驱动单元连接的一电流调节单元,设置流经所述LED的电流大小,点亮所述LED并使其亮度达到目标值;Receive the control signal input from the outside, get the brightness data of the LED from it, and get a corresponding value through software calculation or software value look-up table, input the value to a current adjustment unit connected to a drive unit, and set the current flowing through the LED. The magnitude of the current, light the LED and make its brightness reach the target value; 或者按照上述方法先设置流经LED的电流,初步调节所述LED的亮度,进而再设置与所述电流调节单元并联的PWM调节单元的信号占空比,进一步调节LED的亮度,使其最终达到目标值;Or set the current flowing through the LED according to the above method to initially adjust the brightness of the LED, and then set the signal duty ratio of the PWM adjustment unit connected in parallel with the current adjustment unit to further adjust the brightness of the LED so that it finally reaches target value; 通过设置PWM调节单元信号的占空比为0%,关灭所述LED。The LED is turned off by setting the duty ratio of the signal of the PWM adjustment unit to 0%. 2.根据权利要求1所述的能够调节大功率LED亮度的驱动方法,其特征在于,所述电流调节单元包含一个参考电压发生器,该参考电压发生器的输出电压经过一个数字电位器分压后得到一个基准电压,该基准电压连接到所述电流调节单元的一个比较器的输入端,该比较器的另一个输入信号由一个串连在所述LED回路中的采样电阻提供,该比较器的输出端连接到一个逻辑电路的输入端。2. The driving method capable of adjusting the brightness of a high-power LED according to claim 1, wherein the current regulating unit comprises a reference voltage generator, and the output voltage of the reference voltage generator is divided by a digital potentiometer After obtaining a reference voltage, the reference voltage is connected to the input terminal of a comparator of the current adjustment unit, and another input signal of the comparator is provided by a sampling resistor connected in series in the LED loop, the comparator The output terminal is connected to the input terminal of a logic circuit. 3.根据权利要2所述的能够调节大功率LED亮度的驱动方法,其特征在于,所述数字电位器受一个微控制器控制。3. The driving method capable of adjusting the brightness of a high-power LED according to claim 2, wherein the digital potentiometer is controlled by a microcontroller. 4.根据权利要2所述的能够调节大功率LED亮度的驱动方法,其特征在于,输入到所述比较器的基准电压由一个PWM发生器的输出信号经缓冲、RC滤波处理后得到,这个PWM发生器受一个微控制器控制。4. The driving method capable of adjusting the brightness of high-power LEDs according to claim 2, wherein the reference voltage input to the comparator is obtained after buffering and RC filter processing of the output signal of a PWM generator, the The PWM generator is controlled by a microcontroller. 5.根据权利要求2所述的能够调节大功率LED亮度的驱动方法,其特征在于,所述逻辑电路的一个输入端连接到一个振荡器的输出端,所述逻辑电路的输出由所述振荡器的输出和所述比较器的输出决定。5. The driving method capable of adjusting the brightness of a high-power LED according to claim 2, wherein an input end of the logic circuit is connected to an output end of an oscillator, and the output of the logic circuit is controlled by the oscillator output of the comparator and the output of the comparator are determined. 6.根据权利要求1所述的能够调节大功率LED亮度的驱动方法,其特征在于,所述PWM调节单元与所述电流调节单元受一微控制器控制,外界通过向所述微控制器发送控制信号来调节LED亮度。6. The driving method capable of adjusting the brightness of a high-power LED according to claim 1, wherein the PWM adjustment unit and the current adjustment unit are controlled by a microcontroller, and the outside world sends a signal to the microcontroller. Control signal to adjust LED brightness. 7.一种能够调节大功率LED亮度的驱动装置,包含依次连接的LED驱动单元、电流调节单元、PWM调节单元和微控制器,其特征在于,所述电流调节单元与所述PWM调节单元并联连接于所述微控制器和所述驱动单元之间。7. A driving device capable of adjusting the brightness of a high-power LED, comprising a sequentially connected LED drive unit, a current adjustment unit, a PWM adjustment unit and a microcontroller, wherein the current adjustment unit is connected in parallel with the PWM adjustment unit Connected between the microcontroller and the drive unit. 8.根据权利要求7所述的能够调节大功率LED亮度的驱动装置,其特征在于,所述电流调节单元包含依次连接的数字电位器、比较器,以及逻辑电路。8 . The driving device capable of adjusting the brightness of high-power LED according to claim 7 , wherein the current regulating unit comprises a digital potentiometer, a comparator, and a logic circuit connected in sequence. 9.根据权利要求7所述的能够调节大功率LED亮度的驱动装置,其特征在于,所述驱动单元包含与门,所述与门的两个输入分别与所述PWM调节单元,以及所述电流调节单元连接。9. The driving device capable of adjusting the brightness of high-power LEDs according to claim 7, wherein the driving unit comprises an AND gate, and the two inputs of the AND gate are respectively connected to the PWM adjustment unit, and the current regulation unit connection. 10.根据权利要求9所述的能够调节大功率LED亮度的驱动装置,其特征在于,所述驱动单元还包含场效应晶体管,该场效应晶体管的一端与比较器的正相输入端和一个采样电阻相连,另一端连接LED回路,该场效应晶体管的栅极与所述与门相连。10. The driving device capable of adjusting the brightness of high-power LED according to claim 9, characterized in that, the driving unit also includes a field effect transistor, one end of the field effect transistor is connected to the non-inverting input terminal of the comparator and a sampling The resistors are connected, the other end is connected to the LED loop, and the gate of the field effect transistor is connected to the AND gate. 11.根据权利要求9所述的能够调节大功率LED亮度的驱动装置,其特征在于,所述驱动单元包含电感,该电感与场效应晶体管和所述的LED相连。11. The driving device capable of adjusting the brightness of a high-power LED according to claim 9, wherein the driving unit includes an inductor, and the inductor is connected with a field effect transistor and the LED. 12.根据权利要求9所述的能够调节大功率LED亮度的驱动装置,其特征在于,所述驱动单元包含肖特基二极管,该肖特基二极管的阳极与电感和场效应晶体管相连,阴极与电源VCC相连。12. The driving device capable of adjusting the brightness of a high-power LED according to claim 9, wherein the driving unit comprises a Schottky diode, the anode of the Schottky diode is connected to the inductor and the field effect transistor, and the cathode is connected to the field effect transistor. The power supply VCC is connected.
CNA2008101868641A 2008-12-31 2008-12-31 Driving method and driving device capable of adjusting brightness of high-power LED Pending CN101466186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101868641A CN101466186A (en) 2008-12-31 2008-12-31 Driving method and driving device capable of adjusting brightness of high-power LED

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101868641A CN101466186A (en) 2008-12-31 2008-12-31 Driving method and driving device capable of adjusting brightness of high-power LED

Publications (1)

Publication Number Publication Date
CN101466186A true CN101466186A (en) 2009-06-24

Family

ID=40806477

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101868641A Pending CN101466186A (en) 2008-12-31 2008-12-31 Driving method and driving device capable of adjusting brightness of high-power LED

Country Status (1)

Country Link
CN (1) CN101466186A (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271439A (en) * 2010-06-02 2011-12-07 英飞特光电(杭州)有限公司 LED (light-emitting diode) light modulator
CN102395230A (en) * 2011-05-04 2012-03-28 凹凸电子(武汉)有限公司 Controller and method for controlling dimming of light sources, and light source driving circuit
CN101605417B (en) * 2009-07-15 2012-08-22 西安英洛华微电子有限公司 LED constant current drive circuit with light dimming function
US8305013B2 (en) 2010-07-12 2012-11-06 O2Micro International Limited Circuits and methods for controlling dimming of a light source
US8330388B2 (en) 2008-12-12 2012-12-11 O2Micro, Inc. Circuits and methods for driving light sources
US8339063B2 (en) 2010-03-04 2012-12-25 O2Micro Inc Circuits and methods for driving light sources
US8339067B2 (en) 2008-12-12 2012-12-25 O2Micro, Inc. Circuits and methods for driving light sources
US8378588B2 (en) 2008-12-12 2013-02-19 O2Micro Inc Circuits and methods for driving light sources
US8508150B2 (en) 2008-12-12 2013-08-13 O2Micro, Inc. Controllers, systems and methods for controlling dimming of light sources
US8698419B2 (en) 2010-03-04 2014-04-15 O2Micro, Inc. Circuits and methods for driving light sources
CN103957637A (en) * 2014-04-28 2014-07-30 四川虹视显示技术有限公司 OLED lighting driving device of low power consumption
US8866398B2 (en) 2012-05-11 2014-10-21 O2Micro, Inc. Circuits and methods for driving light sources
US9030122B2 (en) 2008-12-12 2015-05-12 O2Micro, Inc. Circuits and methods for driving LED light sources
US9232591B2 (en) 2008-12-12 2016-01-05 O2Micro Inc. Circuits and methods for driving light sources
US9253843B2 (en) 2008-12-12 2016-02-02 02Micro Inc Driving circuit with dimming controller for driving light sources
CN105304017A (en) * 2015-10-26 2016-02-03 惠州市德赛智能科技有限公司 Circuit for improving electromagnetic compatibility of LED display screen
CN105357804A (en) * 2015-12-02 2016-02-24 上海航空电器有限公司 Formation lamp LED light source full-life brightness precise control system and control method
US9386653B2 (en) 2008-12-12 2016-07-05 O2Micro Inc Circuits and methods for driving light sources
CN106205503A (en) * 2016-08-01 2016-12-07 青岛海信电器股份有限公司 A kind of LED luminance control method and device
CN106993369A (en) * 2017-05-24 2017-07-28 南京工业大学 Portable low-temperature plasma generating device with human body protection function
CN107592702A (en) * 2017-09-18 2018-01-16 佛山市国星光电股份有限公司 A kind of power conditioning circuitry and LED drive device
CN108174495A (en) * 2017-12-14 2018-06-15 浙江大华技术股份有限公司 The luminance regulating method and device of a kind of signal lamp
CN109413343A (en) * 2018-10-17 2019-03-01 黄秀瑜 A kind of LED video display system
CN111665249A (en) * 2019-03-06 2020-09-15 深圳中科飞测科技有限公司 Light intensity adjusting method and system and optical detection equipment
WO2021013091A1 (en) * 2019-07-19 2021-01-28 深圳光峰科技股份有限公司 Display device
CN112863457A (en) * 2019-11-27 2021-05-28 深圳市万普拉斯科技有限公司 Display brightness adjusting method and device, electronic equipment and storage medium
CN112904645A (en) * 2021-02-04 2021-06-04 成都国翼电子技术有限公司 Low-voltage constant-power infrared illumination power supply system
CN113514748A (en) * 2021-04-30 2021-10-19 上海力兹照明电气有限公司 Continuous pulse output control module and LED measurement system
CN118921798A (en) * 2024-10-09 2024-11-08 国科温州研究院(温州生物材料与工程研究所) LED driving device and electronic equipment

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9030122B2 (en) 2008-12-12 2015-05-12 O2Micro, Inc. Circuits and methods for driving LED light sources
US9253843B2 (en) 2008-12-12 2016-02-02 02Micro Inc Driving circuit with dimming controller for driving light sources
US9232591B2 (en) 2008-12-12 2016-01-05 O2Micro Inc. Circuits and methods for driving light sources
US8330388B2 (en) 2008-12-12 2012-12-11 O2Micro, Inc. Circuits and methods for driving light sources
US9386653B2 (en) 2008-12-12 2016-07-05 O2Micro Inc Circuits and methods for driving light sources
US8339067B2 (en) 2008-12-12 2012-12-25 O2Micro, Inc. Circuits and methods for driving light sources
US8378588B2 (en) 2008-12-12 2013-02-19 O2Micro Inc Circuits and methods for driving light sources
US8508150B2 (en) 2008-12-12 2013-08-13 O2Micro, Inc. Controllers, systems and methods for controlling dimming of light sources
CN101605417B (en) * 2009-07-15 2012-08-22 西安英洛华微电子有限公司 LED constant current drive circuit with light dimming function
US8339063B2 (en) 2010-03-04 2012-12-25 O2Micro Inc Circuits and methods for driving light sources
US8664895B2 (en) 2010-03-04 2014-03-04 O2Micro, Inc. Circuits and methods for driving light sources
US8698419B2 (en) 2010-03-04 2014-04-15 O2Micro, Inc. Circuits and methods for driving light sources
US8890440B2 (en) 2010-03-04 2014-11-18 O2Micro, Inc. Circuits and methods for driving light sources
CN102271439B (en) * 2010-06-02 2014-02-26 浙江思朗照明有限公司 LED (light-emitting diode) light modulator
CN102271439A (en) * 2010-06-02 2011-12-07 英飞特光电(杭州)有限公司 LED (light-emitting diode) light modulator
US8305013B2 (en) 2010-07-12 2012-11-06 O2Micro International Limited Circuits and methods for controlling dimming of a light source
CN102395230A (en) * 2011-05-04 2012-03-28 凹凸电子(武汉)有限公司 Controller and method for controlling dimming of light sources, and light source driving circuit
TWI581657B (en) * 2011-05-04 2017-05-01 凹凸科技國際股份有限公司 Dimming controller for controlling light-emitting diode light source and driving circuit thereof
US8866398B2 (en) 2012-05-11 2014-10-21 O2Micro, Inc. Circuits and methods for driving light sources
CN103957637A (en) * 2014-04-28 2014-07-30 四川虹视显示技术有限公司 OLED lighting driving device of low power consumption
CN105304017A (en) * 2015-10-26 2016-02-03 惠州市德赛智能科技有限公司 Circuit for improving electromagnetic compatibility of LED display screen
CN105357804A (en) * 2015-12-02 2016-02-24 上海航空电器有限公司 Formation lamp LED light source full-life brightness precise control system and control method
CN106205503B (en) * 2016-08-01 2019-08-09 青岛海信电器股份有限公司 A kind of LED luminance adjusting method and device
CN106205503A (en) * 2016-08-01 2016-12-07 青岛海信电器股份有限公司 A kind of LED luminance control method and device
CN106993369A (en) * 2017-05-24 2017-07-28 南京工业大学 Portable low-temperature plasma generating device with human body protection function
CN107592702A (en) * 2017-09-18 2018-01-16 佛山市国星光电股份有限公司 A kind of power conditioning circuitry and LED drive device
CN107592702B (en) * 2017-09-18 2024-04-09 佛山市国星光电股份有限公司 Power regulating circuit and LED lamp driving device
CN108174495B (en) * 2017-12-14 2021-06-15 浙江大华技术股份有限公司 Signal lamp brightness adjusting method and device
CN108174495A (en) * 2017-12-14 2018-06-15 浙江大华技术股份有限公司 The luminance regulating method and device of a kind of signal lamp
CN109413343A (en) * 2018-10-17 2019-03-01 黄秀瑜 A kind of LED video display system
CN109413343B (en) * 2018-10-17 2022-05-03 黄秀瑜 LED video display system
CN111665249A (en) * 2019-03-06 2020-09-15 深圳中科飞测科技有限公司 Light intensity adjusting method and system and optical detection equipment
WO2021013091A1 (en) * 2019-07-19 2021-01-28 深圳光峰科技股份有限公司 Display device
US11893948B2 (en) 2019-07-19 2024-02-06 Appotronics Corporation Limited Display device
CN112863457A (en) * 2019-11-27 2021-05-28 深圳市万普拉斯科技有限公司 Display brightness adjusting method and device, electronic equipment and storage medium
CN112904645A (en) * 2021-02-04 2021-06-04 成都国翼电子技术有限公司 Low-voltage constant-power infrared illumination power supply system
CN113514748A (en) * 2021-04-30 2021-10-19 上海力兹照明电气有限公司 Continuous pulse output control module and LED measurement system
CN118921798A (en) * 2024-10-09 2024-11-08 国科温州研究院(温州生物材料与工程研究所) LED driving device and electronic equipment
CN118921798B (en) * 2024-10-09 2025-02-11 国科温州研究院(温州生物材料与工程研究所) LED driving device and electronic equipment

Similar Documents

Publication Publication Date Title
CN101466186A (en) Driving method and driving device capable of adjusting brightness of high-power LED
US9257067B2 (en) Light source driving circuit of light emitting semiconductor and backlight module
US10638562B2 (en) Power converter, LED driver and control method
CN105265021B (en) Deviation proportion controlled actuator circuit
US20180293946A1 (en) Shadow mask assemblies and reusing methods of shadow mask assemblies thereof
US8941313B2 (en) Light emitting unit driving circuit and light emitting device
CN108093534A (en) Control method, controller and LED drive device
US20150312981A1 (en) Current adjusting device and adjustment method thereof
CN106455211B (en) A kind of LED lamps are the same as universal power driving power control method
CN107787089B (en) An LED lamp control system
CN103139978A (en) Light emitting diode driving device and method thereof
CN110099486A (en) A kind of adjusting control circuit and dimming controlling method
US10045411B2 (en) Dual mode light emitting diode (LED) driver
CN101621872A (en) Driving circuit and projector
CN102111929A (en) Circuit for controlling CC (Constant Current) driving and dimming of LED
CN106804081A (en) Dimming circuit and dimming control method
CN107914636A (en) Vehicle-mounted light adjusting controller
CN103313491B (en) Digital dimming control system for light-emitting diode (LED) and method thereof
CN217363361U (en) LED lamp constant current drive circuit with digital dimming function
CN201893106U (en) Driving control circuit of light emitting diode (LED) back light source
CN108337795B (en) Two-stage low-frequency square wave electronic ballast
CA3070831C (en) A pwm dimming circuit with low stand-by power
CN207737194U (en) Vehicle-mounted light adjusting controller
CN201663730U (en) Constant-current driving dimming control circuit of LED street lamp
CN106851920A (en) A kind of tri-state frequency conversion LED power output power controlling circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090624