Light adjusting method of mixed-color LED light bar, light system and storage medium

By obtaining the target color temperature value and calculating the brightness proportion, the color temperature adjustment of the LED light strip is achieved, which solves the problem of insufficient flexibility in color temperature adjustment in the existing technology, and realizes high-precision and simple color temperature control, which is suitable for a variety of application scenarios.

CN119012446APending Publication Date: 2024-11-22SHENZHEN C&D ELECTRONICS
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411294701.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing LED light strips lack flexibility in color temperature adjustment, and traditional methods are difficult to achieve smooth switching of multiple color temperatures. The software settings are complex and take up more program space.

Method used

By obtaining the target color temperature value, querying the preset array index value, calculating the brightness ratio of the two LED strips, calculating the target drive value, and adjusting the color temperature based on these values, the color temperature combination of the two LED strips reaches the target color temperature.

Benefits of technology

The color temperature of two LED strips is dynamically adjusted, supporting flexible adjustment and smooth switching of multiple color temperatures, which is simple and high-precision, and is suitable for scenes where precise color temperature control is required, such as commercial lighting, home ambient light, and professional photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012446A_ABST
    Figure CN119012446A_ABST
Patent Text Reader

Abstract

The invention relates to a driving circuit technology, and discloses a light adjusting method of a mixed-color LED light bar, a light system and a storage medium, and the method comprises the steps: obtaining a first color temperature value corresponding to a target color temperature; querying an index value of the first color temperature value in a first preset array; on the basis of the index value, obtaining respective brightness ratios of the two LED light bars from a second preset array; calculating respective target driving values of the two LED light bars according to the current brightness corresponding to the color temperature combination of the two LED light bars and respective brightness proportions of the two LED light bars; and performing color temperature adjustment on the two LED light bars based on the respective target driving values of the two LED light bars, so that the color temperature combination of the two LED light bars reaches the target color temperature. The invention further discloses a control device. The invention aims to conveniently and accurately realize dynamic adjustment of the color temperature of mixed light of two LED light bars with different color temperatures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of drive circuit technology, and in particular to a light adjustment method, a control device, a light system and a computer-readable storage medium for a mixed-color LED light strip. Background Art

[0002] With the advancement of lighting technology, LED (light-emitting diode) light strips are widely used due to their high efficiency, energy saving and diverse applications. Especially in scenes where color temperature adjustment is required, LED light strips are an ideal choice because they can achieve color temperature mixing. Color temperature adjustment is of great significance for various application scenarios, such as home environments, commercial lighting, and professional photography.

[0003] LED light strips have a color temperature property. To experience different color temperatures in applications, multiple LED light strips need to be used to mix colors. Traditional methods of mixing colors in light strips are relatively simple. For example, different light strips can only be used to mix a fixed color temperature. This application is relatively rigid and cannot meet the diverse needs of color temperature and brightness changes. Alternatively, the brightness of different LED light strips can be set by software to achieve the purpose of color temperature adjustment. However, this method currently uses redundant code, occupies more program space, and is difficult to achieve smooth switching of multiple color temperatures.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a light adjustment method, a control device, a lighting system and a computer-readable storage medium for a mixed-color LED light strip, aiming to conveniently and accurately realize dynamic adjustment of the color temperature of mixed light of two LED light strips with different color temperatures.

[0006] To achieve the above object, the present application provides a light adjustment method for a mixed-color LED light strip, comprising the following steps:

[0007] Obtaining a first color temperature value corresponding to the target color temperature;

[0008] Query the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit;

[0009] Based on the index value, the brightness ratio of each of the two LED light strips is obtained from the second preset array; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array;

[0010] Calculate the target driving values ​​of the two LED light strips according to the current brightness corresponding to the color temperature combination of the two LED light strips and the brightness proportions of the two LED light strips;

[0011] Based on the respective target driving values ​​of the two LED light strips, the color temperatures of the two LED light strips are adjusted so that the color temperature combination of the two LED light strips reaches the target color temperature.

[0012] To achieve the above object, the present application also provides a control device, comprising:

[0013] An acquisition module, used to acquire a first color temperature value corresponding to a target color temperature;

[0014] A query module, used for querying the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit;

[0015] An index module, used to obtain the brightness ratio of the two LED light strips from the second preset array based on the index value; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array;

[0016] A calculation module, used to calculate the target driving value of the two LED light strips according to the current brightness corresponding to the color temperature combination of the two LED light strips and the brightness proportion of the two LED light strips;

[0017] The adjustment module is used to adjust the color temperature of the two LED light strips based on the respective target driving values ​​of the two LED light strips, so that the color temperature combination of the two LED light strips reaches the target color temperature.

[0018] To achieve the above object, the present application further provides a lighting system, the lighting system comprising a control unit, a hardware driving unit and a lighting module, the control unit being electrically connected to the lighting module through the hardware driving unit and driving the lighting module; the lighting module is provided with two types of LED light strips that can provide different color temperatures;

[0019] The control unit includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the light adjustment method of the mixed-color LED light strip are implemented.

[0020] To achieve the above objectives, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the light adjustment method of the mixed-color LED light strip as described above are implemented.

[0021] The lighting adjustment method, control device, lighting system and computer-readable storage medium of the mixed-color LED light strip provided by the present application realize the mixing of two LED light strips with different color temperatures, discretize the mixed color temperature of the two LED light strips into a color temperature array, and at the same time link the index value of the discrete color temperature array with the light brightness two-dimensional array proportion index, and then combine the total brightness to calculate the corresponding driving values ​​of the two LED light strips, so as to realize dynamic adjustment of the color temperature within the color temperature range composed of the two color temperature values. In this way, not only can the two LED light strips support flexible adjustment and smooth switching of multiple color temperatures, but also the adjustment process is simple and accurate, which well avoids the occurrence of color difference, and is suitable for scenes requiring precise color temperature control, such as commercial lighting, home ambient light, professional photography, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the steps of a light adjustment method for a mixed-color LED light bar in one embodiment of the present application;

[0023] Figure 2 This is a schematic diagram of a control device in an embodiment of the present application;

[0024] Figure 3 This is a schematic diagram of the structure of a lighting system in one embodiment of the present application;

[0025] Figure 4 Schematic diagram of the internal structure of a control unit according to an embodiment of the present application.

[0026] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0027] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0028] In addition, if the description of "first", "second", etc. is involved in this application, it is only used for descriptive purposes (such as for distinguishing the same or similar features), and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0029] Reference Figure 1 In one embodiment, a light adjustment method for a mixed-color LED light strip includes:

[0030] Step S10, obtaining a first color temperature value corresponding to the target color temperature;

[0031] Step S20, querying the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit;

[0032] Step S30, based on the index value, obtaining the brightness ratio of the two LED light strips from the second preset array; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array;

[0033] Step S40, calculating the target driving values ​​of the two LED light bars according to the current brightness corresponding to the color temperature combination of the two LED light bars and the brightness proportions of the two LED light bars;

[0034] Step S50: adjusting the color temperatures of the two LED light bars based on the respective target driving values ​​of the two LED light bars, so that the color temperature combination of the two LED light bars reaches the target color temperature.

[0035] In this embodiment, the execution terminal of the embodiment may be a lighting system, or may be other equipment or devices (such as a control device) that controls the lighting system.

[0036] Optionally, two LED light strips with different color temperatures are provided, wherein the color temperature of one LED light strip is the second color temperature value, and the color temperature of the other LED light strip is the third color temperature value. The purpose of this embodiment is to achieve the adjustment of any color temperature between the second color temperature value and the third color temperature value based on these two LED light strips. For example, if the second color temperature value is 2700K and the third color temperature value is 5700K, then the adjustment of any color temperature between 2700K and 5700K is achieved accordingly. The following description is based on the second color temperature value being 2700K and the third color temperature value being 5700K.

[0037] The LED light bar corresponding to the second color temperature value is set as the first light bar, and the LED light bar corresponding to the third color temperature value is set as the second light bar. The brightness adjustment of the first light bar and the second light bar can both be adjusted by 1% to 100%. When the second light bar is turned off, only the light of the first light bar is adjusted, and the color temperature of the light is always the second color temperature value. At this time, if the brightness is adjusted, the light brightness is adjusted at the second color temperature value; similarly, when the first light bar is turned off, only the light of the second light bar is adjusted, and the color temperature of the light is always the third color temperature value. At this time, if the brightness is adjusted, the light brightness is adjusted at the third color temperature value.

[0038] If you want to achieve 4000K color temperature pupil protection natural light and 100% brightness output, if you directly light up the first and second light bars and output all the brightness, not only will the color temperature have a color difference, but the actual output power is likely to exceed the standard. Because LED lights all have a power concept, such as a 60W lamp, then if the first and second light bars are all lit up and output 100%, the actual output power of the lamp exceeds 60W, so the hardware driver cannot drive a lamp greater than 60W, causing damage to the hardware driver. At the same time, this approach will cause the two LED light bars to mix colors, causing changes in color temperature.

[0039] In order to circumvent the above problems, firstly, the initial value of the color temperature combination of the two LED light strips can be fixed to a value, such as 2700K, 3000K, 3500K, 5000K or any other color temperature. Under this fixed color temperature, the brightness can be freely adjusted from 1% to 100% (secondly, the brightness of the light can also be fixed to a percentage, such as 10%, 20%, 33% or any other brightness. Under this brightness, the color temperature can be freely adjusted from 2700K to 5700K).

[0040] If we directly create a brightness adjustment array (light_arry0

[101] ), the array range is 0 to 100, which corresponds to 0% to 100%. Then, according to the required dimming percentage, we index the corresponding percentage of the array. If the two are equal, we take out the percentage value of the corresponding array index, convert the value into the corresponding drive value (such as converting it into a PWM drive value), and then the drive value acts on the hardware driver, thereby driving the light to light up the corresponding dimming percentage.

[0041] Since two LED light strips are dimmed, and the input brightness percentage has only one value, whether this brightness percentage is applied to the first light strip or the second light strip depends on the current color temperature. In other words, the current operation command only adjusts the brightness of the light, but not the color temperature of the light. The color temperature of the light is fixed and cannot be adjusted; therefore, it is necessary to select whether to output to the first light strip or the second light strip, or both LED light strips, based on this fixed color temperature.

[0042] Given that the LED light bar with the second color temperature value and the LED light bar with the third color temperature value are mixed, the mixed color temperature is also between the second color temperature value and the third color temperature value. In addition, the dimming level is set to 0% to 100%, and the corresponding brightness adjustment array is also abstracted; therefore, in order to make the color temperature and brightness correspond, 101 corresponding color temperature values ​​are also discretized from the continuous values ​​from the second color temperature value (such as 2700K) to the third color temperature value (such as 5700K), and a discrete color temperature array is formed, that is, the first preset array: temperature_arry

[101] = {2700, 2730, 2760, 2790, 2820,2850,2880,2910,2940,2970,3000,3030,3060,3090,3120,3150,3180,3210,3240,3270,3300,3330,3360,3390,3420,3450,3480,3510,3540,3570,3600,3630,3660,3690,3720,3750,37 80,3810,3840,3870,3900,3930,3960,3990,4020,4050,4080,4110,4140,4170,4200,4230,4260,4290,4320,4350,4380,4410,4440,4470,4500,4530,4560,4590,4620,4650,4680,4710,4740 ,4770,4800,4830,4860,4890,4920,4950,4980,5010,5040,5070,5100,5130,5160,5190,5220,5250,5280,5310,5340,5370,5400,5430,5460,5490,5520,5550,5580,5610,5640,5670,5700}.

[0043] The first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase from the first digit to the last digit.

[0044] In this way, the set first color temperature value can be compared with the color temperature value defined by the first preset array. When the two are equal, the index value of the first preset array is taken out (the index value range is 0 to 100).

[0045] Optionally, based on the color temperature and brightness of the current combination of the first light bar and the second light bar, if an input color temperature command is received, a first color temperature value corresponding to the target color temperature targeted by the color temperature command is determined. The following description is made taking the first color temperature value of 3000K as an example.

[0046] The first color temperature value is compared with the color temperature values ​​in the first preset array, the color temperature value in the first preset array that is the same as the first color temperature value is searched, and the index value corresponding to the searched color temperature value is extracted.

[0047] Based on the index value, the brightness ratio of the two LED light strips is obtained from the second preset array, that is, when the first color temperature value is determined, the ratio of the dimming brightness of the two LED light strips is determined.

[0048] Generally speaking, the lower the color temperature value, the larger the output of the first light bar, the higher the brightness output; while the output of the second light bar accounts for a smaller proportion, and the brightness output is lower. On the contrary, the higher the color temperature value, the smaller the output of the first light bar, the lower the brightness output; while the output of the second light bar accounts for a higher proportion, and the brightness output is higher.

[0049] Therefore, when the color temperature value is fixed, the brightness ratio of the two LED light strips is set as follows: let the ratio of the first light strip be a and the ratio of the second light strip be b, then a+b=100%. When the total brightness is fixed at 100%, then a increases and b decreases; similarly, a decreases and b increases.

[0050] For example, when the color temperature value is set to 2700K, only the first light bar has output and is lit, that is, a=100%, the second light bar has no output and is off, then b=0%; similarly, when the color temperature value is set to 5700K, only the second light bar has output and is lit, then b=100%, the first light bar has no output and is off, then a=0%.

[0051] When the color temperature of the light is fixed, the brightness of the light is the result of the mixed lighting of the two light strips. In this way, the ratio of the two LED light strips is also fixed. In this way, no matter how the total brightness is adjusted, since the brightness ratio of the two LED light strips is fixed, it will not affect the change of color temperature. Since the brightness ratio of the two LED light strips is fixed, the sum of the brightness ratios of the two is 100%; for example, when one of them accounts for 1%, the other accounts for 99%, and other ratios are similar, such as one accounts for 2%, and the other accounts for 98%.

[0052] According to the brightness ratio of the two LED light strips, a two-dimensional array is discretely abstracted to form a second preset array: pwm_cycle_duty

[101] [2] = {{100,0},{99,1},{98,2},{97,3},{96,4},{95,5},{94,6},{93,7},{92,8},{91,9},{90,10},{89,11},{88,12},{87,13},{86,14},{85,15},{84,16},{83,17},{82,18},{81,19}, {80,20},{79,21},{78,22},{77,23},{76,24},{75,25},{74,26},{73,27},{72,28},{71,29},{70,30},{69,31},{68,32},{67,33},{66,34},{65,35},{64,36},{63,37},{62,38},{61,39},{60,40},{59,41},{58,42},{57,43},{56,44},{55,45},{54,4 6},{53,47},{52,48},{51,49},{50,50},{49,51},{48,52},{47,53},{46,54},{45,55},{44,56},{43,57},{42,58},{41,59},{40,60},{39,61},{38,62},{37,63},{36,64},{35,65},{34,66},{33,67},{32,68},{31,69},{30,70},{29,71},{28,72},{2 {7,73},{26,74},{25,75},{24,76},{23,77},{22,78},{21,79},{20,80},{19,81},{18,82},{17,83},{16,84},{15,85},{14,86},{13,87},{12,88},{11,89},{10,90},{9,91},{8,92},{7,93},{6,94},{5,95},{4,96},{3,97},{2,98},{1,99},{0,100}}.

[0053] Among them, pwm_cycle_duty[i][0] represents the brightness ratio a of the first light bar; pwm_cycle_duty[i][1] represents the brightness ratio b of the second light bar. For example, when the index value i=0, a=pwm_cycle_duty[0][0]=100, b=pwm_cycle_duty[0][1]=0.

[0054] Therefore, based on the index value, the brightness ratio of the two LED light strips can be obtained from the second preset array.

[0055] It can be seen that each value combination in the second preset array is a pair of brightness proportions, and each value combination has a corresponding color temperature value in the first preset array.

[0056] Since the brightness of the light remains unchanged when the color temperature is adjusted, assuming that the current brightness corresponding to the color temperature combination of the two LED light strips is M1, the brightness proportions a and b of the two LED light strips are obtained according to the index value, and the target driving values ​​of the two LED light strips can be calculated.

[0057] The target driving value corresponding to the first light bar is: P1=M1*a / 100.

[0058] The target driving value corresponding to the second light bar is: P2=M1*b / 100.

[0059] It can be seen that the driving value is directly proportional to the brightness ratio, so the brightness ratio can also be expressed as the driving ratio.

[0060] Among them, the driving value can be converted into specific values ​​such as current, voltage, power, PWM (Pulse-width modulation) value, etc. for driving the light bar; it should be understood that the greater the current, voltage, and power, the greater the brightness of the light bar; and the PWM value controls the brightness of the light by adjusting the duty cycle (the ratio of the high level time to the total cycle time), so the change of the PWM value can also directly affect the brightness adjustment of the light. The following takes the conversion of the driving value to the PWM value as an example for explanation (that is, the brightness of the light bar is controlled by adjusting the duty cycle of the PWM control signal; when the duty cycle is high, the brightness of the light bar is higher; when the duty cycle is low, the brightness of the light bar is lower):

[0061] PWM value = target drive value / maximum drive value; wherein, the maximum drive value is determined by the original setting parameters of the light bar.

[0062] Apply the calculated PWM value to the PWM control signal. Assuming the PWM control signal period is 10ms (100Hz), then:

[0063] High level time = PWM value × period;

[0064] High level time = 0.706 × 10ms = 7.06ms;

[0065] Low level time = period - high level time;

[0066] Low level time = 10ms-7.06ms = 2.94ms.

[0067] In this way, when a PWM control signal with a period of 10ms needs to be generated, the high level time is 7.06ms and the low level time is 2.94ms.

[0068] After obtaining the PWM control signals corresponding to the target driving values ​​of the two LED light strips, each PWM control signal is used to drive the corresponding LED light strip, so that the light strip works according to the set PWM control signal brightness, so as to adjust the color temperature of the two LED light strips, so that the color temperature combination of the two LED light strips (i.e., the color temperature mixing effect) reaches the target color temperature.

[0069] In one embodiment, by implementing the mixing of two LED light strips with different color temperatures, the mixed color temperature of the two LED light strips is discretized into a color temperature array, and the index value of the discrete color temperature array is linked to the light brightness two-dimensional array ratio index, and then combined with the total brightness, the corresponding driving values ​​of the two LED light strips are calculated, so that the color temperature within the color temperature range composed of the two color temperature values ​​can be dynamically adjusted. In this way, not only can the two LED light strips support flexible adjustment and smooth switching of multiple color temperatures, but the adjustment process is simple and accurate, which well avoids the occurrence of color difference, and is suitable for scenes that require precise color temperature control, such as commercial lighting, home ambient light, professional photography, etc.

[0070] Compared with the traditional mechanical combination of two lamp groups, which can only produce one color temperature, this embodiment has a wider range of applications and benefits. Compared with the solution that can only adjust the output brightness and cannot flexibly handle the relationship between color temperature and brightness, the color temperature adjustment process of this embodiment is faster, more economical and more efficient.

[0071] In one embodiment, based on the above embodiment, the step of adjusting the color temperature of the two LED light strips based on the respective target driving values ​​of the two LED light strips so that the color temperature combination of the two LED light strips reaches the target color temperature includes:

[0072] Calculate the driving step length based on the difference between the target driving value and the current driving value of the two LED light strips;

[0073] According to the respective driving step lengths of the two LED light strips, the color temperatures of the two LED light strips are gradually adjusted so that the color temperature combination of the two LED light strips gradually reaches the target color temperature.

[0074] In this embodiment, after obtaining the target drive values ​​corresponding to the two LED light strips, the adjustment amount (i.e., the drive step length) of each step can be calculated according to the difference between the target drive value and the current drive value (which is the actual current drive value of the LED light strip). The drive step length refers to the amplitude of the drive value change during each adjustment. The drive step length A can be calculated using the following formula:

[0075] A=(B1-B2) / C;

[0076] Among them, B1 is the target drive value, B2 is the current drive value, and C is the total number of steps; the total number of steps refers to the number of adjustment steps in the entire adjustment process. This value can be set according to actual needs and response time (the setting of the total number of steps should be determined according to the actual application scenario and the required response speed).

[0077] Furthermore, the driving value of the corresponding LED light bar is gradually adjusted according to the calculated driving step length. Each time the adjustment is made, the current driving value is added or subtracted from the driving step length, and then the corresponding PWM control signal is adjusted to gradually brighten and color the LED light bar, so that the color temperature combination of the two LED light bars gradually reaches the target color temperature.

[0078] By gradually adjusting the PWM control signal, a smooth and accurate transition of the color temperature and brightness of the LED light strip can be achieved until the target color temperature is reached. Gradual adjustment can avoid abrupt changes in color temperature, make the transition process more natural and smooth, avoid flickering caused by rapid adjustment, improve visual comfort, and enhance user experience.

[0079] In one embodiment, based on the above embodiment, after the step of obtaining the brightness proportions of the two LED light strips from the second preset array based on the index value, the method further includes:

[0080] When receiving a brightness adjustment command, the target driving values ​​of the two LED light bars are calculated according to the target brightness of the brightness adjustment command and the brightness proportions of the two LED light bars;

[0081] Based on the respective target driving values ​​of the two LED light bars, the brightness of the color temperature combination of the two LED light bars is adjusted.

[0082] In this embodiment, a brightness adjustment instruction is received, and the instruction includes a target brightness M2, that is, the overall brightness that the light bar is expected to achieve.

[0083] According to the target brightness M2 and the brightness ratio of each LED light bar, the target driving values ​​of the two LED light bars are calculated:

[0084] The target driving value corresponding to the first light bar is: P1 = M2*a / 100.

[0085] The target driving value corresponding to the second light bar is: P2=M2*b / 100.

[0086] According to the respective target drive values ​​of the two LED light strips, PWM control signals corresponding to the two LED light strips are generated to adjust the light brightness while maintaining the current color temperature combination, that is, to ensure that the color temperature combination still meets the set target.

[0087] In this way, the brightness of the LED light strip can be effectively controlled while maintaining the consistency of the color temperature combination.

[0088] In one embodiment, based on the above embodiment, the step of obtaining the first color temperature value corresponding to the target color temperature includes:

[0089] When a color temperature adjustment instruction is received from a smart terminal, a first color temperature value corresponding to a target color temperature targeted by the color temperature adjustment instruction is extracted.

[0090] In this embodiment, the smart terminal may be a mobile terminal, a control panel (such as a display control screen of a smart home), etc., and the user may issue a corresponding color temperature adjustment instruction through the smart terminal.

[0091] Optionally, the color temperature adjustment instruction may include a color temperature (i.e., target color temperature) that is easy for the user to understand. For example, the color temperature value corresponding to “pupil-protecting natural light” is 4000K. Therefore, the associated color temperature value (4000K) can be queried as the first color temperature value based on the “pupil-protecting natural light” information contained in the color temperature adjustment instruction.

[0092] Alternatively, the color temperature adjustment instruction may also be represented by a direct color temperature value, and the corresponding color temperature value may be directly extracted as the first color temperature value according to the color temperature adjustment instruction.

[0093] In this way, by allowing the system to flexibly process the color temperature adjustment instructions issued by the user through the smart terminal (whether through easy-to-understand color temperature descriptions or direct color temperature values), the lighting can be further adjusted according to the extracted color temperature values ​​to ensure that the user's needs are accurately met.

[0094] In one embodiment, based on the above embodiment, after the step of obtaining the first color temperature value corresponding to the target color temperature, the method further includes:

[0095] Detecting whether the first color temperature value is within a numerical range corresponding to a first preset array;

[0096] If yes, then executing the step of querying the index value of the first color temperature value in the first preset array;

[0097] If not, the color temperature adjustment instruction is fed back to the smart terminal.

[0098] In this embodiment, it is checked whether the obtained first color temperature value is within the range defined by the first preset array. The value range of the first preset array is defined by the first digit (the lowest color temperature value, i.e., the second color temperature value) and the last digit (the highest color temperature value, i.e., the third color temperature value) of the array.

[0099] If the first color temperature value is within the range, the step of querying the index value of the first color temperature value in the first preset array is performed (ie, step S20 is performed).

[0100] If the first color temperature value is not within the range, feedback is sent to the smart terminal to request a reissue of the color temperature adjustment instruction. This step is to ensure that the target color temperature is within a reasonable range to avoid adjustment errors or device failure due to exceeding the preset range.

[0101] By adding a detection process, it can be ensured that the system will only make further calculations and adjustments when the target color temperature value is within the valid range. If the color temperature value is not within the range, the system will prompt the user to adjust the input.

[0102] In one embodiment, based on the above embodiment, the step of obtaining the first color temperature value corresponding to the target color temperature includes:

[0103] Get current environment parameters;

[0104] A target color temperature is determined according to current environmental parameters, and a first color temperature value corresponding to the target color temperature is obtained.

[0105] In this embodiment, the current environmental parameter includes at least one of the current time, the current environmental brightness, the current environmental temperature, the current environmental sound intensity, and the current environmental humidity.

[0106] Current time: Different times have different ambient light conditions, which in turn affect the color temperature requirements. During the day or in an environment with strong light, the target color temperature can be more inclined to a cool color temperature to simulate natural light; at night or in an environment with insufficient light, the target color temperature can be more inclined to a warm color temperature to improve comfort and visual effects.

[0107] Current ambient brightness: The ambient brightness has a direct impact on the color temperature adjustment. For example, in a dark environment, you may need warmer light to improve comfort. When the brightness is low, you can choose a warmer color temperature, and when the brightness is high, you can choose a cooler color temperature.

[0108] Current ambient temperature: Temperature may affect the performance of the light source and the user's comfort. For example, in a hot environment, a cooler color temperature may be selected to avoid overheating, and vice versa.

[0109] Current ambient sound intensity: In some intelligent control systems, sound intensity may be used to determine the need to adjust the lighting to suit different sound scenes (for example, a quiet environment may require soft light).

[0110] Current ambient humidity: Humidity may affect the performance of the light source and the user's comfort, so in a high humidity environment, you can consider choosing a warmer color temperature; in a low humidity environment, you can choose a cooler color temperature.

[0111] The current environmental parameters may be obtained from corresponding detection sensors (such as temperature and humidity sensors) or other data sources to obtain current environmental data.

[0112] According to the acquired current environmental parameters, a suitable target color temperature is determined by comprehensively considering the influence of these parameters. Once the target color temperature is determined, a first color temperature value corresponding to the target color temperature is found according to a preset color temperature range and color temperature value.

[0113] By introducing environmental parameters in the step of obtaining the target color temperature, the system can adjust the color temperature more accurately to adapt to different usage environments, thereby improving the user experience and the applicability of the lighting.

[0114] For example, automatically adjusting color temperature can optimize visual comfort under different ambient lighting conditions: using warm color temperatures in low light conditions can reduce eye fatigue, while using cool color temperatures in bright environments can improve visual clarity.

[0115] Or, as lighting changes throughout the day or environmental conditions change, automatically adjusting color temperature can continuously maintain a comfortable viewing experience.

[0116] Or adjusting the color temperature according to the actual environment needs can help improve the effectiveness of lighting. For example, using a cool color temperature in a work environment can help improve concentration and productivity, while a warm color temperature can be used to create a relaxing atmosphere during breaks.

[0117] And proper color temperature adjustment can reduce unnecessary energy consumption. For example, when the ambient brightness is low, using warm color temperature can reduce the intensity of the light, thereby saving energy.

[0118] Automatic color temperature adjustment allows users to enjoy a more intelligent and convenient lighting experience without manual intervention.

[0119] In addition, refer to Figure 2 In an embodiment of the present application, a control device Z10 is further provided, comprising:

[0120] An acquisition module Z11 is used to acquire a first color temperature value corresponding to a target color temperature;

[0121] A query module Z12 is used to query the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit;

[0122] An index module Z13 is used to obtain the brightness ratio of the two LED light strips from the second preset array based on the index value; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array;

[0123] A calculation module Z14 is used to calculate the target driving value of each of the two LED light strips according to the current brightness corresponding to the color temperature combination of the two LED light strips and the brightness proportion of each of the two LED light strips;

[0124] The adjustment module Z15 is used to adjust the color temperature of the two LED light strips based on the respective target driving values ​​of the two LED light strips, so that the color temperature combination of the two LED light strips reaches the target color temperature.

[0125] Optionally, the control device Z10 may be a virtual control device (such as a virtual machine) or a physical device (such as a physical device other than a lighting system that can execute the corresponding method).

[0126] In addition, a lighting system is also provided in the embodiment of the present application. Figure 3 The lighting system includes a control unit, a hardware driving unit and a lighting module. The control unit is electrically connected to the lighting module through the hardware driving unit and drives the lighting module. The lighting module is provided with two LED light strips (i.e., a first light strip and a second light strip) that can provide different color temperatures.

[0127] The internal structure of the control unit can be as follows Figure 4 As shown, it includes a processor, a memory, a communication interface and an input interface connected through a system bus. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database is used to store data called by the computer program. The communication interface is used to communicate data with an external terminal. The input interface is used to receive a signal input by an external device. When the computer program is executed by the processor, a light adjustment method for a mixed-color LED light strip as described in the above embodiment is implemented.

[0128] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the control unit to which the present application scheme is applied. For example, in some optional embodiments, the control unit may also include an output interface (not shown in the figure), and the output interface is also connected to the system bus and is used to output corresponding signals to the peripheral device.

[0129] Among them, the control unit sends control signals (such as PWM control signals) through the hardware driving unit; the hardware driving unit transmits these control signals to the lighting module to drive the operation of the LED light strip; the computer program in the control unit calculates and adjusts the color temperature and brightness of the LED light strip in the lighting module according to a preset method to achieve the target lighting effect.

[0130] In addition, the present application also proposes a computer-readable storage medium, the computer-readable storage medium includes a computer program, and when the computer program is executed by a processor, the steps of the light adjustment method of the mixed color LED light strip described in the above embodiment are implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0131] In summary, the lighting adjustment method, control device, lighting system and computer-readable storage medium of the mixed-color LED light strip provided in the embodiments of the present application realize the mixing of two LED light strips with different color temperatures, discretize the mixed color temperature of the two LED light strips into a color temperature array, and link the index value of the discrete color temperature array with the light brightness two-dimensional array proportion index, and then combine the total brightness to calculate the corresponding driving values ​​of the two LED light strips, so as to realize dynamic adjustment of the color temperature within the color temperature range composed of the two color temperature values. In this way, not only can the two LED light strips support flexible adjustment and smooth switching of multiple color temperatures, but also the adjustment process is simple and accurate, which well avoids the occurrence of color difference, and is suitable for scenes requiring precise color temperature control, such as commercial lighting, home ambient light, professional photography, etc.

[0132] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0133] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0134] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A light adjustment method for a mixed color LED light strip, It is characterized in that include: Obtaining a first color temperature value corresponding to the target color temperature; Query the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit; Based on the index value, the brightness ratio of each of the two LED light strips is obtained from the second preset array; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array; Calculate the target driving values ​​of the two LED light strips according to the current brightness corresponding to the color temperature combination of the two LED light strips and the brightness proportions of the two LED light strips; Based on the respective target driving values ​​of the two LED light strips, the color temperatures of the two LED light strips are adjusted so that the color temperature combination of the two LED light strips reaches the target color temperature.

2. The light adjustment method of the mixed color LED light strip according to claim 1, It is characterized in that The step of adjusting the color temperature of the two LED light strips based on the respective target driving values ​​of the two LED light strips so that the color temperature combination of the two LED light strips reaches the target color temperature includes: Calculate the driving step length based on the difference between the target driving value and the current driving value of the two LED light strips; According to the respective driving step lengths of the two LED light strips, the color temperatures of the two LED light strips are gradually adjusted so that the color temperature combination of the two LED light strips gradually reaches the target color temperature.

3. The light adjustment method of the mixed color LED light strip according to claim 1, It is characterized in that After the step of obtaining the brightness proportions of the two LED light strips from the second preset array based on the index value, the method further includes: When receiving a brightness adjustment command, the target driving values ​​of the two LED light bars are calculated according to the target brightness of the brightness adjustment command and the brightness proportions of the two LED light bars; Based on the respective target driving values ​​of the two LED light bars, the brightness of the color temperature combination of the two LED light bars is adjusted.

4. The light adjustment method of the mixed color LED light strip according to any one of claims 1 to 3, It is characterized in that The step of obtaining a first color temperature value corresponding to the target color temperature comprises: When a color temperature adjustment instruction is received from a smart terminal, a first color temperature value corresponding to a target color temperature targeted by the color temperature adjustment instruction is extracted.

5. The light adjustment method of the mixed color LED light strip according to claim 4, It is characterized in that After the step of obtaining the first color temperature value corresponding to the target color temperature, the method further includes: Detecting whether the first color temperature value is within a numerical range corresponding to a first preset array; If yes, then executing the step of querying the index value of the first color temperature value in the first preset array; If not, the color temperature adjustment instruction is fed back to the smart terminal.

6. The light adjustment method of the mixed color LED light strip according to any one of claims 1 to 3, It is characterized in that The step of obtaining a first color temperature value corresponding to the target color temperature comprises: Get current environment parameters; A target color temperature is determined according to current environmental parameters, and a first color temperature value corresponding to the target color temperature is obtained.

7. The light adjustment method of the mixed color LED light strip according to claim 6, It is characterized in that The current environment parameter includes at least one of the current time, the current environment brightness, the current environment temperature, the current environment sound intensity, and the current environment humidity.

8. A control device, It is characterized in that include: An acquisition module, used to acquire a first color temperature value corresponding to a target color temperature; A query module, used for querying the index value of the first color temperature value in the first preset array; wherein the first digit and the last digit of the first preset array are the second color temperature value and the third color temperature value provided by the two LED light strips, respectively; and the values ​​in the first preset array increase in sequence from the first digit to the last digit; An index module, used to obtain the brightness ratio of the two LED light strips from the second preset array based on the index value; wherein each value combination in the second preset array is a pair of brightness ratios, and each value combination has a corresponding color temperature value in the first preset array; A calculation module, used to calculate the target driving value of the two LED light strips according to the current brightness corresponding to the color temperature combination of the two LED light strips and the brightness proportion of the two LED light strips; The adjustment module is used to adjust the color temperature of the two LED light strips based on the respective target driving values ​​of the two LED light strips, so that the color temperature combination of the two LED light strips reaches the target color temperature.

9. A lighting system, It is characterized in that The lighting system comprises a control unit, a hardware driving unit and a lighting module. The control unit is electrically connected to the lighting module through the hardware driving unit and drives the lighting module. The lighting module is provided with two types of LED light strips that can provide different color temperatures. The control unit includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the light adjustment method of the mixed-color LED light strip as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the light adjustment method of the mixed-color LED light strip according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Multi-color-temperature down lamp and intelligent control method of multi-color-temperature down lamp

    CN120812790A

  • Multicolor temperature downlights and intelligent control methods for multicolor temperature downlights

    CN120812790B

  • Microwave detection multi-color-temperature down lamp and pulse width modulation intelligent control method thereof

    CN120916288A