Ambient light device, light bead light-emitting control method and apparatus, medium, and product

By acquiring target color control data and determining the current value based on the gain level, a gradually changing current sequence is used to control the color transition of the LED beads, solving the problem of color gradation loss caused by sudden current changes and achieving a smooth and precise lighting effect.

WO2026001399A1PCT designated stage Publication Date: 2026-01-02SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/094905
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-28
Filing Date
2025-05-14
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In existing technologies, color gradation loss occurs due to sudden current changes when the LED color changes, resulting in an uneven color transition and affecting the overall color detail. Furthermore, the brightness balance between RGB channels is out of balance, reducing the accuracy of color mixing.

Method used

By acquiring the color control data of the target color, the operating current value of each color channel is determined based on the rated current value of the gain level. A gradually changing current value sequence is used to control the color transition of the LED beads, ensuring that accurate current input is provided at each point in time and avoiding sudden current changes.

Benefits of technology

It achieves smooth color transitions and delicate overall color performance, maintains brightness balance between RGB channels, and improves the accuracy of color mixing, making it particularly suitable for high-fidelity color reproduction applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025094905_02012026_PF_FP_ABST
    Figure CN2025094905_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to an ambient light device, a light bead light-emitting control method and apparatus, a medium, and a product. The method comprises: acquiring color control data of a target color, the color control data comprising a gain level and color data of a plurality of color channels; on the basis of a rated current value of the gain level, determining an operating current value corresponding to the color data of each color channel as a first current value; taking an operating current value corresponding to applied color of each color channel as a second current value, associating the gain level, and determining a current value change sequence corresponding to the gradual change of each color channel from the second current value to the first current value; and on the basis of the current value change sequences corresponding to the channels, synchronously controlling a target light bead to emit light, such that the light color of the target light bead gradually changes from the applied color to the target color.
Need to check novelty before this filing date? Find Prior Art

Description

Ambient light device and light bead light emitting control method, device, medium and product TECHNICAL FIELD

[0001] The present application relates to the field of lighting control, in particular to an ambient light device and a light bead light emitting control method, device, medium and product. BACKGROUND

[0002] The light emitting control of the light bead in the ambient light device is the key to realize various lighting effects. In the prior art, when the light bead needs to change color, the brightness is usually adjusted by directly jumping based on the current value before and after the change. Although this method is simple to operate, it has obvious defects. It easily leads to the loss of color step, makes the color transition not smooth enough, and causes the mutation of color and brightness, which affects the delicacy of the overall color performance. At the same time, due to the mutation of the current, the brightness balance between RGB channels is easy to be out of adjustment, which will reduce the accuracy of the final mixed color, especially in application occasions that require high-fidelity color reproduction. SUMMARY

[0003] According to one aspect of the present application, a light bead light emitting control method is provided, comprising:

[0004] obtaining color control data of a target color, the color control data comprising a gain gear and color data of a plurality of color channels;

[0005] determining, based on a rated current value of the gain gear, a working current value corresponding to the color data of each color channel as a first current value;

[0006] associating the gain gear with a working current value corresponding to the applied color of each color channel as a second current value, and determining a current value change sequence corresponding to the gradual change of each color channel from its second current value to its first current value;

[0007] synchronously controlling the target light bead to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target light bead gradually changes from the applied color to the target color.

[0008] According to another aspect of the present application, a light bead light emitting control device is provided, comprising:

[0009] a data acquisition module configured to obtain color control data of a target color, the color control data comprising a gain gear and color data of a plurality of color channels;

[0010] a current determination module configured to determine, based on a rated current value of the gain gear, a working current value corresponding to the color data of each color channel as a first current value;

[0011] The sequence determination module is configured to use the working current value corresponding to the applied color of each color channel as the second current value, associate it with the gain level, and determine the current value change sequence of each color channel from its second current value to the current value corresponding to its first current value.

[0012] The light-emitting module is configured to synchronously control the target LED to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target LED gradually changes from the applied color to the target color.

[0013] According to another aspect of this application, an ambient lighting device is provided, including a controller and at least one light-emitting LED, the controller being used to perform the steps of the LED light-emitting control method.

[0014] According to another aspect of this application, a computer program product is provided, including a computer program / instructions, which, when executed by a processor, perform the steps of the lamp bead emission control method.

[0015] The technical solution of this application has many advantages, including but not limited to the following aspects:

[0016] This application acquires color controllable data, including gain levels and color data for multiple color channels. Then, based on the rated current value of the gain level, it determines the operating current value of each color channel as the first current value. Similarly, it determines the operating current value of the applied color for each color channel as the second current value. Following the direction from the second current value to the first current value, it decomposes the entire change process into multiple small steps according to time sequence. Each step corresponds to a unit current change value. Based on the unit current change value, it determines the corresponding time-point current value from the current value change range. Then, it constructs the current value change sequence for each channel by arranging the current values ​​at each time point in the time sequence. This allows for precise current value input to each color channel at each time point in the current value change sequence, thereby enhancing the smoothness of color transitions and the overall fineness of color performance. It ensures smooth transitions between different gain levels and continuous changes in color and brightness.

[0017] Unlike traditional LED light emission control methods, this application effectively avoids abrupt changes in LED color and brightness by introducing gain levels and a fine current control strategy, significantly improving the color adjustment capability and transition smoothness of LEDs in ambient lighting devices. By providing more current intensity levels to the color channels through gain levels, the sequence of current value changes for each channel can be precisely controlled.

[0018] Furthermore, this application provides a precise current value to each color channel at each time point based on the range of current value changes and the corresponding current value at each time point. This ensures that each color channel receives a precise current input at every time point in the current value change sequence, thereby enhancing the smoothness of color transitions and the delicacy of overall color performance. This gradation method effectively avoids sudden current changes, maintains the brightness balance between RGB channels, and improves the accuracy of the final mixed color, making it particularly suitable for applications requiring high-fidelity color reproduction.

[0019] This application solves the problem in the prior art where sudden changes in current cause loss of color gradation, resulting in uneven color transitions and affecting the overall delicacy of color performance, and achieves a more efficient, precise, and smooth lighting control effect. Attached Figure Description

[0020] Figure 1 is a schematic diagram of the electrical structure of an exemplary ambient lighting device of this application;

[0021] Figure 2 is a flowchart illustrating a typical embodiment of the LED light emission control method of this application;

[0022] Figure 3 is a schematic diagram of the encapsulation process of color control data in an embodiment of this application;

[0023] Figure 4 is a schematic diagram of the process for obtaining color control data in an embodiment of this application;

[0024] Figure 5 is a flowchart illustrating the process of determining the current value change sequence in this embodiment of the application;

[0025] Figure 6 is a flowchart illustrating the calculation of the point-in-time current value in an embodiment of this application;

[0026] Figure 7 is a flowchart illustrating an embodiment of synchronous control of target LED light emission in this application.

[0027] Figure 8 is a schematic block diagram of the LED light emission control device of this application;

[0028] Figure 9 is a schematic diagram of the structure of a computer device used in this application. Detailed Implementation

[0029] Please refer to Figure 1, which is a structural schematic diagram of an ambient lighting device provided in one embodiment of this application. As can be seen, the ambient lighting device includes a controller 1 and a lamp body 2. The lamp body 2 is electrically connected to the controller 1 so as to receive control from the computer program running in the controller 1 and work together to realize the lighting effect playback.

[0030] Controller 1 typically includes a control chip, communication components, and a bus connector. In some embodiments, controller 1 may also be configured with a power adapter, control panel, display screen, etc., as needed.

[0031] The power adapter is mainly used to convert AC power to DC power to power the entire ambient lighting device. The control chip can be implemented using various embedded chips, such as Bluetooth SoC (System on Chip), WiFi SoC, MCU (Micro Controller Unit), DSP (Digital Signal Processing), etc. The control chip typically includes a central processing unit (CPU) and memory. The memory and CPU are used to store and execute program instructions to achieve the corresponding functions, respectively. All of these types of control chips can have built-in communication components or can be configured with additional communication components as needed. The communication component can be used to communicate with external devices, such as personal computers or various smartphones. After the user issues various configuration commands through their terminal device, the control chip of controller 1 can receive the configuration commands through the communication component, complete the basic configuration, and control the lamp body 2 to operate. The bus connector is mainly used to connect the lamp body 2 to the bus and provide lighting effect playback commands. Therefore, it provides corresponding pins for the power bus and signal bus. Thus, when the lamp body 2 needs to be connected to controller 1, it can be connected to the bus connector through the corresponding connector of the lamp body 2. The control panel typically provides one or more buttons for switching the controller 1 on and off, selecting various preset lighting effects, etc. The display screen can be used to display various control information to cooperate with the buttons on the control panel and support human-machine interaction. In some embodiments, the control panel and the display screen can be integrated into the same touch screen.

[0032] The controller 1 in the ambient lighting device can receive the target color of the light emitted by the LED beads 21 in the ambient lighting device from an external terminal device. Based on the received target color information, the control chip in controller 1 generates corresponding color control data and sends it to the LED beads 21 in the lamp body 2. This color control data includes gain levels and color data for multiple color channels. Controller 1 analyzes this color control data to determine the operating current value of each color channel, thereby controlling the LED beads 21 in the lamp body 2 to produce the required color and brightness. The LED beads in the lamp body 2 adjust their luminous intensity and color according to the instructions issued by controller 1 to achieve rich and varied lighting effects. These LED beads 21 can be LED beads, which can change their luminous color according to the received current value change sequence. Through the precise control of controller 1, the ambient lighting device can achieve a gradual transition from one color to another, or dynamically change colors according to a preset pattern, thereby creating different atmospheric effects and meeting the user's needs for lighting atmosphere in different scenarios.

[0033] Those skilled in the art will understand that although the various methods in this application are described based on the same concept and thus present commonality among them, they can be performed independently unless otherwise specified. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept; therefore, concepts expressed in the same way, as well as concepts that are appropriately changed for convenience but are expressed differently, should be understood equivalently.

[0034] Unless otherwise expressly stated, the various embodiments disclosed in this application can be combined in a cross-cutting manner to flexibly construct new embodiments, as long as such combination does not depart from the inventive spirit of this application and can meet the needs of the prior art or solve a certain deficiency in the prior art. Those skilled in the art should be aware of such modifications.

[0035] Based on the product architecture and working principle of the ambient lighting device described above, the LED light emission control method of this application can be implemented as a computer program product and run in the controller of the ambient lighting device. Accordingly, referring to Figure 2, in some embodiments, the LED light emission control method of this application includes:

[0036] Step S1100: Obtain color control data for the target color, wherein the color control data includes gain level and color data for multiple color channels;

[0037] In lighting control applications, gain levels typically refer to the intensity levels (current intensity levels) used to control the light emission. Each gain level corresponds to a specific current value, which is set as needed by those skilled in the art. Gain levels affect the intensity and saturation of the light. Color channels refer to the different monochromatic light sources that constitute the composite light emitted by the LED chip. They include multiple primary color channels and at least one white channel. In colored LED chips, the primary color channels typically use the RGB (red, green, blue) color model to generate various colors. The color data in each color channel refers to the specific color value that each color channel needs to achieve, used to adjust the intensity of the corresponding color light. Color data can be represented using 16 bits, meaning the color data range is 0-65536. Specifically, the color data of the red channel determines the intensity of red light; similarly, the color data of the green and blue channels control the brightness of green and blue light respectively, and the color data of the white channel controls the brightness of white light. By independently adjusting the color data of each color channel to adjust the brightness, the composite light color is ultimately synthesized.

[0038] In one embodiment, assuming there are four gain levels, the specific current value corresponding to the first gain level is 4mA, the second gain level is 8mA, the third gain level is 12mA, and the fourth gain level is 16mA, the specific current value is set as I1. When the LED current is consistent (set as I2), the calculation formula for I2 is I2 = I1 × (DATA / 65536), where DATA is the color value corresponding to the channel. That is, when the LED current is consistent, the color value can be adjusted. The LEDs are adjusted so that they can switch between gain levels seamlessly. Assuming the color value of the fourth gain level is 49152, we can calculate I2 = 16mA × (49152 / 65536) = 12mA. Keeping the LED current consistent, we can further calculate the color value when switching to the third gain level, i.e., 12mA = 12mA × (DATA / 65536), DATA = 65536. That is, when the LED current is consistent, the color value needs to change from 49152 to 65536 when switching from the fourth gain level to the third gain level.

[0039] In one embodiment, color data corresponding to each channel of each color emitted by the LED is set as lighting effect control data. This lighting effect control data is set by those skilled in the art before implementation of this application. Using the preset lighting effect control data, the color data of each channel can be determined according to the target color displayed by the target LED, and the LED color dynamic range is preset. The color dynamic range is the range of color changes from darkest to brightest that the LED can produce; this range is set as needed by those skilled in the art. Based on the preset color dynamic range of the target LED, the gain level corresponding to the color value is determined. Then, the gain level corresponding to the target color and the color data corresponding to each channel are encapsulated as the color control data for the target color. The determination of the gain level through the color dynamic range will be explained in subsequent detailed embodiments and will not be elaborated here.

[0040] In another embodiment, if a user wants the ambient light to display a "sky blue" color, the user selects the target color on a device equipped with a Bluetooth chip that controls the LED beads. Then, the system extracts the color data of each channel corresponding to the target color from the preset lighting effect control data in the above specific embodiment. The color data of each channel includes red channel 50, green channel 1200, blue channel 20000, and white channel 4300. Based on the preset color dynamic range of the target LED beads and the brightness requirement of the color "sky blue", the gain level of displaying the color "sky blue" is selected as 2. The color data of red channel 20, green channel 1200, blue channel 20000, white channel 4300, and gain level 2 are encapsulated into color control data corresponding to the target color of the target LED beads.

[0041] After obtaining the color control data, by parsing it, the gain level corresponding to the target color and the color data of each channel can be obtained. In one embodiment, after parsing the gain level corresponding to the target color and the color data of each channel, the common color value corresponding to the overlapping color light formed by multiple color channels after color mixing and the white channel is determined. Finally, the calculated common color value is subtracted from the color data of each color channel. This step is described in detail in the subsequent implementation method and will not be elaborated here. This step ensures that the color saturation will not be too high due to repeated calculation of the white light component in the final light mixing, thereby improving the accuracy of color mixing.

[0042] Step S1200: Based on the rated current value of the gain level, determine the working current value corresponding to the color data of each color channel as the first current value.

[0043] Based on the preset color dynamic range of the target LED, the gain level corresponding to the target color is determined. The determination of the gain level will be detailed in the subsequent implementation method and will not be elaborated here. Then, based on the rated current value of this gain level, the operating current value corresponding to the color data of each color channel is determined, and the calculated operating current value is used as the first current value.

[0044] The rated current value of the gain level corresponding to the target color shall be set as needed by those skilled in the art. The formula for calculating the operating current value corresponding to the color data of each color channel is "∑(G+1)*n*DATA / 65536=I", where G is the gain level, n refers to the total number of gain levels, DATA is the color data, and I is the operating current value.

[0045] In one embodiment, there are a total of 4 gain levels. By parsing the color control data encapsulated with color data and gain levels, it can be obtained that the gain level encapsulated in the color control data is 2, the color data of the red channel is 32768, the color data of the green channel is 16384, the color data of the blue channel is 32768, and the color data of the white channel is 16384. At this time, the working current value can be obtained by using the formula for calculating the working current value. The working current value of the red channel and the blue channel is ∑(2+1)*4*32768 / 65536=6, and the working current value of the green channel and the white channel is ∑(2+1)*4*16384 / 65536=3. Then, the calculated working current value of each channel is used as the first current value.

[0046] Step S1300: Take the working current value corresponding to the applied color of each color channel as the second current value, associate it with the gain level, and determine the current value change sequence of each color channel from its second current value to the current value corresponding to its first current value.

[0047] Similar to the method for calculating the first current value in the above specific embodiments, the operating current value corresponding to the applied color of each color channel in the target LED bead is calculated as the second current value. By precisely controlling each color channel to gradually change from the second current value to the first current value, the light color of the target LED bead gradually changes from the applied color to the target color. In one embodiment, for each color channel, the range of color value changes between the applied color and the target color is determined, and the range of current value changes traversed by the change from the second current value to the first current value is determined by calculating the first current value and the second current value of each channel; then, using the corresponding shift color values ​​of each of the two adjacent gain levels recorded in the shift relationship data, along the shift direction from the second current value to the first current value, the color value change range covering the color step amount corresponding to each gain level can be determined sequentially. The explanation of the color step amount is provided in the subsequent specific embodiments and will not be repeated here. By summing the color step amounts corresponding to the gain levels of each coverage, the total color step amount of the corresponding color channel can be obtained. Then, based on the total color step amount, the current values ​​corresponding to multiple gradation points can be determined from the current value change range. The current values ​​at each time point are constructed into the current value change sequence of the corresponding channel according to the set timing sequence. For details of this step, please refer to the subsequent specific implementation method. It will not be repeated here.

[0048] In another embodiment, the highest operating current value of the lower gain level among two adjacent gain levels is used as a reference as the critical point for switching between a gain level and its two adjacent gain levels. The switching color value corresponding to the highest operating current value of the lower gain level among each two adjacent gain levels is calculated, and then the obtained switching color value is encapsulated in the switching relationship data. For details on calculating the switching color value corresponding to the highest operating current value of the lower gain level among each two adjacent gain levels, please refer to the following specific implementation method, which will not be elaborated here. For example, assuming there are 4 gain levels, and the specific current value corresponding to the first gain level is 4mA, the second gain level is 8mA, the third gain level is 12mA, and the fourth gain level is 16mA, the LED current can be calculated using the formula 'I2=I1×(DATA / 65536)', where I2 is the LED current, I1 is the specific current value corresponding to the gain level, and DATA is the color value. When the LED currents are consistent, the corresponding color value for seamless gain level switching can be calculated. The calculation process is not detailed here, but it can be calculated that when the color value of the fourth gain level is adjusted to 49152, a seamless switch to the third gain level is achieved; when the color value of the fourth gain level is adjusted to 32768, a seamless switch to the second gain level is achieved; and when the color value of the fourth gain level is adjusted to 16384, a seamless switch to the first gain level is achieved.

[0049] In another embodiment, based on the obtained shift relationship data, the color step amount corresponding to each gain level can be determined when the second current value changes to the first current value. Assuming that along the shift direction from the second current value to the first current value, the color value change amount (color step amount) corresponding to the color value change range corresponding to the third gain level is 15386, the color value change amount (color step amount) corresponding to the color value change range corresponding to the second gain level is 32768, and the color value change amount (color step amount) corresponding to the color value change range corresponding to the first gain level is 1846, then the total color step amount can be obtained by accumulating the color step amounts corresponding to each gain level, that is, 15386 + 32768 + 1846 = 50000. In another embodiment, based on the range defined by the total step size of the color gradation, the number of corresponding gradient timing points is determined through preset gradient color gradation units. Assuming the gradient color gradation unit is 100, the number of gradient timing points can be calculated as 50000 / 100 = 500. Assuming the current change range from the second current value (the working current value corresponding to the applied color) to the first current value (the working current value corresponding to the target color) is calculated to be 1mA, based on the number of gradient timing points and the current change range, the unit current change value can be determined as 1mA / 500 = 0.002mA. Based on this determined unit current change value, the timing current value corresponding to each gradient timing point can be determined from the current value change range, and then the current values ​​at each timing point are constructed into a current value change sequence for the corresponding channel according to the time sequence.

[0050] Step S1400: Synchronously control the target LED to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target LED gradually changes from the applied color to the target color.

[0051] After acquiring color control data, determining gain levels, calculating operating current values, and constructing current value change sequences, this embodiment applies these calculation results to actual lighting control. Specifically, the target LED's emission is synchronously controlled based on the current value change sequence calculated for each color channel. That is, the current input of each color channel is gradually adjusted according to a predetermined timing and current value change, thereby precisely controlling the brightness and color of the light.

[0052] In one embodiment, if the target color is "sky blue," the system will gradually adjust the current value of each channel, starting from the currently applied color, based on the current value change sequence of the red, green, blue, and white channels calculated in previous steps. During the adjustment process, the current values ​​of the red and blue channels may increase to enhance the brightness of the blue light, while the current value of the green channel may decrease to reduce the brightness of the green light. Simultaneously, the current value of the white channel will also be adjusted according to a preset sequence to ensure that the brightness of the white light matches the target color. By precisely controlling the current input of each color channel, the light color of the target LED will gradually change from the applied color to the target color, achieving a smooth and precise color transition. This synchronous control not only enables rich color variations and dynamic effects but also allows for the creation of various lighting atmospheres and visual effects according to user needs or preset modes.

[0053] As can be seen from the typical embodiments of this application, the technical solution of this application has many advantages, including but not limited to the following aspects:

[0054] This application acquires color controllable data, including gain levels and color data for multiple color channels. Then, based on the rated current value of the gain level, it determines the operating current value of each color channel as the first current value. Similarly, it determines the operating current value of the applied color for each color channel as the second current value. Following the direction from the second current value to the first current value, it decomposes the entire change process into multiple small steps according to time sequence. Each step corresponds to a unit current change value. Based on the unit current change value, it determines the corresponding time-point current value from the current value change range. Then, it constructs the current value change sequence for each channel by arranging the current values ​​at each time point in the time sequence. This allows for precise current value input to each color channel at each time point in the current value change sequence, thereby enhancing the smoothness of color transitions and the overall fineness of color performance. It ensures smooth transitions between different gain levels and continuous changes in color and brightness.

[0055] Unlike traditional LED light emission control methods, this application effectively avoids abrupt changes in LED color and brightness by introducing gain levels and a precise current control strategy, significantly improving the color adjustment capability and transition smoothness of LEDs in ambient lighting devices. By providing more current intensity levels to the color channels through gain levels, the current value change sequence of each channel can be precisely controlled. Furthermore, based on the current value change range and the corresponding current value at each time point, this application provides a precise current value to each color channel at each time point, ensuring accurate current input to each color channel at every time point in the current value change sequence, thereby enhancing the smoothness of color transitions and the overall color performance's delicacy. This gradation method effectively avoids abrupt current changes, maintains the brightness balance between RGB channels, and improves the accuracy of the final mixed color, making it particularly suitable for applications requiring high-fidelity color reproduction. This application solves the problem in existing technologies where abrupt current changes lead to loss of color gradation, resulting in less smooth color transitions and affecting the overall color performance's delicacy, achieving a more efficient, precise, and smooth lighting control effect.

[0056] Based on any embodiment of the method in this application, referring to Figure 2, before the step of obtaining the color control data of the target color, the following steps are included:

[0057] Step S1000: For the target color displayed by the target LED bead under the reached timing, extract the color data of each channel corresponding to the target color from the lighting effect control data;

[0058] The lighting effect control data is pre-set before implementation of this application. It includes color data for each channel corresponding to each target color and can be stored in the form of a data table. Fields include the target color, color data for each channel, and color data for the white channel. Based on the target color displayed by the target LED at the reached timing, the color data for each channel corresponding to the target color is extracted from the pre-set lighting effect control data for subsequent control of the target LED to display the predetermined target color. In one embodiment, in the lighting effect control data, each target color has a set of color data for each corresponding channel. This data defines the color data that the red, green, blue, and white color channels should achieve at a specific time or under specific conditions. According to the corresponding color data, this color data is represented by 16 data bits, ranging from 0 to 65536, thereby enabling precise control of the brightness and intensity of each color channel. For example, if the user selects the "sky blue" color, the color data corresponding to the "sky blue" color will be extracted from the lighting effect control data, which may include red channel 0, green channel 1200, blue channel 20000, and white channel 4300. These data will be used in subsequent steps to calculate the operating current value in order to precisely control the LEDs to emit the desired color of light.

[0059] Step S1010: Determine the gain level corresponding to the color data by referring to the preset color dynamic range of the target LED;

[0060] In this lighting control system, the gain level corresponding to the color value is determined based on the preset color dynamic range of the target LED. The color dynamic range refers to the range of color changes from darkest to brightest that the LED can produce. This range is preset by the system and set by technicians based on the physical characteristics of the LED and application requirements.

[0061] Specifically, after the system extracts the color data of each channel corresponding to the target color from the lighting effect control data, such as 0 for the red channel, 1200 for the green channel, 20000 for the blue channel, and 4300 for the white channel, the system will refer to this color data and combine it with the color dynamic range of the target LED to determine the gain level that each color channel needs to operate at. The color dynamic range may include multiple gain levels, each corresponding to a different current intensity level, thus affecting the light intensity and saturation.

[0062] In one embodiment, assuming there are four gain levels, and the preset target LED's color dynamic range is 1-65536, the four color dynamic ranges are divided. When the color value falls within a certain range, the corresponding gain level is used. That is, the color dynamic range 1-16384 is used as the first gain level, the color dynamic range 16385-32768 is used as the second gain level, the color dynamic range 32769-49152 is used as the third gain level, and the color dynamic range 49153-65536 is used as the fourth gain level. If the color value of the red channel in the target LED is 20000, then the gain level corresponding to the color value of the red channel in the target LED can be determined as the second gain level.

[0063] Step S1020: Encapsulate the gain level and the color data corresponding to each channel into color control data for the target color.

[0064] This embodiment encapsulates the determined gain level and the data of each color channel as color control data corresponding to the target color. Specifically, the encapsulation operation is performed based on the determined gain level and the color data of each color channel extracted from the lighting effect control data. In one embodiment, if the target color is "sky blue", the determined gain level is 2, and the determined red channel color data is 0, green channel color data is 1200, blue channel color data is 20000, and white channel color data is 4300, then the system combines this information. The encapsulation process involves creating a structured data packet or data object containing all relevant information about the target color. This data packet will contain gain level information and color data for each of the red, green, blue, and white channels. This information is encapsulated together to form a complete color control dataset for subsequent lighting control processes.

[0065] In this embodiment, by identifying the current timing position and extracting the color data corresponding to the target color from preset lighting effect control data, the system can ensure that the color required by the user is displayed at the arrived timing, thereby achieving dynamic and time-precise lighting effects. This method allows the display of light colors not only to be synchronized with the preset scene but also to respond to real-time triggering conditions, such as user input or environmental changes, enhancing the flexibility and adaptability of the lighting control system. Then, by presetting the color dynamic range, the system can determine the most suitable gain level to control the intensity and saturation of the light. Through the setting of the gain level, the system can adjust the light more finely. By encapsulating the gain level and the data of each color channel into a unified color control dataset, a complete and structured data object is provided for subsequent lighting control processes. This encapsulation method simplifies the complexity of lighting control, makes the transmission and processing of color control data more efficient, and ensures data consistency and accuracy.

[0066] Based on any embodiment of the method in this application, referring to Figure 3, color control data for the target color is obtained, including:

[0067] Step S1110: Receive color control data representing the target color transmitted from the application layer;

[0068] The process involves receiving color control data from the application layer, which can be a user interface, control software, or other system components that issue color display requests. In this step, the underlying layer or hardware layer of the lighting control system needs to be prepared to receive these instructions from the application layer. Specifically, when a user selects "sky blue" as the target color on the interface, or when the control software generates a color change request based on a preset mode or automation logic, the application layer generates the corresponding color control data for "sky blue." Subsequently, the application layer passes the generated color control data to the hardware control layer, which is responsible for parsing and executing this data. Upon receiving this data, the hardware control layer performs the color control data parsing operation.

[0069] Step S1120: Parse the color control data to obtain the gain level and color data of each color channel, wherein each color channel includes multiple primary color channels and at least one white channel.

[0070] By parsing the stages of color control data passed from the application layer, the gain level and color data of each color channel are extracted. The color channel includes multiple primary color channels and at least one white channel.

[0071] For each color channel, the system decodes the color data from a 16-bit data format. This data typically ranges from 0 to 65536, representing the intensity or brightness value of the corresponding color light. For example, the red channel data might be 32768, the green channel data 16384, the blue channel data 20000, and the white channel data 8192. These values ​​directly affect the final composite color effect of the mixed light.

[0072] After parsing, a complete set of parameters is obtained, including the gain level and the color data of each channel (red, green, blue, and white). The parsed data is used to calculate the working current value and generate a current value change sequence, ultimately achieving the display of the target color.

[0073] Step S1130: Determine the common color value corresponding to the color light overlap formed by the multiple primary color channels after color mixing and the white channel, and subtract the common color value from the color data of each primary color channel.

[0074] The goal of color mixing and adjustment is to precisely control the final composite light color. This step first requires determining the common color value when the mixed primary color channels coincide with the white channel to form the final color light. This common color value refers to the portion of color intensity contributed by all the primary colors together with the white light. Specifically, the color data for each primary color channel, as well as the color data for the white channel, is analyzed and calculated to determine the color value of the light they collectively produce. This step typically involves color theory, such as the CIE chromaticity diagram, or other color mixing models to ensure color accuracy and consistency.

[0075] Once the common color value is determined, it is subtracted from the color data of each primary color channel. This step is performed to remove color components in the primary color channels that are already contained in the white channels, thereby avoiding duplicate color calculations and excessive color saturation.

[0076] In this embodiment, by receiving color control data transmitted from the application layer (user interface, control software, or other system components that issue color display requests), the lighting control system can respond to user selections or automatic control logic, providing a data foundation for precise control of light color. Through detailed analysis of the color control data, key gain levels and data for each color channel are extracted. This analysis process is crucial for achieving precise color control, converting application layer data into specific parameters usable for light adjustment. By decoding the 16-bit data, the system obtains accurate color values, which form the basis for subsequent calculations of operating current and generation current change sequences, ultimately determining the final display effect of the light.

[0077] By determining the common color value corresponding to the color light that overlaps with the white channel after mixing multiple primary color channels, and subtracting this common color value from the primary color channel data, oversaturation of colors can be avoided. This allows the lighting control system to control color mixing more precisely, ensuring the accuracy of color display and providing a more realistic and expected lighting effect.

[0078] Based on any embodiment of the method in this application, referring to Figure 4, and associating the gain levels, determining the current value change sequence for each color channel as it gradually changes from its second current value to the current value corresponding to its first current value includes:

[0079] Step S1310: Obtain shift relationship data. The shift relationship data includes the corresponding shift color value for each of the two adjacent gain levels. The two shift color values ​​are determined based on the highest operating current value of the lower gain level among the two adjacent gain levels. The two shift color values ​​together define the shift node between the two adjacent gain levels.

[0080] In this step, the highest operating current value corresponding to each gain level is first determined. Specifically, the system calculates two switching color values ​​for each pair of adjacent gain levels. These two color values ​​are determined based on the highest operating current value of the lower gain level, and they define how the system should perform color transitions between these two gain levels. The switching node is the gain transition point during the smooth transition from one gain level to another during the LED color change process. At the switching node, the gain level changes, but because the two switching color values ​​are precisely matched while the operating current remains constant, the observed LED color remains unchanged. For details, please refer to the specific implementation method for seamless gain switching described above; it will not be repeated here.

[0081] In one embodiment, assuming there are four gain levels, denoted as G1, G2, G3, and G4, where G1 is the lowest gain level and G4 is the highest gain level, and the maximum operating current of G1 is 10mA, G2 is 20mA, G3 is 30mA, and G4 is 40mA, then according to the formula for calculating the operating current value in the above embodiment, "∑(G+1)*n*DATA / 65536=I", substituting n=4, G=0, and I=10, the color value DATA1 corresponding to G1 can be calculated. Similarly, the shift color values ​​corresponding to the maximum operating current values ​​of G2, G3, and G4 can also be calculated as DATA2, DATA3, and DATA4. That is, the two shift color values ​​of G2 are DATA1 and DATA2. DATA1 is the shift color value corresponding to the shift node between the first gain level G1 and the second gain level G2, and DATA2 is the shift color value corresponding to the shift node between the second gain level G2 and the third gain level G3.

[0082] Step S1320: For each color channel, determine the range of color value changes between the applied color and the target color, and determine the range of current value changes that the second current value crosses when it changes from the first current value.

[0083] The color value variation range refers to the total change in color value when changing from the applied color to the target color. This total color value variation is the sum of the color value variations corresponding to each gain level covered during the color change process. The color value variation is represented using 16 data bits, ranging from 0 to 65536.

[0084] In one embodiment, firstly, for each color channel, the range of color value changes required to transition from the applied color (i.e., the currently displayed color) to the target color (i.e., the user-selected or system-set color) is calculated. This range of color value changes defines the total amount of color value change required for each color channel when transitioning from one color to another. It should be noted that the color value change range covering each gain level can be determined by using the shift node color value calculated in the above specific embodiment. Then, by summing the color value changes for each gain level, the total amount of color value change corresponding to the color value change range of the corresponding color channel is obtained. The calculation embodiment for the total amount of color value change is provided in subsequent specific embodiments and will not be repeated here.

[0085] Meanwhile, based on the first current value (working current value corresponding to the target color) and the second current value (working current value corresponding to the applied color) calculated for each channel in the above specific implementation, the range of current value variation for each channel is determined.

[0086] In one embodiment, assuming the second current value of the red channel with the applied color is 3mA (which can be calculated according to the previous steps), and the first current value of the target color is 6mA, then the range of current value variation is from 3mA to 6mA.

[0087] Step S1330: Based on the shift relationship data, along the shift direction from the second current value to the first current value, sequentially determine the color value change range covering the corresponding color step amount of each gain level, and accumulate the color step amount of each gain level to obtain the total color step amount of the corresponding color channel.

[0088] The step size for each color channel is determined based on the shift relationship data, and the total step size is calculated. In this step, as mentioned in the specific embodiment above, the shift relationship data is obtained, which includes the shift color value between every two adjacent gain levels. Using these shift color values ​​as a reference, the step size for each gain level is sequentially determined along the direction from the second current value (the operating current value corresponding to the applied color) to the first current value (the operating current value corresponding to the target color), and the steps are accumulated to obtain the total step size.

[0089] In one embodiment, along the shifting direction from the second current value to the first current value, according to the above specific implementation, the amount of color value change covering each gain level when the color value changes can be determined. For convenience, the amount of color value change is used as the color step amount covering the corresponding gain level of the color value change range. By accumulating the color step amount covering each gain level of the color value change range, the total color step amount is obtained. Assuming there are four gain levels, with the highest operating current of the first gain level being 4mA, the second gain level being 8mA, the third gain level being 12mA, and the fourth gain level being 16mA, then based on the calculation of the shift relationship data in the above embodiment, it can be determined that when the color value of the fourth gain level is 49152, it can seamlessly switch to the third gain level; when the third gain level is 43690, it can seamlessly switch to the second gain level; and when the second gain level is 32768, it can seamlessly switch to the first gain level. At this point, assuming the gain level corresponding to the second current value (the working current value corresponding to the applied color) is 3, and the color value is 21844; and the gain level corresponding to the first current value (the working current value corresponding to the target color) is 1, and the color value is 43690, then, along the shift direction from the second current value to the first current value, the covered gain levels are the third gain level, the second gain level, and the first gain level. When covering the third gain level, the corresponding color value change range and the corresponding color value variation amount (color step) is 43690 - 32768 = 218. 46. ​​When covering the second gain level, the color value change (color step) corresponding to the color value change range is 65536-32768=32768. When covering the first gain level, the color value change (color step) corresponding to the color value change range is 65536-43690=21846. The determined color value change range is used as the color step. By accumulating the color step corresponding to each covered gain level, the total color step is calculated to be 21846+32768+21846=76460.

[0090] Step S1340: Based on the total color step, determine the current values ​​corresponding to multiple gradation points from the range of current value changes, and construct the current value change sequence of each point in the corresponding channel according to the time sequence.

[0091] In one embodiment, the current value at each gradient time point is determined based on the total color step size, and a current value change sequence is constructed. In this step, firstly, based on the total color step size calculated in previous embodiments, and the range defined by this total color step size, the corresponding number of gradient time points is determined through preset gradient color step units. The gradient color step units are set as needed by those skilled in the art. The unit current change value is obtained by dividing the current change range across which the second current value changes from the first current value by the corresponding number of gradient time points. This step decomposes the entire color change process into multiple small steps, each corresponding to a color step, thus evenly distributing the color step size throughout the gradient time sequence to ensure the continuity and smoothness of the color change. Based on the unit current change value, the time point current value corresponding to each gradient time point is determined from the current value change range obtained in the above embodiments. Then, the current values ​​at each time point are constructed into a current value change sequence for the corresponding channel according to the time sequence. Specifically, the point-in-time current value corresponding to each gradual change point is determined from the current value change range obtained from the above specific implementation method based on the unit current change value. Please refer to the subsequent specific implementation method; it will not be elaborated here.

[0092] In this embodiment, by calculating the switching color value for each pair of adjacent gain levels and using the highest operating current value of the low gain level as a benchmark, the system can clearly define the switching nodes, thereby achieving precise control during the color gradient process. This avoids light flickering or color jumps caused by sudden current changes, improving the stability of the light display and the naturalness of the gradient effect. Then, the specific range of color and current value changes is determined for each color channel, providing a precise start and end point for subsequent color gradients. By calculating the difference between the applied color and the target color, the system can quantify the amount of variation required for each color channel and determine the range of current value changes, laying the foundation for generating a gradient current value sequence and ensuring the accuracy and consistency of the color transition.

[0093] By calculating and accumulating the color step increments, a detailed gradient stepping process is generated for each color channel. This method not only improves the resolution of the color gradient process but also enhances the smoothness and detail of the gradient effect by precisely controlling the color level changes within each gain level, resulting in a more delicate and richer final lighting effect. Based on the total color step increment, a precise current value change sequence is constructed. By determining the current value at each gradient point and constructing the current value change sequence according to a preset timing, the system can precisely control the light color and brightness at each time point, achieving a smooth and expected color gradient effect, thus improving the performance of the lighting control system and the user experience.

[0094] Based on any embodiment of the method in this application, referring to Figure 5, multiple point-in-time current values ​​corresponding to gradual change points are determined from the current value variation range based on the total color gradation step, including:

[0095] Step S1341: Based on the total amount of color step, determine the corresponding number of gradient time points according to the preset number of gradient color step units.

[0096] According to the above specific implementation, the total number of color level steps can be calculated. Based on the total number of color level steps, the number of gradient color level units can be preset. The number of gradient color level units is set by those skilled in the art according to the desired gradient smoothness. Then, the corresponding number of gradient timing points is determined based on the number of gradient color level units. For example, if the total number of color level steps calculated in the above specific implementation is 5000, and those skilled in the art set the number of gradient color level units to 100, then the number of gradient timing points can be calculated to be 5000 / 100 = 50.

[0097] Step S1342: Divide the current variation amount defined by the current value variation range by the number of gradual change points to obtain the unit current variation value.

[0098] According to the above specific implementation method, the range of current value change that the second current value crosses when changing to the first current value can be determined. Then, the unit current change value is obtained by dividing the current change amount defined by this current change range by the number of gradation points calculated in the above specific implementation method. In one embodiment, assuming the second current value is 10mA and the first current value is 5mA, that is, the current change amount defined by the current change range is 5mA, and the number of gradation points calculated by the above specific implementation method is 50, the unit current change value is calculated as 0.1mA by dividing 5mA by 50. That is, at each gradation point, the current value of the color channel will decrease by 0.1mA until the target current value is finally reached.

[0099] Step S1343: Based on the unit current change value, determine the time point current value corresponding to each gradual change point from the current value change range.

[0100] Based on the unit current change value calculated using the above specific implementation method, the specific current value corresponding to each transition point is determined. Specifically, starting from the initial current value (second current value), the current value at each transition point is calculated step by step according to the unit current change value until the final target current value (first current value) is reached.

[0101] This process involves starting from the beginning of the current value variation range, sequentially subtracting or adding the calculated unit current change value, until the entire variation range is covered. The result of each step is the current value at that transition point. The system arranges these current values ​​at each transition point in chronological order, forming a current value variation sequence to guide the specific current input to the lights at each time point.

[0102] In this embodiment, based on the total number of color step increments and a preset number of gradient color step units, the system can calculate the number of gradient timing points according to the number of gradient color step units, thereby precisely controlling each stage in the color gradient process. This method allows the lighting control system to adjust the number of gradient timing points according to the required gradient smoothness, ensuring the continuity and smoothness of the gradient process, while also providing sufficient flexibility to adapt to different gradient effect requirements. Then, by calculating the unit current change value, the system can determine the specific amount of change in current value at each gradient timing point. This step ensures that the change in current value is uniform and controllable during the gradient process, thereby making the color transition smoother and more precise. In this way, the system can avoid abrupt changes and achieve a more delicate color gradient effect.

[0103] By determining the current value at each transition point based on the unit current change, the system can construct a complete sequence of current value changes, precisely guiding the current input of the light at each time point. This process not only ensures the accuracy of the color gradient but also, by sequentially calculating the current value at each transition point, enables a smooth transition from the initial color to the target color, providing a high-quality color gradient experience.

[0104] Based on any embodiment of the method in this application, please refer to Figure 6. Before synchronously controlling the target LED to emit light according to the current value change sequence corresponding to each channel, the method includes:

[0105] Step S1411: For each color channel, the corresponding color calibration ratio is called to correct the point-in-time current value of the color channel in order to update the point-in-time current value in the current value change sequence.

[0106] For each color channel, the corresponding current value at each time point is adjusted according to the color calibration ratio for that color channel to ensure that the final displayed color is consistent with the target color. The color calibration ratio is preset as needed by those skilled in the art. Specifically, the color calibration ratio for each color channel is extracted from a color calibration database. These ratios may be based on previous color calibration test results and are used to compensate for differences in luminous efficiency or hardware characteristics of different color channels. Then, the system applies these calibration ratios to the currently calculated current value change sequence, correcting the current value at each gradient time point. In one embodiment, if the calibration ratio for the red channel is 1.05, and the currently calculated current value at a certain gradient time point is 5mA, then the calibrated current value will be updated to 5mA multiplied by 1.05, resulting in 5.25mA. Similarly, the green and blue channels will also be corrected accordingly based on their calibration ratios.

[0107] In this embodiment, the current value at each color channel is precisely adjusted by applying a color calibration ratio, thereby ensuring the accuracy and consistency of the light display. This step utilizes data pre-stored in the calibration database, which is based on previous color calibration test results and can compensate for possible differences in luminous efficiency or hardware characteristics between different color channels. In this way, even if there are deviations in the hardware characteristics of different color channels, it can be ensured that the current value at each gradient point, after correction, can accurately reflect the brightness and intensity of the target color, thus achieving a more accurate and high-quality color display effect.

[0108] Based on any embodiment of the method in this application, please refer to Figure 7. Synchronously controlling the target LED to emit light according to the current value change sequence corresponding to each channel includes:

[0109] Step S1421: Summarize the current values ​​of each color channel at the same gradient time point to obtain the total current at that gradient time point;

[0110] For each color channel at the same gradient transition point, the current values ​​at that point are calculated and summarized based on the corrected values ​​from previous implementations. In one embodiment, the current values ​​of the red, green, blue, and white channels at the same gradient transition point are collected, and the current values ​​of each channel are added together to obtain the total current at that gradient transition point. This total current at the gradient transition point reflects the sum of the currents of all color channel LEDs working together at a specific time point to produce the desired color mixing and brightness. For example, if at a gradient transition point the current value of the red channel is 3mA, the green channel is 2mA, the blue channel is 4mA, and the white channel is 1mA, then the total current at that gradient transition point is 10mA.

[0111] Step S1422: Compare the total current with the preset current limit value. When the total current exceeds the current limit value, perform peak reduction processing on the current value at each time point in the same proportion so that the total current does not exceed the current limit value.

[0112] The total current value calculated in the previous specific implementation is compared with the preset current limit value. The current limit value is set by those skilled in the art based on the maximum power carrying capacity of the hardware and safety standards to ensure that the lighting equipment does not exceed its current carrying capacity limit.

[0113] If the calculated total current exceeds the preset current limit, peak clipping will be performed. Peak clipping refers to proportionally adjusting the current value of each color channel at a given time point to reduce the total current to a safe range. Specifically, the system calculates the required current reduction ratio and then reduces the current values ​​of red, green, blue, and any other color channels according to this ratio.

[0114] For example, if the total current is 30mA and the preset current limit is 20mA, then the system needs to reduce the current by 10mA. If the current values ​​of the red, green, and blue channels are 10mA, 15mA, and 5mA respectively, the system will calculate the current reduction required for each channel proportionally to ensure that the total current is reduced to no more than 20mA.

[0115] Step S1423: If the total current at the transition point does not exceed the current limit value, control each color channel of the target LED to work according to its corresponding current value at the transition point.

[0116] The above-described implementation calibrates the current value of each color channel at specific time points and ensures that the total current at the transition point does not exceed the safe current limit. At this point, the system sends control signals to the corresponding LEDs based on the current value of each color channel at specific time points. That is, it precisely drives the LEDs of each color channel according to the corrected current value change sequence described in the above implementation. For example, if the current value of the red channel at a certain transition point is 25mA, the green channel is 16mA, and the blue channel is 30mA, the system will adjust the current of these channels to the specified values. In this way, each color channel can emit light according to a predetermined timing and intensity, mixing to produce the desired target color.

[0117] In addition, the actual operating current is continuously monitored to ensure that it is consistent with the predetermined current value at the time point, and to ensure that the total current is maintained within a safe range.

[0118] In this embodiment, the current value at each color channel is precisely corrected using a color calibration ratio to ensure that the final displayed color matches the target color. This step considers potential differences in luminous efficiency or hardware characteristics between different color channels. Adjusting the current value using a preset color calibration ratio improves the accuracy of color display, making the lighting effect more in line with user expectations and the preset target color. Then, the total current is obtained by summing the current values ​​of each color channel at the same gradient point. This total current is then compared with a preset current limit. When the total current exceeds the preset current limit, the current values ​​at each time point are proportionally clipped to ensure that the current usage of the lighting equipment does not exceed its carrying capacity, thus protecting the hardware and preventing overheating or other potential damage. This safety measure ensures the stable operation of the lighting system and extends the equipment's lifespan. Under the condition of ensuring a safe total current, the color channels of the target LED are controlled to operate according to the predetermined current values ​​at each time point, achieving precise color mixing and gradient effects.

[0119] Referring to Figure 8, another embodiment of this application provides a lamp bead light emission control device, which includes a data acquisition module 5100, a current determination module 5200, a sequence determination module 5300, and a light emission working module 5400. The data acquisition module 5100 is configured to acquire color control data for a target color, the color control data including a gain level and color data for multiple color channels. The current determination module 5200 is configured to determine, based on the rated current value of the gain level, the working current value corresponding to the color data of each color channel as a first current value. The sequence determination module 5300 is configured to use the working current value corresponding to the applied color of each color channel as a second current value, associate it with the gain level, and determine a current value change sequence for each color channel that gradually changes from its second current value to the current value corresponding to its first current value. The light emission working module 5400 is configured to synchronously control the target lamp bead to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target lamp bead gradually changes from the applied color to the target color.

[0120] It also includes: a color data extraction module 5000, a gain level determination module 5010, and a color control data encapsulation module 5020. The color data extraction module 5000 is configured to extract the color data of each channel corresponding to the target color displayed by the target LED bead under the reached timing from the lighting effect control data. The gain level determination module 5010 is configured to determine the gain level corresponding to the color data by referring to the preset color dynamic range of the corresponding target LED bead. The color control data encapsulation module 5020 is configured to encapsulate the gain level and the color data corresponding to each channel into color control data for the target color.

[0121] Based on any embodiment of the device in this application, the data acquisition module 5100 includes: a color control data receiving submodule, configured to receive color control data representing the target color transmitted by the application layer; a color control data parsing submodule, configured to parse the color control data to obtain the gain level and color data of each color channel, wherein each color channel includes multiple primary color channels and at least one white channel; and a common color value subtraction submodule, configured to determine the common color value corresponding to the color light overlap formed by the multiple primary color channels after mixing and the white channel, and subtract the common color value from the color data of each primary color channel.

[0122] Based on any embodiment of the device in this application, the sequence determination module 5300 includes: a shift relationship data acquisition submodule, configured to acquire shift relationship data, the shift relationship data including the corresponding shift color value for each of two adjacent gain levels, the two shift color values ​​being determined based on the highest operating current value of the lower gain level among the two adjacent gain levels, and the two shift color values ​​jointly defining the shift node between the two adjacent gain levels; and a color value and current value variation range determination submodule, configured to determine, for each color channel, the color value variation range between the applied color and the target color, in order to The module includes a color step total calculation submodule, which is configured to determine the color step amount corresponding to each gain level covered by the color value change range along the shift direction from the second current value to the first current value based on the shift relationship data, and accumulate the color step amounts of each gain level to obtain the color step total of the corresponding color channel; and a current value change sequence construction submodule, which is configured to determine multiple time point current values ​​corresponding to the gradation time points from the current value change range based on the color step total, and construct the current value change sequence of the corresponding channel by the time point current values ​​of each time point in sequence.

[0123] Based on any embodiment of the device in this application, the current value change sequence construction submodule includes: a gradient time point color value determination submodule, configured to determine the color value of each gradient time point corresponding to its color value change range within the range defined by the total color step, according to a preset number of gradient time points; and a time point current value conversion submodule, configured to convert the color value of each gradient time point into a corresponding time point current value, wherein the time point current value belongs to the interval defined by the current value change range.

[0124] Based on any embodiment of the device in this application, it further includes: a time-point current value calibration module, configured to, for each color channel corresponding to the current value change sequence, call the color calibration ratio corresponding to the color channel to correct the time-point current value of the color channel, so as to update the time-point current value in the current value change sequence.

[0125] Based on any embodiment of the device in this application, the light-emitting module 5400 includes: a gradient timing point total current calculation submodule, configured to summarize the timing point current values ​​of each color channel at the same gradient timing point to obtain the total current at that gradient timing point; a current value peak clipping processing submodule, configured to compare the total current with a preset current limit value, and when the total current exceeds the current limit value, to perform peak clipping processing on each timing point current value in the same proportion so that the total current does not exceed the current limit value; and a target LED bead working control submodule, configured to control each color channel of the target LED bead to work according to its corresponding timing point current value when the total current at the gradient timing point does not exceed the current limit value.

[0126] Based on any embodiment of this application, referring to FIG9, another embodiment of this application also provides a computer device that can be used as a controller in an ambient lighting device. FIG9 shows a schematic diagram of the internal structure of the computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. The computer-readable storage medium stores an operating system, a database, and a computer program encapsulating computer-readable instructions. The database may store a sequence of control information. When the computer-readable instructions are executed by the processor, the processor can implement a method for controlling the illumination of LED beads. The processor of the computer device provides computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the LED bead illumination control method of this application. The network interface of the computer device is used for communication with a terminal. Those skilled in the art will understand that the structure shown in FIG9 is merely a block diagram of a portion of the structure related to the solution of this application and does not constitute a limitation on the computer device to which the solution of this application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0127] In this embodiment, the processor executes the specific functions of each module and its sub-modules in Figure 8, and the memory stores the program code and various types of data required to execute the above modules or sub-modules. The network interface is used for data transmission between the user terminal and the server. In this embodiment, the memory stores the program code and data required to execute all modules / sub-modules in the LED light emission control device of this application, and the server can call the server's program code and data to execute the functions of all sub-modules.

[0128] This application also provides a non-volatile computer-readable storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the LED light emission control method described in any embodiment of this application.

[0129] This application also provides a computer program product, including a computer program / instructions that, when executed by one or more processors, implement the steps of the LED light emission control method described in any embodiment of this application.

Claims

1. A method for controlling the light emission of an LED bead, characterized in that, include: Acquire color control data for the target color, the color control data including gain level and color data for multiple color channels; Based on the rated current value of the gain level, the working current value corresponding to the color data of each color channel is determined as the first current value. The working current value corresponding to the applied color of each color channel is used as the second current value. The gain level is associated with the second current value to determine the current value change sequence of each color channel from its second current value to the current value corresponding to its first current value. The target LED bead is synchronously controlled to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target LED bead gradually changes from the applied color to the target color.

2. The LED light emission control method according to claim 1, characterized in that, Before obtaining the color control data for the target color, the following steps are included: For the target color displayed by the target LED bead at the reached time sequence, extract the color data of each channel corresponding to the target color from the lighting effect control data; The gain level corresponding to the color data is determined by referring to the preset color dynamic range of the target LED. The gain level and the corresponding color data of each channel are encapsulated into color control data for the target color.

3. The LED light emission control method according to claim 1, characterized in that, Obtain the color control data for the target color, including: Receive color control data representing the target color transmitted from the application layer; The color control data is analyzed to obtain the gain level and color data of each color channel, wherein each color channel includes multiple primary color channels and at least one white channel; After determining the common color value corresponding to the color light overlapped with the white channel after the multiple primary color channels are mixed, the color data of each primary color channel is subtracted from the common color value.

4. The LED light emission control method according to claim 1, characterized in that, Associated with the gain levels, determine the current value change sequence for each color channel as it gradually changes from its second current value to the corresponding first current value, including: Acquire shift relationship data, which includes the shift color value corresponding to each of the two adjacent gain levels. The two shift color values ​​are determined based on the highest operating current value of the lower gain level among the two adjacent gain levels. The two shift color values ​​together define the shift node between the two adjacent gain levels. For each color channel, determine the range of color value variation between the applied color and the target color, and determine the range of current value variation that the second current value crosses when it changes from the first current value. Based on the shift relationship data, along the shift direction from the second current value to the first current value, the color value change range is sequentially determined to cover the color step amount corresponding to each gain level. The color step amount of each gain level is accumulated to obtain the total color step amount of the corresponding color channel. Based on the total color step, multiple time point current values ​​corresponding to the gradual change time points are determined from the current value change range, and the current values ​​at each time point are constructed into a current value change sequence for the corresponding channel according to the time sequence.

5. The LED light emission control method according to claim 4, characterized in that, Based on the total color step, multiple point-in-time current values ​​corresponding to the gradual change points are determined from the range of current value changes, including: Based on the total number of color step increments, the corresponding number of gradient timing points is determined according to the preset number of gradient color step units. The unit current change value is obtained by dividing the current change amount defined by the current change range by the number of gradual change points. Based on the unit current change value, the time point current value corresponding to each gradual change point is determined from the current value change range.

6. The lamp bead light emission control method according to any one of claims 1 to 5, characterized in that, Before synchronously controlling the target LED to emit light according to the corresponding current value change sequence of each channel, the following steps are included: For each color channel, the corresponding color calibration ratio is called to correct the point-in-time current value of that color channel, so as to update the point-in-time current value in the current value change sequence.

7. The lamp bead light emission control method according to any one of claims 1 to 5, characterized in that, Synchronously control the target LED to emit light based on the corresponding current value change sequence of each channel, including: By summing the current values ​​of each color channel at the same gradient point, the total current at that gradient point can be obtained. The total current is compared with a preset current limit value. When the total current exceeds the current limit value, the current values ​​at each time point are proportionally reduced to ensure that the total current does not exceed the current limit value. If the total current at the transition point does not exceed the current limit value, control each color channel of the target LED to operate according to its corresponding current value at that point.

8. A lamp bead light emission control device, characterized in that, include: The data acquisition module is configured to acquire color control data of the target color, the color control data including gain level and color data of multiple color channels; The current determination module is configured to determine the working current value corresponding to the color data of each color channel as the first current value based on the rated current value of the gain level. The sequence determination module is configured to use the working current value corresponding to the applied color of each color channel as the second current value, associate it with the gain level, and determine the current value change sequence of each color channel from its second current value to the current value corresponding to its first current value. The light-emitting module is configured to synchronously control the target LED to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target LED gradually changes from the applied color to the target color.

9. An ambient lighting device, characterized in that, The device includes a controller and at least one LED, the controller being configured to perform the steps of the method as described in any one of claims 1 to 7 to control the LED to emit light.

10. A computer program product, characterized in that, Includes a computer program / instruction, which, when executed by a processor, performs the steps of the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Control circuit and electronic device using control circuit

    CN112305947A

  • Method and device for controlling gradual change effect of intelligent bulb

    CN114245545A

  • Method for compensating brightness and chromaticity of display device and related equipment

    CN114299858A

  • Multi-primary-color LED light emitting method and system

    CN114727442A

  • Light control method and device, product, medium and light control equipment

    CN116033638A