The method and system of LED multi-path lamp bead driving are realized using small-power powerTechnical field
The present invention relates to a kind of the LED fields, more particularly to one kind 1. to realize that LED multi-path lamp bead is driven using small-power powerDynamic method further relates to a kind of system for realizing the above method.
Background technology
LED multi-path lamp bead using more prevalent, such as the types such as RGB or RGBW lamp bead application.This kind of multi-way LED lampPearl can realize the mixed light of more rich color, meet the lighting demand of different scenes, greatly expand the purposes of LED illumination.ButThis kind of LED multi-path lamp bead, also to power drives, more stringent requirements are proposed.
Existing common LED multi-path lamp bead driving includes two kinds:One is using small-power power, but can only light simultaneouslyWherein lamp bead all the way;One is using large power supply, multichannel lamp bead can be lighted simultaneously.
Here small-power and high-power, for being opposite lamp bead.To RGB/RGBW multichannel lamp beads, it is assumed that it is exported per roadMaximum power be P, then the general power of small-power power is P, and the general power of large power supply is respectively 3*P, 4*P.
For example, the tri- paths of LEDs lamp beads of RGB of certain brand and model, can export red, green, blue coloured light respectively, per power all the wayFor 3W.For the LED lamp bead of the model, existing small-power multiple power supplies driving, power supply general power is 3W, in this lamp beadOn can only realize the light outputs of three kinds of colors of red, green, blue.And driven for the powerful multiple power supplies of the model lamp bead, alwaysPower is 9W, and arbitrary mixed light output can be carried out on three tunnels.
Above-mentioned small-power power LED multi-path lamp bead driving, can only light lamp bead all the way therein, it is difficult to play more simultaneouslyThe function of paths of LEDs lamp bead can not also blend colorful output light.Power supply may be caused defeated if lighting multichannel lamp bead simultaneouslyGo out more than rated power and damages or even occur on fire Deng danger.And the LED multi-path lamp bead driving of large power supply, although canAccomplish multichannel while output and mixing light, but also results in that power dissipation, high expensive, size are bigger than normal and heat dissipation difficulty etc. is askedTopic, because of cost, size and the calorific value pass all directly proportional to general power of LED power driving.
Invention content
To solve the problems of the prior art, present invention offer is a kind of to realize that LED multi-path lamp bead is driven using small-power powerDynamic method also provides a kind of system for realizing the above method.
The present invention is included the following steps using the method that small-power power realizes the driving of LED multi-path lamp bead:
S1:The light modulation that MCU obtains each paths of LEDs lamp bead by interface inputs, wherein the value range of the light modulation input valueIt is 0~255;
S2:MCU calculates the output intensity of each paths of LEDs lamp bead, wherein MCU is selected from the light modulation input value of each paths of LEDs lamp beadIt is maximized as total brightness, then using the ratio of the input value of each paths of LEDs lamp bead and total brightness as the electricity of each paths of LEDs lamp beadStream or voltage output intensity ratio, the output intensity than value be 0~1;
S3:Each paths of LEDs lamp bead drive module is received from the output intensity of MCU than control signal, is converted to corresponding LED lightThe output current or voltage strength of pearl drive each paths of LEDs lamp bead to show.
The present invention is further improved, and the LED multi-path lamp bead includes tetra- street lamp pearl of tri- street lamp pearls of RGB and RGBW.
The present invention is further improved, when the LED multi-path lamp bead is tri- street lamp pearls of RGB, in step S1, and the light modulationInput value is respectively R, G, B value.
In step s 2, the computational methods are:
S21:Calculate total brightness H:Take the maximum value of R, G, B value as total brightness H, i.e. H=max (R, G, B);
S22:Three tunnel output intensity R', G', B' are calculated, calculation formula is:R'=R/H, G'=G/H, B'=B/H.
The present invention is further improved, when the LED multi-path lamp bead is tetra- street lamp pearls of RGBW, in step S1, and the tuneLight input value is respectively R, G, B value.
In step s 2, the computational methods are:
S21:Calculate white light value W:Take the minimum value in R, G, B value as white light value W, i.e. W=min (R, G, B);
S22:White light value W is subtracted from R, G, B value, obtains R1, G1, B1 value of removal white light value, R1, G1, B1 valueRespectively:R1=R-W, G1=G-W, B1=B-W;
S23:Calculate total brightness H:Take the maximum value of R, G, B, W value as total brightness H, i.e. H=max (R, G, B, W);
S24:Four tunnel output intensity R', G', B', W' are calculated, calculation formula is:R'=R1/H, G'=G1/H, B'=B1/H, W'=W/H.
The present invention also provides a kind of system for realizing the above method, including power supply, MCU, LED multi-path lamp bead drive module andThe LED lamp bead being connect with every paths of LEDs lamp bead drive module, the MCU respectively with power supply and LED multi-path lamp bead drive module phaseEven, the MCU includes input unit:Light modulation for obtaining each paths of LEDs lamp bead by interface inputs, wherein the light modulation is defeatedThe value range for entering value is 0~255;Computing unit:Output intensity for calculating each paths of LEDs lamp bead, wherein the calculating is singleMember chooses maximum value as total brightness from the light modulation input value of each paths of LEDs lamp bead, then by the input value of each paths of LEDs lamp bead withOutput intensity ratio of the ratio of total brightness as the current or voltage of each paths of LEDs lamp bead, the output intensity than value be 0~1;Output unit:For by output intensity than control signal be respectively outputted to corresponding LED lamp bead drive module.
The present invention is further improved, and the LED multi-path lamp bead includes tetra- street lamp pearl of tri- street lamp pearls of RGB and RGBW, inputThe light modulation input value obtained in unit is R, G, B value of three street lamp pearls or R, G, B value of four street lamp pearls.
The present invention is further improved, and when the LED multi-path lamp bead is tri- street lamp pearls of RGB, the LED lamp bead drives mouldBlock includes the roads the R driving unit for driving R street lamp pearls, drives the roads the G driving unit of G street lamp pearls and drive the roads the B driving of B street lamp pearlsUnit.
The present invention is further improved, when the LED multi-path lamp bead is tetra- street lamp pearls of RGBW, the LED lamp bead drivingModule includes the roads the R driving unit for driving R street lamp pearls, the roads the G driving unit for driving G street lamp pearls, the roads B of B street lamp pearls is driven to driveThe roads the W driving unit of moving cell and driving W street lamp pearls.
Compared with prior art, the beneficial effects of the invention are as follows:It can either realize multichannel while export, multichannel while mixed lightDemand, meet the needs of all kinds of light scenes;Power dissipation can be effectively reduced again, reduce size and the fever of power drivesAmount, reduces the totle drilling cost of lamps and lanterns, realizes the miniaturization of lamps and lanterns, meet the needs of different installation.
Description of the drawings
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is one system structure diagram of the embodiment of the present invention;
Fig. 3 is one MCU computational methods flow charts of embodiment;
Fig. 4 is two system structural schematic diagram of the embodiment of the present invention;
Fig. 5 is two MCU computational methods flow charts of embodiment.
Specific implementation mode
The present invention is described in further details with reference to the accompanying drawings and examples.
The present invention is by rational method, to control the brightness of lamp bead so that the gross output of all lamp beads is no more thanThe rated power of small-power power, while the light luminance and color that export can substantially coincide with the target requirement of user, fromAnd power dissipation is reduced, size and the calorific value of power drives are reduced, the totle drilling cost of lamps and lanterns is reduced, to realize the small-sized of lamps and lanternsChange, meets the needs of different installation.
As shown in Figure 1, the present invention realizes that the method that LED multi-path lamp bead drives includes the following steps using small-power power:
S1:The light modulation that MCU obtains each paths of LEDs lamp bead by interface inputs, wherein the value range of the light modulation input valueIt is 0~255;
S2:MCU calculates the output intensity of each paths of LEDs lamp bead, wherein MCU is selected from the light modulation input value of each paths of LEDs lamp beadIt is maximized as total brightness, then using the ratio of the input value of each paths of LEDs lamp bead and total brightness as the electricity of each paths of LEDs lamp beadStream or voltage output intensity ratio, the output intensity than value be 0~1, that is to say, that the output intensity ratio be electric currentOr voltage, relative to maximum output current, the percentage of voltage, the percentage minimum 0% is up to 100%.
S3:Each paths of LEDs lamp bead drive module is received from the output intensity of MCU than control signal, is converted to corresponding LED lightThe output current or voltage strength of pearl drive each paths of LEDs lamp bead to show.Percentage in step S2 is by being sent to LED lamp bead drivingAfter module, by the intensity that LED lamp bead drive module circuit conversion is corresponding current or voltage.LED lamp bead drive module circuitDetermine it is to control the size of electric current, or control the size of voltage according to circuit design requirements.
This example LED multi-path lamp bead includes tetra- street lamp pearl of tri- street lamp pearls of RGB and RGBW.Method using the present invention so that thisThe sum of power of each road power drives of invention is not more than rated power, while to efficiently reduce power waste,Realize that each street lamp pearl mixing exports various colorful lights.
Correspond, the present invention realize the above method system include power supply, MCU, LED multi-path lamp bead drive module andThe LED lamp bead being connect with every paths of LEDs lamp bead drive module, the MCU respectively with power supply and LED multi-path lamp bead drive module phaseEven, wherein the MCU includes input unit:Light modulation for obtaining each paths of LEDs lamp bead by interface inputs, wherein the tuneThe value range of light input value is 0~255;Computing unit:Output intensity for calculating each paths of LEDs lamp bead, wherein the meterIt calculates unit and chooses maximum value from the light modulation input value of each paths of LEDs lamp bead as total brightness, then by the input of each paths of LEDs lamp beadOutput intensity ratio of the value with the ratio of total brightness as the current or voltage of each paths of LEDs lamp bead, the output intensity than valueIt is 0~1;Output unit:For by output intensity than control signal be respectively outputted to corresponding LED lamp bead drive module.
Wherein, power module is responsible for alternating current being converted to the required direct current of MCU and Ge Lu drivings;Single-chip microprocessor MCU isControl centre is handled, is responsible for receiving RGB light modulation inputs from user, algorithmically be calculated, and each road output driving is carried outControl, output intensity and the result of calculation on the roads Shi Ge are consistent;LED lamp bead drive module receives the control signal come from MCUAnd output current/voltage strength of LED lamp bead is converted to, drive the display of LED lamp bead.
As shown in Fig. 2, when the LED multi-path lamp bead is tri- street lamp pearls of RGB, the light modulation obtained in the input unit is defeatedEnter R, G, B value that value is three street lamp pearls.The LED lamp bead drive module includes the roads the R driving unit for driving R street lamp pearls, driving GThe roads the B driving unit of the roads the G driving unit and driving B street lamp pearls of street lamp pearl.
As shown in figure 3, when the LED multi-path lamp bead includes tri- street lamp pearls of RGB, the processing method of the system is:
S1:Start, the input of R, G, B value is received from user;
S21:Calculate total brightness H:Take the maximum value of R, G, B value as total brightness H, i.e. H=max (R, G, B);
S22:Three tunnel output intensity R', G', B' are calculated, calculation formula is:R'=R/H, G'=G/H, B'=B/H;
S3:The output current of the roads R driving unit, the roads G driving unit and the roads B driving unit is respectively set according to R', G', B'Or voltage strength.
It is finished, waits for the input next time of user, if user has input again, cycle executes step S1-S3.
As shown in figure 4, when the LED multi-path lamp bead is tetra- street lamp pearls of RGBW, the light modulation that obtains in the input unitInput value is R, G, B value.The LED lamp bead drive module includes the roads the R driving unit for driving R street lamp pearls, driving G street lamp pearlsThe roads G driving unit, the roads the B driving unit for driving B street lamp pearls and the roads the W driving unit for driving W street lamp pearls.
As shown in figure 5, when the LED multi-path lamp bead is tetra- street lamp pearls of RGBW, the processing method of the system is:
S1:Start, the input of R, G, B value is received from user;
S21:Calculate white light value W:Take the minimum value in R, G, B value as white light value W, i.e. W=min (R, G, B);
S22:White light value W is subtracted from R, G, B value, obtains R1, G1, B1 value of removal white light value, R1, G1, B1 valueRespectively:R1=R-W, G1=G-W, B1=B-W;
S23:Calculate total brightness H:Take the maximum value of R, G, B, W value as total brightness H, i.e. H=max (R, G, B, W);
S24:Four tunnel output intensity R', G', B', W' are calculated, calculation formula is:R'=R1/H, G'=G1/H, B'=B1/H, W'=W/H;
S3:The roads R driving unit, the roads G driving unit, the roads B driving unit, the driving of the roads W is respectively set according to R', G', B', W'The output current or voltage strength of unit.
It is finished, waits for the input next time of user.
The present invention can either realize multichannel while export that the demand of multichannel while mixed light meets the need of all kinds of light scenesIt asks;Power dissipation can be effectively reduced again, reduces size and the calorific value of power drives, reduces the totle drilling cost of lamps and lanterns, realize lampThe miniaturization of tool meets the needs of different installation.
The specific implementation mode of the above is the better embodiment of the present invention, not limits the specific of the present invention with thisPractical range, the scope of the present invention includes being not limited to present embodiment, all equal according to equivalence changes made by the present inventionWithin the scope of the present invention.