A method for switching color temperature and related device
By processing the duty cycle data of multi-primary-color LED light sources and using preset adjustment rules to generate a new duty cycle that closely approximates the blackbody radiation curve, the problem of color coordinate deviation in LED light source color temperature switching is solved, achieving a high-quality color temperature switching effect.
Patent Information
- Application Number
- CN202111435106.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2041-11-29
AI Technical Summary
During the color temperature switching process, the color coordinates of existing LED light sources tend to deviate from the blackbody radiation curve, causing the color tolerance to exceed the standard and reducing the quality of the light source.
By acquiring the duty cycle data of multi-primary-color LED light sources, processing this data using preset adjustment rules to generate new duty cycle data that is closer to the blackbody radiation curve, and using PWM technology to adjust the duty cycle of each LED to ensure the accuracy of color coordinates during color temperature switching.
It achieves a close approximation of the blackbody radiation curve at the color coordinate point during the color temperature switching process of the LED light source, maintaining high quality while being low in cost and easy to adjust.
Smart Images

Figure CN116113101B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of lighting / display technology, and particularly relates to a color temperature switching method and related device. BACKGROUND
[0002] Light-emitting diode (LED) light sources have rapidly replaced traditional lighting sources and have been widely used due to their long service life, green environmental protection, energy efficiency, adjustable spectrum, and other characteristics. With the development of technology, people's quality standards for LED lighting products are constantly improving. In addition to low cost, high color rendering index, and high luminous efficiency, new requirements are proposed for other functions, such as eye protection, low glare, and adjustable color temperature.
[0003] Most of the products on the market with color temperature switching function are multi-primary color LED light sources, which change the duty cycle of red, green, and other LEDs through pulse width modulation (PWM) dimming to achieve color or color temperature changes. Compared with current amplitude dimming, which changes the brightness of the light source by changing the direct current amplitude, using PWM technology to change the on-duty ratio of the current in each cycle to change the brightness of the light source can reduce the impact of temperature rise on LEDs, reduce the color shift problem caused by high temperature due to long-term use of lighting products, and the on-duty ratio of PWM current and spectral power show a high degree of linear relationship, which provides great convenience for accurate control of spectrum.
[0004] However, simply changing the duty cycle through linear changes can cause the color coordinates of the light source to deviate significantly from the blackbody radiation curve during color temperature changes, and the color tolerance exceeds the standards such as ANSI C 78.377-2017 and IEC60081-A2005, reducing the quality of the light source. Therefore, it is important to propose an algorithm to regulate the color temperature changes of multi-primary color LED light sources so that their color coordinates are close to the blackbody radiation curve. SUMMARY
[0005] Embodiments of the present application provide a color temperature switching method and related device, which makes the color coordinate points of the LED light source close to the blackbody radiation curve on the CIE color diagram during color temperature switching.
[0006] In a first aspect, embodiments of the present application provide a color temperature switching method, including: obtaining N groups of first duty cycle data, one group of first duty cycle data being the control signal duty cycle of one light emitting chip during the conversion from a first color temperature to a second color temperature, N being a positive integer; processing the N groups of first duty cycle data according to a preset adjustment rule to obtain N groups of second duty cycle data; and performing color temperature switching on a target lamp according to the N groups of second duty cycle data, the target lamp including M light emitting chips, M≥N.
[0007] The method for switching color temperature provided by the embodiments of the present application has the advantages of good switching effect, low cost, easy adjustment, etc.
[0008] In a possible implementation of the first aspect, the N groups of first duty cycle data are obtained in the following manner:
[0009] The first control signal duty cycle of the nth light emitting chip at the first color temperature is obtained, where 0 < n ≤ N;
[0010] The nth light emitting chip is controlled to switch from the first color temperature to the second color temperature;
[0011] The second control signal duty cycle of the nth light emitting chip at the second color temperature is obtained;
[0012] The control signal duty cycle between the first control signal duty cycle and the second control signal duty cycle is supplemented to obtain the nth group of first duty cycle data.
[0013] In a possible implementation of the first aspect, the preset adjustment rule comprises:
[0014] The first control signal duty cycle corresponding to the first color temperature is unchanged;
[0015] The second control signal duty cycle corresponding to the second color temperature is unchanged;
[0016] The remaining elements in the nth group of second duty cycle data are greater than, less than or equal to the corresponding elements in the nth group of first duty cycle data, and the remaining elements are the elements in the nth group of second duty cycle data other than the first control signal duty cycle and the second control signal duty cycle.
[0017] In a possible implementation of the first aspect, the N groups of first duty cycle data are processed according to the preset adjustment rule to obtain N groups of second duty cycle data, which comprises:
[0018] The nth group of first duty cycle data is processed according to a quadratic polynomial function to obtain the nth group of second duty cycle data;
[0019] The quadratic polynomial function is:
[0020] y=k×x 2 +(1-k×(a+b))×x+k×a×b;
[0021] Wherein, y is an element in the second duty cycle data, x is an element in the first duty cycle data, a is the first control signal duty cycle, b is the second control signal duty cycle, and k is a determined coefficient.
[0022] In a possible implementation of the first aspect, the method further includes:
[0023] The k is determined according to the attribute of the nth light emitting chip and the color coordinate distance between the first color temperature and the second color temperature.
[0024] In a possible implementation of the first aspect, after the N sets of second duty cycle data are obtained by processing the N sets of first duty cycle data according to the preset adjustment rule, the method further includes:
[0025] The distance between the color coordinate curve corresponding to the N sets of second duty cycle data and the blackbody radiation curve is compared.
[0026] If the distance is greater than or equal to a preset threshold, N sets of third duty cycle data are obtained by processing the N sets of second duty cycle data according to the preset adjustment rule.
[0027] The color temperature is switched according to the N sets of third duty cycle data.
[0028] In a possible implementation of the first aspect, the method further includes:
[0029] The k is determined according to the attribute of the light emitting chip and the difference between the midpoint of the color coordinate curve and the ordinate of the blackbody radiation curve.
[0030] In a second aspect, an embodiment of the present application provides a device for switching color temperature, including:
[0031] The acquisition module is configured to acquire N sets of first duty cycle data, one set of first duty cycle data being the control signal duty cycle of one light emitting chip in the process of converting from a first color temperature to a second color temperature, and N being a positive integer.
[0032] The correction module is configured to obtain N sets of second duty cycle data by processing the N sets of first duty cycle data according to a preset adjustment rule.
[0033] The processing module is further configured to switch the color temperature of a target lamp according to the N sets of second duty cycle data, the target lamp including M light emitting chips, and M≥N.
[0034] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method of the first aspect when executing the computer program.
[0035] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method in the first aspect.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the method in any one of the first aspect.
[0037] It can be understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description in the first aspect, which will not be repeated here.
[0038] Compared with the prior art, the embodiment of the present application has the following beneficial effects:
[0039] The method for switching color temperature provided by the embodiment of the present application has the following advantages: the N sets of second duty cycle data are obtained by processing the N sets of first duty cycle data according to the preset adjustment rule, so that the N sets of second duty cycle data are closer to the blackbody radiation curve, and are closer to the blackbody radiation curve, so that the LED light source can keep high quality at any time. Then, the duty cycle of each LED is adjusted according to the PWM technology through the N sets of second duty cycle data, which has the advantages of good switching effect, low cost, easy adjustment and the like. BRIEF DESCRIPTION OF DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0041] Figure 1 The normalized spectrum of the red light LED, the blue light LED, the green light LED, the low color temperature LED and the high color temperature LED;
[0042] Figure 2 The flowchart of the method for switching color temperature provided by the embodiment of the present application;
[0043] Figure 3 The graph of the change of the duty cycle under different values of the k coefficient in the embodiment of the present application;
[0044] Figure 4 The flowchart of some embodiments in the embodiment of the present application;
[0045] Figure 5 The curve corresponding to the duty cycle data of the application example one in the embodiment of the present application;
[0046] Figure 6A color temperature switching result graph of the application example one in the embodiment of the present application;
[0047] Figure 7 A curve graph corresponding to the duty cycle data of the application example two in the embodiment of the present application;
[0048] Figure 8 A color temperature switching result graph of the application example two in the embodiment of the present application;
[0049] Figure 9 A curve graph corresponding to the duty cycle data of the application example three in the embodiment of the present application;
[0050] Figure 10 A color temperature switching result graph of the application example three in the embodiment of the present application;
[0051] Figure 11 A curve graph corresponding to the duty cycle data of the application example four in the embodiment of the present application;
[0052] Figure 12 A color temperature switching result graph of the application example four in the embodiment of the present application;
[0053] Figure 13 A curve graph corresponding to the duty cycle data of the application example five in the embodiment of the present application;
[0054] Figure 14 A color temperature switching result graph of the application example five in the embodiment of the present application;
[0055] Figure 15 A schematic diagram of a color temperature switching device provided by the embodiment of the present application;
[0056] Figure 16 A schematic diagram of a color temperature switching device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0057] In the following description, specific details are set forth such as particular system architectures, techniques etc. in order to provide a thorough understanding of the embodiments of the present application. However, persons skilled in the art will appreciate that the present application can be practiced without such specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail since not to unnecessarily obscure aspects of the present application.
[0058] It should be understood that the term "comprising" when used in this specification and the appended claims specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0059] It should also be understood that the term “and / or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items, and that the term “at least one of’ denotes one, or a combination of two or more items.
[0060] As used in the description of the application and the appended claims, the term “if’ can be interpreted to mean “when” or “upon” or “in response to determining” or “in response to detecting” depending on the context. Similarly, the phrase “if it is determined” or “if [a described condition or event] is detected” can be interpreted to mean “upon determining” or “in response to determining” or “upon [the described condition or event] being detected” or “in response to [the described condition or event] being detected,” depending on the context.
[0061] In addition, the terms “first,” “second,” “third,” etc. as used in the description of embodiments herein and throughout the claims (if any) are not used to connote any relative importance but are just used for discrimination in the description.
[0062] Reference throughout this specification to “one embodiment” or “an embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in additional embodiments,” and so on, in various places throughout this specification are not necessarily all referring to the same embodiment, unless otherwise specified. The terms “including,” “containing,” “comprising,” and similar terms are meant to be open-ended, unless otherwise noted, so that other components, methods, steps, structures, and so on can be added.
[0063] The color temperature switching method provided by the embodiments of the application can be applied to the adjustment of a light bulb (especially an LED light bulb), the control of a display / display screen (such as an LED display screen), and the control of a light emitting device such as an LED light emitting module. The control device can be connected to the light emitting device, and the light emitting condition of the light emitting device is adjusted by adjusting the duty cycle of the control signal.
[0064] The light emitting device in the embodiments of the application can include LEDs of multiple primary colors, for example, a three-primary-color light source including blue, green, and red LEDs. In actual applications, it can also be a four-primary-color light source, a five-primary-color light source, and the like, and the number and types of LEDs included in the light emitting device are not limited in the embodiments of the application.
[0065] For example, the light emitting device can include red LEDs, blue LEDs, green LEDs, low color temperature LEDs, and high color temperature LEDs. Figure 1Normalized spectra of red LED, blue LED, green LED, low color temperature LED and high color temperature LED. The light source used in the embodiments of the present application is: blue LED with peak wavelength in the range of 470nm-490nm; yellow-green LED with peak wavelength in the range of 545nm-565nm, using blue light to excite yellow-green phosphor; red LED with peak wavelength in the range of 610nm-640nm, using blue light to excite red phosphor; low color temperature white LED with high color rendering index; high color temperature white LED with high color rendering index. In the embodiments, the spectral data is normalized, and the duty cycle required for the target color temperature can be calculated and generated.
[0066] Figure 2 The flow chart of the color temperature switching method provided in the embodiments of the present application. The flow can be executed by the control device described above, and the flow includes:
[0067] 201, obtaining N sets of first duty cycle data;
[0068] In the embodiments of the present application, the first duty cycle data is the control signal duty cycle of the target lamp in the process of converting from the first color temperature to the second color temperature. The specific type of the control signal duty cycle can be actually determined according to the control mode of the target lamp. For example, if the target lamp is current-driven, the control signal duty cycle can be the current signal duty cycle. For example, if the target lamp is voltage-driven, the control signal duty cycle can be the voltage signal duty cycle. The specific type of the control signal duty cycle is not limited in the embodiments of the present application.
[0069] In the embodiments of the present application, the target lamp can be one kind of light emitting device, and can be a multi-primary color light source including at least one light emitting chip. For example, the target lamp is composed of blue LED, red LED and yellow LED, wherein the blue LED, red LED and yellow LED can all be light emitting chips in the target lamp. The control signal duty cycle of the target lamp can include the control signal duty cycles of the multiple light emitting chips, and each light emitting chip can correspond to a set of duty cycle data, for example, the blue LED corresponds to A set of duty cycle data, the red LED corresponds to B set of duty cycle data, and the yellow LED corresponds to C set of duty cycle data. In the embodiments of the present application, one set of first duty cycle data can correspond to one set of duty cycle data.
[0070] Generally, if the target lamp includes M light emitting chips, M sets of first duty cycle data can be obtained. However, in some cases, the target lamp can not adjust some light emitting chips, and then N (N≤M) sets of first duty cycle data can be obtained for processing, i.e. processing for some light emitting chips. In the embodiments of the present application, the general case is described (i.e. the number of light emitting chips in the target lamp is the same as the number of sets of first duty cycle data), and other cases can be implemented by reference. The embodiments of the present application will not be described again.
[0071] The following description uses the first duty cycle data corresponding to the light-emitting chip A in the target lamp.
[0072] The process of the target lamp switching from the first color temperature to the second color temperature can be actively controlled or detected. In the embodiments of this application, the first duty cycle data can be obtained through the following steps.
[0073] First, the duty cycle of the first control signal of the light-emitting chip A is obtained when the target lamp is at the first color temperature. In this embodiment, the target lamp can switch color temperatures. Before the color temperature switch, the target lamp is in the first color temperature state. At this time, the light-emitting chip A in the target lamp is driven by the duty cycle of the first control signal. Therefore, the first color temperature and the duty cycle of the first control signal have a corresponding relationship.
[0074] Then, the target light is controlled to switch from the first color temperature to the second color temperature. In this embodiment, the control device can switch the color temperature by changing the duty cycle of the control signal. However, this color temperature switching is not optimized and therefore requires further optimization.
[0075] Then, the duty cycle of the second control signal of the light-emitting chip A is obtained when the target lamp is in the second color temperature. After switching to the second color temperature, the target lamp is in the second color temperature state. At this time, the light-emitting chip A is driven by the duty cycle of the second control signal. Therefore, the second color temperature and the duty cycle of the second control signal have a corresponding relationship.
[0076] Then, the duty cycle of the control signal between the first and second control signal duty cycles is supplemented to obtain the first duty cycle data. Specifically, the supplementation method can be to perform linear interpolation between the first and second control signal duty cycles. For example, if the first control signal duty cycle is 0% and the second control signal duty cycle is 100%, and three control signal duty cycles are supplemented between the first and second control signal duty cycles, they will be 25%, 50%, and 75%, respectively. In this case, the first duty cycle data can be {0%, 25%, 50%, 75%, 100%}.
[0077] The following explanation uses the first duty cycle data as {x1, x2, x3, ..., xn}, where x1 is the duty cycle of the first control signal corresponding to the first color temperature, which can also be represented as a; and xn is the duty cycle of the second control signal corresponding to the second color temperature, which can also be represented as b. Therefore, the first duty cycle data can also be {a, x2, x3, ..., b}.
[0078] 202. Process N sets of first duty cycle data according to preset adjustment rules to obtain N sets of second duty cycle data;
[0079] In the embodiments of the present application, the nth group of second duty cycle data can be obtained by processing the nth group of first duty cycle data according to the preset adjustment rule. The processing method of one group of first duty cycle data is described below.
[0080] In the embodiments of the present application, the preset adjustment rule can be set according to actual conditions, and generally needs to meet the following conditions:
[0081] The first control signal duty cycle corresponding to the first color temperature is unchanged;
[0082] The second control signal duty cycle corresponding to the second color temperature is unchanged;
[0083] The remaining elements in the second duty cycle data are all greater than, less than or equal to the corresponding remaining elements in the first duty cycle data, and the remaining elements are elements other than the first control signal duty cycle and the second control signal duty cycle.
[0084] Specifically, the first control signal duty cycle corresponding to the first color temperature is set as a, the second control signal duty cycle corresponding to the second color temperature is set as b, the remaining element in the second duty cycle data is set as f(x), and the corresponding remaining element in the first duty cycle data is set as x, so that:
[0085]
[0086] Wherein, x∈(a,b) represents that x is a remaining element in the first duty cycle data other than the first control signal duty cycle a and the second control signal duty cycle b, f(a)=a represents that the first control signal duty cycle a corresponding to the first color temperature is unchanged, f(b)=b represents that the second control signal duty cycle b corresponding to the second color temperature is unchanged, and f(x)<x||f(x)>x||f(x)=x represents that the remaining elements in the second duty cycle data are all greater than, less than or equal to the corresponding remaining elements in the first duty cycle data.
[0087] According to the above conditions, a function expression can be set to obtain the calculation of f(x). The function f(x) can include but is not limited to a power function, a multiple term function, an exponential function, and a logarithmic function. The quadratic polynomial function provided in the embodiments of the present application is as follows:
[0088] y=k×x 2 +(1-k×(a+b))×x+k×a×b;
[0089] Wherein, y is an element in the second duty cycle data, x is an element in the first duty cycle data, a is the first control signal duty cycle, b is the second control signal duty cycle, and k is a determined coefficient. Then,
[0090] f(a)=y(a)=k×a 2+ (1 - k x (a + b)) x a + k x a x b = a;
[0091] f(b) = y(a) = k x b 2 + (1 - k x (a + b)) x b + k x a x b = b;
[0092] Figure 3 Fig. 2 is a diagram of the variation of duty cycle under different values of k coefficient in the embodiments of the present application, specifically, when a = 0%, b = 100%, the values of duty cycle after quadratic polynomial function processing of the equi-proportionally interpolated duty cycle under different k coefficients. As shown in Fig. 2, when the coefficient k > 0, the output duty cycle y after formula processing is all less than the original duty cycle x; when k = 0, the duty cycle x does not change; when k < 0, the duty cycle y after processing is all greater than the original duty cycle x. For each LED light source, a suitable coefficient k is selected to process the duty cycle data of the corresponding group, so that the color coordinates of color temperature switching are close to the black body radiation curve on the color quality diagram. Figure 3
[0093] For the value of the coefficient k, the embodiments of the present application provide two coefficient K value determination methods.
[0094] The first coefficient K value determination method determines k according to the color attribute of the target lamp and the distance between the color coordinates of the first color temperature and the second color temperature:
[0095] ki = Fi + (1 - D / H)
[0096] Where i represents different primary colors of LEDs, Fi is the initial coefficient corresponding to each LED, generally, for red and blue light LEDs, Fi > 0, and for green light LEDs, Fi < 0. H is a fixed value reference coefficient, and D is determined by the distance between the color coordinates before and after color temperature switching.
[0097] In the first coefficient K value determination method, the distance between the color coordinates before and after color temperature switching is used as a criterion, the absolute value of k is proportional to the straight line distance of the two color coordinates. If the distance between the color coordinates before and after color temperature switching is less than a certain value, the duty cycle changes linearly. The positive and negative values of k are related to the color of the LED, wherein the k value of red and blue light LEDs is greater than 0, the k value of green light LEDs is less than 0, and the positive and negative values of white light are determined according to the actual color temperature switching situation.
[0098] The second coefficient K value determination method determines k according to the color attribute of the target lamp and the difference Y' between the midpoint of the color coordinate curve and the ordinate of the black body radiation curve:
[0099] ki = Gi * Y';
[0100] wherein Gi represents initial coefficients of different primary colors of the LED, and the value is less than 0 for blue light and red light, and the value is greater than 0 for green light. Y' is the difference between the ordinate of the midpoint position of the color temperature switching curve and the ordinate of the blackbody radiation curve in the vertical direction thereof.
[0101] In some embodiments, the color coordinates of the multi-primary color LED light source after correction can be calculated, and if the color coordinates before and after the color temperature switching are within a certain distance, linear variation is adopted, k is set to 0, so that the duty cycle x does not change.
[0102] It can be understood that different functions f(x) can be used to process the duty cycle data of different groups, for example, the nth quadratic polynomial function is used for the nth group of duty cycle data. If the quadratic polynomial function provided in the embodiments of the present application is used, different k value determination methods can be used, or different k values can be used, that is, each group of duty cycle data corresponds to a respective k value.
[0103] 203. Color temperature switching is performed according to the N groups of second duty cycle data.
[0104] In the embodiments of the present application, if the target lamp includes N light emitting chips, there are N groups of second duty cycle data, and then the total spectrum and the corresponding color coordinates of the light source can be calculated according to the N groups of second duty cycle data, and the color temperature switching of the multi-primary color LED is completed.
[0105] The embodiments of the present application can effectively solve the problem of serious color tolerance deviation in the color temperature switching process of the lighting products on the current market. Through the algorithm of the embodiments of the present application, the color temperature switching trajectory of the LED light source can be ensured to be close to the blackbody radiation curve in the CIE chromaticity diagram, and the LED light source can be ensured to maintain high quality at all times. And through the PWM technology, the duty cycle of each LED is adjusted, which has the advantages of good switching effect, low cost, easy adjustment and the like.
[0106] Figure 4 is a flowchart of some embodiments in the embodiments of the present application. As shown in Figure 4 some embodiments, after step 202, color temperature switching is not directly performed according to the second duty cycle data, but a corresponding judgment is performed, that is, the following step 204:
[0107] 204. The distance between the color coordinate curve corresponding to the N groups of second duty cycle data and the blackbody radiation curve is compared.
[0108] If the distance is less than the preset threshold, it indicates that the color coordinate curve corresponding to the N groups of second duty cycle data has approached the black body radiation curve, and meets the requirement, and then step 203 is performed to switch the color temperature.
[0109] In the embodiments of the present application, the preset threshold can be determined according to seven wavelength ranges corresponding to the standards of the American National Standards Institute (ANSI) or seven wavelength ranges corresponding to the standards of the International Electro technical Commission (IEC). Of course, in actual applications, other methods can also be used to determine the preset threshold, and the embodiments of the present application do not limit this.
[0110] 205. Process the N groups of second duty cycle data according to the preset adjustment rule to obtain N groups of third duty cycle data;
[0111] In the embodiments of the present application, step 205 is similar to step 202 in the foregoing various embodiments.
[0112] In some embodiments, step 202 adopts the first coefficient K value determination method for coarse adjustment of the color coordinate curve corresponding to the duty cycle data, and step 205 adopts the second coefficient K value determination method for fine adjustment of the color coordinate curve corresponding to the duty cycle data.
[0113] In some embodiments, after step 205, the distance between the color coordinate curve corresponding to the N groups of third duty cycle data and the black body radiation curve can be compared. If the distance is less than a second preset threshold (the second preset threshold can actually be the same as the preset threshold described above, or can be a different value), then step 206 is performed, and if the distance is greater than or equal to the second preset threshold, then the N groups of fourth duty cycle data can be obtained by processing the N groups of third duty cycle data according to the preset adjustment rule, and so on, until the duty cycle data meeting the requirement is obtained.
[0114] 206. Switch the color temperature according to the N groups of third duty cycle data.
[0115] In the embodiments of the present application, step 206 is similar to step 203 described above, and will not be described again here.
[0116] In some embodiments, after step 203 or step 206, if the user needs to reduce the actual brightness of the lighting source, the duty cycle of each type of LED only needs to be reduced in the same proportion to achieve the brightness adjustment of the light source.
[0117] The following will be described in detail some application examples of the present application.
[0118] Application Example One:
[0119] In application example one, using three primary color light sources, which are blue, green and red LEDs, the initial color temperature of switching is 1812K (corresponding to the duty cycles of blue, green and red light are 0%, 34.5%, 100% respectively), and the target color temperature is 3098K (corresponding to the duty cycles of blue, green and red light are 91.5%, 100%, 72% respectively).
[0120] Then, the duty cycle data of the starting point and the ending point of the duty cycle change process can be determined, and then according to the data, the intermediate data is supplemented to obtain three groups of duty cycle data, in which the blue LED corresponds to a group of duty cycle data, the green LED corresponds to a group of duty cycle data, and the red LED corresponds to a group of duty cycle data. In this application example, each group of duty cycle data can be processed as described above in step 202 or subsequent steps 204, 205, etc. to update and correct each group of duty cycle data. Table 1 is an example of duty cycle data after updating and correction. Figure 5 The curve diagram corresponding to the duty cycle data of application example one in the embodiment of the present application.
[0121] Table 1
[0122] Duty cycle variation procedure: 1 2 3 4 5 6 7 8 9 10 Blue LED 0.0% 2.7% 5.6% 8.6% 11.9% 15.4% 19.1% 23.0% 27.1% 31.5% Green LED 34.5% 37.9% 41.4% 44.8% 48.2% 51.7% 55.1% 58.5% 62.0% 65.4% Red LED 100.0% 98.5% 97.1% 95.6% 94.1% 92.6% 91.2% 89.7% 88.2% 86.7% Duty cycle variation procedure: 11 12 13 14 15 16 17 18 19 20 Blue LED 36.2% 41.1% 46.3% 51.8% 57.6% 63.7% 70.1% 76.9% 84.0% 91.5% Green LED 68.9% 72.4% 75.8% 79.3% 82.7% 86.2% 89.6% 93.1% 96.6% 100.0% Red LED 85.3% 83.8% 82.3% 80.8% 79.4% 77.9% 76.4% 75.0% 73.5% 72.0%
[0123] According to the updated and corrected duty cycle data, the target lamp composed of light emitting chips can be controlled by PWM technology. Figure 6 The color temperature switching result diagram of application example one in the embodiment of the present application. It can be found that after the algorithm processing, the switching trajectory of the color temperature is close to the blackbody radiation curve.
[0124] Application Example Two:
[0125] In application example two, using three primary color light sources, which are blue, green and low color temperature white LEDs, the initial color temperature of switching is 2723K (corresponding to the duty cycles of blue, green and white light are 0%, 8.8%, 100% respectively), and the target color temperature is 3536K (corresponding to the duty cycles of blue, green and white light are 100%, 71.5%, 90.9% respectively). The color coordinate points are (0.4611 0.4158), (0.4022 0.3868) respectively. After processing by the color temperature switching algorithm, the duty cycle change is shown in Table 2.
[0126] Table 2
[0127] Duty cycle variation procedure: 1 2 3 4 5 6 7 8 9 10 Blue LED 0.0% 5.3% 10.5% 15.8% 21.1% 26.3% 31.6% 36.8% 42.1% 47.4% Green LED 8.8% 12.1% 15.4% 18.7% 22.0% 25.3% 28.6% 31.9% 35.2% 38.5% Low colour temperature LED 100.0% 99.5% 99.0% 98.6% 98.1% 97.6% 97.1% 96.7% 96.2% 95.7% Duty cycle variation procedure: 11 12 13 14 15 16 17 18 19 20 Blue LED 52.6% 57.9% 63.2% 68.4% 73.7% 79.0% 84.2% 89.5% 94.7% 100.0% Green LED 41.8% 45.1% 48.4% 51.7% 55.0% 58.3% 61.6% 64.9% 68.2% 71.5% Low colour temperature LED 95.2% 94.7% 94.3% 93.8% 93.3% 92.8% 92.3% 91.9% 91.4% 90.9%
[0128] The duty cycle change process of each LED is shown in Figure 7 As the color coordinate points before and after switching are close to each other, the coefficient k is 0, and the duty cycle changes linearly. The result of color temperature switching is shown in Figure 8 .
[0129] Application Example Three
[0130] In the application example three, three primary color light sources are used, which are green light, red light and high color temperature white light LED respectively. The initial color temperature of switching is determined to be 4972K (corresponding to the duty cycles of green light, red light and white light being 0%, 7%, 100% respectively), and the target color temperature is 2669K (corresponding to the duty cycles of blue light, red light and green light being 51.6%, 100%, 33.1% respectively). The color coordinate points are (0.3457 0.3506) and (0.4572 0.402) respectively. After being processed by the color temperature switching algorithm, the duty cycle changes are shown in Table 3.
[0131] Table 3
[0132] Duty cycle variation procedure: 1 2 3 4 5 6 7 8 9 10 Green LED 0.0% 2.7% 5.3% 8.0% 10.7% 13.4% 16.0% 18.7% 21.4% 24.1% Red LED 7.0% 8.4% 10.0% 11.9% 14.0% 16.4% 19.1% 22.2% 25.6% 29.5% High colour temperature LED 100.0% 94.4% 89.0% 84.0% 79.2% 74.6% 70.4% 66.3% 62.5% 58.9% Duty cycle variation procedure: 11 12 13 14 15 16 17 18 19 20 Green LED 26.9% 29.6% 32.3% 35.0% 37.8% 40.5% 43.3% 46.1% 48.8% 51.6% Red LED 33.8% 38.6% 43.9% 49.9% 56.4% 63.6% 71.5% 80.2% 89.6% 100.0% High colour temperature LED 55.5% 52.3% 49.4% 46.6% 43.9% 41.5% 39.2% 37.0% 35.0% 33.1%
[0133] The duty cycle change process of each LED is shown in Figure 9 , and the result of color temperature switching is shown in Figure 10 . It can be found that after the algorithm processing, the switching trajectory of color temperature is close to the blackbody radiation curve.
[0134] Application Example Four
[0135] In the application example four, three primary color light sources are used, which are green light, low color temperature white light and high color temperature white light LED respectively. The initial color temperature of switching is determined to be 2983K (corresponding to the duty cycles of green light, low color temperature white light and high color temperature white light LED being 13.2%, 100%, 11.7% respectively), and the target color temperature is 3983K (corresponding to the duty cycles of green light, low color temperature white light and high color temperature white light LED being 25.1%, 80.4%, 100% respectively). The color coordinate points are (0.4401 0.4085) and (0.3832 0.3846) respectively. After being processed by the color temperature switching algorithm, the duty cycle changes are shown in Table 4.
[0136] Table 4
[0137] Duty cycle variation procedure: 1 2 3 4 5 6 7 8 9 10 Green LED 13.2% 13.8% 14.5% 15.1% 15.7% 16.3% 17.0% 17.6% 18.2% 18.8% Low colour temperature LED 100.0% 99.0% 97.9% 96.9% 95.9% 94.8% 93.8% 92.8% 91.8% 90.7% High colour temperature LED 11.7% 16.0% 20.3% 24.6% 29.0% 33.4% 37.9% 42.4% 47.0% 51.6% Duty cycle variation procedure: 11 12 13 14 15 16 17 18 19 20 Green LED 19.5% 20.1% 20.7% 21.3% 22.0% 22.6% 23.2% 23.9% 24.5% 25.1% Low colour temperature LED 89.7% 88.7% 87.6% 86.6% 85.6% 84.5% 83.5% 82.5% 81.4% 80.4% High colour temperature LED 56.2% 60.9% 65.6% 70.4% 75.2% 80.1% 85.0% 90.0% 95.0% 100.0%
[0138] The duty cycle change process of each LED is shown in Figure 11 , and the result of color temperature switching is shown in Figure 12 . It can be found that after the algorithm processing, the switching trajectory of color temperature is close to the blackbody radiation curve.
[0139] Application Example Five
[0140] In application example five, four primary color light sources, blue, green, red and white LEDs, are used, the initial color temperature of switching is 2175K (corresponding to the duty cycles of blue, green, red and white LEDs are 26.1%, 54.2%, 100%, 0% respectively), and the target color temperature is 5648K (corresponding to the duty cycles of blue, green, red and white LEDs are 100%, 47.1%, 0%, 20.7% respectively). The color coordinate points are (0.5018 0.4059), (0.3292 0.3325) respectively. After being brought into the color temperature switching algorithm, the duty cycle changes are shown in Table 5.
[0141] Table 5
[0142] Duty cycle variation procedure: 1 2 3 4 5 6 7 8 9 10 Blue LED 26.1% 27.4% 28.8% 30.4% 32.2% 34.3% 36.6% 39.1% 42.0% 45.1% Green LED 54.2% 53.8% 53.5% 53.1% 52.7% 52.3% 52.0% 51.6% 51.2% 50.8% Red LED 100.0% 90.2% 81.0% 72.5% 64.7% 57.4% 0.5061 44.4% 38.6% 33.3% High colour temperature LED 0.0% 0.8% 1.7% 2.6% 3.5% 4.5% 0.0544 6.4% 7.5% 8.5% Duty cycle variation procedure: 11 12 13 14 15 16 17 18 19 20 Blue LED 48.6% 52.5% 56.7% 61.4% 66.5% 72.1% 78.2% 84.9% 92.1% 100.0% Green LED 50.5% 50.1% 49.7% 49.3% 49.0% 48.6% 48.2% 47.9% 47.5% 47.1% Red LED 28.5% 24.0% 19.9% 16.2% 12.8% 9.7% 6.9% 4.4% 2.1% 0.0% High colour temperature LED 9.6% 10.7% 11.8% 13.0% 14.2% 15.4% 16.7% 18.0% 19.3% 20.7%
[0143] The duty cycle change process of each LED is shown in Figure 13 , and the color temperature switching result is shown in Figure 14 . It can be found that after the algorithm processing, the color temperature switching trajectory is well close to the blackbody radiation curve.
[0144] Figure 15 The device for color temperature switching provided in the embodiments of the present application is shown in the schematic diagram. The device for color temperature switching 1500 comprises:
[0145] The acquisition module 1501 is configured to perform or realize the step 201 in the above Figure 2 or Figure 4 corresponding embodiments;
[0146] The correction module 1502 is configured to perform or realize the step 202 in the above Figure 2 or Figure 4 corresponding embodiments;
[0147] The judgment module 1503 is configured to perform or realize the step 204 in the above Figure 4 corresponding embodiments;
[0148] The first processing module 1504 is configured to perform or realize the step 203 in the above Figure 2 or Figure 4 corresponding embodiments;
[0149] The adjustment module 1505 is configured to perform or realize the step 205 in the above Figure 4 corresponding embodiments;
[0150] The second processing module 1506 is configured to perform or realize the step 206 in the above Figure 4 corresponding embodiments.
[0151] It is understood that in some embodiments, the judgment module 1503, the adjustment module 1505, and the second processing module 1506 may be preferred options and only run when needed.
[0152] In some embodiments, the rules used by the correction module 1502 and the adjustment module 1505 when adjusting the duty cycle data may be different (generally, the methods for determining the value of k are different) in order to achieve better results.
[0153] Figure 16 This is a schematic diagram of a color temperature switching device provided in an embodiment of this application. The device 1600 includes a memory 1602, a processor 1601, and a computer program 1603 stored in the memory 1602 and executable on the processor 1601. When the processor 1601 executes the computer program 1603, it implements... Figure 2 or Figure 4 The methods of the corresponding embodiments.
[0154] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0155] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0156] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0157] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the various method embodiments.
[0158] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above-mentioned embodiment methods through a computer program to instruct related hardware to complete, and the computer program can be stored in a computer readable storage medium. When the processor executes the computer program, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium can at least include any entity or device capable of carrying the computer program code to the photographing device / terminal equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable medium can not be an electrical carrier signal and a telecommunication signal.
[0159] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0160] Those skilled in the art can appreciate that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0161] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / network device and method can be implemented in other ways. For example, the above-described apparatus / network device embodiments are merely schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed each other can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0162] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may also be distributed to multiple network units. Part or all of the units can be selected to achieve the purpose of the embodiment scheme according to actual needs.
[0163] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method of color temperature switching, characterized by, The method comprises the following steps: obtaining N groups of first duty cycle data, one group of the first duty cycle data being a control signal duty cycle of one light emitting chip during conversion from a first color temperature to a second color temperature, N being a positive integer; processing the N groups of first duty cycle data according to a preset adjustment rule to obtain N groups of second duty cycle data; performing color temperature switching on a target lamp according to the N groups of second duty cycle data, the target lamp comprising M light emitting chips, M≥N, and 0 the step of obtaining the N groups of first duty cycle data comprises the following steps: obtaining a first control signal duty cycle of an nth light emitting chip at the first color temperature, wherein 0 controlling the nth light emitting chip to convert from the first color temperature to the second color temperature; obtaining a second control signal duty cycle of the nth light emitting chip at the second color temperature; complementing the control signal duty cycle between the first control signal duty cycle and the second control signal duty cycle to obtain the nth group of first duty cycle data; the preset adjustment rule comprises the following steps: the first control signal duty cycle corresponding to the first color temperature is unchanged; the second control signal duty cycle corresponding to the second color temperature is unchanged; remaining elements in the nth group of second duty cycle data are all greater than, all less than or all equal to corresponding elements in the nth group of first duty cycle data, the remaining elements being elements in the nth group of second duty cycle data other than the first control signal duty cycle and the second control signal duty cycle; the step of processing the N groups of first duty cycle data according to the preset adjustment rule to obtain the N groups of second duty cycle data comprises the following step: processing the nth group of first duty cycle data according to a quadratic polynomial function to obtain the nth group of second duty cycle data; the quadratic polynomial function is as follows: ; wherein y is an element in the second duty cycle data, x is an element in the first duty cycle data, a is the first control signal duty cycle, b is the second control signal duty cycle, and k is a determined coefficient.
2. The method of claim 1, wherein, The method further comprises the following steps: determining the k according to the properties of the nth light emitting chip and the color coordinate distance between the first color temperature and the second color temperature.
3. The method of claim 1, wherein, After the step of processing the N groups of first duty cycle data according to the preset adjustment rule to obtain the N groups of second duty cycle data, the method further comprises the following steps: comparing the distance between a color coordinate curve corresponding to the N groups of second duty cycle data and a blackbody radiation curve; if the distance is greater than or equal to a preset threshold, processing the N groups of second duty cycle data according to the preset adjustment rule to obtain N groups of third duty cycle data; performing color temperature switching according to the N groups of third duty cycle data.
4. The method of claim 3, wherein, The method further comprises the following step: determining the k according to the properties of the light emitting chip and the difference between the midpoint of the color coordinate curve and the ordinate of the blackbody radiation curve.
5. A color temperature switching device, characterized in that, The method comprises the following steps: an obtaining module, configured to obtain N groups of first duty cycle data, one group of the first duty cycle data being a control signal duty cycle of one light emitting chip during conversion from a first color temperature to a second color temperature, N being a positive integer; a correction module, configured to process the N groups of first duty cycle data according to a preset adjustment rule to obtain N groups of second duty cycle data; The processing module is further configured to perform color temperature switching on a target lamp according to the N sets of second duty cycle data, the target lamp comprising M light emitting chips, M≥N, and 0 The N sets of first duty cycle data are obtained by: obtaining a first control signal duty cycle of the nth light emitting chip at the first color temperature, where 0 The preset adjustment rule comprises: the first control signal duty cycle corresponding to the first color temperature is unchanged; the second control signal duty cycle corresponding to the second color temperature is unchanged; remaining elements in the nth set of second duty cycle data are greater than, less than or equal to corresponding elements in the nth set of first duty cycle data, the remaining elements being elements in the nth set of second duty cycle data other than the first control signal duty cycle and the second control signal duty cycle; The processing of the N groups of the first duty cycle data according to the preset adjustment rule to obtain N groups of second duty cycle data comprises: processing the nth group of the first duty cycle data according to a quadratic polynomial function to obtain the nth group of the second duty cycle data; the quadratic polynomial function is: ; wherein y is an element in the second duty cycle data, x is an element in the first duty cycle data, a is the first control signal duty cycle, b is the second control signal duty cycle, and k is a determined coefficient.
6. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the method of any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, wherein the computer program comprises the following steps of: receiving a request for a resource from a client; determining whether the client is authorized to access the resource; and if the client is authorized to access the resource, providing the resource to the client. The computer program is executed by the processor to implement the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Lighting module with adjustable color temperature and color temperature adjustment method of the same
CN109379813A
Light color control method for LED lamp
CN113597045A