CN109005617A - A kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller - Google Patents
A kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller Download PDFInfo
- Publication number
- CN109005617A CN109005617A CN201810735478.7A CN201810735478A CN109005617A CN 109005617 A CN109005617 A CN 109005617A CN 201810735478 A CN201810735478 A CN 201810735478A CN 109005617 A CN109005617 A CN 109005617A
- Authority
- CN
- China
- Prior art keywords
- color
- rgb
- ratio
- mix
- tri
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The present invention provides a kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller.Method includes: that precentagewise is converted to R respectively by collected tri- color of the RGB coordinate value that respectively LED is inputtedinput_ratio、Ginput_ratio、Binput_ratio, while the reference color coordinate parameter according to preset tri- color of RGB, the three primary colours values X of blend color is calculatedmix、Ymix、Zmix;Chromaticity coordinates parameter and X according to the respective LED itself of tri- color of RGBmix、Ymix、Zmix, tri- color of RGB brightness value shared respectively after light mixing is calculated;The PWM duty cycle of the respective LED of tri- color of RGB is calculated according to obtained brightness value;The driving current of each color of RGB LED is adjusted according to obtained PWM duty cycle.This invention ensures that RGB color and the consistency of brightness.
Description
Technical field
The invention mainly relates to the light modulation controls of automobile interior decoration RGB (red green blue, RGB) atmosphere lamp controller
Field processed more particularly to a kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller, to realize to three color RGB LED
The driving current of each color be adjusted.
Background technique
With people's raising that personalized, comfort requires to automobile and the development of automotive grade RGB LED, RGB polychrome
Atmosphere lamp on automobile using more and more.Therefrom cup holder is arrived in control, almost all to install atmosphere lamp from car door to skylight
Place atmosphere lamp can be all installed as far as possible to improve the luxurious sense of entire in-car decorations.Therefore how to guarantee that RGB automobile atmosphere lamp is defeated
The color of light and the consistency of brightness are one of an important factor for improving the luxurious sense of entire in-car decorations out.
RGB LED is enclosed in the LED of red, green, blue these three colors in one LED encapsulation.In practical applications, pass through
PWM control adjusts the driving current of red, green, blue these three colors to realize full-color toning.
Traditional interior atmosphere lamp is realized by there is pole light-dimming method.Pole light-dimming method is according to client definition
The PWM duty cycle value of tri- color of RGB is stored to EEPROM and is realized by chromaticity coordinates, and this scheme is for the limited kind of relatively good reality of color
It is existing, and if up to tens kinds of customer demand even hundreds of color, this method can not just use in volume production project.Separately
Outside, there is the PWM duty cycle for controlling tri- color of RGB in the light-dimming method of pole that can not adjust, also just cannot respond to different LED parameters and environment
Influence of the temperature for the mixed color come out, final light mixing are likely to occur deviation, influence the comfort of people.Also therefore, electrodeless
Light-dimming method is increasingly becoming a current research tendency.
The non-pole light regulating method proposed at present is a kind of algorithm that light mixing is carried out by inverse matrix conversion.However it seeks inverse
The inherently very complicated mathematical procedure of matrix, complicated Multiple Cycle, gesture will be introduced by meaning that for the realization of software
Very big operand must be brought, excessively high MCU utilization rate is occupied, originally not abundant MCU resource is made to seem awkward.
And application often up to tens nodes of RGB automobile atmosphere lamp in the car, it is contemplated that itself color of each LED in RGB LED
Coordinate parameters are mutually variant, if carrying out light mixing then according to LED itself chromaticity coordinates parameter it is difficult to ensure that the one of color and brightness
Cause property.
Summary of the invention
In view of this, the present invention provides a kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller, it is existing to solve
There is electrodeless light-dimming method is existing to occupy that MCU utilization rate is excessively high, and not can guarantee the color of RGB automobile atmosphere lamp output light and bright
The problem of consistency of degree.Technical solution is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of non-pole light regulating method based on vehicle-mounted RGB controller, packet
It includes:
Acquire tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin, and by collected coordinate value Rin、Gin、BinPoint
Other precentagewise is converted to Rinput_ratio、Ginput_ratio、Binput_ratio;
Reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S,
yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, the three primary colours values of blend color is calculated
Xmix、Ymix、Zmix;
Addition principle based on light mixing, the chromaticity coordinates parameter (x according to the respective LED itself of tri- color of RGBR, yR)、(xG, yG)、
(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, tri- color of RGB is calculated and divides after light mixing
Not shared brightness value YR_target, YG_target, YB_target;
The brightness value Y shared respectively after light mixing according to tri- color of RGB being calculatedR_target, YG_target, YB_target, meter
Calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio;
PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, to each color of RGB LED
Driving current be adjusted.
Optionally, the reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S,
YG_S)、(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, the three of blend color are calculated
Primary colours values Xmix、Ymix、ZmixInclude:
The three primary colours values X of blend color is calculated using following formulamix、Ymix、Zmix:
Ymix=1 × YR_S×Rinput_ratio+1×YG_S×Ginput_ratio+1×YB_S×Binput_ratio;
Optionally, the addition principle based on light mixing, the chromaticity coordinates parameter (x according to the respective LED itself of tri- color of RGBR,
yR)、(xG, yG)、(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, RGB tri- is calculated
Color brightness value Y shared respectively after light mixingR_target, YG_target, YB_targetInclude:
Tri- color of RGB brightness value Y shared respectively after light mixing is calculated using following formulaR_target, YG_target,
YB_target:
1×YR_target+1×YG_target+1×YB_target=Ymix
Optionally, tri- color of RGB that the foundation is calculated brightness value Y shared respectively after light mixingR_target,
YG_target, YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratioInclude:
The PWM duty cycle Y of the respective LED of tri- color of RGB is calculated using following formulaR_ratio, YG_ratio, YB_ratio:
Optionally, acquisition tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、BinInclude:
Tri- color of RGB, 255 seats that respectively LED is inputted transmitted by the acquisition of LIN bus from car body control module BCM
Scale value.
Based on another aspect of the present invention, the present invention provides a kind of electrodeless dimming device based on vehicle-mounted RGB controller, packet
It includes:
Acquisition unit, for acquiring tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin;
Converting unit is used for the collected coordinate value R of the acquisition unitin、Gin、BinPrecentagewise is converted respectively
To Rinput_ratio、Ginput_ratio、Binput_ratio;
First computing unit, for the reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S,
yG_S, YG_S)、(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, blend color is calculated
Three primary colours values Xmix、Ymix、Zmix;
Second computing unit, the chromaticity coordinates ginseng for the addition principle based on light mixing, according to the respective LED itself of tri- color of RGB
Number (xR, yR)、(xG, yG)、(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, it is calculated
Tri- color of RGB brightness value Y shared respectively after light mixingR_target, YG_target, YB_target;
Third computing unit, for the brightness value Y shared respectively after light mixing according to tri- color of RGB being calculatedR_target,
YG_target, YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio;
Driving unit, for the PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, to RGB
The driving current of each color of LED is adjusted.
Optionally, first computing unit is specifically used for that the three primary colours thorn of blend color is calculated using following formula
Swash value Xmix、Ymix、Zmix:
Ymix=1 × YR_S×Rinput_ratio+1×YG_S×Ginput_ratio+1×YB_S×Binput_ratio;
Optionally, second computing unit is specifically used for that tri- color of RGB is calculated after light mixing point using following formula
Not shared brightness value YR_target, YG_target, YB_target:
1×YR_target+1×YG_target+1×YB_target=Ymix
Optionally, the third computing unit is specifically used for that RGB tri- color respectively LED is calculated using following formula
PWM duty cycle YR_ratio, YG_ratio, YB_ratio:
Optionally, the acquisition unit is specifically used for transmitting by the acquisition of LIN bus from car body control module BCM
Tri- color of RGB respectively LED input 255 coordinate values.
In non-pole light regulating method and apparatus provided by the invention based on vehicle-mounted RGB controller, it is contemplated that every in RGB LED
Itself chromaticity coordinates parameter of a LED is mutually variant, and the present invention introduces the reference color coordinate parameter (x of preset tri- color of RGBR_S,
yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S), by tri- color of RGB, respectively the actual input of LED passes through reference color coordinate
Parameter exports to obtain the chromaticity coordinates X of required blend colormix、Ymix、Zmix(i.e. the three primary colours values of blend color), it is thus real
Show by means of reference color coordinate parameter, has respectively established one between the input of LED actual signal and blend color output in tri- color of RGB
One-to-one correspondence ensures that in this way as long as the blend color of output is fixed then actual signal input is certain
RGB color and the consistency of brightness consider the influence of the chromaticity coordinates parameter of different LED without spending.And in realization of the invention
The processing of inverse matrix conversion it is not related in journey, operand is lower, will not occupy excessively high MCU utilization rate.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the non-pole light regulating method based on vehicle-mounted RGB controller provided by the invention;
Fig. 2 is a kind of structural schematic diagram of the electrodeless dimming device based on vehicle-mounted RGB controller provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
One of main design idea of the invention includes but is not limited to: in order to avoid the chromaticity coordinates parameter of different LED may
The deviation of caused color, the present invention introduce reference color coordinate parameter (xR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S,
yB_S, YB_S), i.e., by respectively mixing color needed for the actual input of LED is exported to by reference color coordinate parameter for tri- color of RGB
The chromaticity coordinates X of (abbreviation blend color)mix、Ymix、Zmix(i.e. the three primary colours values of blend color), can thus pass through mark
Quasi- chromaticity coordinates parameter inputs in actual signal and establishes one-to-one relationship between the mixed color output come out, as long as then real
Signal input in border is certain, mixes the blend color fixation come out, ensures that the consistency of RGB color without spending in this way
Consider the influence of the chromaticity coordinates parameter of different LED.The present invention acquires Xmix、Ymix、ZmixLater, according to the addition principle of light mixing,
It can establish three equatioies in relation to chromaticity coordinates X, Y, Z and three-color LED R, G, B, then by specific RGB LED chromaticity coordinates parameter
Be updated to basic optical formula three ternary once linear equation groups can be obtained then can the side of solving then to solving equations
Journey group obtains RGB respectively brightness value Y LED shared in light mixingR_target, YG_target, YB_target, and then it is based on YR_target,
YG_target, YB_targetThe respective PWM duty cycle of RGB three-color LED is found out, realizes the driving to each color of three color RGB LED
Electric current is adjusted.
Before specifically introducing the non-pole light regulating method provided by the invention based on vehicle-mounted RGB controller, applicant is first
The relevant technologies of the present invention are simply introduced.
CIE XYZ system defines three primary colours values, and the present invention is indicated with letter X, Y, Z.Wherein the present invention realized
The X being related in journeymix、Ymix、ZmixFor the chromaticity coordinates X for the blend color to be acquiredmix、Ymix、Zmix。
CIE xyY system is the color space that can be derived from CIE XYZ system, it using brightness Y parameter and
Color coordinates x, y describe color.Y value in CIE xyY system is consistent with the Y values in CIE XYZ system, indicates color
Brightness.Color coordinates x, y are used to designated color, this chromatic diagram on X-Y scheme and are called 1931 chromatic diagram of CIE.Wherein CIE
The xyY in XYZ and CIE xyY system in XYZ system has conversion relation shown in following formula (1).Wherein in formula (1)
What left side of the equal sign represented is CIE XYZ system, and what right side of the equal sign represented is CIE xyY system.
Y=Y;
Assuming that trichromatic coordinates parameter is (x in CIE xyY systemR, yR, YR)、(xG, yG, YG)、(xB, yB, YB), then utilizing
Above-mentioned formula (1) is available:
The basic principle for the light mixing that LED three primary colors are followed in light mixing is the addition principle of light mixing, following formula (2) institute
Show:
Xmix=XR+XG+XB;
Ymix=YR+YG+YB;
Zmix=ZR+ZG+ZBFormula (2)
Wherein XR、YR、ZRRespectively the X values of red light, Y values, Z values, XG、YG、ZGRespectively green light
X values, Y values, Z values, XB、YB、ZBRespectively X values, Y values, the Z values of blue light.
Before realizing the non-pole light regulating method provided by the invention based on vehicle-mounted RGB controller, the present invention is pre-defined
Reference color coordinate parameter (the x of tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S).The reference colour is sat
Mark parameter (xR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S) it is a set of colour gamut parameter independently defined, tool
Body numerical value can go flexible setting and adjustment according to actual items demand.Specifically for example, the present invention can define Red (red light)
Reference color coordinate parameter (xR_S, yR_S, YR_S) it is (0.69,0.31,490mcd), the reference color coordinate of Green (green light) is joined
Number (xG_S, yG_S, YG_S) it is (0.17,0.72,770mcd), the reference color coordinate parameter (x of Blue (blue light)B_S, yB_S, YB_S)
For (0.15,0.03,175mcd).
Specifically, the non-pole light regulating method provided by the invention based on vehicle-mounted RGB controller is as shown in Figure 1, method can be with
Include:
Step 101, acquisition tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin, and by collected coordinate value Rin、
Gin、BinPrecentagewise is converted to R respectivelyinput_ratio、Ginput_ratio、Binput_ratio。
The present invention can be directly over the acquisition of LIN bus from BCM (Body ControlModule, car body control module)
Tri- color of RGB transmitted, the 255 coordinate value R that respectively LED is inputtedin、Gin、Bin, and by the coordinate value R of this tri- color of RGBin、Gin、
BinPrecentagewise is converted to R respectivelyinput_ratio、Ginput_ratio、Binput_ratio。
Step 102, the reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、
(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, the three primary colours of blend color are calculated
Values Xmix、Ymix、Zmix。
The present invention is obtaining Rinput_ratio、Ginput_ratio、Binput_ratioAfterwards, first by the Rinput_ratio、Ginput_ratio、
Binput_ratioAbove-mentioned formula (1) and formula (2), then the reference color coordinate parameter (x according to preset tri- color of RGB are substituted into respectivelyR_S,
yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S), the three primary colours values X of blend color is calculatedmix、Ymix、
Zmix。
Specifically, it can use the three primary colours values X that blend color is calculated in following formula (3)mix、Ymix、Zmix:
Ymix=1 × YR_S×Rinput_ratio+1×YG_S×Ginput_ratio+1×YB_S×Binput_ratio;
Formula (3).
Step 103, the chromaticity coordinates parameter (x based on the addition principle of light mixing, according to the respective LED itself of tri- color of RGBR, yR)、
(xG, yG)、(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, tri- color of RGB is calculated and exists
Brightness value Y shared respectively after light mixingR_target, YG_target, YB_target。
Based on the addition principle of light mixing shown in aforementioned formula (2), the present invention is in the three primary colours that blend color is calculated
Values Xmix、Ymix、ZmixAfterwards, by the chromaticity coordinates parameter (x of the respective LED itself of tri- color of RGBR, yR)、(xG, yG)、(xB, yB) again
Above-mentioned formula (1) and formula (2) are substituted into, and combines the three primary colours values X of obtained blend colormix、Ymix、ZmixIt can obtain
To three ternary once linear equation groups shown in following formula (4).
1×YR_target+1×YG_target+1×YB_target=Ymix
Formula (4).
It should be noted that the chromaticity coordinates parameter (x of the respective LED itself of tri- color of RGBR, yR)、(xG, yG)、(xB, yB) be all
It is known.
In formula (4), YR_target, YG_target, YB_targetKnown variables, it means that RGB respectively LED in light mixing
Shared brightness value.Pass through the solution to formula (4) equation group, so that it may respectively obtain YR_target, YG_target, YB_target's
Value.
In the present invention, YR_target, YG_target, YB_targetDerivation process it is as follows in detail:
Firstly, the present invention is by the coefficient entry of three ternary linear function groups in formula (4)1、1、1、Respectively with a_11, a_12, a_13, a_21, a_22, a_23, a_31,
A_32, a_33 indicate (expression also is understood as replacing), by Xmix、Ymix、ZmixIndicate that (expression can also with b_1, b_2, b_3 respectively
It is interpreted as replacing), by YR_target, YG_target, YB_target(expression also is understood as replacing) is indicated with X_1, X_2, X_3 respectively.
Thus relationship as shown in table 1 below is obtained:
Table 1
Based on the above-mentioned solution to equation group, it is each that tri- color of RGB, tri- color of RGB after light mixing can be successfully calculated in the present invention
The brightness value Y shared respectively in light mixing from LEDR_target, YG_target, YB_target。
Step 104, the brightness value Y shared respectively after light mixing according to tri- color of RGB being calculatedR_target, YG_target,
YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio。
Obtaining tri- color of RGB brightness value Y shared respectively after light mixingR_target, YG_target, YB_targetAfterwards, the present invention adopts
The PWM duty cycle Y of the respective LED of tri- color of RGB is calculated with following formula (5)R_ratio, YG_ratio, YB_ratio:
Wherein YR, YG, YBThe respectively respective brightness value parameter of RGB three-color LED, is known terms.
Step 105, the PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, to RGB LED's
The driving current of each color is adjusted.
Obtaining the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratioIt afterwards, then can be with direct basis
The PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratioThe driving current of each color of RGB LED is carried out
It adjusts.
In non-pole light regulating method provided by the invention based on vehicle-mounted RGB controller, it is contemplated that each LED in RGB LED
Itself chromaticity coordinates parameter it is mutually variant, the present invention introduces the reference color coordinate parameter (x of preset tri- color of RGBR_S, yR_S,
YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S), by tri- color of RGB, respectively the actual input of LED passes through reference color coordinate parameter
Export obtains the chromaticity coordinates X of required blend colormix、Ymix、Zmix(i.e. the three primary colours values of blend color), it is thus achieved that
By means of reference color coordinate parameter, an a pair is respectively established between the input of LED actual signal and blend color output in tri- color of RGB
The relationship answered ensures that RGB face as long as the blend color of output is fixed then actual signal input is certain in this way
Color and the consistency of brightness consider the influence of the chromaticity coordinates parameter of different LED without spending.And during realization of the invention
The processing of inverse matrix conversion it is not related to, operand is lower, will not occupy excessively high MCU utilization rate.
Based on a kind of non-pole light regulating method based on vehicle-mounted RGB controller provided by the invention above, the present invention also provides
A kind of electrodeless dimming device based on vehicle-mounted RGB controller, as shown in Fig. 2, device may include:
Acquisition unit 10, for acquiring tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin;
Converting unit 20 is used for the collected coordinate value R of the acquisition unit 10in、Gin、BinPrecentagewise turns respectively
Get R in returninput_ratio、Ginput_ratio、Binput_ratio;
First computing unit 30, for the reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、
(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, it is calculated mixed
Close the three primary colours values X of colormix、Ymix、Zmix;
Second computing unit 40, the chromaticity coordinates for the addition principle based on light mixing, according to the respective LED itself of tri- color of RGB
Parameter (xR, yR)、(xG, yG)、(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, calculate
The brightness value Y shared respectively after light mixing to tri- color of RGBR_target, YG_target, YB_target;
Third computing unit 50, for the brightness value shared respectively after light mixing according to tri- color of RGB being calculated
YR_target, YG_target, YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio;
Driving unit 60, for the PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, to RGB
The driving current of each color of LED is adjusted.
Wherein specifically:
Acquisition unit 10 is specifically used for tri- color of the RGB respectively LED input transmitted by the acquisition of LIN bus from BCM
255 coordinate values.
First computing unit 30 is specifically used for that the three primary colours values X of blend color is calculated using following formulamix、
Ymix、Zmix:
Ymix=1 × YR_S×Rinput_ratio+1×YG_S×Ginput_ratio+1×YB_S×Binput_ratio;
It is shared bright respectively after light mixing that second computing unit 40 is specifically used for being calculated tri- color of RGB using following formula
Angle value YR_target, YG_target, YB_target:
1×YR_target+1×YG_target+1×YB_target=Ymix
Third computing unit 50 is specifically used for that the PWM duty cycle of the respective LED of tri- color of RGB is calculated using following formula
YR_ratio, YG_ratio, YB_ratio:
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller provided by the present invention have been carried out in detail above
Thin to introduce, specific examples are used herein to illustrate the principle and implementation manner of the present application, and above embodiments are said
It is bright to be merely used to help understand the present processes and its core concept;At the same time, for those skilled in the art, foundation
The thought of the application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not
It is interpreted as the limitation to the application.
Claims (10)
1. a kind of non-pole light regulating method based on vehicle-mounted RGB controller characterized by comprising
Acquire tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin, and by collected coordinate value Rin、Gin、BinIt presses respectively
Percentage is converted to Rinput_ratio、Ginput_ratio、Binput_ratio;
Reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S,
YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, the three primary colours values X of blend color is calculatedmix、
Ymix、Zmix;
Addition principle based on light mixing, the chromaticity coordinates parameter (x according to the respective LED itself of tri- color of RGBR, yR)、(xG, yG)、(xB,
yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, tri- color of RGB is calculated and distinguishes after light mixing
Shared brightness value YR_target, YG_target, YB_target;
The brightness value Y shared respectively after light mixing according to tri- color of RGB being calculatedR_target, YG_target, YB_target, calculate
The PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio;
PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, drive to each color of RGB LED
Streaming current is adjusted.
2. the method according to claim 1, wherein the reference color coordinate according to preset tri- color of RGB is joined
Number (xR_S, yR_S, YR_S)、(xG_S, yG_S, YG_S)、(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、
Binput_ratio, the three primary colours values X of blend color is calculatedmix、Ymix、ZmixInclude:
The three primary colours values X of blend color is calculated using following formulamix、Ymix、Zmix:
3. the method according to claim 1, wherein the addition principle based on light mixing, each according to tri- color of RGB
From the chromaticity coordinates parameter (x of LED itselfR, yR)、(xG, yG)、(xB, yB) and the three primary colours values of blend color that is calculated
Xmix、Ymix、Zmix, tri- color of RGB brightness value Y shared respectively after light mixing is calculatedR_target, YG_target, YB_targetInclude:
Tri- color of RGB brightness value Y shared respectively after light mixing is calculated using following formulaR_target, YG_target, YB_target:
4. the method according to claim 1, wherein tri- color of RGB that the foundation is calculated divides after light mixing
Not shared brightness value YR_target, YG_target, YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio,
YG_ratio, YB_ratioInclude:
The PWM duty cycle Y of the respective LED of tri- color of RGB is calculated using following formulaR_ratio, YG_ratio, YB_ratio:
5. the method according to claim 1, wherein acquisition tri- color of the RGB coordinate value that respectively LED is inputted
Rin、Gin、BinInclude:
Tri- color of RGB, 255 coordinates that respectively LED is inputted transmitted by the acquisition of LIN bus from car body control module BCM
Value.
6. a kind of electrodeless dimming device based on vehicle-mounted RGB controller characterized by comprising
Acquisition unit, for acquiring tri- color of the RGB coordinate value R that respectively LED is inputtedin、Gin、Bin;
Converting unit is used for the collected coordinate value R of the acquisition unitin、Gin、BinPrecentagewise is converted to respectively
Rinput_ratio、Ginput_ratio、Binput_ratio;
First computing unit, for the reference color coordinate parameter (x according to preset tri- color of RGBR_S, yR_S, YR_S)、(xG_S, yG_S,
YG_S)、(xB_S, yB_S, YB_S), in conjunction with obtained Rinput_ratio、Ginput_ratio、Binput_ratio, the three of blend color are calculated
Primary colours values Xmix、Ymix、Zmix;
Second computing unit, the chromaticity coordinates parameter (x for the addition principle based on light mixing, according to the respective LED itself of tri- color of RGBR,
yR)、(xG, yG)、(xB, yB) and the three primary colours values X of blend color that is calculatedmix、Ymix、Zmix, RGB tri- is calculated
Color brightness value Y shared respectively after light mixingR_target, YG_target, YB_target;
Third computing unit, for the brightness value Y shared respectively after light mixing according to tri- color of RGB being calculatedR_target,
YG_target, YB_target, calculate the PWM duty cycle Y of the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio;
Driving unit, for the PWM duty cycle Y according to the respective LED of tri- color of RGBR_ratio, YG_ratio, YB_ratio, to RGB LED's
The driving current of each color is adjusted.
7. device according to claim 6, which is characterized in that first computing unit is specifically used for using following formula
The three primary colours values X of blend color is calculatedmix、Ymix、Zmix:
8. device according to claim 6, which is characterized in that second computing unit is specifically used for using following formula
Tri- color of RGB brightness value Y shared respectively after light mixing is calculatedR_target, YG_target, YB_target:
9. device according to claim 6, which is characterized in that the third computing unit is specifically used for using following formula
The PWM duty cycle Y of the respective LED of tri- color of RGB is calculatedR_ratio, YG_ratio, YB_ratio:
10. device according to claim 6, which is characterized in that the acquisition unit is specifically used for acquiring by LIN bus
Tri- color of RGB transmitted from car body control module BCM, 255 coordinate values that respectively LED is inputted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810735478.7A CN109005617B (en) | 2018-07-06 | 2018-07-06 | Stepless dimming method and device based on vehicle-mounted RGB controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810735478.7A CN109005617B (en) | 2018-07-06 | 2018-07-06 | Stepless dimming method and device based on vehicle-mounted RGB controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005617A true CN109005617A (en) | 2018-12-14 |
CN109005617B CN109005617B (en) | 2020-06-19 |
Family
ID=64599435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810735478.7A Active CN109005617B (en) | 2018-07-06 | 2018-07-06 | Stepless dimming method and device based on vehicle-mounted RGB controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005617B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677955A (en) * | 2019-10-22 | 2020-01-10 | 滨州学院 | Method and system for determining maximum brightness of RGB LED light source matching target chromaticity |
CN110719661A (en) * | 2019-10-16 | 2020-01-21 | 肖高利 | Algorithm for improving light source color rendering index to approach natural spectrum |
CN112989689A (en) * | 2021-01-29 | 2021-06-18 | 上汽大众汽车有限公司 | Method for simulating RGB atmosphere light color |
WO2022057191A1 (en) * | 2020-09-18 | 2022-03-24 | 广州市浩洋电子股份有限公司 | Unified color control method for multi-color lamps |
US11729876B2 (en) | 2020-09-18 | 2023-08-15 | Guangzhou Haoyang Electronic Co., Ltd. | Unified color control method for multi-color light |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996585A (en) * | 2010-11-03 | 2011-03-30 | 中航华东光电有限公司 | RGB three primary colours LED backlight based automatic white balance adjustment system and method thereof |
WO2014185109A1 (en) * | 2013-05-13 | 2014-11-20 | シャープ株式会社 | Liquid crystal display device, and data correction method in liquid crystal display device |
JP2016126032A (en) * | 2014-12-26 | 2016-07-11 | 大日本印刷株式会社 | Color adjustment device and color adjustment program |
CN106304527A (en) * | 2015-06-08 | 2017-01-04 | 欧普照明股份有限公司 | A kind of Lighting Control Assembly and illumination control method |
JP2017015526A (en) * | 2015-06-30 | 2017-01-19 | 日置電機株式会社 | Measurement device and measurement method |
CN106817811A (en) * | 2017-03-30 | 2017-06-09 | 横店集团得邦照明股份有限公司 | Based on the method that PWM four primaries LED realizes full gamut scope luminous intensity distribution |
CN107085858A (en) * | 2017-03-24 | 2017-08-22 | 广州市雅江光电设备有限公司 | A kind of bearing calibration of blend color |
-
2018
- 2018-07-06 CN CN201810735478.7A patent/CN109005617B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996585A (en) * | 2010-11-03 | 2011-03-30 | 中航华东光电有限公司 | RGB three primary colours LED backlight based automatic white balance adjustment system and method thereof |
WO2014185109A1 (en) * | 2013-05-13 | 2014-11-20 | シャープ株式会社 | Liquid crystal display device, and data correction method in liquid crystal display device |
JP2016126032A (en) * | 2014-12-26 | 2016-07-11 | 大日本印刷株式会社 | Color adjustment device and color adjustment program |
CN106304527A (en) * | 2015-06-08 | 2017-01-04 | 欧普照明股份有限公司 | A kind of Lighting Control Assembly and illumination control method |
JP2017015526A (en) * | 2015-06-30 | 2017-01-19 | 日置電機株式会社 | Measurement device and measurement method |
CN107085858A (en) * | 2017-03-24 | 2017-08-22 | 广州市雅江光电设备有限公司 | A kind of bearing calibration of blend color |
CN106817811A (en) * | 2017-03-30 | 2017-06-09 | 横店集团得邦照明股份有限公司 | Based on the method that PWM four primaries LED realizes full gamut scope luminous intensity distribution |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719661A (en) * | 2019-10-16 | 2020-01-21 | 肖高利 | Algorithm for improving light source color rendering index to approach natural spectrum |
CN110719661B (en) * | 2019-10-16 | 2021-06-29 | 肖高利 | Algorithm for improving light source color rendering index to approach natural spectrum |
CN110677955A (en) * | 2019-10-22 | 2020-01-10 | 滨州学院 | Method and system for determining maximum brightness of RGB LED light source matching target chromaticity |
WO2022057191A1 (en) * | 2020-09-18 | 2022-03-24 | 广州市浩洋电子股份有限公司 | Unified color control method for multi-color lamps |
US11729876B2 (en) | 2020-09-18 | 2023-08-15 | Guangzhou Haoyang Electronic Co., Ltd. | Unified color control method for multi-color light |
CN112989689A (en) * | 2021-01-29 | 2021-06-18 | 上汽大众汽车有限公司 | Method for simulating RGB atmosphere light color |
Also Published As
Publication number | Publication date |
---|---|
CN109005617B (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005617A (en) | A kind of non-pole light regulating method and apparatus based on vehicle-mounted RGB controller | |
CN106163020B (en) | Automobile atmosphere lamp intelligent control method and control system | |
CN106817811B (en) | The method for realizing full gamut range light distribution based on PWM four primary LED | |
CN109496035B (en) | Color matching method, color matching method and system for automatically realizing maximum brightness of colored lamp | |
CN103999553B (en) | The brightness of association and the solid-state illumination switch and lighting device and its operating method of color control are optionally provided | |
CN101283628B (en) | Method and system for variable color lighting | |
CN106128382B (en) | The method of adjustment of color drift during a kind of four colors display device white balance | |
CN106132002B (en) | Control LED light color color-mixture device and its method | |
CN107333359A (en) | The LED Mixed Lights Illuminations system and its light-dimming method of a kind of adjustable color | |
CN104093247B (en) | A kind of full gamut multichannel color mixing method | |
CN108668411A (en) | A kind of lampion color correcting method | |
CN104684205B (en) | Lighting device and electric line communication system for being sent to signal | |
CN102858056A (en) | Brightness and color temperature controlling system for LED (light-emitting diode) lamp | |
CN107680141B (en) | A kind of method of color gamut mapping of color and its gamut mapping apparatus | |
CN103997809A (en) | Automobile internal light control system and control method | |
CN105430790A (en) | Light mixing method used for LED light sources and linear lighting lamp | |
CN105611694B (en) | A kind of color configuration method and apparatus of atmosphere lamp | |
CN202721868U (en) | LED lamp brightness and color temperature control system | |
CN106535406A (en) | Brightness correction method of three primary color LED light source | |
CN112423429B (en) | Method for fitting five-primary-color LED mixed light source | |
CN108449826A (en) | Eyeshield intelligent illuminating system | |
CN107226021A (en) | Vehicle atmosphere lamp control method and system | |
CN105323904A (en) | Color control system with variable calibration | |
CN103761955A (en) | Perceptual color matching method between two different polychromatic displays | |
US9185765B2 (en) | Arrangement having at least one metameric illuminating device, and passenger cabin |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |