Ambient light equipment and lamp bead light emitting control method, device, medium and product
By gradually adjusting the current value of the lamp beads in the ambient light equipment, using gain gears and fine current control, a smoother and more accurate color transition is achieved, which solves the problems of insufficiently smooth color transition and sudden brightness changes in the existing technology, and improves It improves the color adjustment ability and the fineness of color expression.
Patent Information
- Application Number
- CN202410855790.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The color transition of lamp beads in existing ambient lighting equipment is not smooth enough, resulting in loss of color levels and sudden changes in brightness, affecting the delicacy of the overall color performance. Especially in high-fidelity color reproduction applications, it is difficult to maintain the brightness balance between RGB channels.
By obtaining the color control data of the target color, including gain gears and color data of multiple color channels, determine the operating current value of each color channel, and gradually adjust the current value to achieve gradual changes, ensuring that accurate current is provided at each time point. input to avoid sudden changes in current and maintain the continuity of color and brightness.
It significantly improves the color adjustment ability and transition smoothness of lamp beads in ambient lighting equipment, improves the delicacy of overall color performance and the accuracy of final mixed colors, and is suitable for high-fidelity color reproduction applications.
Smart Images

Figure CN118400832B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of lighting control, and in particular to an atmosphere lamp device and a lamp bead light emission control method, device, medium and product. Background Art
[0002] The light-emitting control of lamp beads in atmosphere lighting equipment is the key to achieving various lighting effects. Lamp beads are usually composed of light-emitting diodes (LEDs) of three basic colors: red, green, and blue (RGB). The desired color is produced by adjusting the brightness of each color LED. In addition, in order to achieve richer color performance, some systems will also add white light (W) LEDs to form an RGBW four-color mixture. The light-emitting control of lamp beads is usually based on pulse width modulation (PWM) or analog dimming technology. PWM technology controls the average brightness of LEDs by quickly alternating between lighting and extinguishing them, while analog dimming adjusts the brightness by adjusting the current flowing through the LEDs. In the RGBW system, the current value of each color channel determines the brightness of that color, which in turn affects the final mixed color.
[0003] In the prior art, when the color of the lamp beads needs to change, a jump method based directly on the current value before and after the change is usually used to adjust the brightness. Although this method is easy to operate, it has obvious defects. It is easy to cause the loss of color levels, making the color transition not smooth enough, and causing sudden changes in color and brightness, which affects the delicacy of the overall color performance; at the same time, due to the sudden change in current, the brightness balance between the RGB channels is easily disturbed, which will reduce the accuracy of the final mixed color, especially in applications that require high-fidelity color reproduction. Summary of the invention
[0004] The purpose of this application is to provide an atmosphere lamp device and a lamp bead light control method, device, medium and product.
[0005] According to one aspect of the present application, a method for controlling light emission of a lamp bead is provided, comprising:
[0006] Acquire color control data of a target color, wherein the color control data includes a gain level and color data of multiple color channels;
[0007] Based on the rated current value of the gain gear, determine the working current value corresponding to the color data of each color channel as the first current value;
[0008] Taking the working current value corresponding to the applied color of each color channel as the second current value, associating it with the gain gear, and determining a current value change sequence corresponding to the first current value of each color channel from its second current value gradually changing to its first current value;
[0009] The target lamp beads are synchronously controlled to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target lamp beads gradually changes from the applied color to the target color.
[0010] According to another aspect of the present application, a lamp bead light emitting control device is provided, comprising:
[0011] A data acquisition module, configured to acquire color control data of a target color, wherein the color control data includes a gain level and color data of multiple color channels;
[0012] a current determination module, configured to determine, based on the 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;
[0013] A 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 the gain gear, and determine a current value change sequence corresponding to the first current value of each color channel from its second current value;
[0014] The light-emitting working module 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.
[0015] According to another aspect of the present application, an atmosphere lamp device is provided, comprising a controller and at least one light-emitting lamp bead, wherein the controller is used to execute the steps of the lamp bead light-emitting control method.
[0016] According to another aspect of the present application, a computer program product is provided, including a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the lamp bead light emission control method are executed.
[0017] The technical solution of this application has many advantages, including but not limited to the following aspects:
[0018] The present application obtains color controllable data including the gain gear and the color data of multiple color channels, and then determines the working current value of each color channel as the first current value based on the rated current value of the gain gear. Similarly, the working current value of the applied color of each color channel is determined as the second current value. Along the direction from the second current value to the first current value, the entire change process is decomposed into multiple small steps according to the time sequence, each step corresponds to a unit current change value, and the time point current value corresponding to each time point is determined from the current value change range according to the unit current change value, and then the current values of each time point are constructed into the current value change sequence of the corresponding channel according to the time sequence. It can be achieved that each color channel is provided with an accurate current value input at each time point in the current value change sequence, thereby enhancing the smoothness of the color transition and the delicacy of the overall color performance, ensuring that the transition between different gain gears is smooth and the changes in color and brightness are continuous.
[0019] Different from the traditional lamp bead light control method, this application effectively avoids the sudden change of lamp bead color and brightness by introducing gain gears and fine current control strategies, and significantly improves the color adjustment ability and transition smoothness of lamp beads in atmosphere lamp equipment. Gain gears are used to provide more current intensity levels for color channels, so that the current value change sequence of each channel can be finely controlled.
[0020] In addition, based on the current value variation range and the current value corresponding to each time point determined, the present application provides accurate current values for each color channel at each time point, ensuring that accurate current value input is provided to each color channel at each time point in the current value variation sequence, thereby enhancing the smoothness of color transition and the delicacy of overall color performance. This gradient method effectively avoids current mutations, maintains the brightness balance between RGB channels, and improves the accuracy of the final mixed color, and is particularly suitable for applications that require high-fidelity color reproduction.
[0021] The present application solves the problem in the prior art that the sudden change of current causes the loss of color levels, resulting in an unsmooth color transition and affecting the delicacy of the overall color performance, and achieves a more efficient, precise and smooth lighting control effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a schematic diagram of the electrical structure of an exemplary ambient light device of the present application;
[0024] Figure 2 This is a flow chart of a typical embodiment of the lamp bead light emitting control method of the present application;
[0025] Figure 3 A schematic diagram of the process of packaging color control data in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of the process of obtaining color control data in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of a flow chart for determining a current value change sequence in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of a flow chart for calculating the current value at a time point in an embodiment of the present application;
[0029] Figure 7 This is a schematic diagram of the process of correcting the current value at a time point in the embodiment of the present application;
[0030] Figure 8 This is a schematic diagram of the process of synchronously controlling the light emission of target lamp beads in an embodiment of the present application;
[0031] Fig. 9 This is a principle block diagram of the lamp bead light emitting control device of the present application;
[0032] Fig.10 A schematic diagram of the structure of a computer device used in this application. DETAILED DESCRIPTION
[0033] See also Figure 1 As can be seen from the structural schematic diagram of an atmosphere lamp device provided in an embodiment of the present application, the atmosphere lamp device includes a controller 1 and a lamp body 2. The lamp body 2 is electrically connected to the controller 1 so as to accept the control of the computer program running in the controller 1 and work together to realize the lighting effect playback.
[0034] The controller 1 generally includes a control chip, a communication component, and a bus connector. In some embodiments, the controller 1 may also be configured with a power adapter, a control panel, a display screen, etc. as required.
[0035] The power adapter is mainly used to convert the mains electricity into direct current so as to power the entire atmosphere lamp device. The control chip can be implemented by various embedded chips, such as Bluetooth SoC (System on Chip), WiFi SoC, MCU (Micro Controller Unit), DSP (Digital Signal Processing) and other types of chips. The control chip usually includes a central processing unit and a memory, and the memory and the central processing unit are used to store and execute program instructions respectively to realize the corresponding functions. The above various types of control chips can have their own communication components, or they can be additionally configured with communication components as needed. The communication component can be used to communicate with external devices, for example, it can communicate with terminal devices such as personal computers or various smart phones, so that after the user issues various configuration instructions through his terminal device, the control chip of the controller 1 can receive the configuration instructions through the communication component and complete the basic configuration to control the lamp body 2 to work. The bus connector is mainly used to connect the power supply to the lamp body 2 connected to the bus and provide the light effect playback instruction, so that the corresponding pins of the power bus and the signal bus are provided. Therefore, when the lamp body 2 needs to be connected to the controller 1, it can be connected to the bus connector through the corresponding connector of the lamp body 2. The control panel usually provides one or more buttons for implementing on / off control of the controller 1, selecting various preset lighting effect control modes, etc. The display screen can be used to display various control information so as to cooperate with the buttons in the control panel to support the implementation of human-computer interaction functions. In some embodiments, the control panel and the display screen can be integrated into the same touch display screen.
[0036] The controller 1 in the atmosphere lamp device can receive the target color that the light-emitting lamp beads 21 in the atmosphere lamp device need to emit from the external terminal device, and then according to the received target color information, the control chip in the controller 1 will generate corresponding color control data and send it to the lamp beads 21 in the lamp body 2. These color control data include gain gears and color data of multiple color channels. The controller 1 determines the working current value of each color channel by parsing these color control data, and then controls the lamp beads 21 in the lamp body 2 to produce the required color and brightness. The lamp beads 21 in the lamp body 2 adjust their luminous intensity and color according to the instructions issued by the controller 1 to achieve a colorful lighting effect. These lamp beads 21 can be LED lamp beads, which can change the luminous color according to the received current value change sequence. Through the precise control of the controller 1, the atmosphere lamp device can realize a gradual change from one color to another, or perform dynamic color changes according to a preset mode, thereby creating different atmosphere effects to meet the user's needs for lighting atmosphere in different scenes.
[0037] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.
[0038] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.
[0039] According to the product architecture and working principle of the above-mentioned atmosphere lamp device, the lamp bead light emission control method of the atmosphere lamp device of the present application can be implemented as a computer program product and run in the controller of the atmosphere lamp device. Figure 2 In some embodiments, the lamp bead light emitting control method of the present application includes:
[0040] Step S1100, obtaining color control data of a target color, wherein the color control data includes a gain level and color data of multiple color channels;
[0041] In the application of light emission control, the gain gear usually refers to the intensity level (current intensity level) used to control the light emission, where each gain gear corresponds to a specific current value, which is set by technicians in this field as needed. The gain gear affects the intensity and saturation of the light. The color channel refers to the different monochromatic light sources that constitute the composite light emitted by the lamp beads, which include multiple primary color channels and at least one white channel. In colored lamp beads, the primary color channels usually use the RGB (red, green, blue) color model to produce various colors. The color data in each color channel refers to the specific color value that each color channel needs to achieve, which is used to adjust the intensity of the corresponding color light. The color data can be represented by 16-bit data bits, that is, the color data range is 0-65536. Among them, the color data of the red channel will determine the intensity of the red light. Similarly, the color data of the green channel and the blue channel control the brightness of the green light and the blue light respectively, and the color data of the white channel will control the brightness of the white light; the brightness is adjusted by independently adjusting the color data of each color channel, and finally the composite light color is synthesized.
[0042] In one embodiment, assuming that there are 4 gain gears, the specific current value corresponding to the first gain gear is 4mA, the specific current value corresponding to the second gain gear is 8mA, the specific current value corresponding to the third gain gear is 12mA, and the specific current value corresponding to the fourth gain gear is 16mA. The specific current value is set to I1. When the lamp bead current is consistent (set to I2), the calculation formula of I2 is I2=I1×(DATA / 65536), where DATA is the color value corresponding to the channel, that is, when the lamp bead current is consistent, the color value can be adjusted by adjusting the color value. Adjust so that the lamp beads can switch gears without feeling. Assuming that the color value of the fourth gain gear is 49152 at this time, it can be calculated that I2=16mA×(49152 / 65536)=12mA. At this time, the lamp bead current is kept consistent. The color value when switching to the third gain gear can be further calculated, that is, 12mA=12mA×(DATA / 65536), DATA=65536, that is, when the lamp bead current is consistent, when the fourth gain gear is switched to the third gain gear, the color value needs to be changed from 49152 to 65536.
[0043] In one embodiment, the color data of each channel corresponding to each color emitted by the lamp bead is set as the lighting effect control data. The lighting effect control data of this step is set by those skilled in the art before the implementation of this application. Through the preset lighting effect control data, the color data of each channel corresponding to the target color displayed by the target lamp bead can be determined, and the dynamic range of the lamp bead color can be preset. The color dynamic range is the range of color changes from the darkest to the brightest that the lamp bead can produce. The range of changes is set by those skilled in the art as needed. Based on the preset color dynamic range of the corresponding target lamp bead, the gain gear corresponding to the color value is determined, and then the gain gear corresponding to the target color and the color data corresponding to each channel are packaged as the color control data of the target color. The gain gear is determined by the color dynamic range. Please refer to the subsequent specific implementation method, which will not be repeated here.
[0044] In another embodiment, the user wants the ambient light to display the color of "sky blue". At this time, the user selects the target color on the device equipped with the Bluetooth chip for controlling the lamp beads, and then the system extracts the color data of each channel corresponding to the target color from the lighting effect control data preset 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, and according to the preset color dynamic range of the target lamp bead and the brightness requirement of the color "sky blue", the gain level of 2 for displaying the color "sky blue" is selected, and the color data of red channel 50, green channel 1200, blue channel 20000, white channel 4300 and gain level 2 are packaged as color control data of the target lamp bead corresponding to the target color.
[0045] After obtaining the color control data, the gain level and color data of each channel corresponding to the target color encapsulated therein can be obtained by parsing the color control data. In one embodiment, after obtaining the gain level and color data of each channel corresponding to the target color by parsing, the common color value corresponding to the color light overlapped by the white channel after multiple color channels are mixed is determined, and finally the color data of each color channel is deducted from the calculated common color value. For this step, please refer to the subsequent specific implementation method, which will not be repeated here. The implementation of this step ensures that in the final light mixing, there will be no problem of excessive color saturation due to repeated calculation of the white light component, thereby improving the accuracy of color mixing.
[0046] Step S1200: Based on the rated current value of the gain gear, determine the working current value corresponding to the color data of each color channel as the first current value;
[0047] According to the preset color dynamic range of the target lamp bead, the gain gear corresponding to the target color is determined, wherein the determination of the gain gear is referred to the subsequent specific implementation method, which will not be repeated here. Then, according to the rated current value of the gain gear, the working current value corresponding to the color data of each color channel is determined, and the calculated working current value is used as the first current value.
[0048] The rated current value of the gain level corresponding to the target color is set by the technicians in this field as needed. The calculation formula of the working 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 number of gain levels, DATA is the color data, and I is the working current value.
[0049] In one embodiment, a total of 4 gain gears are set in this embodiment. By parsing the color control data encapsulated with color data and gain gears, it can be obtained that the gain gear 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, through the calculation formula of the working current value, it can be obtained that the working current values of the red channel and the blue channel are ∑(2+1)∗4 ∗32768 / 65536=6, and the working current values of the green channel and the white channel are ∑(2+1)∗4 ∗16384 / 65536=3, and then the calculated working current values of each channel are used as the first current value.
[0050] Step S1300, taking the working current value corresponding to the applied color of each color channel as the second current value, associating it with the gain gear, and determining a current value change sequence for each color channel that gradually changes from its second current value to its first current value;
[0051] The method of calculating the first current value is the same as the method of calculating the first current value in the above-mentioned specific implementation manner, and the working current value corresponding to the applied color of each color channel in the target lamp bead is calculated as the second current value. By precisely controlling each color channel to synchronously change from the second current value to the first current value step by step, the light color of the target lamp bead is gradually changed from the applied color to the target color. In one embodiment, for each color channel, the color value variation range between the applied color and the target color is determined, and the current value variation range spanned 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, through the corresponding shift color values of each adjacent two gain gears recorded in the shift relationship data, along the shift direction from the second current value to the first current value, the color value variation range covering the color scale step corresponding to each gain gear can be determined in turn, wherein, for the explanation of the color scale step, please refer to the subsequent specific implementation manner, which will not be repeated here. By accumulating the color scale step amounts corresponding to each covered gain level, the total color scale step amount of the corresponding color channel can be obtained. Then, based on the total color scale step amount, the time point current values corresponding to multiple gradual change time points can be determined from the current value change range. The current values at each time point are constructed into a current value change sequence of the corresponding channel according to the set timing. For the detailed steps of this step, please refer to the subsequent specific implementation method, which will not be repeated here.
[0052] In another embodiment, the highest operating current value of the low gain gear among two adjacent gain gears is used as a reference as the critical point for switching between the gain gear and its two adjacent gain gears; the shift color value corresponding to the highest operating current value of the low gain gear among every two adjacent gain gears is calculated, and then the obtained shift color value is encapsulated into the shift relationship data, wherein the shift color value corresponding to the highest operating current value of the low gain gear among every two adjacent gain gears is calculated. Please refer to the subsequent specific implementation method, which will not be repeated here. For example, assuming that there are 4 gain gears, and the specific current value corresponding to the first gain gear is 4mA, the specific current value corresponding to the second gain gear is 8mA, the specific current value corresponding to the third gain gear is 12mA, and the specific current value corresponding to the fourth gain gear is 16mA. The lamp bead current can be calculated by the formula 'I2=I1×(DATA / 65536)', where I2 is the lamp bead current, I1 is the specific current value corresponding to the gain gear, and DATA is the color value. At this time, when the lamp bead current is consistent, the corresponding color value when the lamp bead is switched without sense can be calculated. The calculation process is not repeated here. That is, through calculation, it can be obtained that when the color value of the fourth gain gear is adjusted to 49152, it can be switched to the third gain gear without sense, when the color value of the fourth gain gear is adjusted to 32768, it can be switched to the second gain gear without sense, and when the color value of the fourth gain gear is adjusted to 16384, it can be switched to the first gain gear without sense.
[0053] In another embodiment, based on the obtained shift relationship data, the color scale step amount corresponding to each gain gear covered when the second current value changes to the first current value can be determined. Assuming that along the shift direction from the second current value to the first current value, the color value change amount (color scale step amount) corresponding to the color value change range corresponding to the third gain gear is 15386, the color value change amount (color scale step amount) corresponding to the color value change range when covering the second gain gear is 32768, and the color value change amount (color scale step amount) corresponding to the color value change range when covering the first gain gear is 1846. At this time, the total color scale step amount can be obtained by accumulating the color scale step amounts corresponding to each gain gear, that is, 15386+32768+1846=50000. In another embodiment, based on the range defined by the total amount of the color scale step, the number of corresponding gradient time points is determined through the preset gradient color scale unit. Assuming that the gradient color scale unit is 100, the number of gradient time points can be calculated to be 50000 / 100=500. Assuming that 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 1mA, based on the number of gradient time points and the current change range, the unit current change value can be determined to be 1mA / 500=0.002mA. Based on the determined unit current change value, the time point current value corresponding to each gradient time point can be determined from the current value change range, and then the current values of each time point are constructed into the current value change sequence of the corresponding channel in time sequence.
[0054] Step S1400, synchronously controlling the target lamp beads to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target lamp beads gradually changes from the applied color to the target color.
[0055] After completing the acquisition of color control data, determination of gain gear, calculation of working current value and construction of current value change sequence, this embodiment applies these calculation results to actual lighting control. Specifically, the light emission of the target lamp beads is synchronously controlled according to the current value change sequence calculated for each color channel. That is, according to the established timing and current value change, the current input of each color channel is gradually adjusted, so as to finely control the brightness and color of the light.
[0056] 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 according to the current value change sequence of the red, green, blue and white channels calculated in the previous step. 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. At the same time, 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 lamp bead will gradually change from the applied color to the target color, achieving a smooth and precise color transition. This synchronous control can not only achieve rich color changes and dynamic effects, but also create a variety of lighting atmospheres and visual effects according to user needs or preset modes.
[0057] It can be known from the typical embodiments of the present application that the technical solution of the present application has many advantages, including but not limited to the following aspects:
[0058] The present application obtains color controllable data including the gain gear and the color data of multiple color channels, and then determines the working current value of each color channel as the first current value based on the rated current value of the gain gear. Similarly, the working current value of the applied color of each color channel is determined as the second current value. Along the direction from the second current value to the first current value, the entire change process is decomposed into multiple small steps according to the time sequence, each step corresponds to a unit current change value, and the time point current value corresponding to each time point is determined from the current value change range according to the unit current change value, and then the current values of each time point are constructed into the current value change sequence of the corresponding channel according to the time sequence. It can be achieved that each color channel is provided with an accurate current value input at each time point in the current value change sequence, thereby enhancing the smoothness of the color transition and the delicacy of the overall color performance, ensuring that the transition between different gain gears is smooth and the changes in color and brightness are continuous.
[0059] Different from the traditional lamp bead light control method, the present application effectively avoids the sudden change of lamp bead color and brightness by introducing gain gears and fine current control strategies, and significantly improves the color adjustment ability and transition smoothness of lamp beads in atmosphere lamp equipment. More current intensity levels are provided for color channels through gain gears, so that the current value change sequence of each channel is finely controlled. In addition, based on the current value change range and the time point current value corresponding to each time point determined, the present application provides an accurate current value for each color channel at each time point, ensuring that each color channel is provided with an accurate current value input at each time point in the current value change sequence, thereby enhancing the smoothness of color transition and the delicacy of overall color performance. This gradient method effectively avoids current mutations, maintains the brightness balance between RGB channels, improves the accuracy of the final mixed color, and is particularly suitable for applications requiring high-fidelity color reproduction. The present application solves the problem in the prior art that the sudden change of current causes the loss of color levels, makes the color transition not smooth enough, and affects the delicacy of the overall color performance, and achieves a more efficient, accurate and smooth lighting control effect.
[0060] Based on any embodiment of the method of this application, please refer to Figure 3 , before the step of obtaining the color control data of the target color, include:
[0061] Step S1000: for the target color displayed by the target lamp bead at the reached timing, extract the color data of each channel corresponding to the target color from the lighting effect control data;
[0062] The lighting effect control data is pre-set before the implementation of this application, which includes the color data of each channel corresponding to each target color, and can be stored in the form of a data table, and the fields include the target color, the color data of each channel, and the color data of the white channel. Based on the target color displayed by the target lamp bead at the time sequence that has been reached, the color data of each channel corresponding to the target color is extracted from the pre-set lighting effect control data, so as to be used for the subsequent control of the target lamp bead to display the predetermined target color. In one embodiment, in the lighting effect control data, each target color has a set of color data of each channel corresponding to it, which defines the color data that each color channel of red, green, blue and white should reach at a specific time point or under certain conditions. According to the corresponding color data, these color data are represented by 16-bit data bits, ranging from 0 to 65536, so that the brightness and intensity of each color channel can be accurately controlled. For example, if the user selects the color "sky blue", the color data corresponding to the color "sky blue" 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 accurately control the lamp beads to emit the desired color light.
[0063] Step S1010, determining the gain level corresponding to the color data with reference to the preset color dynamic range of the corresponding target lamp bead;
[0064] In the lighting control system, this embodiment determines the gain level corresponding to the color value according to the preset color dynamic range of the target lamp bead. The color dynamic range refers to the range of color changes from the darkest to the brightest that the lamp bead can produce. This range is preset by the system and set by the technician according to the physical characteristics of the lamp bead and application requirements.
[0065] Specifically, after the system extracts the color data of each channel corresponding to the target color from the lighting 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 these color data and combine them with the color dynamic range of the target lamp beads to determine the gain level that each color channel needs to work. The color dynamic range may include multiple gain levels, each of which corresponds to a different current intensity level, thus affecting the intensity and saturation of the light.
[0066] In one embodiment, assuming that there are 4 gain gears, the preset color dynamic range of the target lamp bead is 1-65536, and 4 color dynamic ranges are divided. When the color value falls within any range, the corresponding gain gear is used, that is, the color dynamic range of 1-16384 is used as the first gain gear, the color dynamic range of 16385-32768 is used as the second gain gear, the color dynamic range of 32769-49152 is used as the third gain gear, and the color dynamic range of 49153-65536 is used as the fourth gain gear. If the color value of the red channel in the target lamp bead is 20000, it can be determined that the gain gear corresponding to the color value of the red channel in the target lamp bead is the second gear.
[0067] Step S1020: Encapsulate the gain level and the color data corresponding to each channel into color control data of the target color.
[0068] This embodiment encapsulates the determined gain gear and the data of each color channel as the color control data corresponding to the target color. Specifically, the encapsulation operation is performed based on the determined gain gear and the color data of each color channel previously extracted from the lighting control data. In one embodiment, if the target color is "sky blue", the gain gear is determined to be 2, and the red channel color data is determined to be 0, the green channel color data is 1200, the blue channel color data is 20000, and the white channel color data is 4300, then the system combines this information. The encapsulation process involves creating a structured data packet or data object that contains all relevant information about the target color. This data packet will contain gain gear information, as well as color data for each red, green, blue and white channel. This information is encapsulated together to form a complete color control data set for subsequent lighting control processes.
[0069] In this embodiment, by identifying the current timing position and extracting the color data corresponding to the target color from the preset lighting effect control data, the system can ensure that the color required by the user is displayed at the reached timing, thereby achieving a dynamic and time-accurate lighting effect. This method allows the display of light colors to not only be synchronized with the preset scene, but also to respond to real-time trigger conditions, such as user input or environmental changes, thereby enhancing the flexibility and adaptability of the lighting control system; then, by presetting the color dynamic range, the system can determine the most appropriate gain gear to control the intensity and saturation of the light. By setting the gain gear, the system can adjust the light more finely, and by encapsulating the gain gear and the data of each color channel into a unified color control data set, a complete and structured data object is provided for the subsequent lighting control process. This encapsulation method simplifies the complexity of lighting control, makes the transmission and processing of color control data more efficient, and ensures the consistency and accuracy of the data.
[0070] Based on any embodiment of the method of this application, please refer to Figure 4 , get the color control data of the target color, including:
[0071] Step S1110, receiving color control data representing the target color transmitted by the application layer;
[0072] The process of receiving color control data transmitted by the application layer, where the application layer can be a user interface, control software, or other system components that issue color display requests. In this step, the bottom layer or hardware layer of the lighting control system needs to be prepared to receive these instructions issued by the application layer. Specifically, when the user selects "sky blue" as the target color on the interface, or the control software generates a color change request according to a preset mode or automation logic, the application layer will generate color control data corresponding to "sky blue". Subsequently, the application layer passes the generated color control data to the hardware control layer responsible for parsing and executing this data. After receiving this data, the hardware control layer will parse the color control data.
[0073] Step S1120, parsing the color control data to obtain the gain level and color data of each color channel, wherein each color channel includes a plurality of primary color channels and at least one white channel;
[0074] By parsing the color control data transmitted from the application layer, the gain level and the color data of each color channel are extracted therefrom, wherein the color channel includes a plurality of primary color channels and at least one white channel.
[0075] For each color channel, the system decodes the color data from the 16-bit data format. The range of these data is usually 0 to 65536, representing the intensity or brightness value of the corresponding color light. For example, the data of the red channel may be 32768, the data of the green channel may be 16384, the data of the blue channel may be 20000, and the data of the white channel may be 8192. These values will directly affect the composite color effect of the final mixed light.
[0076] After the analysis is completed, a complete set of parameters is obtained, including the gain gear and the color data of each channel of red, green, blue and white. The analyzed data is used for subsequent calculation of the working current value and generation of the current value change sequence, ultimately realizing the display of the target color.
[0077] Step S1130, determining a common color value corresponding to the overlap of the color light formed by the white channel after the plurality of primary color channels are mixed, and deducting the common color value from the color data of each primary color channel.
[0078] For the process of color mixing and adjustment, the goal is to accurately control the final composite light color. In this step, the common color value when multiple primary color channels are mixed and overlap with the color light formed by the white channel must be determined first. This common color value refers to the color intensity that all primary color lights contribute to together with the white light when they are mixed together. Specifically, the color data of each primary color channel and the color data of the white channel are analyzed and calculated to determine the color value of the light they produce together. The implementation of this step usually involves color theory, such as the CIE chromaticity diagram, or other color mixing models to ensure color accuracy and consistency.
[0079] Once the common color value is determined, it is subtracted from the color data of each primary color channel. This step is implemented to remove those color components in the primary color channels that are already contained in the white channel, thereby avoiding the problem of repeated color calculation and oversaturation of colors.
[0080] In this embodiment, by receiving the color control data transmitted by the application layer (user interface, control software or other system components that issue color display requests), the lighting control system can respond to the user's selection or automatic control logic, providing a data basis for accurately controlling the color of the light. By performing a detailed analysis of the color control data, the key gain gear and the data of each color channel are extracted. This analysis process is the key to achieving precise color control, converting the data of the application layer into specific parameters that can be used for lighting adjustment. By decoding the 16-bit data bit, the system can obtain accurate color values, which are the basis for the subsequent calculation of the working current and the generation of the current change sequence, thereby determining the final display effect of the light.
[0081] By determining the common color value corresponding to the overlap of the color light formed by the white channel after mixing multiple primary color channels, and subtracting this part of the common color value from the primary color channel data, over-saturation of color can be avoided by subtracting the common color value, so that the lighting control system can control color mixing more finely, ensure the accuracy of color display, and provide more realistic and more expected lighting effects.
[0082] Based on any embodiment of the method of this application, please refer to Figure 5 , associating the gain gear, determining a current value change sequence corresponding to a gradual change from the second current value of each color channel to the first current value thereof, including:
[0083] Step S1310, acquiring shift relationship data, the shift relationship data comprising respective corresponding shift color values for each of two adjacent gain gears, the two shift color values being determined based on the highest operating current value of the lower gain gear of the two adjacent gain gears, and the two shift color values jointly defining the shift node between the two adjacent gain gears;
[0084] In this step, first determine the maximum operating current value corresponding to each gain gear. Specifically, the system will calculate two shift color values for each pair of adjacent gain gears. These two color values are determined based on the maximum operating current value of the low gain gear, and they define how the system should perform color conversion between these two gain gears. The shift node is the gain conversion point when the lamp bead color changes smoothly from one gain gear to another. At the shift node, the gain gear changes at this time, but due to the precise matching of the two shift color values when the operating current remains consistent, the observed lamp bead color remains unchanged. Please refer to the above-mentioned specific implementation method of non-sensing gear switching, which will not be repeated here.
[0085] In one embodiment, it is assumed that there are 4 gain gears, which are recorded as G1, G2, G3, and G4 in sequence, where G1 is the lowest gain gear, G4 is the highest gain gear, and the highest working current value of G1 is 10mA, the highest working current value of G2 is 20mA, the highest working current value of G3 is 30mA, and the highest working current value of G4 is 40mA. Then, according to the formula for calculating the working current value in the above embodiment, "∑(G+1)∗n ∗DATA / 65536=I", n=4, G=0, I=10 are substituted, and the color value DATA1 corresponding to G1 can be calculated. Similarly, the shift color values corresponding to the maximum working 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 a shift color value corresponding to a shift node between the first gain gear position G1 and the second gain gear position G2 , and DATA2 is a shift color value corresponding to a shift node between the second gain gear position G2 and the third gain gear position G3 .
[0086] Step S1320: for each color channel, determining a color value variation range between the applied color and the target color, and determining a current value variation range spanned by the second current value changing toward the first current value;
[0087] The color value change range is the total amount of color value change when changing from the applied color to the target color. The total amount of color value change is the sum of the color value changes corresponding to each gain level covered during the color change process. The color value change is represented based on 16-bit data bits, ranging from 0 to 65536.
[0088] In one embodiment, first, for each color channel, the color value change range spanned when changing from the applied color (i.e., the currently displayed color) to the target color (i.e., the color selected by the user or set by the system) is calculated. The color value change range defines the total amount of color value change that needs to be changed for each color channel when transitioning from one color to another. It should be noted that the color value change amount corresponding to each gain gear covered by the color value change range can be determined by using the shift node color value calculated in the above specific implementation mode, and then the color value change amount of each gain gear is accumulated to obtain the total amount of color value change corresponding to the color value change range of the corresponding color channel. Among them, please refer to the subsequent specific implementation mode for the calculation example of the total amount of color value change, which will not be repeated here.
[0089] At the same time, based on the first current value (the working current value corresponding to the target color) and the second current value (the working current value corresponding to the applied color) corresponding to each channel calculated in the above specific implementation method, the range of current value variation of each channel is determined.
[0090] In one embodiment, assuming that the second current value of the red channel of the applied color is 3 mA (calculated according to the previous step), and the first current value of the target color is 6 mA, then the current value variation range is from 3 mA to 6 mA.
[0091] Step S1330, according to the shift relationship data, along the shift direction from the second current value to the first current value, sequentially determine the color scale step amount corresponding to each gain gear covered by the color value change range, and accumulate the color scale step amount of each gain gear to obtain the total color scale step amount of the corresponding color channel;
[0092] The color scale step amount of each color channel is determined according to the shift relationship data, and the total color scale step amount is calculated. In this step, the shift relationship data is obtained as mentioned in the above specific embodiment, which includes the shift color value between each adjacent gain gear. These shift color values are used as a reference, and the color scale step amount on each gain gear covered by the color value change range is determined in turn along the direction 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), and the total color scale step amount is accumulated.
[0093] In one embodiment, along the shift direction from the second current value to the first current value, according to the above specific implementation, the color value change amount corresponding to each gain gear can be determined when the color value changes. For convenience, the color value change amount is used as the color value change range covering the corresponding gain gear on the color scale step amount, and the color scale step amount on each gain gear covered by the color value change range is accumulated to obtain the total color scale step amount. Wherein, assuming that there are 4 gain gears, and the maximum working current of the first gain gear is 4mA, the maximum working current of the second gain gear is 8mA, the maximum working current of the third gain gear is 12mA, and the maximum working current of the fourth gain gear is 16mA, then according to the calculation of the shift relationship data in the above embodiment, it can be determined that when the color value of the fourth gain gear is 49152, it can be switched to the third gain gear without feeling, when the third gain gear is 43690, it can be switched to the second gain gear without feeling, and when the second gain gear is 32768, it can be switched to the first gain gear without feeling. At this time, assuming that the gain gear corresponding to the second current value (the working current value corresponding to the applied color) is 3, and the color value is 21844; the gain gear corresponding to the first current value (the working current value corresponding to the target color) is 1, and the color value is 43690. At this time, along the shift direction from the second current value to the first current value, the covered gain gears are the third gain gear, the second gain gear, and the first gain gear. Among them, the color value change amount (color scale step amount) corresponding to the color value change range when covering the third gain gear is 43690-21844=218 46, the color value change amount (color scale step amount) corresponding to the color value change range when covering the second gain gear is 65536-32768=32768, and the color value change amount (color scale step amount) corresponding to the color value change range when covering the first gain gear is 65536-43690=21846. The color value change amount corresponding to the determined color value change range is used as the color scale step amount. By accumulating the color scale step amount corresponding to each covered gain gear, the total color scale step amount is calculated to be 21846+32768+21846=76460.
[0094] Step S1340: determine the time point current values corresponding to a plurality of gradual change time points from the current value change range based on the total amount of the color scale step, and construct the current values at each time point into a current value change sequence of the corresponding channel in time sequence.
[0095] In one embodiment, the current value of each gradient time point is determined based on the total amount of color scale steps, and a current value change sequence is constructed. In this step, first, according to the total amount of color scale steps calculated in the previous specific implementation, based on the range defined by the total amount of color scale steps, the corresponding number of gradient time points is determined through a preset gradient color scale unit, wherein the gradient color scale unit is set as needed by personnel in this field. The unit current change value can be obtained by dividing the current change amount defined by the current value change range spanned by the change from the second current value to 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 step corresponds to a color scale step, that is, the color scale steps are evenly distributed in the entire gradient time sequence to ensure the continuity and smoothness of the color change. According to 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 specific implementation, and then the current values of each time point are constructed into a current value change sequence of the corresponding channel in time sequence. Among them, the current value corresponding to each gradual change time point is determined from the current value change range obtained in the above specific implementation method according to the unit current change value. Please refer to the subsequent specific implementation method, which will not be repeated here.
[0096] In this embodiment, by calculating the shift color value of each pair of adjacent gain gears and taking the highest operating current value of the low gain gear as a reference, the system can clearly define the shift nodes, thereby achieving precise control during the color gradient process, avoiding light flickering or color jumps caused by sudden current changes, and improving the stability of the light display and the naturalness of the gradient effect. Then, the specific range of changes in color value and current value is determined for each color channel, providing a precise starting point 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 change required for each color channel, and at the same time determine the range of current value changes, laying the foundation for generating a gradient current value sequence and ensuring the accuracy and consistency of color transitions.
[0097] By calculating and accumulating the amount of color stepping, 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 gradient changes within each gain gear, making the final lighting effect more delicate and rich. Based on the total amount of color gradient steps, an accurate current value change sequence is constructed. By determining the current value at the gradient time point and constructing the current value change sequence according to the preset timing, the system can accurately control the light color and brightness at each time point, achieving a smooth and expected color gradient effect, and improving the performance of the lighting control system and user experience.
[0098] Based on any embodiment of the method of this application, please refer to Figure 6, based on the total amount of the color scale steps, determining the time point current values corresponding to a plurality of gradual change time points from the current value change range, including:
[0099] Step S1341, based on the total amount of color scale steps, determine the corresponding number of gradient time points according to the preset number of gradient color scale units;
[0100] According to the above specific implementation, the total amount of color scale steps can be calculated, and the number of gradient color scale units can be preset based on the total amount of color scale steps, wherein the number of gradient color scale units is set by those skilled in the art according to the desired gradient smoothness, and then the corresponding number of gradient time points is determined based on the number of gradient color scale units. For example, the above specific implementation calculates the total amount of color scale steps to be 5000, and those skilled in the art set the number of gradient color scale units to 100, then it can be calculated that the number of gradient time points is 5000 / 100=50.
[0101] Step S1342, dividing the current variation defined by the current value variation range by the number of gradual change time points to obtain a unit current variation value;
[0102] According to the above specific implementation, the current value change range spanned by the second current value changing to the first current value can be determined, and then the unit current change value can be obtained by dividing the current change amount defined by the current value change range by the number of gradient time points calculated in the above specific implementation. In one embodiment, assuming that the second current value is 10mA and the first current value is 5mA, that is, the current change amount defined by the current value change range is 5mA, and the number of gradient time points calculated by the above specific implementation is 50, the unit current change value is 0.1mA calculated by 5mA / 50. That is, at each gradient time point, the current value of the color channel will decrease by 0.1mA until the target current value is finally reached.
[0103] Step S1343: determining the time point current value corresponding to each gradual change time point from the current value change range based on the unit current change value.
[0104] Based on the unit current change value calculated in the above specific implementation method, the specific current value corresponding to each gradual change time point is determined. Specifically, starting from the initial current value (second current value), the current value of each gradual change time point is gradually calculated according to the unit current change value until the final target current value (first current value) is reached.
[0105] This process involves sequentially subtracting or adding the unit current change value from the starting point of the current value change range according to the calculated unit current change value until the entire change range is covered. The calculation result of each step is the point current value at the gradual change time point. The system arranges these point current values according to the time sequence of the gradual change time point to form a current value change sequence, which is used to guide the specific current input of the light at each time point.
[0106] In this embodiment, based on the total amount of color scale steps, the number of gradient color scale units is preset, and the system can calculate the number of gradient time points according to the number of gradient color scale units, so as to accurately control each stage of the color gradient process. This method allows the lighting control system to adjust the number of gradient time 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 change in the current value at each gradient time point. This step ensures that the change in the current value is uniform and controllable during the gradient process, so that the color transition is smoother and more precise. In this way, the system can avoid sudden changes and achieve a more delicate color gradient effect.
[0107] By determining the current value at each gradient point based on the unit current change value, the system can build a complete current value change sequence to accurately guide 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 gradient point, the system can achieve a smooth transition from the initial color to the target color, providing a high-quality color gradient experience.
[0108] Based on any embodiment of the method of this application, please refer to Figure 7 , before synchronously controlling the target lamp bead to emit light according to the current value change sequence corresponding to each channel, including:
[0109] Step S1411 : for each current value variation sequence corresponding to each color channel, call the color calibration ratio corresponding to the color channel to correct the point-in-time current value of the color channel, so as to update the point-in-time current value in the current value variation sequence.
[0110] For each color channel, according to the color calibration ratio corresponding to the different color channels, the current value of the corresponding color channel at the time point is adjusted to ensure that the final displayed color is consistent with the target color, wherein the color calibration ratio is preset by a technician in this field as needed. Specifically, the color calibration ratio of each color channel is extracted from the color calibration database. These ratios may be based on the previous color calibration test results to compensate for the differences in luminous efficiency or hardware characteristics of different color channels. Then, the system applies these calibration ratios to the current value change sequence currently calculated, and corrects the current value at each gradient time point. In one embodiment, if the calibration ratio of the red channel is 1.05, and the current value of a certain gradient time point currently calculated is 5mA, then the calibrated current value will be updated to 5mA multiplied by 1.05, resulting in 5.25mA. Similarly, for the green channel and the blue channel, corresponding corrections will be made according to their calibration ratios.
[0111] In this embodiment, the current value at each color channel is precisely adjusted by applying the color calibration ratio, thereby ensuring the accuracy and consistency of the light display. This step uses the data pre-stored in the calibration database, which is based on the previous color calibration test results and can compensate for the differences in luminous efficiency or hardware characteristics that may exist 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 time point can accurately reflect the brightness and intensity of the target color after correction, thereby achieving a more accurate and high-quality color display effect.
[0112] Based on any embodiment of the method of this application, please refer to Figure 8 , according to the current value change sequence corresponding to each channel, the target lamp bead is synchronously controlled to emit light, including:
[0113] Step S1421, summing up the current values of each color channel at the same gradient time point to obtain the total current at the gradient time point;
[0114] For each color channel at the same gradient time point, a summary calculation is performed based on the corrected current value at the time point in the previous specific implementation. In one embodiment, the current values of the red, green, blue and white channels at the same gradient time point are collected, and the current values of each channel are added to obtain the total current at the gradient time point. The total current at the gradient time point reflects the sum of the currents of the lamp beads of all color channels working together at a specific time point in order to produce the required color mixing and brightness. For example, if at a gradient time point, the point 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 the gradient time point is 10mA.
[0115] Step S1422, comparing the total current with a preset current limit value, and when the total current exceeds the current limit value, performing peak shaving processing on the current values at each time point in the same proportion so that the total current does not exceed the current limit value;
[0116] The total current value calculated in the above specific implementation is compared with the preset current limit value, wherein the current limit value is set by those skilled in the art according to the maximum power carrying capacity of the hardware and safety standards to ensure that the lighting device does not exceed its current carrying limit.
[0117] If the calculated total current exceeds the preset current limit, peak clipping will be performed. Peak clipping refers to adjusting the current value of each color channel in the same proportion to reduce the total current to a safe range. Specifically, the system calculates the current ratio that needs to be reduced, and then reduces the current value of the red, green, blue and any other color channel by this ratio.
[0118] For example, if the total current is 30mA and the preset current limit is 20mA, 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 value that needs to be reduced for each channel in proportion to ensure that the total current is reduced to no more than 20mA.
[0119] Step S1423: When the total current at the gradual change time point does not exceed the current limit value, control each color channel of the target lamp bead to operate according to the current value at the corresponding time point.
[0120] The above-mentioned specific implementation method completes the calibration of the current value of each color channel at a certain point in time, and ensures that the total current at the gradient point will not exceed the safe current limit value. At this time, the system sends a control signal to the corresponding lamp bead according to the current value of each color channel at a certain point in time, that is, according to the corrected current value change sequence in the above-mentioned specific implementation method, the lamp bead of each color channel is accurately driven by current. For example, if the current value of the red channel at a certain gradient point in time 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 value respectively. In this way, each color channel can emit light according to a predetermined timing and intensity, and mix to produce the desired target color.
[0121] In addition, the actual working current is continuously monitored to ensure that it is consistent with the current value at the predetermined point in time and that the total current is maintained within a safe range.
[0122] In this embodiment, the current value at each color channel is accurately corrected by the color calibration ratio, so as to ensure that the final displayed color is consistent with the target color. This step takes into account the possible differences in luminous efficiency or hardware characteristics of different color channels. The current value is adjusted by the preset color calibration ratio, which improves the accuracy of color display and makes the lighting effect more consistent with the user's expectations and the preset target color. Then, the total current is obtained by summing up the current values at the same gradient time point, and then the total current is compared with the preset current limit value. When the total current exceeds the preset current limit value, the current values at each time point are subjected to the same proportion of peak clipping, ensuring that the current use of the lighting equipment does not exceed its load limit, thereby protecting the hardware and avoiding overheating or other possible damage. This safety measure ensures the stable operation of the lighting system and extends the service life of the equipment. Under the condition of ensuring the safety of the total current, the various color channels of the target lamp beads are controlled to work according to the preset current value at the time point, so as to achieve accurate color mixing and gradient effects.
[0123] See also Fig. 9 Another embodiment of the present application further provides a lamp bead light-emitting control device, which includes a data acquisition module 5100, a current determination module 5200, a sequence determination module 5300, and a light-emitting working module 5400, wherein the data acquisition module 5100 is configured to acquire color control data of a target color, wherein the color control data includes a gain gear and color data of multiple color channels; the current determination module 5200 is configured to determine the working current value corresponding to the color data of each color channel as a first current value based on the rated current value of the gain gear; 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, and to determine a current value change sequence corresponding to the first current value of each color channel from its second current value gradually changing to its first current value in association with the gain gear; the light-emitting 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;
[0124] It also includes: a color data extraction module, a gain gear determination module, and a color control data packaging module, wherein the color data extraction module is configured to extract the color data of each channel corresponding to the target color displayed by the target lamp bead under the arrived timing from the lighting effect control data; the gain gear determination module is configured to determine the gain gear corresponding to the color data with reference to the preset color dynamic range of the corresponding target lamp bead; the color control data packaging module is configured to package the gain gear and the color data corresponding to each channel into the color control data of the target color.
[0125] Based on any embodiment of the device of the present 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 therein, wherein each color channel includes multiple primary color channels and at least one white channel; a common color value subtraction submodule, configured to determine the common color value corresponding to the overlap of the color light formed by the white channel after the multiple primary color channels are mixed, and subtract the common color value from the color data of each primary color channel.
[0126] Based on any embodiment of the device of the present application, the sequence determination module 5300 includes: a shift relationship data acquisition submodule, which is configured to acquire shift relationship data, wherein the shift relationship data includes a corresponding shift color value for each of two adjacent gain gears, wherein the two shift color values are determined based on the highest operating current value of the low gain gear in the two adjacent gain gears, and the two shift color values jointly define the shift node between the two adjacent gain gears; a color value and current value variation range determination submodule, which is configured to determine, for each color channel, a color value variation range between the applied color and the target color, so as to obtain a corresponding shift color value for each adjacent gain gear. and determining the current value change range spanned by the second current value changing to the first current value; a color scale step amount calculation submodule, configured to determine the color scale step amount corresponding to each gain gear covered by the color value change range according to the shift relationship data, along the shift direction from the second current value to the first current value, and accumulate the color scale step amount of each gain gear to obtain the total color scale step amount of the corresponding color channel; a current value change sequence construction submodule, configured to determine the time point current values corresponding to multiple gradual change time points from the current value change range based on the color scale step amount, and construct the current values at each time point into the current value change sequence of the corresponding channel in time sequence.
[0127] Based on any embodiment of the device of the present application, the current value change sequence construction submodule includes: a gradient time point color value determination submodule, which is configured to determine the corresponding number of gradient time points based on the total amount of color level steps and according to the preset number of gradient color level units; a unit current change value calculation submodule, which is configured to obtain a unit current change value by dividing the current change amount defined by the current value change range by the number of gradient time points; a time point current value conversion submodule, which is configured to determine the time point current value corresponding to each gradient time point from the current value change range based on the unit current change value.
[0128] On the basis of any embodiment of the device of the present application, it also includes: a point-in-time current value calibration module, which is configured to call the color calibration ratio corresponding to the color channel to correct the point-in-time current value of the color channel for the current value change sequence corresponding to each color channel, so as to update the point-in-time current value in the current value change sequence.
[0129] Based on any embodiment of the device of the present application, the light-emitting working module 5400 includes: a total current calculation submodule at a gradient time point, which is configured to summarize the time point current values of each color channel at the same gradient time point to obtain the total current at the gradient time point; a current value peak clipping processing submodule, which is configured to compare the total current with a preset current limiting value, and when the total current exceeds the current limiting value, perform peak clipping processing on the current values at each time point in the same proportion so that the total current does not exceed the current limiting value; a target lamp bead working control submodule, which is configured to control each color channel of the target lamp bead to operate according to its corresponding time point current value when the total current at the gradient time point does not exceed the current limiting value.
[0130] Based on any embodiment of this application, please refer to Fig.10 Another embodiment of the present application further provides a computer device, which can be used as a controller in an atmosphere light device, such as Fig.10 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and a computer program encapsulating computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor may implement a lamp bead light-emitting control method. The processor of the computer device is used to provide 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 may execute the lamp bead light-emitting control method of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0131] In this embodiment, the processor is used to execute Fig. 9The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the lamp bead light control device of this application, and the server can call the program code and data of the server to execute the functions of all submodules.
[0132] The present application also provides a non-volatile computer-readable storage medium, which, when the computer-readable instructions are executed by one or more processors, enables the one or more processors to execute the steps of the lamp bead light control method described in any embodiment of the present application.
[0133] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the lamp bead light-emitting control method described in any embodiment of the present application.
[0134] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0135] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling the light emission of a lamp bead, characterized in that: include: Acquire color control data of a target color, wherein the color control data includes a gain level and color data of multiple color channels; Based on the rated current value of the gain gear, determine the working current value corresponding to the color data of each color channel as the first current value; Taking the working current value corresponding to the applied color of each color channel as the second current value, associating it with the gain gear, and determining a current value change sequence corresponding to the first current value of each color channel from its second current value gradually changing to its first current value; Synchronously controlling the target lamp beads to emit light according to the current value change sequence corresponding to each channel, so that the light color of the target lamp beads gradually changes from the applied color to the target color; The step of obtaining the color control data of the target color includes: receiving color control data representing the target color transmitted by the application layer; Parsing the color control data to obtain the gain level and color data of each color channel, wherein each color channel includes a plurality of primary color channels and at least one white channel; A common color value corresponding to the overlap of the color light formed by the white channel after the multiple primary color channels are mixed is determined, and the common color value is deducted from the color data of each primary color channel.
2. The lamp bead light emitting control method according to claim 1, characterized in that: Before obtaining the color control data of the target color, include: For the target color displayed by the target lamp bead at the reached timing, the color data of each channel corresponding to the target color is extracted from the lighting effect control data; Determine the gain level corresponding to the color data by referring to the preset color dynamic range of the corresponding target lamp bead; The gain level and the color data corresponding to each channel are packaged as color control data of the target color.
3. The lamp bead light emitting control method according to claim 1, characterized in that: In association with the gain gear, determining a current value change sequence corresponding to a gradual change from the second current value to the first current value of each color channel comprises: Acquire shift relationship data, wherein the shift relationship data includes a shift color value corresponding to each of two adjacent gain gears, the two shift color values are determined based on the highest working current value of the lower gain gear of the two adjacent gain gears, and the two shift color values jointly define a shift node between the two adjacent gain gears; For each color channel, determining a color value variation range between the applied color and the target color, and determining a current value variation range spanned by the second current value changing toward the first current value; According to the shift relationship data, along the shift direction from the second current value to the first current value, the color scale step amount corresponding to each gain gear covered by the color value change range is determined in sequence, and the color scale step amount of each gain gear is accumulated to obtain the total color scale step amount of the corresponding color channel; Based on the total amount of the color scale steps, the time point current values corresponding to a plurality of 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 of the corresponding channel in a time sequence.
4. The lamp bead light emitting control method according to claim 3, characterized in that: Determining the current values corresponding to a plurality of gradual change time points from the current value change range based on the total amount of the color scale steps includes: Based on the total amount of color scale steps, the corresponding number of gradient time points is determined according to the preset number of gradient color scale units; A unit current change value obtained by dividing the current change amount defined by the current value change range by the number of gradual change time points; The current value at a time point corresponding to each gradual change time point is determined from the current value change range based on the unit current change value.
5. The lamp bead light emitting control method according to any one of claims 1 to 4, characterized in that: Before the target lamp bead is synchronously controlled to emit light according to the current value change sequence corresponding to each channel, it includes: For the current value variation sequence corresponding to each color channel, the color calibration ratio corresponding to the color channel is called to correct the point-in-time current value of the color channel, so as to update the point-in-time current value in the current value variation sequence.
6. The lamp bead light emission control method according to any one of claims 1 to 4, characterized in that: According to the current value change sequence corresponding to each channel, the target lamp bead is synchronously controlled to emit light, including: Summarize the current values of each color channel at the same gradient time point to obtain the total current at the gradient time point; Compare the total current with a preset current limit value, and when the total current exceeds the current limit value, perform peak shaving processing on the current values at each time point in the same proportion so that the total current does not exceed the current limit value; When the total current at the gradual change time point does not exceed the current limit value, each color channel of the target lamp bead is controlled to operate according to the current value at the corresponding time point.
7. A lamp bead light control device, characterized in that: include: A data acquisition module, configured to acquire color control data of a target color, wherein the color control data includes a gain level and color data of multiple color channels; a current determination module, configured to determine, based on the 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; A 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 the gain gear, and determine a current value change sequence corresponding to the first current value of each color channel from its second current value; A light-emitting working module 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; The data acquisition module comprises: 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 a plurality of primary color channels and at least one white channel; The common color value subtraction submodule is configured to determine a common color value corresponding to the overlap of the color light formed by the white channel after the multiple primary color channels are mixed, and subtract the common color value from the color data of each primary color channel.
8. An atmosphere lighting device, characterized in that: The invention comprises a controller and at least one lamp bead, wherein the controller is used to execute the steps of the method according to any one of claims 1 to 6 to control the lamp bead to emit light.
9. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 6.
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
