Light mixing method and light mixing circuit for LED lamp
By converting RGB/HSV color adjustment parameters into initial color points, fitting chromaticity parameters using the Grassmann algorithm and piecewise functions, selecting a mixing light source using the cross product algorithm, and designing a mixing circuit, the problems of color gamut waste and low current calibration efficiency in high color accuracy mixing algorithms are solved, achieving high color accuracy and high efficiency algorithms.
Patent Information
- Application Number
- CN202410347068.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-03-25
AI Technical Summary
Existing high color accuracy mixing algorithms suffer from problems such as mismatch between the app's color gamut and the overall lamp's color gamut, wasted color gamut, failure to consider the nonlinear effects of fitting light source attributes, low efficiency of current calibration algorithms, and excessive number of judgments.
The initial color points are converted using RGB/HSV color parameters. The color parameters are fitted using the Grassmann algorithm and piecewise function. The light source for mixing is selected by combining the cross product algorithm. The current ratio is calibrated by a quadratic equation. The mixing circuit is designed to achieve high color accuracy and efficient algorithm.
It solves the problem of color gamut waste caused by the mismatch between the app's color gamut and the overall lamp's color gamut, improves the accuracy of the current calibration algorithm, reduces the MCU's computing power requirements, and enhances the efficiency of the light mixing algorithm.
Smart Images

Figure CN118250863B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of RGB mixed light illumination technology, and in particular to a LED lamp mixed light method and a mixed light circuit. BACKGROUND
[0002] The existing high color accuracy mixed light algorithm has the following technical problems:
[0003] 1. app color gamut and whole lamp color gamut do not match: the whole lamp color gamut is larger than the app color gamut, the color is light when mixing the three vertexes of the app color gamut, and part of the light source color gamut is wasted and not used, resulting in color gamut space waste;
[0004] 2. When fitting the light source properties, a linear function is used to fit the relationship between each property and temperature, ignoring the possibility of nonlinearity of the influence of temperature on the light source properties, resulting in inaccurate mixed light results;
[0005] 3. Using a unary quadratic function for current calibration, error may occur in a certain current range under low current;
[0006] 4. When mixing four light sources, the slope of the target color point and each color gamut boundary is used for judgment, which needs to be judged 9 times (three times to judge whether it is on the line of two light sources, and six times to judge which side of the two light sources is continuous), the number of judgments is large, and the algorithm efficiency is low. SUMMARY
[0007] In view of the technical problems mentioned in the background art, the present application proposes a LED lamp mixed light method and a mixed light circuit to solve the above problems.
[0008] According to the first aspect of the present application, a LED lamp mixed light method is proposed, comprising:
[0009] S1. converting the RGB / HSV color adjusting parameters input by the user into an initial color point;
[0010] S2. mapping the initial color point to the temperature-affected color gamut of the multi-channel light source to obtain a target color point;
[0011] S3. using a three-channel / four-channel Grassmann algorithm to obtain the theoretical current ratio when the multi-channel light source mixes the target color point, the four-channel Grassmann algorithm comprising using cross multiplication to determine which three-channel light source the target color point is in, and calling the chrominance parameters of the light source in which the color point is located to calculate the three-channel Grassmann algorithm;
[0012] The step S2 and the step S3 further include fitting the chrominance parameters of the multi-channel light source by using a segmented function to fit the linear / nonlinear relationship between the chrominance parameters of the multi-channel light source and the temperature, so as to obtain the chrominance parameters of the multi-channel light source at the actual temperature, and the chrominance parameters include the color coordinates and the brightness value of the corresponding light source.
[0013] S4, the nonlinear relationship between the current proportion of the multi-channel light source and the luminous flux fitted by the quadratic equation is used to inversely solve the calibrated actual current proportion based on the theoretical current proportion.
[0014] Through the above technical solutions, the problem of color gamut waste caused by the mismatch between the app color gamut and the whole lamp color gamut is solved while ensuring high color accuracy, and the accuracy of the quadratic function current calibration algorithm is ensured, and the error of the quadratic function current calibration algorithm caused by constant luminous flux is avoided; the cross multiplication algorithm is used to select the mixed light source, improve the algorithm efficiency, reduce the MCU algorithm requirement, and avoid the problem that the target color point cannot be calculated corresponding to the light source current proportion due to the fixed color gamut.
[0015] In some specific embodiments, the step S1 includes converting the HSV input by the user into RGB, and converting the RGB into the initial color point.
[0016] In some specific embodiments, the step S2 includes:
[0017] S21, the color coordinates of the app color gamut and the color coordinates of the color gamut of the multi-channel light source affected by temperature are obtained, and the app color gamut is the color gamut displayed in the application program;
[0018] S22, a 3x3 matrix A and a 3x3 matrix B are constructed, wherein the matrix A contains all coordinate information and a value 1 of the app color gamut, and the matrix B contains all coordinate information and a value 1 of the color gamut of the multi-channel light source affected by temperature;
[0019] S23, a 3x3 matrix C is constructed by using the initial color point, and the matrix C contains the color coordinates x and y of the initial color point, and a value 1 and a value 0.5;
[0020] S24, a target color point is obtained by using the matrix A, the matrix B and the matrix C, which is represented as:
[0021] D=(AxB)xC;
[0022] Wherein, the matrix D is a 3x3 matrix, the first element of the first row of the matrix D is the color coordinate x of the target color point, and the second row is the color coordinate y of the target color point.
[0023] By the above technical solution, the problem of color gamut waste caused by the mismatch between the app color gamut and the whole lamp color gamut is solved while ensuring high color accuracy.
[0024] In some specific embodiments, the three-path Grassmann algorithm in step S3 includes calculating based on the color coordinates and brightness of any three-path light source at 100% current ratio and the target color point, and the calculation is performed through the following formula:
[0025]
[0026] Wherein, η1, η2, η3 are the current ratios of the first, second and third light sources, respectively, x1, y1, Y1 are the color coordinates and brightness of the first light source at 100% current ratio, x2, y2, Y2 are the color coordinates and brightness of the second light source at 100% current ratio, x3, y3, Y3 are the color coordinates and brightness of the third light source at 100% current ratio, x, y are the target color point, and Y is the brightness value of the target color point.
[0027] In some specific embodiments, the cross product is used to determine which three-path light source the target color point is in, including:
[0028] S31, three vertices of the light source color gamut are provided, and a vector is drawn from the target color point to each of the three vertices;
[0029] S32, the cross product of each vector and the adjacent two vectors is calculated respectively, and the sum is obtained;
[0030] S33, if all cross products have the same sign and the sum is equal to twice the area of the triangle formed by the three vertices, it is determined that the target color point is in the color gamut of the corresponding three-path light source.
[0031] Through the above technical solution, the cross product algorithm is used to realize the selection of the mixed light source and reduce the algorithm power.
[0032] In some specific embodiments, the four-path Grassmann algorithm in step S3 includes determining whether the target color point is on the line connecting the color coordinates of any two light sources, and if so, calculating based on the two-path Grassmann mixed light algorithm.
[0033] In some specific embodiments, the two-path Grassmann algorithm in step S3 includes calculating based on the color coordinates and brightness of any two-path light source at 100% current ratio and the target color point, and the calculation is performed through the following formula:
[0034]
[0035] Wherein, η1, η2 are current proportion of first road, second road light source respectively, x1, y1, Y1 are color coordinates and brightness of first road light source under 100% current proportion, x2, y2, Y2 are color coordinates and brightness of second road light source under 100% current proportion, x, y are the target color point, Y is the brightness value of the target color point.
[0036] Through the above technical solution, it is judged whether the target color point is on the connecting line of the color coordinates of any two light sources, if yes, the calculation is carried out based on the two-way Grassmann light mixing algorithm, which can reduce the algorithm power, avoid too many judgment times and low algorithm efficiency.
[0037] In some specific embodiments, the piecewise function includes a linear function, a nonlinear function, a piecewise linear function, and a piecewise nonlinear function.
[0038] Through the above technical solution, the temperature calibration algorithm of the piecewise function (including linear and nonlinear) is used to realize accurate estimation of color point information at a certain temperature and reduce errors.
[0039] In some specific embodiments, step S4 includes:
[0040] S41, the theoretical luminous flux corresponding to the maximum current proportion of the theoretical current proportion of the multi-channel light source is used to calculate the theoretical luminous flux before calibration;
[0041] S42, the coefficient constant calculated by the preset theoretical luminous flux, the preset theoretical current proportion and the preset actual luminous flux is used to calculate the actual current proportion after calibration in combination with the theoretical luminous flux before calibration, and the actual current proportion after calibration is calculated by the following formula:
[0042]
[0043] Wherein, x is the actual current proportion after calibration, a, b, c are the coefficient constant, y is the theoretical luminous flux before calibration, and the current proportion output of the constant part of luminous flux under low current is a fixed value.
[0044] Because the problem of no change in luminous flux under different proportions easily occurs under low current, the accuracy of the one-dimensional quadratic function current calibration algorithm can be improved by the above technical solution, and the one-dimensional quadratic function current calibration algorithm error caused by constant luminous flux can be avoided.
[0045] According to a second aspect of the present application, a light mixing circuit using the above method is provided, comprising an EMI and rectifier circuit, an auxiliary power supply circuit, a radio frequency communication module, a two-way light mixing circuit and a three-way / four-way light mixing circuit; the EMI and rectifier circuit is electrically connected with one of the two-way light mixing circuit and the three-way / four-way light mixing circuit, the radio frequency communication module is communicatively connected with one of the two-way light mixing circuit and the three-way / four-way light mixing circuit for dimming and color adjustment, and the auxiliary power supply circuit is electrically connected with the radio frequency communication module for power supply; wherein,
[0046] The two-way light mixing circuit comprises a constant current dimming control circuit, a CCT color temperature control circuit and a two-way LED light source, the EMI and rectifier circuit is electrically connected with the constant current dimming control circuit, the constant current dimming control circuit is electrically connected with the CCT color temperature control circuit, the CCT color temperature control circuit is electrically connected with the two-way LED light source, and the radio frequency communication module is communicatively connected with the EMI and rectifier circuit and the constant current dimming control circuit;
[0047] The three-way / four-way light mixing circuit comprises a dimming and color adjustment control circuit and a three-way / four-way LED light source, the EMI and rectifier circuit is electrically connected with the dimming and color adjustment control circuit, the dimming and color adjustment control circuit is electrically connected with the three-way / four-way LED light source, and the radio frequency communication module is communicatively connected with the dimming and color adjustment control circuit.
[0048] Compared with the prior art, the present application has the beneficial effects that the problem of color gamut waste caused by the mismatch between the color gamut of the app and the color gamut of the whole lamp is solved while ensuring high color accuracy, the accuracy of the monomial quadratic function current calibration algorithm is ensured, and the error of the monomial quadratic function current calibration algorithm caused by constant luminous flux is avoided; the selection of the light mixing light source is realized by using the cross multiplication algorithm, the algorithm efficiency is improved, the requirement for the algorithm power of the MCU is reduced, and the problem that the target color point cannot be calculated corresponding to the light source current proportion due to the fixed color gamut is avoided through the dynamic color gamut. BRIEF DESCRIPTION OF DRAWINGS
[0049] The accompanying drawings are included to provide a further understanding of embodiments and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments and, together with the description, serve to explain the principles of the application. Other embodiments and many of the intended advantages of the present application will be readily appreciated as the same becomes better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale as some embodiments have been simplified for purposes of this disclosure. Like reference numerals designate corresponding similar parts throughout the various drawings.
[0050] Figure 1 is a light mixing method flow chart of an LED lamp according to specific embodiments of the present application;
[0051] Figure 2is a schematic diagram of app color gamut and whole lamp color gamut mismatch according to specific embodiments of the present application;
[0052] Figures 3a-3c is a two-way, three-way / four-way light mixing circuit schematic diagram according to specific embodiments of the present application. DETAILED DESCRIPTION
[0053] In the following detailed description, reference is made to the accompanying drawings, which form a part hereof, and in which are shown by way of illustration illustrative embodiments in which the application can be practiced. For purposes of explanation and illustration, directional terms are used with reference to the orientation of the described figures. However, it is to be understood that the embodiments can assume different orientations, except where otherwise specified and that the directions are, therefore, illustrative only. It is to be understood that the following detailed description is by way of illustration only, and is not intended to limit the scope of the application. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present application is defined by the appended claims.
[0054] The present application proposes a LED lamp light mixing method, Figure 1 is a LED lamp light mixing method flow chart according to specific embodiments of the present application, as shown, comprising: Figure 1
[0055] RGB / HSV to xy algorithm S1, converting user input RGB / HSV color mixing parameters into initial color point;
[0056] Specifically, step S1 includes converting user input HSV into RGB, expressed as:
[0057] C = V x S;
[0058]
[0059] m = V - C;
[0060]
[0061] (R, G, B) = ((R' + m) x 255, (G' + m) x 255, (B' + m) x 255);
[0062] Wherein, H is hue, S is saturation, V is lightness. C, X are intermediate parameters without actual meaning, mod2 is remainder of 2, (R', G', B') is three-way duty ratio without normalized to 8bit, R, G, B are three-way duty ratios corresponding to three ways;
[0063] Converting RGB into the initial color point, expressed as:
[0064]
[0065]
[0066]
[0067] wherein Y R , Y G , Y B are the three corresponding luminous fluxes, x R , x G , x B , y R , y G , y B are the three corresponding color coordinates, C R , C G , C B are intermediate parameters without actual meaning.
[0068] The color point mapping algorithm S2 maps the initial color point to a multi-channel light source temperature-affected color gamut to obtain a target color point.
[0069] Specifically, the step S2 includes:
[0070] S21, obtaining color coordinates (xr, yr), (xg, yg), (xb, yb) of an app color gamut and color coordinates (x’r, y’r), (x’g, y’g), (x’b, y’b) of a multi-channel light source temperature-affected color gamut, the app color gamut being a color gamut displayed in an application program;
[0071] S22, constructing a 3x3 matrix A and a 3x3 matrix B, wherein the matrix A contains all coordinate information of the app color gamut and a value 1, and the matrix B contains all coordinate information of the multi-channel light source temperature-affected color gamut and a value 1;
[0072] S23, constructing a 3x3 matrix C using the initial color point, the matrix C containing color coordinates x and y of the initial color point, a value 1 and a value 0.5;
[0073] S24, mapping to obtain a target color point using the matrix A, the matrix B and the matrix C, represented as:
[0074] D = (A x B) x C;
[0075] wherein the matrix D is a 3x3 matrix, a first element of a first row of the matrix D being a color coordinate x of the target color point, and a second row being a color coordinate y of the target color point.
[0076] It should be noted that in the prior art, the app color gamut and the whole lamp color gamut have a mismatch problem, for example, Figure 2As shown, the whole lamp color gamut is larger than the app color gamut, the color is light in the three vertexes of the app color gamut, and part of the light source color gamut is wasted and not used, and there is a color gamut space waste. Through the above technical scheme, the problem of color gamut waste caused by the mismatch between the app color gamut and the whole lamp color gamut can be solved while ensuring high color accuracy.
[0077] The Grassmann light mixing algorithm S3 uses a three-way / four-way Grassmann algorithm to obtain the theoretical current proportion when the target color point is mixed out by the multi-way light source, and the four-way Grassmann algorithm includes using cross multiplication to determine which three-way light source color gamut the target color point is in, and calling the chromaticity parameters of the light source where the color point is located to calculate the three-way Grassmann algorithm.
[0078] Specifically, the three-way Grassmann algorithm in step S3 includes calculating based on the color coordinates and brightness of any three-way light source at 100% current proportion and the target color point, and calculating through the following formula:
[0079]
[0080] Wherein, η1, η2, η3 are the current proportions of the first, second and third light sources, x1, y1, Y1 are the color coordinates and brightness of the first light source at 100% current proportion, x2, y2, Y2 are the color coordinates and brightness of the second light source at 100% current proportion, x3, y3, Y3 are the color coordinates and brightness of the third light source at 100% current proportion, x, y are the target color point, and Y is the brightness value of the target color point.
[0081] Further, using cross multiplication to determine which three-way light source color gamut the target color point is in includes:
[0082] S31, there are three vertices ABC of the light source color gamut, a vector is drawn from the target color point P to each of the three vertices; according to the three vertices ABC of the light source color gamut, it is judged whether the target color point P is in the triangle ABC, and a vector is drawn from the target color point P to each of the three vertices. AP, BP and CP;
[0083] S32, the cross product of each vector and the adjacent two vectors is calculated respectively, and the sum is added; for example, at point A, the cross product of vectors BP and CP is calculated. At point B, the cross product of vectors AP and CP is calculated. At point C, the cross product of vectors AP and BP is calculated.
[0084] S33, if all the cross products have the same sign and the sum is equal to twice the area of the triangle ABC formed by the three vertices, it is judged that the target color point P is in the triangle ABC, that is, in the color gamut of the three-way light source. Otherwise, point P is not in the triangle ABC.
[0085] Specifically, the four-way Grassmann algorithm in step S3 includes judging whether the target color point is on the line connecting the color coordinates of any two light sources, and if so, performing calculation based on the two-way Grassmann light mixing algorithm.
[0086] Specifically, the two-way Grassmann algorithm includes performing calculation based on the color coordinates and brightness of any two light sources at 100% current ratio, and the target color point, and the calculation is performed through the following formula:
[0087]
[0088] wherein η1 and η2 are the current ratios of the first light source and the second light source respectively, x1, y1 and Y1 are the color coordinates and brightness of the first light source at 100% current ratio, x2, y2 and Y2 are the color coordinates and brightness of the second light source at 100% current ratio, x and y are the target color point, and Y is the brightness value of the target color point.
[0089] Through the above technical solution, it is judged whether the target color point is on the line connecting the color coordinates of any two light sources, and if so, calculation is performed based on the two-way Grassmann light mixing algorithm, which can reduce the algorithm power, avoid excessive number of judgments, and improve the algorithm efficiency.
[0090] Specifically, step S2 and step S3 further include a temperature calibration algorithm, i.e., a linear / nonlinear relationship between the color parameters of the multi-way light source fitted by the piecewise function and the temperature, fitting the color parameters of the multi-way light source to obtain the color parameters of the multi-way light source at the actual temperature, wherein the color parameters include the color coordinates and brightness values of the corresponding light source.
[0091] The principle of the temperature calibration algorithm is as follows:
[0092] x1=f1(T)
[0093] y1=g1(T)
[0094] Y1=h1(T)
[0095] x2=f2(T)
[0096] y2=g2(T)
[0097] Y2=h2(T)
[0098] x3=f3(T(
[0099] y3=g3(T)
[0100] Y3=h3(T)
[0101] Wherein x, y, Y are the color coordinates and brightness values of different light sources in the multi-channel light source at a certain temperature, and the functions f(T), g(T), h(T) are temperature-related functions, including but not limited to linear functions, nonlinear functions, piecewise linear functions, and piecewise nonlinear functions.
[0102] The current calibration algorithm S4 uses the nonlinear relationship between the current proportion of the multi-channel light source and the luminous flux fitted by the quadratic equation in advance to inversely solve the calibrated actual current proportion based on the theoretical current proportion.
[0103] The current calibration algorithm outputs a constant from a quadratic function solution or a constant,
[0104] Specifically, step S4 includes:
[0105] S41, using the theoretical current proportion η of the multi-channel light source and the luminous flux Y corresponding to the maximum current proportion (luminous flux under 100% current proportion), calculate the theoretical luminous flux y before calibration;
[0106] Because there is a nonlinear relationship between the actual luminous flux and the current proportion, the actual luminous flux can be assumed to be equal to the theoretical luminous flux, i.e. there is an equivalent relationship as follows:
[0107] η*Y=y(theoretical luminous flux)=y(actual luminous flux)=ax+bx+c; 2
[0108] Then only need to calculate the three coefficient constants a, b, c, and substitute them into the Root formula to calculate the calibrated current proportion.
[0109] S42, using the coefficient constants calculated using the preset theoretical luminous flux, preset theoretical current proportion and preset actual luminous flux, and combining the theoretical luminous flux before calibration to calculate the calibrated actual current proportion, the calibrated actual current proportion is calculated by the following formula:
[0110]
[0111] Wherein x is the calibrated actual current proportion, a, b, c are the coefficient constants, y is the theoretical luminous flux before calibration, and the current proportion output of the constant part of the luminous flux under low current is a fixed value.
[0112] Because under low current, the problem of no change in luminous flux under different proportions is easy to occur, therefore, by using the above technical solution, the accuracy of the quadratic function current calibration algorithm can be improved, and the error of the quadratic function current calibration algorithm caused by constant luminous flux can be avoided.
[0113] In the second aspect of the application, a light mixing circuit using the above method is provided, comprising an EMI and rectifier circuit 301, an auxiliary power supply circuit 302, a radio frequency communication module 303, a two-way light mixing circuit and a three-way / four-way light mixing circuit; the EMI and rectifier circuit 301 is electrically connected with the two-way light mixing circuit and the three-way / four-way light mixing circuit, the radio frequency communication module 303 is in communication connection with the two-way light mixing circuit and the three-way / four-way light mixing circuit for dimming and color adjustment, and the auxiliary power supply circuit 302 is electrically connected with the radio frequency communication module 303 for power supply; wherein,
[0114] Specifically, as shown in Figure 3a , the two-way light mixing circuit comprises a constant current dimming control circuit 304, a CCT color temperature control circuit 305 and a two-way LED light source 306, the EMI and rectifier circuit 301 is electrically connected with the constant current dimming control circuit 304, the constant current dimming control circuit 304 is electrically connected with the CCT color temperature control circuit 305, the CCT color temperature control circuit 305 is electrically connected with the two-way LED light source 306, and the radio frequency communication module 303 is in communication connection with the EMI and rectifier circuit 301 and the constant current dimming control circuit 304;
[0115] The working principle of the two-way light mixing circuit is that after the alternating current is input to the EMI and rectifier circuit, it is given to the constant current dimming control circuit, the constant current control circuit adjusts the output current according to the PWM1 signal to achieve the effect of dimming; the CCT color temperature control circuit receives the PWM2 signal to divide the output current into two ways to the LED light source to achieve the purpose of color temperature control; the auxiliary power supply circuit provides a constant power supply for the radio frequency communication module; the radio frequency communication module outputs the dimming and color adjustment signals PWM1 and PWM2 according to the dimming and color adjustment information of the user.
[0116] Specifically, as shown in Figure 3b , the three-way light mixing circuit comprises a dimming and color adjustment control circuit 307 and a three-way LED light source 308, the EMI and rectifier circuit 301 is electrically connected with the dimming and color adjustment control circuit 307, the dimming and color adjustment control circuit 307 is electrically connected with the three-way LED light source 308, and the radio frequency communication module 303 is in communication connection with the dimming and color adjustment control circuit 307;
[0117] Specifically, as shown in Figure 3c , the four-way light mixing circuit comprises a dimming and color adjustment control circuit 307 and a four-way LED light source 309, the EMI and rectifier circuit 301 is electrically connected with the dimming and color adjustment control circuit 307, the dimming and color adjustment control circuit 307 is electrically connected with the four-way LED light source 309, and the radio frequency communication module 303 is in communication connection with the dimming and color adjustment control circuit 307.
[0118] The working principle of the three-way / four-way light mixing circuit is that the dimming and color adjustment control circuit directly adjusts the current of each way of LED after receiving the signal of the radio frequency communication module.
[0119] As an example, the following red, green, blue, white light source four-way light mixing of the present application is taken as an example, the following table provides the color coordinates and brightness information of the four-way light source:
[0120] X Y Flux red 0.6757 0.3196 65.9 green 0.1872 0.6700 137.4 blue 0.1548 0.0473 54.2 white 0.4574 0.4174 853.6
[0121] The effects achieved by the method of the present application are shown in the following table:
[0122] x y x y SDCM RGB = 255: 175: 95 0.4518 0.4104 0.4581 0.4104 0.2101 RGB = 255: 212: 163 0.3800 0.3800 0.3864 0.3834 2.0916 RGB = 255: 150: 53 0.5018 0.4153 0.5072 0.4150 3.567 RGB = 0: 242: 252 0.1300 0.3100 0.3096 0.1294 3.0347
[0123] The present application achieves the following technical effects: ensuring high color accuracy while solving the problem of color gamut waste caused by the mismatch between the app color gamut and the whole lamp color gamut, and ensuring the accuracy of the monomial quadratic function current calibration algorithm, avoiding the error of the monomial quadratic function current calibration algorithm caused by constant luminous flux; the cross multiplication algorithm is used to select the mixed light source, improve the algorithm efficiency, reduce the MCU algorithm requirement, and avoid the problem that the target color point cannot be calculated corresponding to the light source current proportion due to the fixed color gamut.
[0124] Obviously, those skilled in the art can make various modifications and changes to the embodiments of the present application without departing from the spirit and scope of the present application. In this way, if these modifications and changes are within the scope of the claims of the present application and their equivalents, the present application also intends to cover these modifications and changes. The word "comprises" does not exclude the presence of other elements or steps not listed in the claims. The simple fact that certain measures are described in mutually different dependent claims does not mean that the combination of these measures cannot be used to advantage. Any reference signs in the claims should not be considered as limiting the scope.
Claims
1. A method of mixing light of an LED luminaire, characterized in that, The method comprises the following steps: S1, converting the RGB / HSV color matching parameters input by a user into an initial color point; S2, mapping the initial color point to a multi-channel light source temperature-affected color gamut to obtain a target color point by using the color coordinates of the multi-channel light source temperature-affected color gamut; S3, obtaining the theoretical current proportion of the multi-channel light source when mixing the target color point by using a three-channel / four-channel Grassmann algorithm, wherein the four-channel Grassmann algorithm comprises judging in which three-channel light source color gamut the target color point is located by using cross multiplication, and calling the chromaticity parameters of the light source in which the color point is located to perform the calculation of the three-channel Grassmann algorithm; wherein, steps S2 and S3 further comprise fitting the linear / nonlinear relationship between the chromaticity parameters of the multi-channel light source after fitting by using a segmented function and the temperature, fitting the chromaticity parameters of the multi-channel light source to obtain the chromaticity parameters of the multi-channel light source under the actual temperature, and the chromaticity parameters comprise the color coordinates and the brightness value of the corresponding light source; S4, inversely solving the calibrated actual current proportion based on the theoretical current proportion by using the nonlinear relationship between the current proportion and the luminous flux of the multi-channel light source after fitting by using a monomial quadratic equation.
2. The LED luminaire light mixing method of claim 1, wherein, Step S1 comprises converting the HSV input by the user into RGB, and converting the RGB into the initial color point.
3. The LED luminaire light mixing method of claim 1, wherein, Step S2 comprises: S21, obtaining the color coordinates of an app color gamut and the color coordinates of a multi-channel light source temperature-affected color gamut, wherein the app color gamut is a color gamut displayed in an application program; S22, constructing a 3*3 matrix A and a 3*3 matrix B, wherein the matrix A comprises all coordinate information of the app color gamut and a value 1, and the matrix B comprises all coordinate information of the multi-channel light source temperature-affected color gamut and a value 1; S23, constructing a 3*3 matrix C by using the initial color point, wherein the matrix C comprises the color coordinates x and y of the initial color point, and a value 1 and a value 0.5; S24, mapping and obtaining a target color point by using the matrix A, the matrix B and the matrix C, and the mapping is represented as: D= (A*B) *C; wherein, D is a 3*3 matrix, and the first element of the first row of the 3*3 matrix D is the color coordinate x of the target color point, and the second row is the color coordinate y of the target color point.
4. The LED luminaire light mixing method of claim 1, wherein, The three-channel Grassmann algorithm of step S3 comprises performing calculation based on the color coordinates and the brightness of any three-channel light source under 100% current proportion, and the target color point, and the calculation is performed by the following formula: , wherein, are the current proportion of the first light source, the second light source, and the third light source, respectively, is the color coordinate and luminance of the first light source at 100% current proportion, is the color coordinate and luminance of the second light source at 100% current proportion, is the color coordinate and luminance of the third light source at 100% current proportion, x and y are the target color point, and Y is the luminance value of the target color point.
5. The LED luminaire light mixing method of claim 1, wherein, The judgment of the target color point in which three-channel light source color gamut by using cross multiplication comprises: S31, there are three vertices of a light source color gamut, and a vector is drawn from the target color point to each of the three vertices; S32, the cross product of each vector and the adjacent two vectors is calculated respectively, and the sum is obtained; S33, if all the cross products have the same sign, and the sum is equal to twice the area of the triangle formed by the three vertices, it is judged that the target color point is in the color gamut of the corresponding three-channel light source.
6. The LED luminaire light mixing method of claim 1, wherein, The four-channel Grassmann algorithm of step S3 comprises judging whether the target color point is on the line connecting the color coordinates of any two-channel light source, and if yes, performing calculation based on the two-channel Grassmann light mixing algorithm.
7. The LED luminaire light mixing method of claim 6, wherein, The two-path Grassmann algorithm in step S3 includes calculation based on the color coordinates and brightness of any two-path light source at 100% current ratio and the target color point, and is calculated by the following formula: , wherein, are the current proportion of the first and second light sources, respectively, are the color coordinates and luminance of the first light source at 100% current proportion, are the color coordinates and luminance of the second light source at 100% current proportion, x, y are the target color point, and Y is the luminance value of the target color point.
8. The LED luminaire light mixing method of claim 1, wherein, The piecewise function includes a linear function, a nonlinear function, a piecewise linear function, and a piecewise nonlinear function.
9. The LED luminaire light mixing method of claim 1, wherein, Step S4 includes: S41, using the luminous flux corresponding to the theoretical current ratio and the maximum current ratio of the multi-path light source, the theoretical luminous flux before calibration is calculated; S42, using the coefficient constant calculated by the preset theoretical luminous flux, the preset theoretical current ratio and the preset actual luminous flux, the actual current ratio after calibration is calculated in combination with the theoretical luminous flux before calibration, and the actual current ratio after calibration is calculated by the following formula: ; Wherein, x is the actual current ratio after calibration, a, b, c is the coefficient constant, y is the theoretical luminous flux before calibration, and the current ratio output of the constant part of luminous flux in the case of low current is a fixed value.
10. A light mixing circuit using the light mixing method of any one of claims 1 to 9, characterized in that, The EMI and rectifier circuit, the auxiliary power supply circuit, the radio frequency communication module, the two-path light mixing circuit and the three-path / four-path light mixing circuit; the EMI and rectifier circuit is electrically connected with one of the two-path light mixing circuit and the three-path / four-path light mixing circuit, the radio frequency communication module is in communication connection with one of the two-path light mixing circuit and the three-path / four-path light mixing circuit for dimming and color adjustment, and the auxiliary power supply circuit is electrically connected with the radio frequency communication module for power supply; wherein, The two-path light mixing circuit includes a constant current dimming control circuit, a CCT color temperature control circuit and two-path LED light source, the EMI and rectifier circuit is electrically connected with the constant current dimming control circuit, the constant current dimming control circuit is electrically connected with the CCT color temperature control circuit, the CCT color temperature control circuit is electrically connected with the two-path LED light source, and the radio frequency communication module is in communication connection with the EMI and rectifier circuit and the constant current dimming control circuit; The three-path / four-path light mixing circuit includes a dimming and color control circuit and a three-path / four-path LED light source, the EMI and rectifier circuit is electrically connected with the dimming and color control circuit, the dimming and color control circuit is electrically connected with the three-path / four-path LED light source, and the radio frequency communication module is in communication connection with the dimming and color control circuit.
Citation Information
Patent Citations
Multipath light mixing method and terminal
CN114867148A
RGB illuminating lamp based on color space color point switching algorithm
CN116600439A