CN115297590A - Color non-shift control method for dimming lamp and application thereof - Google Patents
Color non-shift control method for dimming lamp and application thereof Download PDFInfo
- Publication number
- CN115297590A CN115297590A CN202211231112.9A CN202211231112A CN115297590A CN 115297590 A CN115297590 A CN 115297590A CN 202211231112 A CN202211231112 A CN 202211231112A CN 115297590 A CN115297590 A CN 115297590A
- Authority
- CN
- China
- Prior art keywords
- dimming
- primary color
- lamp
- level
- color
- 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
Images
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/30—Driver circuits
- H05B45/32—Pulse-control circuits
- H05B45/325—Pulse-width modulation [PWM]
-
- 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/10—Controlling the intensity of the light
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application provides a dimming lamp color non-deviation control method and application thereof, comprising the following steps: s00, setting the PWM output of the dimming lamp to obey linear distribution, and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming; s10, normalizing original lumen data and dimming levels formed by collecting original absolute lumen values through linear transformation to obtain a linear locus diagram of each primary color in a two-dimensional coordinate system; the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate; s20, calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming; and S30, outputting the correction coefficient corresponding to each primary color multiplied by the linear distribution according to the PWM, and controlling the dimming lamp to emit light. The color offset problem that produces when this application can solve effectively to adjust luminance.
Description
Technical Field
The application relates to the technical field of LED lamps, in particular to a control method for preventing color of a dimming lamp from being shifted and application thereof.
Background
The color is closely related to life, and different colors are adjusted by the lamp, so that different atmospheres are created for people. However, in actual dimming and toning, inevitable color drift often occurs, resulting in a large color mixing deviation. Color drift is multifactorial, one being that the current versus lumen characteristic of prior art LED light sources is non-linear (fig. 9); second, the drive circuit device responds to the input PWM and the output current is nonlinear. These two points result in different non-linearity for each primary color, so color mixing can cause color drift when color mixing is based on linear PWM.
Even worse, the LEDs of different primary colors will not start to light at the same threshold current, as shown in fig. 9, and will not light below the threshold current near the origin. Referring to fig. 9, when RGB is dimmed from level 0, a black patch is not lighted during a period, and then B, G, R sequentially start to light, and the mixed light is discolored during the period, and the color shift is particularly serious.
Ideally it is based on linear PWM dimming, but the human eye does not have a simple linear relationship between the perception of brightness and the physical power, but a relationship that is a power function with an exponent of typically 2.2, called the gamma value, i.e. a power function with typically y = x 2 .2 (x is more than or equal to 0 and less than or equal to 1). In prior art dimming, PWM applies this gamma curve. For the reasons stated above, the color shift of the dimming color mixture perceived by the human eye is still caused after applying the gamma curve.
Therefore, a control method and an application thereof capable of solving the color shift problem during dimming are desired.
Disclosure of Invention
The embodiment of the application provides a dimming lamp color non-deviation control method and application thereof, aiming at the problems of color deviation and the like existing in dimming in the prior art.
The core technology of the invention is mainly to solve the problem of nonlinear color cast by linear correction, then optimize a gamma curve, solve the problem of color cast of a low brightness threshold, finally combine and apply, perform double optimization, and solve the problem of global color cast.
In a first aspect, the present application provides a method for controlling color shift of a dimming lamp, the method comprising the following steps:
s00, setting the PWM output of the dimming lamp to obey linear distribution, and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming;
s10, normalizing original lumen data and dimming levels formed by collecting original absolute lumen values through linear transformation to obtain a linear locus diagram of each primary color in a two-dimensional coordinate system;
the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate;
s20, calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming;
and S30, multiplying the PWM output obedience linear distribution by the correction coefficient corresponding to each primary color to control the dimming lamp to emit light.
Further, the method also comprises a step of optimizing the gamma curve, which specifically comprises the following steps:
s40, obtaining the dimming grade corresponding to each primary color of the dimming lamp when the primary color is in critical lightening, and recording the PWM frequency set at the moment as the test PWM frequency;
s50, calculating a raising value and an opening size of a gamma curve based on a dimming grade corresponding to each primary color during critical lightening, a dimming grade currently set by a user, a test PWM frequency, a PWM frequency set by the current user, the highest dimming grade of a dimming lamp and a current gamma value, and optimizing an original gamma curve according to the raising value and the opening size so that each primary color of the dimming lamp can be lightened from a first-level dimming grade;
wherein the opening size = 1-elevated value; each primary color does not shine at the zeroth dimming level.
Further, the method also comprises a double optimization step, specifically comprising the following steps:
s60, adjusting the correction coefficients of the dimming grade before critical lightening in each primary color of the dimming lamp to the correction coefficients of the dimming grade during the critical lightening;
and S70, continuously increasing the rising value and the opening size of the gamma curve so that the primary colors keep uniform and shine from the first-stage dimming level.
Further, in step S00, when the dimming lamp is in steady-state operation, setting the PWM output of the dimming lamp to obey linear distribution, and measuring the original absolute lumen value corresponding to each primary color of the dimming lamp under each level of dimming.
Further, in step S10, according to the maximum lumen and the minimum lumen of each primary color in the original lumen data, the abscissa and the ordinate of each primary color in the interval of [0,1] in each dimming level are calculated, so as to obtain a linear locus diagram of each primary color in the two-dimensional coordinate system.
Further, in step S50, the optimized gamma curve G (X) is:
(ii) a Wherein x is the current dimming level set by the user and is obtained by dividing the current dimming level by the highest dimming level of the dimming lamp, b is a raising value, 1-b is the opening size, and 2.2 is a gamma value.
Further, in step S50, the elevation value b = f/f 0 *(n 0 /N) 2.2 ;
Wherein, f is the PWM frequency set by the current user; f. of 0 To test the PWM frequency; n is 0 The corresponding dimming grade of each primary color when the primary color is in critical lightening; n is the maximum dimming level of each primary color, and 2.2 is the gamma value.
In a second aspect, the present application provides a dimming lamp color non-shift control apparatus, comprising:
the acquisition module is used for setting the PWM output of the dimming lamp to obey linear distribution and measuring the original absolute lumen value of each primary color of the dimming lamp under each level of dimming; the device is used for acquiring the corresponding dimming grade of each primary color of the dimming lamp when the primary color is in critical lightening, and recording the set PWM frequency as the test PWM frequency;
the calculation module is used for normalizing original lumen data and dimming level formed by collecting original absolute lumen values through linear transformation to obtain a linear trajectory graph of each primary color in a two-dimensional coordinate system; the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate; the correction coefficient calculation module is used for calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming; the method comprises the steps that a lifting numerical value and an opening size of a gamma curve are calculated based on a dimming grade corresponding to each primary color during critical lightening, a dimming grade currently set by a user, a PWM frequency tested, a PWM frequency set by the current user, the highest dimming grade of a dimming lamp and a current gamma value, and the original gamma curve is optimized according to the lifting numerical value and the opening size, so that each primary color of the dimming lamp can be lightened from a first-level dimming grade; wherein the opening size = 1-elevated value; each primary color does not shine at the zero-level dimming level;
the control module is used for outputting a correction coefficient corresponding to each primary color multiplied by the linear distribution obeyed by PWM to control the dimming lamp to emit light; the correction coefficients are used for adjusting the dimming grade before critical lightening in each primary color of the dimming lamp to the dimming grade during the critical lightening; the driver is used to continuously increase the elevation value and the opening size of the gamma curve, so that the primary colors can keep uniform from the first dimming level, i.e. lightening.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to execute the dimming lamp color non-shift control method.
In a fourth aspect, the present application provides a readable storage medium having stored therein a computer program comprising program code for controlling a process to execute a process, the process comprising a dimming lamp color non-shift control method according to the above.
The main contributions and innovation points of the invention are as follows: 1. compared with the prior art, the method and the device have the advantages that the nonlinear problem is corrected through the correction coefficients corresponding one by one, so that the input and output linearity is positively correlated, the method is accurate and controllable, the technical problem of color drift of dimming and color mixing of users is solved, data acquisition can be carried out on dimming lamps of the same type, the correction coefficients and the optimized gamma curves which are suitable for all dimming lamps of the same type and the same parameter can be generated, the operation is convenient, and the cost is low;
2. compared with the prior art, the gamma curve after the correction coefficient and the optimization transformation are optimized, so that each primary color starts to shine from the first-level dimming, and the method is accurate and controllable, and therefore the technical problems that the color of the dimming color mixing of a user is lack of color and the color of the user is changed in a low-light state are solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flowchart of a dimming lamp color non-shift control method according to an embodiment of the present application;
FIG. 2 is a graph plotting the dimming level versus lumen for the raw lumen data TAB _ original _ i;
FIG. 3 is a graph of the primary colors after normalization;
FIG. 4 is a graph plotted according to the correction coefficient TAB _ coefficient _ i;
FIG. 5 is a linear plot after introducing correction coefficients;
FIG. 6 is a PWM compliance gamma curve distribution plot;
FIG. 7 is a schematic diagram of an optimized gamma curve;
FIG. 8 is a diagram illustrating a hardware configuration of an electronic device according to an embodiment of the present application;
FIG. 9 is a current versus lumen plot for a prior art LED light source.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
At present, color drift is influenced by multiple factors, and firstly, the relation characteristic between the current and the lumen of the LED light source in the prior art is nonlinear; second, the drive circuit device responds to the input PWM and the output current is nonlinear. These two points result in different non-linearity of each primary color, so when the color is adjusted based on linear PWM, color mixing may cause color drift.
Based on this, the present invention solves the problems of the prior art based on the way to calculate the correction coefficients and optimize the gamma curve.
Example one
The application aims to provide a dimming lamp color non-deviation control method, the non-linear problem is corrected through the correction coefficients corresponding one by one, the input and output linear positive correlation is achieved, the accuracy is controllable, and therefore the technical problem of color drift of dimming and color mixing of a user is solved. By optimizing the correction coefficient and optimizing the transformed gamma curve, each primary color starts to shine from the first-stage dimming, and is accurate and controllable, so that the technical problems of color shortage and color change of user dimming and color mixing in a low-light state are solved.
Specifically, an embodiment of the present application provides a dimming lamp color non-shift control method, specifically, with reference to fig. 1, the method includes:
s00, setting the PWM output of the dimming lamp to obey linear distribution, and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming;
when the dimming lamp works in a steady state, setting the PWM output of the dimming lamp to obey linear distribution, and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming;
in this embodiment, a certain 3-primary-color RGB (red, green, blue) original lamp (as one of dimming lamps, or four-primary-color or five-primary-color, etc.) is placed in a black room, aging is performed for 1 hour to keep a temperature system (a device for aging test commonly used in the art) in a steady state, so that the operating characteristics of the device are in a steady state, PWM output is set to comply with linear distribution, and then the corresponding absolute lumen value L of each primary color under 0-N-level dimming is measured, and recorded as:
TAB_original _i ={L 0 ,L 1 ,L 2 ,… ,L n };
wherein, the subscript i of the complete set TAB _ original represents the ith primary color (in this case, i is 1-3 for RGB, the same applies below); the subscript N of the subset is 0-N, N denoting the highest dimming level (same below), typically N =99 or 255 or 65535, preferably N =255 (same below) and 0 denoting the 0 th level, which is the off (not lit) state.
In the present embodiment, as shown in fig. 2, a graph of dimming level versus lumen is drawn for the collected original lumen data TAB _ original _ i.
S10, normalizing original lumen data and dimming levels formed by collecting original absolute lumen values through linear transformation to obtain a linear trajectory diagram of each primary color in a two-dimensional coordinate system, as shown in FIG. 3;
calculating the abscissa and the ordinate of each dimming grade of each primary color in a [0,1] interval according to the maximum lumen and the minimum lumen of each primary color in the original lumen data to obtain a linear locus diagram of each primary color in a two-dimensional coordinate system; the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate;
in this embodiment, the original lumen data TAB _ original is processed _i And performing normalization processing on the dimming level n by linear transformation to make the result fall to [0,1]Intervals, noted as: TAB _ normalization _i ={ L' 0 ,L' 1 ,L' 2 ,…,L' n The ordinate conversion function is as follows:
wherein max is the maximum value of the sample data (the original lumen data collected in step S00), and min is the minimum value of the sample data;
the normalized abscissa conversion function is as follows:
as can be seen in fig. 3, the 3 primary colors have poor linearity and are inconsistent. If PWM is input according to linear color matching, the output color mixing is necessarily different from the target, which causes color drift, and therefore, a correction coefficient needs to be calculated.
S20, calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming;
in the present embodiment, the correction coefficient is denoted as TAB _ coeffient _i ={C 0 ,C 1 , C 2 ,…,C n The calculation method is as follows:
the graph plotted by the correction coefficient is shown in fig. 4, and it can be seen that the linearity of the device is poor and sawtooth fluctuation occurs at low brightness.
S30, multiplying the PWM output obedient linear distribution by a correction coefficient corresponding to each primary color, and controlling the dimming lamp to emit light, namely PWM = TAB _ coefficient multiplied by G (x);
in this embodiment, the correction coefficient TAB _ coefficient _ i is sent to and stored in the dimming lamp, and when the correction coefficient TAB _ coefficient _ i is applied, the original nonlinear characteristic can be corrected to be linear by multiplying the output linear PWM by the corresponding correction coefficient. The effect of fig. 2 at this time becomes the effect of fig. 5. It can be seen that the response of the 3 primary colors lumens to the dimming level is now linear. At this time, the output lumens can be responded linearly by linearly adjusting the dimming level at the input end, so that the color mixing is accurate and the color drift does not occur any more.
The LEDs of different primary colors will not start to light at the same threshold current, as shown in fig. 2, and will not light near the origin below the threshold current. As shown in fig. 2, when RGB is dimmed from level 0, the black paint is not emitted during a period, and then B, G, R sequentially start emitting light, and the mixed light is discolored during the period, and the color shift is particularly serious. Ideally based on linear PWM dimming, but the human eye does not have a simple linear relationship between the perception of brightness and the physical power, but rather a power functionRelation, the exponent of the power function is typically 2.2, called the gamma value, i.e. the power function is typically y = x 2 .2 (x is more than or equal to 0 and less than or equal to 1). In prior art dimming, PWM applies this raw gamma curve.
At present, when a user inputs a dimming level n, the control module outputs a corresponding PWM to the light source driving module, so as to output a corresponding current to the light source and emit light of a corresponding lumen. The present PWM follows a gamma curve profile, as shown in FIG. 6. It can be seen that since in step S00, a linear PWM output is used when data is collected, the curve of fig. 2 is obtained, and no light is emitted below the threshold current. As shown in fig. 6, when the PWM output used follows a gamma curve profile, the PWM output will be lower at low light, resulting in a longer segment of low light adjustment that will not shine, and can lead to problems of color loss and discoloration at low light conditions.
In order to solve the technical problem that the dimming and color mixing of the user generates color shortage and color change in a low-brightness state, the method further comprises the following steps:
s40, obtaining corresponding dimming levels of each primary color of a dimming lamp when the primary colors are emitted in a critical manner, and recording the PWM frequency set at the moment as a test PWM frequency;
in this embodiment, the color-adjustable lamp is placed in a black room, the dimming level of each primary color is adjusted from 0, and the dimming level corresponding to the critical lightening time is recorded as n 0_i E.g. measuring n 0_R =23,n 0_G =16,n 0_B =13. And records the PWM frequency f set during the test 0 E.g. is f 0 =2.4k Hz。
S50, calculating a raising value and an opening size of a gamma curve based on a corresponding dimming grade of each primary color during critical lightening, a dimming grade currently set by a user, a test PWM frequency, a PWM frequency set by the current user, the highest dimming grade of a dimming lamp and a current gamma value, and optimizing the original gamma curve according to the raising value and the opening size so that each primary color of the dimming lamp can be lightened from a first-level dimming grade;
wherein the opening size = 1-elevated value; all primary colors do not shine at the zeroth dimming level;
as shown in fig. 2, in N =255 levels of dimming, red light is approximatelyNeeds to be adjusted to 23 stages (n) 0_R = 23) is lit. To solve this technical problem, the technical solution used is to transform the gamma curve so that it reaches the threshold current at the first stage and starts to light.
Since the prior art gamma curve is typically y = x 2 .2 (x is more than or equal to 0 and less than or equal to 1), and the index can be 2.0, 2.2 and 2.4.
Optimizing according to the existing gamma curve, wherein the optimized gamma curve G (X) is as follows:
(ii) a Wherein x is the current dimming level set by the user divided by the highest dimming level of the dimming lamp (x = N/N, N is the current dimming level set by the user, N is the highest dimming level of the lamp), b is the elevation value, 1-b is the opening size (i.e. the opening size is converted to 1-b times of the original size), and 2.2 is the gamma value (in the prior art, 2.0,2.4, etc.);
obviously, both the optimized gamma curve and the original gamma curve pass through the point (0,0) and the point (1,1) constantly.
Wherein the elevation value b = f/f 0 *(n 0 /N) 2.2 ;
Wherein f is the PWM frequency set by the current user, and is 24k Hz; f. of 0 For testing the PWM frequency, 2.4k Hz is taken; n is 0 Respectively taking n for the corresponding dimming grade of each primary color during critical lightening 0_R =23,n 0_G =16,n 0_B =13; n is the maximum dimming level of each primary color, and is 255;2.2 is gamma value (prior art, 2.0,2.4, etc.);
thus, b can be calculated _R =0.0519;b _G =0.0227;b _B =0.0134; the optimized gamma curve effect is then as shown in fig. 7. As shown in fig. 7, the dotted line is a prior art gamma curve (original gamma curve), and the solid line is an optimized gamma curve of the present application. Obviously, the gamma curve of this application, the terminal point is unchangeable, and the starting point is raised to the threshold value of shining accurately for just shine from first level dimming.
Based on steps S00-S50, the red light R isLight emission is started only at level 23, i.e. no light emission is performed at levels 1-22, see fig. 2, i.e. lumen value L 1 To L 22 0 to calculate the correction coefficient C of the red light R 1 To C 22 Also 0, see fig. 4. A correction factor of 0 results in a PWM output of 0 for stages 1 to 22, the dimming lamp not being lit. Therefore, the current problems of non-lightening and non-synchronization of the primary colors in low brightness still exist, and the problem of global color cast cannot be solved.
In order to solve the global color cast problem, the method further comprises the following steps:
s60, adjusting the correction coefficients of the dimming grade before critical lightening in each primary color of the dimming lamp to the correction coefficients of the dimming grade during the critical lightening;
in this embodiment, in order to make C 22 To C 23 Smooth transition, correcting the coefficient C 1 To C 22 Assigned a value of C 23 。
For correction coefficient TAB _ coefficient _i ={C 0 ,C 1 , C 2 ,…,C n And (5) further optimizing, wherein the general formula is as follows:
wherein n is 0 Is the dimming level at the critical lightening of each primary color, L' n Normalized lumen data for the nth order obtained in step S10. The remaining parameters are in accordance with the parameter meanings of the preceding formula.
After the correction coefficient TAB _ coeffient is optimized, it can be known from PWM = TAB _ coeffient × G (x) that the optimized elevated gamma curve G (x) is further multiplied by a coefficient TAB _ coeffient smaller than 1, resulting in the output PWM being depressed again. I.e. coefficient C of e.g. red light R 1 =C 23 <1, coefficient C 1 Multiplying by the gamma curve G (x) will lower the boost value b as in step S50, resulting in dimming that is not illuminated at the first level.
Therefore, the solution to this problem is to continue to raise the threshold b such that b' = b/C 23 And is free from the influence of the correction coefficient.
And S70, continuously increasing the rising value and the opening size of the gamma curve so that the primary colors keep uniform and shine from the first-stage dimming level.
In this embodiment, the further optimization of the gamma curve results in the following formula:
wherein b' is obtained by optimizing the elevation threshold b, and the optimization formula is as follows:
wherein, C n0 Indicating the correction factor when each primary color is critically illuminated.
In the above example, to get the red coefficient from C 22 To C 23 Smooth transition, correcting the coefficient C 1 To C 22 Assigned a value of C 23 . I.e. C n0 This can also be understood as a correction factor at level 1, i.e. b' = b/C 1 . In general terms, level 0 is now unlighted, raising level 1 (and beyond) so as not to be covered by coefficient C 1 And (5) pressing down.
Thus, the gamma curve and the correction coefficient after further optimization are written into the dimming lamp, so that the technical effect that when a user dims each primary color from 0-255 level, the 0 th level is that the lamp is turned off, the 1 st level is that 3 primary colors RGB start to be lightened, the 255 th level primary colors reach the brightest, and the middle change process is in linear transition is achieved, so that the technical effect that color drift cannot be generated by dimming and color mixing is achieved.
Example two
Based on the same conception, the application also provides a dimming lamp color non-deviation control device, which comprises:
the acquisition module is used for setting the PWM output of the dimming lamp to obey linear distribution and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming; the device is used for acquiring the corresponding dimming grade of each primary color of the dimming lamp when the primary color is in critical lightening, and recording the set PWM frequency as the test PWM frequency;
the calculation module is used for normalizing original lumen data and dimming level formed by collecting original absolute lumen values through linear transformation to obtain a linear trajectory graph of each primary color in a two-dimensional coordinate system; the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate; the correction coefficient calculation module is used for calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming; the method comprises the steps that a lifting numerical value and an opening size of a gamma curve are calculated based on a dimming grade corresponding to each primary color during critical lightening, a dimming grade currently set by a user, a PWM frequency tested, a PWM frequency set by the current user, the highest dimming grade of a dimming lamp and a current gamma value, and the original gamma curve is optimized according to the lifting numerical value and the opening size, so that each primary color of the dimming lamp can be lightened from a first-level dimming grade; wherein the opening size = 1-elevated value; each primary color does not shine at the zero-level dimming level;
the control module is used for outputting a correction coefficient corresponding to each primary color multiplied by the linear distribution obeyed by PWM to control the dimming lamp to emit light; the correction coefficients are used for adjusting the dimming grade before critical lightening in each primary color of the dimming lamp to the dimming grade during the critical lightening; the method is used for continuously increasing the rising value and the opening size of the gamma curve so that the primary colors keep uniform and shine from the first dimming level.
EXAMPLE III
The present embodiment also provides an electronic device, referring to fig. 8, comprising a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to execute the computer program to perform the steps in any of the above method embodiments.
Specifically, the processor 402 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the dimming lamp color non-shift control methods in the above-described embodiments.
Optionally, the electronic apparatus may further include a transmission device 406 and an input/output device 408, where the transmission device 406 is connected to the processor 402, and the input/output device 408 is connected to the processor 402.
The transmitting device 406 may be used to receive or transmit data via a network. Specific examples of the network described above may include wired or wireless networks provided by communication providers of the electronic devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmitting device 406 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The input and output devices 408 are used to input or output information. In the present embodiment, the input information may be a dimming level, a PWM frequency is set, and the like, and the output information may be a corresponding color, and the like.
Example four
The present embodiment also provides a readable storage medium having stored therein a computer program including program code for controlling a process to execute a process including the dimming lamp color non-shift control method according to the first embodiment.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In general, the various embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Embodiments of the invention may be implemented by computer software executable by a data processor of the mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also called program products) including software routines, applets and/or macros can be stored in any device-readable data storage medium and they include program instructions for performing particular tasks. The computer program product may include one or more computer-executable components configured to perform embodiments when the program is run. The one or more computer-executable components may be at least one software code or a portion thereof. Further in this regard it should be noted that any block of the logic flow as in the figures may represent a program step, or an interconnected logic circuit, block and function, or a combination of a program step and a logic circuit, block and function. The software may be stored on physical media such as memory chips or memory blocks implemented within the processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. The physical medium is a non-transitory medium.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (10)
1. A method for controlling color non-shift of a dimming lamp is characterized by comprising the following steps:
s00, setting the PWM output of a dimming lamp to obey linear distribution, and measuring the corresponding original absolute lumen value of each primary color of the dimming lamp under each level of dimming;
s10, normalizing original lumen data and dimming levels formed by collecting the original absolute lumen values through linear transformation to obtain a linear trajectory graph of each primary color in a two-dimensional coordinate system;
the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate;
s20, calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming;
and S30, multiplying the PWM output obedience linear distribution by a correction coefficient corresponding to each primary color, and controlling the dimming lamp to emit light.
2. The method for controlling color shift of a dimming lamp as claimed in claim 1, further comprising the step of optimizing a gamma curve, specifically:
s40, obtaining the dimming grade corresponding to each primary color of the dimming lamp when the primary color is in critical lightening, and recording the PWM frequency set at the moment as the test PWM frequency;
s50, calculating a raising value and an opening size of a gamma curve based on a dimming grade corresponding to each primary color during critical lightening, a dimming grade currently set by a user, a test PWM frequency, a PWM frequency set by the current user, the highest dimming grade of the dimming lamp and a current gamma value, and optimizing an original gamma curve according to the raising value and the opening size to ensure that each primary color of the dimming lamp is lightened from a first-level dimming grade;
wherein the opening size = 1-elevated value; each primary color does not shine at the zeroth dimming level.
3. The method for controlling color shift of a dimming lamp as claimed in claim 2, further comprising a double optimization step, specifically:
s60, adjusting the correction coefficients of the dimming grade of the dimming lamp before critical lightening in each primary color to the correction coefficients of the dimming grade during critical lightening;
and S70, continuously increasing the rising value and the opening size of the gamma curve so as to enable the primary colors to keep uniform dimming level from the first level, namely, to shine.
4. The method as claimed in claim 1, wherein in step S00, when the dimming lamp is in steady operation, the PWM output of the dimming lamp is set to follow a linear distribution, and the original absolute lumen value of each primary color of the dimming lamp under each level of dimming is determined.
5. The method as claimed in claim 1, wherein in step S10, according to the maximum lumen and the minimum lumen of each primary color in the original lumen data, the abscissa and the ordinate of each primary color in the interval of [0,1] in each dimming level are calculated to obtain the linear locus diagram of each primary color in the two-dimensional coordinate system.
7. The method as claimed in claim 6, wherein in step S50, the raising value b = f/f 0 *(n 0 /N) 2.2 ;
Wherein, f is the PWM frequency set by the current user; f. of 0 To test the PWM frequency; n is 0 The corresponding dimming grade of each primary color when the primary color is in critical lightening; n is the maximum dimming level of each primary color, and 2.2 is the gamma value.
8. The dimming lamp color deviation-free control device is characterized by comprising:
the acquisition module is used for setting the PWM output of the dimming lamp to obey linear distribution and measuring the original absolute lumen value of each primary color of the dimming lamp under each level of dimming; the device is used for acquiring the corresponding dimming grade of each primary color of the dimming lamp when the primary color is in critical lightening, and recording the set PWM frequency as the test PWM frequency;
the calculation module is used for normalizing original lumen data and dimming grade formed by collecting original absolute lumen values through linear transformation to obtain a linear locus diagram of each primary color in a two-dimensional coordinate system; the two-dimensional coordinate system takes the dimming grade as an abscissa and takes the lumen value as an ordinate; the correction coefficient calculation module is used for calculating a correction coefficient corresponding to each primary color based on the abscissa and the ordinate of each primary color under each level of dimming; the method comprises the steps that a lifting numerical value and an opening size of a gamma curve are calculated based on a dimming grade corresponding to each primary color during critical lightening, a dimming grade currently set by a user, a PWM frequency tested, a PWM frequency set by the current user, the highest dimming grade of a dimming lamp and a current gamma value, and the original gamma curve is optimized according to the lifting numerical value and the opening size, so that each primary color of the dimming lamp can be lightened from a first-level dimming grade; wherein the opening size = 1-elevated value; all primary colors do not shine at the zeroth dimming level;
the control module is used for outputting a correction coefficient corresponding to each primary color multiplied by the linear distribution obeyed by PWM to control the dimming lamp to emit light; the correction coefficients are used for adjusting the dimming grade before critical lightening in each primary color of the dimming lamp to the dimming grade during the critical lightening; the method is used for continuously increasing the rising value and the opening size of the gamma curve so that the primary colors keep uniform and shine from the first dimming level.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the dimming lamp color shift prevention control method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that a computer program is stored therein, the computer program comprising program code for controlling a process to execute a process, the process comprising the dimming lamp color shift-free control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211231112.9A CN115297590B (en) | 2022-10-10 | 2022-10-10 | Color non-shift control method for dimming lamp and application thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211231112.9A CN115297590B (en) | 2022-10-10 | 2022-10-10 | Color non-shift control method for dimming lamp and application thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115297590A true CN115297590A (en) | 2022-11-04 |
CN115297590B CN115297590B (en) | 2023-02-14 |
Family
ID=83819223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211231112.9A Active CN115297590B (en) | 2022-10-10 | 2022-10-10 | Color non-shift control method for dimming lamp and application thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115297590B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116761295A (en) * | 2023-08-11 | 2023-09-15 | 杭州罗莱迪思科技股份有限公司 | Unified soft-starting dimming control method, system and application thereof |
CN117615481A (en) * | 2024-01-24 | 2024-02-27 | 杭州罗莱迪思科技股份有限公司 | Dynamic correction color mixing system and method for influence of self-adaptive temperature on color coordinates |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060170370A1 (en) * | 2005-02-02 | 2006-08-03 | Patent-Treuhand-Gesellschaft Fur Elektrisch Gluhlampen Mbh | Method and system for dimming light sources |
CN101430223A (en) * | 2008-09-28 | 2009-05-13 | 上海半导体照明工程技术研究中心 | LED instantaneous light flux test method and apparatus in PWM activation technology |
CN101878503A (en) * | 2007-11-30 | 2010-11-03 | 夏普株式会社 | Methods, systems, program and media for weighted-error-vector-based source light selection |
CN103458575A (en) * | 2013-08-22 | 2013-12-18 | 广西奥顺仪器有限公司 | Digital linear dimming method for high-power LED |
CN107333359A (en) * | 2017-08-15 | 2017-11-07 | 苏州科技大学 | The LED Mixed Lights Illuminations system and its light-dimming method of a kind of adjustable color |
CN110708797A (en) * | 2019-10-22 | 2020-01-17 | 滨州学院 | Accurate dimming method and system for three-color LED light source |
WO2020029569A1 (en) * | 2018-08-08 | 2020-02-13 | 广州市浩洋电子股份有限公司 | Color led lamp grayscale correction and linear color mixing method |
CN111698819A (en) * | 2020-06-18 | 2020-09-22 | 深圳市高巨创新科技开发有限公司 | Real-time correction method and terminal for brightness value of show light |
CN113920022A (en) * | 2021-09-29 | 2022-01-11 | 深圳市景阳科技股份有限公司 | Image optimization method and device, terminal equipment and readable storage medium |
-
2022
- 2022-10-10 CN CN202211231112.9A patent/CN115297590B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060170370A1 (en) * | 2005-02-02 | 2006-08-03 | Patent-Treuhand-Gesellschaft Fur Elektrisch Gluhlampen Mbh | Method and system for dimming light sources |
CN101878503A (en) * | 2007-11-30 | 2010-11-03 | 夏普株式会社 | Methods, systems, program and media for weighted-error-vector-based source light selection |
CN101430223A (en) * | 2008-09-28 | 2009-05-13 | 上海半导体照明工程技术研究中心 | LED instantaneous light flux test method and apparatus in PWM activation technology |
CN103458575A (en) * | 2013-08-22 | 2013-12-18 | 广西奥顺仪器有限公司 | Digital linear dimming method for high-power LED |
CN107333359A (en) * | 2017-08-15 | 2017-11-07 | 苏州科技大学 | The LED Mixed Lights Illuminations system and its light-dimming method of a kind of adjustable color |
WO2020029569A1 (en) * | 2018-08-08 | 2020-02-13 | 广州市浩洋电子股份有限公司 | Color led lamp grayscale correction and linear color mixing method |
CN110708797A (en) * | 2019-10-22 | 2020-01-17 | 滨州学院 | Accurate dimming method and system for three-color LED light source |
CN111698819A (en) * | 2020-06-18 | 2020-09-22 | 深圳市高巨创新科技开发有限公司 | Real-time correction method and terminal for brightness value of show light |
CN113920022A (en) * | 2021-09-29 | 2022-01-11 | 深圳市景阳科技股份有限公司 | Image optimization method and device, terminal equipment and readable storage medium |
Non-Patent Citations (2)
Title |
---|
王钰等: "全彩色LED显示屏真彩色显示技术研究", 《南京理工大学学报》 * |
田会娟等: "基于PWM调光的高显色性白光LED混光优化方法", 《发光学报》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116761295A (en) * | 2023-08-11 | 2023-09-15 | 杭州罗莱迪思科技股份有限公司 | Unified soft-starting dimming control method, system and application thereof |
CN116761295B (en) * | 2023-08-11 | 2023-11-07 | 杭州罗莱迪思科技股份有限公司 | Unified soft-starting dimming control method, system and application thereof |
CN117615481A (en) * | 2024-01-24 | 2024-02-27 | 杭州罗莱迪思科技股份有限公司 | Dynamic correction color mixing system and method for influence of self-adaptive temperature on color coordinates |
CN117615481B (en) * | 2024-01-24 | 2024-04-09 | 杭州罗莱迪思科技股份有限公司 | Dynamic correction color mixing system and method for influence of self-adaptive temperature on color coordinates |
Also Published As
Publication number | Publication date |
---|---|
CN115297590B (en) | 2023-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115297590B (en) | Color non-shift control method for dimming lamp and application thereof | |
US8796948B2 (en) | Lamp color matching and control systems and methods | |
US20110057571A1 (en) | Device and method for controlling the color point of an led light source | |
CN115052387B (en) | Black body track and isotherm color modulation control method and application thereof | |
JP2020506414A (en) | Method of adjusting color temperature based on screen brightness, non-transitory computer readable storage medium, and terminal device | |
JP6169174B2 (en) | Method for controlling a lighting device | |
CN114466477A (en) | Constant-current dimming method of multichannel light source, computer device and computer readable storage medium | |
US10492256B2 (en) | Method and device for calibrating LED lighting | |
CN115334710B (en) | Isothermal line color matching control method and application thereof | |
CN116761295B (en) | Unified soft-starting dimming control method, system and application thereof | |
US20230243491A1 (en) | Methods and devices for auto-calibrating light dimmers | |
CN114126145B (en) | Method for adjusting linear perception of color temperature of lamp and application thereof | |
JP2011061177A (en) | Electronic load capable of simulating characteristics of light emitting diode and method for operating the same | |
EP4322710A1 (en) | Lighting color-adjustment control method, device, product, and lamp | |
CN116867138A (en) | Lighting device and brightness adjusting method thereof | |
CN114828345B (en) | Lamp bead light parameter calibration method, lamp bead parameter acquisition method, device and system | |
CN115633425A (en) | Method and device for regulating and controlling mixed light source, lighting equipment and storage medium | |
CN113225867B (en) | Dimming curve expansion method and device, computer equipment and storage medium | |
US9679531B2 (en) | Correcting method, correcting apparatus and method for establishing color performance database for display apparatus | |
CN112612992A (en) | Color temperature optimization method and device, terminal equipment and storage medium | |
CN108282935B (en) | LED dimming method, device, equipment and storage medium | |
CN114828337A (en) | Control method and application of outdoor LED dyeing lamp | |
JP7529937B2 (en) | Control of lighting systems for color point and luminous flux level control | |
CN111045282B (en) | Display control method, projection apparatus, control device, and storage medium | |
US20220118280A1 (en) | Determining metameric settings for a non-linear light source |
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 |