Patent Description:
In general, the RGB (red, green, blue) three types of color light can be combined to form any color light. Therefore, in order to adjust the color of the light emitted by the lighting equipment, such as LED lights, three kinds of RGB light-emitting elements are usually provided in the lighting equipment, so that the LED lights can emit light of any color, improving the user's visual experience.

In the light color adjustment process, that is, in the gradual color change process of the light, the three RGB colors are usually adjusted with the same step length. However, because the proportions of the three RGB colors in the light of different colors are inconsistent, various intermediate colors are prone to appear in the color adjustment process, thereby affecting the user's visual experience. For example, when adjusting the light emitted by an RGB lamp from orange (<NUM>, <NUM>, <NUM>) to blue (<NUM>, <NUM>, <NUM>), the three RGB colors are adjusted in the step length of <NUM>, and the values of the RGB three primary colors are sequentially (<NUM>, <NUM>, <NUM>), (<NUM>, <NUM>, <NUM>), (<NUM>, <NUM>, <NUM>),. , (<NUM>, <NUM>, <NUM>), (<NUM>, <NUM>, <NUM>). Because the three RGB color lights are adjusted with the same step length during the color adjustment process, the RGB lamp sequentially produces a variety of gradient colors during the color adjustment process, which greatly affects the light effect during the color adjustment process and affects the visual experience.

In particular, when the three RGB colors need to be changed in different values, and the three RGB colors are adjusted with the same step length, it is easy to for one of the color lights to complete the adjustment, while the other one or two color lights have not completed the color adjustment. Thus, the RGB lamp can emit a variety of gradient colors during the adjustment process, which will affect the user's visual experience. For example, when the RGB lamp light is gradually adjusted from orange color (<NUM>, <NUM>, <NUM>) to black color (<NUM>, <NUM>, <NUM>), the color will gradually be transited to red (<NUM>, <NUM>, <NUM>), and then from red (<NUM>, <NUM>, <NUM>) to black. Therefore, when the three RGB colors are all adjusted with the same step length, because the color values need to be adjusted for each color light are different, the numbers of adjustments of each color light are inconsistent, so that the RGB lamp will appear in multiple colors during the adjustment process, thereby affecting the user's visual experience. D1 (<CIT>) relates to light-emitting devices and in particular to a color-tunable light source module with brightness control. D2 (<CIT> (A1)) relates to iluminant device for emitting light of a continuously adjustable color, more particularly for individualizing and/or illuminating an interior. D3 (<CIT>) ) relates to method and apparatus for storing and defining light shows. D4 (<CIT>) relates to a method of controlling a lighting arrangement and a lighting control circuit.

The disclosed methods and apparatus are directed to solve one or more problems set forth above and other problems.

The present disclosure provides a lighting color-adjustment control method, device, product, and lamp.

According to one aspect of the present disclosure, a lighting color-adjustment control method is provided for a lamp containing at least one light-emitting unit, each having a plurality of color-light elements. The method includes: determining a target color value for each color-light element in response to a lighting color-adjustment instruction; determining a first color-adjustment ratio of each color-light element; determining a step color-adjustment value of each color-light element, the step color-adjustment value of each color-light element being a result of a preset color-adjustment step length matched with a corresponding weight, and the weight including the first color-adjustment ratio; and synchronously controlling each color-light element to implement at least one color adjustment with the respective step color-adjustment value to adjust each color-light element to emit a color light corresponding to the target color value; wherein: determining a first color-adjustment ratio of each color-light element is made by: (<NUM>) calculating a color-adjustment difference value between the target color value and the current color value; (<NUM>) determining a maximum color-adjustment difference value among the color-adjustment difference values of the plurality of color-light elements; (<NUM>) dividing the color-adjustment difference value of each color-light element by the maximum color-adjustment difference value to obtain the corresponding first color-adjustment ratio; and (<NUM>) normalizing all the first color-adjustment ratios to a value space of [<NUM>, <NUM>].

According to another aspect of the present disclosure, a lamp is provided. The lamp includes a dimmer; a control unit; and a plurality of light-emitting units. The dimmer is used to output a lighting color-adjustment instruction to the control unit, each light-emitting unit includes a plurality of color-light elements, the control unit is electrically connected to each color-light element of the light-emitting units, and the control unit is configured to perform: determining a target color value for each color-light element in response to a lighting color-adjustment instruction; determining a first color-adjustment ratio of each color-light element; determining a step color-adjustment value of each color-light element, the step color-adjustment value of each color-light element being a result of a preset color-adjustment step length matched with a corresponding weight, and the weight including the first color-adjustment ratio; and synchronously controlling each color-light element to implement at least one color adjustment with the respective step color-adjustment value to adjust each color-light element to emit a color light corresponding to the target color value; wherein: determining a first color-adjustment ratio of each color-light element is made by: (<NUM>) calculating a color-adjustment difference value between the target color value and the current color value; (<NUM>) determining a maximum color-adjustment difference value among the color-adjustment difference values of the plurality of color-light elements; (<NUM>) dividing the color-adjustment difference value of each color-light element by the maximum color-adjustment difference value to obtain the corresponding first color-adjustment ratio; and (<NUM>) normalizing all the first color-adjustment ratios to a value space of [<NUM>, <NUM>].

According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium contains computer-executable program codes for, when executed by one or more processors, performing a lighting color-adjustment control method for a lamp containing at least one light-emitting unit, each having a plurality of color-light elements. The method includes: determining a target color value for each color-light element in response to a lighting color-adjustment instruction; determining a first color-adjustment ratio of each color-light element; determining a step color-adjustment value of each color-light element, the step color-adjustment value of each color-light element being a result of a preset color-adjustment step length matched with a corresponding weight, and the weight including the first color-adjustment ratio; and synchronously controlling each color-light element to implement at least one color adjustment with the respective step color-adjustment value to adjust each color-light element to emit a color light corresponding to the target color value; wherein: determining a first color-adjustment ratio of each color-light element is made by: (<NUM>) calculating a color-adjustment difference value between the target color value and the current color value; (<NUM>) determining a maximum color-adjustment difference value among the color-adjustment difference values of the plurality of color-light elements; (<NUM>) dividing the color-adjustment difference value of each color-light element by the maximum color-adjustment difference value to obtain the corresponding first color-adjustment ratio; and (<NUM>) normalizing all the first color-adjustment ratios to a value space of [<NUM>, <NUM>].

To describe the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings used for describing the disclosed embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present disclosure, and a person of ordinary skill in the technology may derive other drawings from these accompanying drawings without creative efforts.

The present disclosure provides a method for controlling lighting color-adjustment. When a light-emitting unit adjusts the color of the light emitted by the light-emitting unit, each color-light element that makes up the light-emitting unit is adjusted using a step color-adjustment value, which is determined according to the difference between the target color and the current color of the color-light element during the color adjustment process. Using the corresponding step color-adjustment value, each color-light element can complete the color adjustment process in the same number of color adjustments (or adjustment steps), such that the light-emitting unit completes the overall color adjustment, avoiding such scenarios where, after one or more color-light elements complete the color adjustment, other color-light element(s) still has not completed the color adjustment, which may cause various changing colors appearing in the light-emitting unit during the color adjustment process, affecting the visual experience.

In certain embodiments of the present disclosure, the lighting color-adjustment control method is implemented based on a lamp <NUM>, referring to <FIG>. The lamp <NUM> may include a dimmer <NUM>, a control unit <NUM>, and one or more light-emitting units <NUM>. The dimmer <NUM> may be electrically connected to the control unit <NUM>, and the control unit <NUM> may be electrically connected to the light-emitting units <NUM>, respectively.

More specifically, a light-emitting unit <NUM> may include a plurality of color-light elements <NUM>, and the plurality of color-light elements <NUM> respectively emit color light of different colors, and the color light emitted by each of the plurality of color-light elements <NUM> can be combined to form light of any color. That is to say, the light-emitting unit <NUM> can emit light of any color.

In one embodiment of the present disclosure, the light-emitting unit <NUM> may include three color-light elements <NUM>. The three color-light elements <NUM> are respectively a red-light (or red) color-light element <NUM>, a green-light (or green) color-light element <NUM>, and a blue-light (or blue) color-light element <NUM>. The red-light color-light element <NUM> is used to emit red color light, the green-light color-light element <NUM> is used to emit green color light, and the blue-light color-light element <NUM> is used to emit blue color light. The color value of color light emitted by each of the three color-light elements <NUM> of the light-emitting unit <NUM> can be adjusted, and then combined to form light of any color. In one embodiment, the light-emitting unit <NUM> is an LED lamp.

The dimmer <NUM> may be used to output a lighting color-adjustment instruction to the control unit <NUM>, and the control unit <NUM> controls the corresponding light-emitting unit <NUM> to emit light of a corresponding color after receiving the lighting color-adjustment instruction. In one embodiment, the dimmer <NUM> is a computer or similar component, and the user can issue a lighting color-adjustment instruction to the control unit <NUM> through the dimmer <NUM> to control the light-emitting unit <NUM> to change the color of the emitted light.

More specifically, after the control unit <NUM> receives the lighting color-adjustment instruction, the control unit <NUM> determines a target color value corresponding to the light-emitting unit <NUM> from the lighting color-adjustment instruction. Further, the control unit <NUM> obtains the current color value of the light-emitting unit <NUM> and, based on the target color value and the current color value, determines the color value to be adjusted for each color-light element <NUM>. The control unit <NUM> also calculates a step color-adjustment value of each color-light element <NUM> of the light-emitting unit <NUM> during each color adjustment step. Afterwards, the control unit <NUM> controls each color-light element <NUM> to perform at least one color adjustment step based on the step color-adjustment value corresponding to each color-light element <NUM>, so that the color-light element <NUM> adjusts its color value to the target color value, and the light-emitting unit <NUM> adjusts its overall color value to the target color value, i.e., the color of the emitted light of the light-emitting unit <NUM> is adjusted to the target color. In one embodiment, the control unit <NUM> is at least one control chip of the light-emitting unit <NUM>.

Details for the specific color adjustment method of each color-light element of the light-emitting unit may be described further below.

The lighting color-adjustment control method is implemented based on the lamp described above. Specifically, referring to <FIG>, the lighting color-adjustment control method may include the following steps.

Step S11, in response to the lighting color-adjustment instruction, determining the target color value corresponding to the instruction. The color parameter includes the color values corresponding to multiple color-light elements.

The dimmer may output a lighting color-adjustment instruction to the control unit. After receiving the lighting color-adjustment instruction, the control unit determines the target color value of the corresponding light-emitting unit from the lighting color-adjustment instruction, and the target color value include the color values of the multiple color-light elements of the light-emitting unit. In one embodiment, the target color value is expressed in the form of numerical values, including the RGB numerical values. Among the RGB values, the R value is the target color value of the red color-light element of the light-emitting unit, the G value is the target color value of the green color-light element of the light-emitting unit, and the B value is the target color value of the blue color-light element of the light-emitting unit. When the three color-light elements of the light-emitting unit are respectively adjusted to the target color values, the color of the light emitted by the light-emitting unit corresponds to the target color values included in the lighting color-adjustment instruction.

Step S12, according to the target color value and the current color value corresponding to the plurality of color-light elements, determining a first color-adjustment ratio of each color-light element.

After the control unit obtains the corresponding target color value of each color-light element of the light-emitting unit by analyzing the lighting color-adjustment instruction, the control unit obtains the current color value of each color-light element of the light-emitting unit, and the current color value refers to the color value of the light currently emitted by the color-light element. The control unit obtains the color difference value based on the difference between the current color value and the corresponding target color value of the color-light element. After the control unit obtains the corresponding color difference values of the color-light elements of the light-emitting unit, the control unit chooses one of the color difference values as a reference difference value.

Further, based on the reference difference value, the color difference value corresponding to each color-light element is used to calculate the first color-adjustment ratio corresponding to each color-light element, and the first color-adjustment ratio is used to calculate the corresponding step color-adjustment value of the corresponding color-light element during the color adjustment process, so that each color-light element performs the same number of color adjustments during the color adjustment process. This can prevent one or more of the color-light elements from completing the color adjustment in advance of other color-light elements, causing various color changes of the light emitted by the light-emitting unit during the color adjustment process, and affecting the visual effect of the light emitted by the light-emitting unit.

Specifically, with reference to <FIG>, Step S12 may include the following steps.

Step S121, based on the target color value and the current color value, calculating the color-adjustment difference value required to change the color value of each color-light element, and determining a maximum color-adjustment difference.

After the control unit acquires the target color value corresponding to the light-emitting unit from the lighting color-adjustment instruction, the target color value include the target color value of each color-light element of the light-emitting unit. For example, the target color value of the light-emitting unit is the target color value Di(r1, g1, b1), that is, the target color value of the red color-light element of the light-emitting unit is r1, the target color value of the green color-light element of the light-emitting unit is g1, and the target color value of the blue color-light element of the light-emitting unit is b1.

The control unit further acquires the current color value of the light-emitting unit, i.e., the color parameter of the light currently emitted by the light-emitting unit. The current color value includes the current color value of each color-light element of the light-emitting unit. For example, the current color value of the light-emitting unit is the current color value Ci(r2, g2, b2), that is, the current color value of the red color-light element of the light-emitting unit is r2, the current color value of the green color-light element of the light-emitting unit is g2, and the current color value of the blue color-light element of the light-emitting unit is b2.

Further, based on the target color value and the current color value of each color-light element, the control unit calculates the difference between the current color value and the target color value, which is called the color-adjustment difference value, that is, the color value that needs to be changed to the target color value from the current color value of the color-light element. For example, for the color-adjustment difference Ai (r1-r2, g1-g2, b1-b2) of the three color-light elements of the light-emitting unit, where r1-r2 is the color-adjustment difference of the red color-light element, g1-g2 is the color-adjustment difference of the green color-light element, and b1-b2 is the color-adjustment difference of the blue color-light element.

The control unit may convert the color-adjustment difference values corresponding to each color-light element into absolute values, and selects the color-adjustment difference value with the largest value from the absolutized color-adjustment difference values, and refers the color-adjustment difference value with the largest value to be the maximum color-adjustment difference value. For example, the target color value of the lighting unit is D1(<NUM>, <NUM>, <NUM>), and the current color value is C1(<NUM>, <NUM>, <NUM>), then the color-adjustment difference value A1 is (|<NUM>-<NUM>|, |<NUM>-<NUM>|, |<NUM>-<NUM>|), that is, the color-adjustment difference value is A1(<NUM>, <NUM>, <NUM>), and the maximum color-adjustment difference value is MAX1 = <NUM>.

Step S122, normalizing the color-adjustment difference value of each color-light element according to the maximum color-adjustment difference value, and obtaining the first color-adjustment ratio corresponding to each color-light element.

After the control unit obtains the color-adjustment difference value corresponding to each color-light element of the light-emitting unit and the maximum color-adjustment difference value, the control unit calculates the first color-adjustment ratios corresponding to each color-light element based on the color-adjustment difference value corresponding to each color-light element and the maximum color-adjustment difference value. The corresponding first color-adjustment ratios of the multiple color-light elements are the same or different. Further, the first color-adjustment ratios are normalized so that the first color-adjustment ratios are readable values. In one embodiment, the first color-adjustment ratio is obtained using division calculation or variance calculation or standard deviation calculation.

In one embodiment, Step S12 also includes Step S <NUM>, dividing the color-adjustment difference value of each color-light element by the maximum color-adjustment difference value to obtain the corresponding first color-adjustment ratio, and normalizing all the first color-adjustment ratios to a value space of [<NUM>, <NUM>].

That is, the color-adjustment difference value corresponding to each color-light element is divided by the maximum color-adjustment difference value to obtain the first color-adjustment ratio corresponding to each color-light element. In order to facilitate the understanding of the first color-adjustment ratio, the first color-adjustment ratio is normalized to the value space of [<NUM>, <NUM>]. For example, the color difference value of the light-emitting unit is A1(<NUM>, <NUM>, <NUM>), the maximum color-adjustment difference value is MAX1 = <NUM>, and the first color-adjustment ratio corresponding to the light-emitting unit is (<NUM>/<NUM>, <NUM>/<NUM>, <NUM>/<NUM>), that is, the first color-adjustment ratio of the red color-light element is <NUM>/<NUM>, the first color-adjustment ratio of the green color-light element is <NUM>/<NUM>, and the first color-adjustment ratio of the blue color-light element is <NUM>/<NUM>.

Step S13, determining the step color-adjustment value of each color-light element, the step color-adjustment value of each color-light element is the result of a preset color-adjustment step length matched with a corresponding weight, and the weight includes the first color-adjustment ratio of the color-light element.

After the control unit obtains the first color-adjustment ratio corresponding to each color-light element of the light-emitting unit, the control unit determines a weight corresponding to each color-light element, and the weight is used to match the preset color-adjustment step length to obtain the step color-adjustment value corresponding to each color-light element. The step color-adjustment value of the color-light element is correlated with multiple color-light elements of the same light-emitting unit through the first color-adjustment ratio, so that the color-light elements of the light-emitting unit can be correlated with each other during the color adjustment process. Thus, the number of times of the color adjustments (or the number of the color adjustment steps) of each color-light element is the same, so that each color-light element can complete the color adjustment at the same time, avoiding the gradual color change of multiple light-emitting units of the lamp during the color adjustment process, affecting visual effects.

The step color-adjustment value is the color-adjustment value of the color-light element for each color adjustment step. When the color-light element changes from the current color value to the corresponding target color value, the color needs to be adjusted one or more times, and every time the color adjustment is changed by the corresponding step color-adjustment value. The color-adjustment step length is allocated to each color-light element of the light-emitting unit, and the multiple color-light elements of the light-emitting unit all correspond to the same color adjustment step length. The color-adjustment step length is preset by the control unit, or the color-adjustment step length is sent to the control unit by the dimmer through the lighting color-adjustment instruction. The step color-adjustment value belongs to an integer value space of <NUM> to <NUM>, and the color-adjustment step length belongs to an integer value space of <NUM> to <NUM>.

More specifically, the weight is multiplied by the color-adjustment step length to obtain the step color-adjustment value of the corresponding color-light element.

In one embodiment of the present disclosure, the first color-adjustment ratio is the weight value of the weight, and the step color-adjustment value of the color-light element is obtained by multiplying the color-adjustment step length and the corresponding first color-adjustment ratio. For example, the first color-adjustment ratio corresponding to the light-emitting unit is (<NUM>/<NUM>, <NUM>/<NUM>, <NUM>/<NUM>), and the preset color-adjustment step length is <NUM>, then the step color-adjustment value of each color-light element of the light-emitting unit is (<NUM>/<NUM> * <NUM>, <NUM>/<NUM>*<NUM>, <NUM>/<NUM> * <NUM>), which is (<NUM>, <NUM>, <NUM>). Specifically, the step color-adjustment value of the red color-light element is <NUM>, the step color-adjustment value of the green color-light element is <NUM>, and the step color-adjustment value of the blue color-light element is <NUM>.

In one embodiment, the weight further includes a second color-adjustment ratio, and the second color-adjustment ratio is correlated with a plurality of light-emitting units of the lamp, so that the color adjustment process of a single light-emitting unit is consistent with the color adjustment process of the plurality of light-emitting units of the lamp. Thus, the color of the multiple color-light elements of the plurality of light-emitting units of the lamp are adjusted for the same number of times, so as to avoid gradual color changes in the color-adjustment process of the lamp, affecting the effect of light emitted by the lamp. Specifically, referring to <FIG>, by calculating the second color-adjustment ratio, the weight value of the weight is calculated based on the second color-adjustment ratio and the first color-adjustment ratio, and then the step color-adjustment value is calculated, specifically, including the following steps.

Step S131, determining a maximum color-adjustment difference value of all the color-light elements included in the plurality of light-emitting units as the maximum step color-adjustment difference value.

A light-emitting unit includes a plurality of color-light elements and, for each color-light element, the difference between the target color value and the current color value of the color-light element is the color difference value. The maximum value among the color difference values corresponding to the color-light elements of the light-emitting unit is the maximum color-adjustment difference value. That is to say, each light-emitting unit corresponds to a maximum color-adjustment difference value. Details on determining the maximum color-adjustment difference value are described with respect to Step S121, and are not repeated here.

The control unit sequentially obtains the maximum color-adjustment difference value corresponding to each light-emitting unit, and the control unit selects the largest color-adjustment difference value from the maximum color-adjustment difference values of the plurality of light-emitting units as the maximum step color-adjustment difference value. For example, if the maximum color-adjustment difference value of the first light-emitting unit is <NUM>, the maximum color-color difference value of the second light-emitting unit is <NUM>, and the maximum color-color difference value of the third light-emitting unit is <NUM>, i.e., the maximum color-adjustment difference value of the second light-emitting unit is greater than the maximum color-adjustment differences of the first light-emitting unit and the third light-emitting unit. Thus, the maximum color-color difference of the second light-emitting unit is the maximum step color-adjustment difference of the units.

Step S132, normalizing the maximum color-adjustment difference value of each light-emitting unit according to the maximum step color-adjustment difference value, and obtaining the second color-adjustment ratio corresponding to each light-emitting unit.

After the control unit obtains the maximum step color-adjustment difference value and the maximum color-adjustment difference value corresponding to each light-emitting unit, the control unit calculates the second color-adjustment ratio corresponding to each light-emitting unit using the maximum color-adjustment difference value corresponding to each light-emitting unit and the maximum step color-adjustment difference value. The second color-adjustment ratio corresponding to each light-emitting unit is the same or different. Further, the second color-adjustment ratio is normalized so that the second color-adjustment ratio is a readable value.

The second color-adjustment ratio is correlated with the step color-adjustment value of each color-light element of the light-emitting unit, and also with the color adjustment of multiple light-emitting units of the lamp, so that each color-light element of the multiple light-emitting units of the lamp can be color-adjusted for the same number of times. This may avoid color changes in the color adjustment process due to the difference in the number of color adjustments of the respective color-light elements among multiple light-emitting units, affecting the lighting effect of the lamp. In one embodiment, the second color-adjustment ratio is obtained using division calculation or variance calculation or standard deviation calculation.

In one embodiment, the maximum color-adjustment difference value of each light-emitting unit is divided by the maximum step color-adjustment difference value to obtain the second color-adjustment ratio corresponding to each light-emitting unit. Further, in order to facilitate the usage of the second color-adjustment ratio, the second color-adjustment ratio is normalized to the numerical space of [<NUM>, <NUM>]. For example, if the maximum color-adjustment difference value of the light-emitting unit is <NUM>, and the maximum step color-adjustment difference value is <NUM>, the second color-adjustment ratio corresponding to the light-emitting unit is <NUM>/<NUM>.

Step S133, calculating a product of the preset color-adjustment step length and the weight of each color-light element of each light-emitting unit as the step color-adjustment value of the corresponding color-light element. The weight includes the first color adjustment ratio of the color-light element, and the second color-adjustment ratio corresponding to the light-emitting unit to which the color-light element belongs.

After the control unit obtains the first color-adjustment ratio corresponding to the color-light element and the second color-adjustment ratio corresponding to the light-emitting unit containing the color-light element, the control unit calculates a weight based on the first color-adjustment ratio and the second color-adjustment ratio, and calculates the step color-adjustment value of the color-light element by multiplying the color-adjustment step length by the weight of the color-light element. The step color-adjustment value is correlated with each color-light element of each light-emitting unit through the second color color-adjustment ratio, so that each color-light element of each light-emitting unit is related to each other, and each color-light element of multiple light-emitting units performs the same number of color adjustments, avoiding the gradual color change of multiple light-emitting units of the lamp during the color adjustment process, affecting visual effects.

For example, when the first color-adjustment ratio corresponding to the red color-light element is <NUM>/<NUM>, the second color-adjustment ratio corresponding to the red color-light element is <NUM>/<NUM>, and the preset color-adjustment step length is <NUM>, the corresponding weight of the red color-light element is <NUM>/<NUM>* <NUM>/<NUM>=<NUM>/<NUM>, and the corresponding step color-adjustment value of the red light color-light element is <NUM>/<NUM>* <NUM> =<NUM>/<NUM>, that is to say, the red color-light element adjusts <NUM>/<NUM> values each time it is color adjusted.

Step S14, synchronously controlling each color-light element to implement at least one color adjustment with its respective step color-adjustment value, and adjusting each color-light element to emit a color light corresponding to the target color value.

After the control unit acquires the step color-adjustment value corresponding to each color-light element of the light-emitting units, the control unit synchronously controls the plurality of color-light elements to perform color adjustment based on the step color-adjustment value corresponding to each color-light element. Because the step color-adjustment value of the color-light element is calculated and obtained through the first color-adjustment ratio, or the first color-adjustment ratio and the second color-adjustment ratio, each color-light element of the light-emitting unit(s) is adjusted based on the respective step color-adjustment value by performing the same number of color adjustment steps to reach the corresponding target color value from the current color value. Thus, there is no one or more color-light elements of the light-emitting unit(s) to complete the color adjustment in advance of others during the color adjustment process, thereby avoiding various color changes in the light-emitting unit during the color adjustment process, which affects the visual effect of the light emitted by the light-emitting unit during the color adjustment process.

More specifically, referring to <FIG>, Step S14 includes the following steps.

Step S141, based on the ratio of the color-adjustment difference value of any color-light element to its step color-adjustment value, determining the number of color-adjustment control steps of all color-light elements.

After the control unit obtains the color-adjustment difference value and the step color-adjustment value corresponding to the color-light element, the control unit divides the color-adjustment difference value by the step color-adjustment value to obtain the number of color-adjustments or color-adjustment control steps of the color-light element from the current color value to its target color value. Because the respective first color-adjustment ratios, or the first color-adjustment ratios and the second color-adjustment ratios of the color-light elements of the light-emitting unit(s) are correlated, the multiple color-light elements of the light-emitting unit, and even the multiple color-light elements of the multiple light-emitting units of the lamp, can have the same number of color-adjustments or color-adjustment control steps, so that each color-light element of the light-emitting unit(s) is controlled synchronously to adjust the color until each color-light element completes the color adjustment. Thus, during the color adjustment process, there will be no one or more of the color-light elements complete the color adjustment in advance of others, avoiding various color changes of the light-emitting unit(s) during the color adjustment process, which affects the lighting effect.

Step S142, generating a color-adjustment control signal corresponding to the step color-adjustment value of each color-light element.

After the control unit obtains the corresponding step color-adjustment value of each color-light element, the control unit synchronously outputs a color-adjustment control signal containing the corresponding step color-adjustment value to each color-light element. Each color-light element receives the color-adjustment control signal containing the corresponding step color-adjustment value, and changes the color value to perform the color adjustment.

In one embodiment, the control unit is electrically connected to each color-light element through different circuits, and the control unit sends a pulse signal to each color-light element to control the color-light element to perform color adjustment. For example, the dimming method is PWM (pulse width modulation) dimming, using a plurality of different circuits to realize the switching of the forward LED track light current, and controlling the voltage of the dimming control pin of the power supply chip by adjusting the pulse width of the dimming PWM signal to achieve the purpose of dimming or color adjustment.

Step S143, according to the number of color-adjustment control steps, synchronously and continuously sending corresponding color-adjustment control signals to all color-light elements, and controlling each color-light element to perform color adjustment according to the color-adjustment control signal.

After the control unit obtains the number of color adjustments or color-adjustment control steps of a color-light element, that is, all or overall color-adjustment control steps, the control unit simultaneously sends corresponding color-adjustment control signals to all the color-light elements, and controls each color-light element according to the corresponding step color-adjustment value of the color-adjustment control signal to perform color adjustment. The color-adjustment of all color-light elements is completed by the number of color-adjustment control steps, so that one or more color-light elements of the light-emitting unit will not complete the color adjustment in advance of others during the toning process. Further, the step color-adjustment values of the color-light elements are correlated through the first color-adjustment ratio, or the first color-adjustment ratio and the second color-adjustment ratio, the amount of color adjustment of the color-light elements are also correlated, preventing one or more color-light elements from having overly large amount of color adjustment, which affects the color adjustment effect of the light-emitting unit(s).

The present disclosure also provides a lighting color-adjustment control device. Referring to <FIG>, the device includes a response module <NUM>, a coefficient calculation module <NUM>, a color-adjustment calculation module <NUM>, and a color adjustment module <NUM>, etc..

The response module <NUM> is configured for, in response to the lighting color-adjustment instruction, determining the target color value corresponding to the instruction. The color parameter includes the color values corresponding to multiple color-light elements.

The coefficient calculation module <NUM> is configured for, according to the target color value and the current color value corresponding to the plurality of color-light elements, determining a first color-adjustment ratio of each color-light element.

The color-adjustment calculation module <NUM> is configured for determining the step color-adjustment value of each color-light element. The step color-adjustment value of each color-light element is the result of a preset color-adjustment step length matched with a corresponding weight, and the weight includes the first color-adjustment ratio of the color-light element.

The color adjustment module <NUM> is configured for synchronously controlling each color-light element to implement at least one color adjustment with its respective step color-adjustment value, and adjusting each color-light element to emit a color light corresponding to the target color value.

The present disclosure also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors are configured to perform a lighting color-adjustment control method according to various embodiments of the present disclosure.

The present disclosure also provides a computer program product containing computer programs/instructions, and when the computer programs/instructions are executed by one or more processors, the lighting color-adjustment control method according to various embodiments of the present disclosure can be implemented.

Claim 1:
A lighting color-adjustment control method for a lamp containing at least one light-emitting unit each of which have a plurality of color-light elements, comprising:
determining a target color value for each color-light element in response to a lighting color-adjustment instruction;
determining a first color-adjustment ratio of each color-light element;
characterised by further comprising:
determining a step color-adjustment value of each color-light element, the step color-adjustment value of each color-light element being a result of a preset color-adjustment step length matched with a corresponding weight, and the weight including the first color-adjustment ratio; and
synchronously controlling each color-light element to implement at least one color adjustment with the respective step color-adjustment value to adjust each color-light element to emit a color light corresponding to the target color value; wherein;
determining a first color-adjustment ratio of each color-light element is made by: (<NUM>) calculating a color-adjustment difference value between the target color value and the current color value; (<NUM>) determining a maximum color-adjustment difference value among the color-adjustment difference values of the plurality of color-light elements; (<NUM>) dividing the color-adjustment difference value of each color-light element by the maximum color-adjustment difference value to obtain the corresponding first color-adjustment ratio; and (<NUM>) normalizing all the first color-adjustment ratios to a value space of [<NUM>, <NUM>].