Lamp dimming method, system and apparatus, and lamp, electronic device and readable storage medium
By receiving dimming command parameters, the multi-channel light bead group is controlled in gradient, scaling, current limiting and PWM frequency, which solves the problem of taking into account both brightness and visual perception when adjusting the light output of multiple light mixing lamps, and improves the user experience.
Patent Information
- Application Number
- PCT/CN2025/079579
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-29
- Filing Date
- 2025-02-27
- Publication Date
- 2025-09-04
AI Technical Summary
It is difficult for existing multi-channel mixed light fixtures to take into account both the brightness output and the visual perception of the human eye when adjusting the light output, resulting in a poor user experience.
By receiving dimming command parameters, gradual processing, scaling processing, current limiting processing and PWM frequency control are performed based on the power parameter value, so as to achieve accurate dimming control of multiple lamp bead groups.
It achieves consistency between the lighting output effect and the visual perception of the human eye, and improves the user experience.
Smart Images

Figure CN2025079579_04092025_PF_FP_ABST
Abstract
Description
Lamp dimming method, system, device, lamp, electronic device and readable storage medium
[0001] Cross-references
[0002] This application claims priority to the Chinese patent application filed on February 29, 2024 with application number 202410233092.1, entitled “Dimming method, system, lamp, electronic device and readable storage medium for lamps”, and the Chinese patent application filed on February 29, 2024 with application number 202420393604.6, entitled “Dimming device and lamp for lamps”. The entire contents of the foregoing applications are incorporated into this application by reference. Technical Field
[0003] The present application relates to the field of intelligent lighting technology, and in particular to a dimming method, system, device, lamp, electronic device and readable storage medium for a lamp. Background Art
[0004] In the field of lighting technology, multi-channel mixed light fixtures are usually composed of two or more lamp bead light sources, where the lamp beads are composed of multiple pixels. On the application side, users will adjust the parameters related to the light output effect of the lamp (i.e., dimming command parameters). However, while the lamp accurately outputs multiple related parameters, it is difficult to take into account the visual perception of the human eye at the same time, which often results in poor visual effects for the human eye and reduces the user experience. For example: when adjusting the brightness of the lamp, it is necessary to ensure that the brightness value can be output correctly, and at the same time, the brightness change needs to be consistent with the visual perception of the human eye, so that the brightness gradient output or the switching of the lamp picture effect is soft and gradual. Summary of the Invention
[0005] The technical problem solved by the present application is to provide a dimming method, system, device, lamp, electronic device and readable storage medium for a lamp.
[0006] The present application provides a dimming method for a lamp, wherein the lamp includes multiple lamp bead groups, each lamp bead group includes at least one lamp bead, and the method includes: receiving a dimming instruction parameter, and based on the dimming instruction parameter, outputting a first power parameter value of each lamp bead group, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; based on the first power parameter value, gradually changing the initial power parameter value of the lamp, and outputting a second power parameter value of each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to an intermediate value corresponding to the first power parameter value; based on the power threshold of each lamp bead group and the power threshold of the lamp, scaling the second power parameter value, and outputting a third power parameter value of each lamp bead group; based on the power threshold of the working power supply corresponding to the lamp, current limiting the third power parameter value, and outputting a fourth power parameter value of each lamp bead group; based on the pulse width modulation (Pulse Width Modulation) corresponding to each lamp bead group Modulation (PWM) frequency is used to perform dimming control on each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0007] The present application also provides a dimming system for a lamp, which adopts the dimming method of the lamp as described above, wherein the lamp includes multiple lamp bead groups, and each lamp bead group includes at least one lamp bead; the system includes: a dimming algorithm module for receiving a dimming instruction parameter, and outputting a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; a soft light gradient module for gradually changing the initial power parameter value of the lamp based on the first power parameter value, and outputting a second power parameter value of each lamp bead group, wherein the second power parameter value is used to indicate the initial power parameter value. The value gradually changes to the intermediate value corresponding to the first power parameter value; a power scaling module is used to scale the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and output the third power parameter value of each lamp bead group; a light source current limiting module is used to limit the third power parameter value based on the power threshold of the working power supply corresponding to the lamp, and output the fourth power parameter value of each lamp bead group; a PWM automatic frequency conversion module is used to dim each lamp bead group based on the PWM frequency corresponding to each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0008] The present application provides a lamp, comprising a multi-channel lamp bead group and a computer program, wherein when the computer program is executed, any one of the above-mentioned dimming methods of the lamp is implemented.
[0009] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a dimming method for a lamp as described above is implemented.
[0010] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the dimming method of any of the lamps described above is implemented.
[0011] The present application also provides a computer program product, including a computer program, which implements any of the above-mentioned dimming methods for lamps when executed by a processor.
[0012] The present application also provides a dimming device for a lamp, wherein the lamp includes a plurality of lamp bead groups, and each lamp bead group includes at least one lamp bead; the device includes: a dimming algorithm module for receiving a dimming instruction parameter, and outputting a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; a soft light gradient module for gradually changing the initial power parameter value of the lamp based on the first power parameter value, and outputting a second power parameter value of each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to the second power parameter value. an intermediate value corresponding to a power parameter value; a power scaling module, for scaling the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and outputting a third power parameter value of each lamp bead group; a light source current limiting module, for current limiting the third power parameter value based on the power threshold of the working power supply corresponding to the lamp, and outputting a fourth power parameter value of each lamp bead group; a PWM automatic frequency conversion module, for dimming control of each lamp bead group based on the PWM frequency corresponding to each lamp bead group, wherein the PWM frequency is determined based on the fourth power parameter value.
[0013] The present application also provides a lamp, comprising a plurality of lamp bead groups and the dimming device of the lamp as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0015] FIG1 is a schematic flow chart of a dimming method for a lamp provided in the present application;
[0016] FIG2 is a schematic diagram of a structure of a dimming system for a lamp provided in the present application;
[0017] FIG3 is a second structural diagram of the dimming system of the lamp provided in the present application;
[0018] FIG4 is a schematic structural diagram of the electronic device provided in this application.
[0019] FIG5 is a schematic diagram of the structure of the dimming device of the lamp provided in the application;
[0020] FIG6 is a second structural schematic diagram of the dimming device of the lamp provided in the present application;
[0021] FIG7 is a schematic structural diagram of the lamp provided in this application. DETAILED DESCRIPTION
[0022] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0023] The following describes the dimming method, system, lamp, electronic device and readable storage medium of the lamp of the present application with reference to Figures 1 to 4.
[0024] FIG1 is a flow chart of a method for dimming a lamp provided by the present application. Referring to FIG1 , the method for dimming a lamp provided by the present application includes steps 110 to 150.
[0025] Step 110: Receive a dimming instruction parameter, and output a first power parameter value of each lamp bead group based on the dimming instruction parameter. The dimming instruction parameter is a parameter related to the light output effect of the lamp.
[0026] In actual implementation, the dimming command parameters are input by the user, and the first power parameter value of each lamp bead group can be calculated based on the dimming command parameters. The first power parameter value can be a value of a power-related parameter, including but not limited to electric power, power factor, current or voltage, etc., which is not specifically limited in this application.
[0027] Based on the first power parameter value of each lamp bead group, the target power ratio of each lamp bead group can be determined. The target power ratio is the power ratio of each lamp bead group and is also the power ratio that meets user needs. For example, the target power ratio of the red lamp bead group to the white lamp bead group is 1:2, or the target power ratio of the red lamp bead group: the green lamp bead group: the blue lamp bead group: the white lamp bead group is 1:2:3:4. It will be understood that the above ratios are only used as examples and can be determined based on actual conditions. This application does not impose specific limitations on this.
[0028] It should be noted that the power parameter values in this application are linearly related to the lumen value and the pulse width modulation (PWM) value, that is, when the power parameter value is determined, the lumen value and the PWM value can be further determined.
[0029] In some embodiments, the dimming command parameters include but are not limited to brightness, color temperature, color deviation, color coordinates, wattage, luminous efficiency, or color rendering index.
[0030] It should be noted that the brightness of a light is luminous flux, which is measured in lumens. The higher the lumen, the brighter the light.
[0031] Color temperature is a physical quantity that describes the relationship between the color and temperature of blackbody radiation. Color temperature is usually expressed in degrees Kelvin (Kelvin). Low color temperatures are also called warm colors, while high color temperatures are called cool colors.
[0032] Chromaticity coordinates are the coordinates of color, and they can accurately represent color.
[0033] Color deviation refers to the difference between the computer-calculated formula and the target standard. It is calculated under a single lighting source. The smaller the value, the higher the accuracy.
[0034] Wattage refers to the amount of electricity a lamp consumes. The higher the wattage, the more electricity the lamp consumes. It doesn't necessarily mean the lamp will be brighter.
[0035] Luminous efficiency is the ratio of the amount of light emitted by a light source to its wattage, measured in lumens per watt. The higher the luminous efficiency, the greater the conversion of electrical energy into light energy, resulting in greater lighting brightness at the same wattage.
[0036] The color rendering index (CRI) is a light source's ability to reproduce the color of the object it is illuminating. Taking the sun as the standard, the closer the CRI of a light source is to 100, the better the color reproduction.
[0037] Step 120: Based on the first power parameter value, gradually change the initial power parameter value of the lamp and output a second power parameter value of each lamp bead group. The second power parameter value is used to indicate that the initial power parameter value gradually changes to the intermediate value corresponding to the first power parameter value.
[0038] The initial power parameter value of the lamp may be 0 or not 0, that is, the state of the lamp may be on or off.
[0039] In this step, the initial power parameter value of the lamp is gradually processed, with the aim of making the process of adjusting the lamp from the initial power parameter value to the first power parameter value a regularly changing process. Then, the power parameter values that need to be output at different times during the gradual change are calculated to ensure the visual effect of the human eye.
[0040] In actual implementation, the gradual change process can be to determine the initial power parameter value to gradually change to the intermediate value corresponding to the first power parameter value, that is, the second power parameter value of each lamp bead group. The intermediate value can be an arithmetic progression or a geometric progression, which is not specifically limited here.
[0041] Step 130: Based on the power threshold of each lamp bead group and the power threshold of the lamp, scale the second power parameter value and output a third power parameter value of each lamp bead group.
[0042] It should be noted that the power threshold of the lamp is the total power threshold of all lamp groups, that is, the power scaling limit value of the lamp as a whole. The power threshold of each lamp group is the power scaling limit value for each lamp group.
[0043] For example, after the power threshold of each lamp group is met, the sum of the second power parameter values that a certain lamp needs to output during the gradient process is calculated to be 400 watts, but the power threshold of the lamp is 200 watts. In this case, 400 watts needs to be multiplied by a coefficient of 0.5 to reduce it to 200 watts.
[0044] Step 140: Based on the power threshold of the working power supply corresponding to the lamp, current limiting processing is performed on the third power parameter value, and a fourth power parameter value of each lamp bead group is output.
[0045] This step limits the power output of each lamp bead group based on the actual hardware conditions, that is, the working power supply corresponding to the lamp can determine the current limiting parameter through the working power supply, and multiply the third power parameter value by the upper limit current parameter to obtain the fourth power parameter value of each lamp bead group.
[0046] According to the linear relationship between the fourth power parameter value and the PWM value, the PWM value corresponding to each lamp bead group can be determined.
[0047] Step 150: Perform dimming control on each lamp bead group based on the PWM frequency corresponding to each lamp bead group, where the PWM frequency is determined based on the fourth power parameter value.
[0048] In actual implementation, based on the PWM value corresponding to each lamp bead group, the PWM frequency corresponding to each lamp bead group can be automatically calculated. Based on the PWM frequency corresponding to each lamp bead group, dimming control of each lamp bead group can be achieved.
[0049] The dimming method of the lamp provided in the present application can obtain the intermediate parameters of the first power parameter value, the second power parameter value, the third power parameter value and the fourth power parameter value through the dimming command parameters, so as to take into account the power threshold of each lamp bead group, the power threshold of the lamp and the power threshold limit of the working power supply, and finally determine the PWM frequency value of each lamp bead group to achieve precise dimming control. Therefore, the lamp can be accurately controlled through the dimming command parameters, so that the dimming command parameters are highly consistent with the visual perception of the human eye.
[0050] In some embodiments, the multiple lamp bead groups include one white light lamp bead group and three colored light lamp bead groups, and the three colored light lamp bead groups correspond to colored lights of different colors.
[0051] Correspondingly, based on the dimming instruction parameters, the first power parameter value of each lamp bead group is output, including steps 1101 to 1104.
[0052] Step 1101: Based on the dimming instruction parameters, obtain the initial color coordinates corresponding to the dimming instruction parameters;
[0053] Step 1102: Based on the target strategy optimization model and the dimming instruction parameters, obtain the white light ratio corresponding to the white light lamp bead group;
[0054] Step 1103: Based on the initial color coordinates and the white light ratio, obtain the color coordinates of the color mixed light corresponding to the three color light bead groups;
[0055] Step 1104: Output a first power parameter value based on the color coordinates of the mixed color light, the white light ratio, and the dimming instruction parameters.
[0056] In some embodiments, the three colored light bead groups may be a red light bead group, a green light bead group, and a blue light bead group respectively.
[0057] In some other embodiments, the 3-way colored light bead group can also be an orange light bead group and a yellow light bead group, as well as a blue light bead group or a purple light bead group.
[0058] In actual implementation, the dimming command parameters can be obtained by receiving user input to the lamp. For example, the user can manually enter the dimming command parameters in the corresponding function display interface of the lamp to obtain the dimming command parameters. For example, the input brightness is 1000 lumens.
[0059] In step 1101, after obtaining the dimming instruction parameters, the initial color coordinates may be obtained based on the dimming instruction parameters.
[0060] In some embodiments, the color temperature and color coordinates can be converted using a color temperature and color coordinate conversion formula, or converted using a conversion model, or converted in other ways, which is not limited in this application.
[0061] In step 1102, a target strategy optimization model is constructed based on the target strategy, and is used to obtain a corresponding white light ratio in combination with the dimming instruction parameters, so that the final light output of the lamp meets the dimming instruction parameters while complying with the target strategy.
[0062] The target strategy may be an artificially set strategy related to the effect of light output, including but not limited to an optimal color rendering index strategy or an optimal saturation strategy.
[0063] In some embodiments, the target strategy includes: a color rendering index optimal strategy, a saturation optimal strategy, a fidelity optimal strategy, or a balance optimal strategy, and the balance optimal strategy is formed based on two or more of the color rendering index optimal strategy, the saturation optimal strategy, and the fidelity optimal strategy.
[0064] After obtaining the target strategy optimization model and dimming instruction parameters, the white light ratio corresponding to the white light lamp bead group can be obtained based on the target strategy optimization model and the dimming instruction parameters. The white light ratio is the luminous ratio of the white light lamp bead group in the 4-way lamp bead group.
[0065] In step 1103, after obtaining the initial color coordinates and the white light ratio, the color coordinates of the mixed colors corresponding to the three color light bead groups can be obtained based on the initial color coordinates and the white light ratio. The mixed color coordinates of the colored light are the color coordinates of the three kinds of mixed colors corresponding to the three color light bead groups of the lamp.
[0066] In step 1104, the first power parameter value of each lamp bead group can be calculated based on the color coordinates of the mixed color light, the white light ratio and the dimming instruction parameters.
[0067] By obtaining the dimming instruction parameters, on the one hand, they can be converted into initial color coordinates that carry the dimming instruction parameter information, and on the other hand, they can be combined with a specific target strategy optimization model to obtain the white light ratio required to achieve the target strategy. On this basis, the color coordinates of the color mixed light can be obtained based on the initial color coordinates and the white light ratio, and the first power parameter values corresponding to the multiple lamp bead groups can be obtained based on the color coordinates of the color mixed light, the white light ratio and the dimming instruction parameters. Therefore, not only can accurate light control of the lamps be achieved in terms of brightness, color temperature or color according to the dimming instruction parameters, but the color rendering index or color saturation, realism, etc. can also be further adjusted according to the user's demand for lighting, so that the dimming effect is better and meets user needs, thereby improving the user experience.
[0068] In some embodiments, a method for obtaining a target strategy optimization model includes: determining, based on the target strategy, the white light ratios corresponding to different color temperatures and different color deviations within a preset color temperature range and a preset color deviation range; fitting the white light ratios corresponding to the different color temperatures and different color deviations based on the target strategy to obtain a white light ratio function; and obtaining the target strategy optimization model based on the white light ratio function. This allows for the establishment of a highly accurate target strategy optimization model.
[0069] In actual implementation, in order to obtain the target strategy optimization model, we can first determine the white light ratio corresponding to the target strategy under different conditions within the preset color temperature range and the preset color deviation range.
[0070] The preset color temperature range and the preset color deviation range can be set according to actual needs or actual conditions.
[0071] Different conditions are composed of different color temperatures and different color deviations. For example, if the preset color temperature range is 1000K to 2000K and the preset color deviation range is -0.003 to 0.003, you can take a point at every arbitrary interval of the preset color temperature range, such as 100K, and take a point at every arbitrary interval of the preset color deviation range, such as 0.001. The color temperature points and color deviation points can be arbitrarily combined in pairs to obtain multiple different conditions, such as condition A with a color temperature of 1100K and a color deviation of 0.001, or condition B with a color temperature of 1500K and a color deviation of 0.002.
[0072] Based on the target strategy, the white light ratio required for the lamp light output to achieve the target strategy under different conditions can be determined. By fitting the white light ratio under different conditions, a white light ratio function can be obtained.
[0073] The white light ratio function is used to characterize the correspondence between the white light ratio and different conditions. Based on the white light ratio function, a target strategy optimization model can be obtained.
[0074] In some embodiments, the dimming command parameters include color temperature and color deviation.
[0075] The method for obtaining initial color coordinates corresponding to the dimming instruction parameters based on the dimming instruction parameters includes: obtaining the initial color coordinates based on color temperature and color deviation.
[0076] In actual implementation, the initial color coordinates may be acquired based on the actual values of the color temperature and color deviation input by the user and a preset first mapping relationship, wherein the first mapping relationship is used to indicate the conversion relationship between color temperature, color deviation, and color coordinates.
[0077] In some embodiments, the dimming command parameters include target color coordinates.
[0078] Correspondingly, step 1101 includes: using the target color coordinates as the initial color coordinates.
[0079] In actual implementation, the user may also directly input the target color coordinates. After the lamp receives the target color coordinates input by the user, it automatically determines the target color coordinates as the initial color coordinates.
[0080] In some embodiments, the dimming instruction parameter includes brightness.
[0081] Correspondingly, step 1104 includes: obtaining the first power parameter value corresponding to each lamp bead group based on the color coordinates of the mixed color light, the proportion of white light and the brightness.
[0082] In actual implementation, the first power parameter value corresponding to each lamp bead group can be obtained based on the color coordinates of the mixed color light, the proportion of white light and brightness, and the pre-set second mapping relationship. The second mapping relationship is used to indicate the conversion relationship between the color coordinates of the mixed color light, the proportion of white light and brightness.
[0083] In some embodiments, step 120 may include: based on the first power parameter value and the total brightness of the multiple lamp bead groups, gradually processing the initial power parameter values of the multiple lamp bead groups, and outputting the second power parameter value of each lamp bead group.
[0084] In actual implementation, based on the total brightness of multiple lamp groups, it is assumed that the brightness gradually changes from 100% to 10% in a logarithmic curve. Therefore, it is necessary to ensure that the total output brightness also changes in a logarithmic curve on the time axis, thereby ensuring that the final output PWM frequency also maintains a certain ratio, which is suitable for the situation where all pixels have the same output.
[0085] In some embodiments, step 120 may include: determining the fifth power parameter value of the pixel point corresponding to each lamp bead in the multi-way lamp bead group based on the first power parameter value; based on the fifth power parameter value, performing gradient processing on the initial power parameter value corresponding to each pixel point, and outputting the second power parameter value corresponding to each pixel point.
[0086] In actual implementation, the pixel point corresponding to each lamp bead reaches the fifth power parameter value from the initial power parameter value corresponding to each pixel point in a linear gradient manner, which is determined to be applicable to the situation where the pixel point is an independent output.
[0087] In this step, the fifth power parameter value of the pixel point corresponding to each lamp bead is first determined based on the first power parameter value. Then, for each pixel point, all intermediate values from the initial power parameter value to the fifth power parameter value are determined to obtain the second power parameter value corresponding to each pixel point.
[0088] Figure 2 is a schematic diagram of the structure of the dimming system for a lamp provided herein. This system utilizes the aforementioned dimming method for a lamp comprising multiple lamp bead groups, each of which includes at least one lamp bead. Referring to Figure 2 , the dimming system for a lamp provided herein includes a dimming algorithm module 210, a soft light gradient module 220, a power scaling module 230, a light source current limiting module 240, and a PWM automatic frequency conversion module 250.
[0089] The dimming algorithm module 210 is configured to receive a dimming instruction parameter and output a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp.
[0090] The soft light gradient module 220 is used to: based on the first power parameter value, gradually process the initial power parameter value of the lamp, and output the second power parameter value of each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to the intermediate value corresponding to the first power parameter value.
[0091] The power scaling module 230 is configured to: perform scaling processing on the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and output a third power parameter value of each lamp bead group.
[0092] The light source current limiting module 240 is configured to perform current limiting processing on the third power parameter value based on a power threshold of the working power supply corresponding to the lamp, and output a fourth power parameter value of each lamp bead group.
[0093] The PWM automatic frequency conversion module 250 is used to: perform dimming control on each lamp bead group based on the PWM frequency corresponding to each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0094] In this embodiment, by setting a dimming algorithm module, a soft light gradient module, a power scaling module, a light source current limiting module and a PWM automatic frequency conversion module, the stroboscopic and soft gradient effects can be achieved during the dimming control of multiple lamp bead groups. It can also take into account the power ratio corresponding to each lamp bead group, the power threshold of the lamp and the hardware adaptation under the power threshold limit of the working power supply, and can also independently limit the power ratio of each lamp bead.
[0095] In some embodiments, the multiple lamp bead groups include one white light lamp bead group and three colored light lamp bead groups, and the three colored light lamp bead groups correspond to colored lights of different colors.
[0096] Correspondingly, the dimming algorithm module 210 is used to: obtain the initial color coordinates corresponding to the dimming instruction parameters based on the dimming instruction parameters; obtain the white light ratio corresponding to the white light lamp bead group based on the target strategy optimization model and the dimming instruction parameters; obtain the color mixed light color coordinates corresponding to the three color light lamp bead groups respectively based on the initial color coordinates and the white light ratio; output the first power parameter value based on the color mixed light color coordinates, the white light ratio and the dimming instruction parameters.
[0097] In some embodiments, the soft light gradient module 220 includes: an overall lumen soft light gradient module.
[0098] The overall lumen soft light gradient module is used to: based on the first power parameter value and the total brightness of the multiple lamp bead groups, gradually change the initial power parameter value of the multiple lamp bead groups, and output the second power parameter value of each lamp bead group.
[0099] In some embodiments, the soft light gradient module includes: a multi-point pixel streamer gradient module.
[0100] The multi-point pixel streamer gradient module is used to: determine the fourth power parameter value of the pixel point corresponding to each lamp bead in the multi-channel lamp bead group based on the first power parameter value; based on the fourth power parameter value, perform gradient processing on the initial power parameter value corresponding to each pixel point, and output the second power parameter value corresponding to each pixel point.
[0101] It should be noted that the dimming system of the lamp provided in this application corresponds to the dimming method of the lamp provided in the above embodiments. The relevant technical features of the dimming system provided in this application can refer to the relevant technical features of the dimming method provided in the above embodiments, and will not be repeated here.
[0102] In actual implementation, the dimming instruction parameters are input by the user, and the dimming algorithm module 210 converts the dimming instruction parameters into the first power parameter value of each lamp bead group, and then sends the first power parameter value to the soft light gradient module 220.
[0103] The soft light gradient curve generated in the soft light gradient module 220 starts with the initial power parameter value corresponding to the multiple lamp bead groups and ends with the first power parameter value. The second power parameter value output during the gradient is calculated and passed to the power scaling module 230.
[0104] In some embodiments, the soft light gradient module 220 includes: an overall lumen soft light gradient module and a multi-point pixel streamer gradient module. During actual execution, according to the user's dimming requirements, the overall lumen soft light gradient module or the multi-point pixel streamer gradient module is used to calculate the second power parameter value output during gradient.
[0105] The power scaling module 230 further calculates the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, obtains the third power parameter value output by each lamp bead group at different moments of the gradient, and sends the third power parameter value of each lamp bead group to the light source current limiting module 240.
[0106] The light source current limiting module 240 further limits the third power parameter value of each lamp bead group according to the actual hardware conditions. The third power parameter value can be multiplied by the upper limit current parameter to obtain the fourth power parameter value of each lamp bead group, and the fourth power parameter value is sent to the PWM automatic frequency conversion module 250.
[0107] The PWM automatic frequency conversion module 250 will automatically calculate the PWM frequency corresponding to each lamp bead group according to the fourth power parameter value of each lamp bead group, thereby realizing dimming control of multiple lamp bead groups.
[0108] In some embodiments, the application process of the dimming system of the lamp includes the following steps 1 to 7.
[0109] Step 1: The user inputs brightness Bi, color temperature CCTi, color deviation DUVi, and color or color coordinates Cxcyi.
[0110] Step 2: Based on the algorithm calibration parameters, the dimming algorithm module 210 calculates the first power parameter value of each lamp bead group and inputs the first power parameter value of each lamp bead group into the soft light gradient module 220.
[0111] Step 3: The soft light gradient module 220 terminates the current gradient, and takes the current state as the starting point, regularly calculates the second power parameter value of each lamp bead group that each lamp bead needs to output during the gradient, and passes the value to the power scaling module 230.
[0112] Step 4: The power scaling module 230 recalculates the second power parameter value of each lamp bead group according to the parameters configured in the scaling process to obtain the third power parameter value of each lamp bead group, and transmits it to the light source current limiting module 240.
[0113] Step 5: The light source current limiting module 240 multiplies the third power parameter value by the upper current limit parameter to obtain a fourth power parameter value.
[0114] Step 6: If the light beads are driven by PWM, the PWM automatic frequency conversion module 250 converts the fourth power parameter value into the PWM frequency corresponding to each light bead.
[0115] Step 7: Based on the PWM frequency corresponding to each lamp bead, the dimming control of each lamp bead group is finally completed.
[0116] It can be understood that the dimming algorithm module 210 is provided with algorithm calibration parameters for calibrating the light color of the entire lamp. The soft light gradient module 220 is provided with soft light gradient parameters for adjusting the soft light gradient curve and range. The power scaling module 230 is provided with a power threshold for each lamp bead group, and a power threshold for the lamp is set, which is used to scale the overall power of the lamp and each lamp bead group. The light source current limiting module 240 is provided with a limited current parameter for limiting the power parameter value of each lamp bead group based on the working power supply of the lamp. The PWM automatic frequency conversion module 250 is provided with an automatic frequency conversion parameter for describing the correspondence between the PWM value and the PWM frequency, and is also provided with a mapping relationship for converting the power parameter value to the PWM value.
[0117] In some embodiments, the dimming algorithm module 210, the soft light gradient module 220, the power scaling module 230, the light source current limiting module 240, and the PWM automatic frequency conversion module 250 are independent of each other. In some embodiments, the various functional modules of the lighting fixture's dimming system are decoupled and assembled to work together in application, achieving a complete solution from algorithmic calculation of power parameter values for each channel to hardware adaptation for soft output.
[0118] In some embodiments, the PWM automatic frequency conversion module 250 independently controls each lamp bead group.
[0119] In actual implementation, as shown in FIG3 , the multi-channel lamp bead group may include a lamp bead group corresponding to the RGBW chip, that is, a red light lamp bead group, a green light lamp bead group, a blue light lamp bead group and a white light lamp bead group.
[0120] In some embodiments, the PWM automatic frequency conversion module 250 is used to: determine the PWM value corresponding to each lamp bead group based on the fourth power parameter value of each lamp bead group; determine the PWM frequency corresponding to each lamp bead group based on the PWM value corresponding to each lamp bead group.
[0121] In actual implementation, the fourth power parameter value is linearly related to the PWM value corresponding to each lamp bead group. Based on this linear relationship, after determining the fourth power parameter value, the PWM value corresponding to each lamp bead group can be determined, and then the PWM frequency corresponding to each lamp bead group can be determined.
[0122] The lamp provided in this application is described below.
[0123] It should be noted that the dimming method of the lamp executed by the computer program provided in the lamp has been described in the above embodiment and will not be repeated here.
[0124] In actual implementation, after the luminaire design is complete, the power thresholds for each lamp group, the lamp power threshold, and the current-limiting parameters (the power threshold of the lamp's corresponding operating power supply) are determined. With these parameters set, algorithm parameters are collected for each lamp group in a 1:1 configuration to obtain algorithm calibration parameters. All of these parameters are input and stored in the luminaire.
[0125] When the user inputs the dimming command parameters, the final dimming control of each lamp group is obtained through the various modules and parameter calculations in the dimming system of the lamp.
[0126] The parameters set by the computer program in the lamp are shown in Table 1.
[0127] Table 1
[0128] It is understandable that the above parameters need to be adjusted according to the actual lamp to achieve the best product effect.
[0129] The lamp provided in this application can achieve stroboscopic and soft gradient effects when dimming multiple lamp bead groups by setting a computer program inside the lamp. It can also take into account the power threshold of the working power supply corresponding to the lamp, the power threshold of each lamp bead group and the hardware adaptation under the power threshold limit of the lamp, and can also take into account the independent power ratio limit of each lamp bead group.
[0130] FIG4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG4 , the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440. The processor 410, the communications interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to execute a dimming method, which includes:
[0131] receiving a dimming instruction parameter, and outputting a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp;
[0132] Based on the first power parameter value, gradually change the initial power parameter value of the lamp to output a second power parameter value of each lamp bead group, where the second power parameter value is used to indicate that the initial power parameter value gradually changes to an intermediate value corresponding to the first power parameter value;
[0133] Based on the power threshold of each lamp bead group and the power threshold of the lamp, the second power parameter value is scaled and outputted as a third power parameter value of each lamp bead group;
[0134] Based on the power threshold of the working power supply corresponding to the lamp, the third power parameter value is current limited, and the fourth power parameter value of each lamp bead group is output;
[0135] Based on the PWM frequency corresponding to each lamp bead group, dimming control is performed on each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0136] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0137] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the dimming method provided by the above methods, which includes: obtaining initial color coordinates based on dimming instruction parameters; obtaining white light proportion based on a target strategy optimization model and the dimming instruction parameters; obtaining color coordinates of mixed light based on the initial color coordinates and the white light proportion; obtaining PWM values corresponding to each of the four lamp beads based on the color coordinates of the mixed light, the white light proportion and the dimming instruction parameters; and dimming each of the four lamp beads based on the PWM values corresponding to each of the four lamp beads.
[0138] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to execute the dimming method provided by the above methods, the method comprising: receiving a dimming instruction parameter, and based on the dimming instruction parameter, outputting a first power parameter value of each lamp bead group, the dimming instruction parameter being a parameter related to the light output effect of the lamp; based on the first power parameter value, gradually processing the initial power parameter value of the lamp, and outputting a second power parameter value of each lamp bead group, the second power parameter value being used to output the second power parameter value of each lamp bead group. Indicating that the initial power parameter value gradually changes to the intermediate value corresponding to the first power parameter value; based on the power threshold of each lamp bead group and the power threshold of the lamp, scaling the second power parameter value, and outputting the third power parameter value of each lamp bead group; based on the power threshold of the working power supply corresponding to the lamp, current limiting the third power parameter value, and outputting the fourth power parameter value of each lamp bead group; based on the PWM frequency corresponding to each lamp bead group, dimming control is performed on each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0139] The dimming device and the lamp of the present application are described below with reference to FIG. 5 to FIG. 7 .
[0140] FIG5 is one of the structural schematic diagrams of the dimming device of the lamp provided in this application.
[0141] The lamp includes multiple lamp bead groups, and each lamp bead group includes at least one lamp bead.
[0142] 5 , the dimming device for a lamp provided in the present application includes: a dimming algorithm module 510 , a soft light gradient module 520 , a power scaling module 530 , a light source current limiting module 540 and a PWM automatic frequency conversion module 550 .
[0143] The first end of the dimming algorithm module 510 is used to receive the input dimming instruction parameters, the second end of the dimming algorithm module 510 is connected to the first end of the soft light gradient module 520, the second end of the soft light gradient module 520 is connected to the first end of the power scaling module 530, the second end of the power scaling module 530 is connected to the first end of the light source current limiting module 540, the second end of the light source current limiting module 540 is connected to the first end of the PWM automatic frequency conversion module 550, and the second end of the PWM automatic frequency conversion module 550 is used to connect to a multi-channel lamp bead group.
[0144] The dimming algorithm module 510 is configured to receive a dimming instruction parameter and output a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp.
[0145] In actual implementation, the dimming algorithm module 510 receives dimming command parameters input by the user. Based on the dimming command parameters, the dimming algorithm module 510 can calculate a first power parameter value for each lamp bead group. The first power parameter value can be a value of a power-related parameter, including but not limited to electrical power, power factor, current, or voltage, etc., which is not specifically limited in this application.
[0146] The dimming algorithm module 510 can determine the target power ratio of each lamp bead group based on the first power parameter value of each lamp bead group. The target power ratio is the power ratio of each lamp bead group and is also the power ratio that meets user needs. For example, the target power ratio of the red lamp bead group to the white lamp bead group is 1:2, or the target power ratio of the red lamp bead group: the green lamp bead group: the blue lamp bead group: the white lamp bead group is 1:2:3:4. It will be understood that the above ratios are for example purposes only and can be determined based on actual conditions. This application does not impose specific limitations on this.
[0147] It should be noted that the power parameter values in this application are linearly related to the lumen value and the pulse width modulation (PWM) value, that is, when the power parameter value is determined, the lumen value and the PWM value can be further determined.
[0148] In some embodiments, the dimming command parameters include but are not limited to brightness, color temperature, color deviation, color coordinates, wattage, luminous efficiency, or color rendering index.
[0149] It should be noted that the brightness of a light is luminous flux, which is measured in lumens. The higher the lumen, the brighter the light.
[0150] Color temperature is a physical quantity that describes the relationship between the color and temperature of blackbody radiation. Color temperature is usually expressed in degrees Kelvin (Kelvin). Low color temperatures are also called warm colors, while high color temperatures are called cool colors.
[0151] Chromaticity coordinates are the coordinates of color, and they can accurately represent color.
[0152] Color deviation refers to the difference between the computer-calculated formula and the target standard. It is calculated under a single lighting source. The smaller the value, the higher the accuracy.
[0153] Wattage refers to the amount of electricity a lamp consumes. The higher the wattage, the more electricity the lamp consumes. It doesn't necessarily mean the lamp will be brighter.
[0154] Luminous efficiency is the ratio of the amount of light emitted by a light source to its wattage, measured in lumens per watt. The higher the luminous efficiency, the greater the conversion of electrical energy into light energy, resulting in greater lighting brightness at the same wattage.
[0155] The color rendering index (CRI) is a light source's ability to reproduce the color of the object it is illuminating. Taking the sun as the standard, the closer the CRI of a light source is to 100, the better the color reproduction.
[0156] The soft light gradient module 520 is used to: based on the first power parameter value, gradually process the initial power parameter value of the lamp, and output the second power parameter value of each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to the intermediate value corresponding to the first power parameter value.
[0157] The initial power parameter value of the lamp may be 0 or not 0, that is, the state of the lamp may be on or off.
[0158] The soft light gradient module 520 performs gradient processing on the initial power parameter value of the lamp, with the aim of making the process of adjusting the lamp from the initial power parameter value to the first power parameter value a regularly changing process. The power parameter values that need to be output at different times during the gradient are calculated to ensure the visual effect of the human eye.
[0159] In actual implementation, the gradual change process can be to determine the initial power parameter value to gradually change to the intermediate value corresponding to the first power parameter value, that is, the second power parameter value of each lamp bead group. The intermediate value can be an arithmetic progression or a geometric progression, which is not specifically limited here.
[0160] The power scaling module 530 is configured to: perform scaling processing on the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and output a third power parameter value of each lamp bead group.
[0161] It should be noted that the power threshold of the lamp is the total power threshold of all lamp groups, that is, the power scaling limit value of the lamp as a whole. The power threshold of each lamp group is the power scaling limit value for each lamp group.
[0162] For example: After determining that the second power parameter value meets the power threshold of each lamp bead group, the power scaling module 530 calculates that the sum of the second power parameter values that a certain lamp needs to output during the gradient process is 400 watts, but the power threshold of the lamp is 200 watts. In this case, 400 watts needs to be multiplied by a coefficient of 0.5 to reduce it to 200 watts.
[0163] The light source current limiting module 540 is used to: perform current limiting processing on the third power parameter value based on the power threshold of the working power supply corresponding to the lamp, and output the fourth power parameter value of each lamp bead group.
[0164] The light source current limiting module 540 can limit the power output of each lamp bead group based on the actual hardware conditions, namely the operating power supply corresponding to the lamp fixture. The current limiting parameter is determined by the operating power supply. The fourth power parameter value for each lamp bead group is obtained by multiplying the third power parameter value by the upper current limit parameter. Based on the linear relationship between the fourth power parameter value and the PWM value, the PWM value corresponding to each lamp bead group can be determined.
[0165] The PWM automatic frequency conversion module 550 is used to: perform dimming control on each lamp bead group based on the PWM frequency corresponding to each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
[0166] In actual implementation, the PWM automatic frequency conversion module 550 can automatically calculate the PWM frequency corresponding to each lamp bead group based on the PWM value corresponding to each lamp bead group. Based on the PWM frequency corresponding to each lamp bead group, dimming control of each lamp bead group can be achieved.
[0167] The dimming device of the lamp provided in the present application receives the dimming command parameters input by the user by setting a dimming algorithm module, a soft light gradient module, a power scaling module, a light source current limiting module and a PWM automatic frequency conversion module, and obtains the intermediate parameters of the first power parameter value, the second power parameter value, the third power parameter value and the fourth power parameter value, so as to take into account the power threshold of each lamp bead group, the power threshold of the lamp and the power threshold limit of the working power supply, and finally determine the PWM frequency value of each lamp bead group to achieve precise dimming control. Therefore, the lamp can be accurately controlled by the dimming command parameters, so that the dimming command parameters are highly consistent with the visual perception of the human eye.
[0168] The following is an overall description of the working process of the dimming device of the lamp.
[0169] In actual implementation, the dimming instruction parameters are input by the user, and the dimming algorithm module 510 converts the dimming instruction parameters into the first power parameter value of each lamp bead group, and then sends the first power parameter value to the soft light gradient module 520.
[0170] The soft light gradient curve generated in the soft light gradient module 520 starts with the initial power parameter value corresponding to the multiple lamp bead groups and ends with the first power parameter value. The second power parameter value output during the gradient is calculated and passed to the power scaling module 530.
[0171] In some embodiments, the soft light gradient module 520 includes: an overall lumen soft light gradient module and a multi-point pixel streamer gradient module. During actual execution, according to the user's dimming requirements, the overall lumen soft light gradient module or the multi-point pixel streamer gradient module is used to calculate the second power parameter value output during gradient.
[0172] The power scaling module 530 further calculates the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, obtains the third power parameter value output by each lamp bead group at different moments of the gradient, and sends the third power parameter value of each lamp bead group to the light source current limiting module 540.
[0173] The light source current limiting module 540 further limits the third power parameter value of each lamp bead group according to the actual hardware conditions. The third power parameter value can be multiplied by the upper limit current parameter to obtain the fourth power parameter value of each lamp bead group, and the fourth power parameter value is sent to the PWM automatic frequency conversion module 550.
[0174] The PWM automatic frequency conversion module 550 will automatically calculate the PWM frequency corresponding to each lamp bead group according to the fourth power parameter value of each lamp bead group, thereby realizing dimming control of multiple lamp bead groups.
[0175] In this embodiment, by setting a dimming algorithm module, a soft light gradient module, a power scaling module, a light source current limiting module and a PWM automatic frequency conversion module, the stroboscopic and soft gradient effects can be achieved during the dimming control of multiple lamp bead groups. It can also take into account the power ratio corresponding to each lamp bead group, the power threshold of the lamp and the hardware adaptation under the power threshold limit of the working power supply, and can also independently limit the power ratio of each lamp bead.
[0176] In some embodiments, the multiple lamp bead groups include one white light lamp bead group and three colored light lamp bead groups, and the three colored light lamp bead groups correspond to colored lights of different colors.
[0177] Correspondingly, the dimming algorithm module 510 is used to: obtain the initial color coordinates corresponding to the dimming instruction parameters based on the dimming instruction parameters; obtain the white light ratio corresponding to the white light lamp bead group based on the target strategy optimization model and the dimming instruction parameters; obtain the color mixed light color coordinates corresponding to the three color light lamp bead groups respectively based on the initial color coordinates and the white light ratio; output the first power parameter value based on the color mixed light color coordinates, the white light ratio and the dimming instruction parameters.
[0178] In some embodiments, the three colored light bead groups may be a red light bead group, a green light bead group, and a blue light bead group respectively.
[0179] In some other embodiments, the 3-way colored light bead group can also be an orange light bead group and a yellow light bead group, as well as a blue light bead group or a purple light bead group.
[0180] In actual implementation, the dimming command parameters can be obtained by receiving user input to the lamp. For example, the user can manually enter the dimming command parameters in the corresponding function display interface of the lamp to obtain the dimming command parameters. For example, the input brightness is 1000 lumens.
[0181] After obtaining the dimming instruction parameters, the dimming algorithm module 510 can obtain the initial color coordinates based on the dimming instruction parameters. In some embodiments, the initial color coordinates can be converted using a color temperature and color coordinate conversion formula, a conversion model, or other methods, which are not limited in this application.
[0182] It should be noted that the target strategy optimization model is constructed based on the target strategy, and is used to obtain the corresponding white light ratio in combination with the dimming instruction parameters, so that the final light output of the lamp meets the dimming instruction parameters while complying with the target strategy.
[0183] The target strategy may be an artificially set strategy related to the effect of light output, including but not limited to an optimal color rendering index strategy or an optimal saturation strategy.
[0184] In some embodiments, the target strategy includes: a color rendering index optimal strategy, a saturation optimal strategy, a fidelity optimal strategy, or a balance optimal strategy, and the balance optimal strategy is formed based on two or more of the color rendering index optimal strategy, the saturation optimal strategy, and the fidelity optimal strategy.
[0185] After obtaining the target strategy optimization model and the dimming instruction parameters, the dimming algorithm module 510 can obtain the white light ratio corresponding to the white light lamp bead group based on the target strategy optimization model and the dimming instruction parameters. The white light ratio is the luminous ratio of the white light lamp bead group in the 4-way lamp bead group.
[0186] After obtaining the initial color coordinates and the white light ratio, the dimming algorithm module 510 can obtain the color coordinates of the mixed colors corresponding to the three color light groups based on the initial color coordinates and the white light ratio. The mixed color coordinates are the color coordinates of the three kinds of mixed colors corresponding to the three color light groups of the lamp.
[0187] The dimming algorithm module 510 can calculate the first power parameter value of each lamp bead group based on the color coordinates of the mixed color light, the white light ratio and the dimming instruction parameters.
[0188] In this embodiment, the dimming algorithm module obtains the dimming instruction parameters and, on the one hand, converts them into initial color coordinates that carry the dimming instruction parameter information. On the other hand, it can be combined with a specific target strategy optimization model to obtain the white light ratio required to achieve the target strategy. On this basis, the color coordinates of the mixed light can be obtained based on the initial color coordinates and the white light ratio. Moreover, the first power parameter values corresponding to the multiple lamp bead groups can be obtained based on the color coordinates of the mixed light, the white light ratio, and the dimming instruction parameters. Therefore, not only can the brightness, color temperature, or color of the lamp bead be accurately controlled according to the dimming instruction parameters, but the color rendering index, color saturation, and realism can also be further adjusted according to the user's lighting needs, so that the dimming effect is better and meets user needs, thereby improving the user experience.
[0189] In some embodiments, a method for obtaining a target strategy optimization model includes: determining, based on the target strategy, the white light ratios corresponding to different color temperatures and different color deviations within a preset color temperature range and a preset color deviation range; fitting the white light ratios corresponding to the different color temperatures and different color deviations based on the target strategy to obtain a white light ratio function; and obtaining the target strategy optimization model based on the white light ratio function. This allows for the establishment of a highly accurate target strategy optimization model.
[0190] In actual implementation, in order to obtain the target strategy optimization model, we can first determine the white light ratio corresponding to the target strategy under different conditions within the preset color temperature range and the preset color deviation range.
[0191] The preset color temperature range and the preset color deviation range can be set according to actual needs or actual conditions.
[0192] Different conditions are composed of different color temperatures and different color deviations. For example, if the preset color temperature range is 1000K to 2000K and the preset color deviation range is -0.003 to 0.003, you can take a point at every arbitrary interval of the preset color temperature range, such as 100K, and take a point at every arbitrary interval of the preset color deviation range, such as 0.001. The color temperature points and color deviation points can be arbitrarily combined in pairs to obtain multiple different conditions, such as condition A with a color temperature of 5100K and a color deviation of 0.001, or condition B with a color temperature of 5500K and a color deviation of 0.002.
[0193] Based on the target strategy, the white light ratio required for the lamp light output to achieve the target strategy under different conditions can be determined. By fitting the white light ratio under different conditions, a white light ratio function can be obtained.
[0194] The white light ratio function is used to characterize the correspondence between the white light ratio and different conditions. Based on the white light ratio function, a target strategy optimization model can be obtained.
[0195] In some embodiments, the dimming command parameters include color temperature and color deviation.
[0196] The dimming algorithm module 510 is further configured to obtain initial color coordinates based on the color temperature and the color deviation.
[0197] In actual implementation, the initial color coordinates may be acquired based on the actual values of the color temperature and color deviation input by the user and a preset first mapping relationship, wherein the first mapping relationship is used to indicate the conversion relationship between color temperature, color deviation, and color coordinates.
[0198] In some embodiments, the dimming command parameters include target color coordinates.
[0199] Correspondingly, the dimming algorithm module 510 is further configured to use the target color coordinates as initial color coordinates.
[0200] In actual implementation, the user may also directly input the target color coordinates. After the lamp receives the target color coordinates input by the user, it automatically determines the target color coordinates as the initial color coordinates.
[0201] In some embodiments, the dimming instruction parameter includes brightness.
[0202] Correspondingly, the dimming algorithm module 510 is further configured to obtain the first power parameter value corresponding to each lamp bead group based on the color coordinates of the mixed color light, the proportion of white light and the brightness.
[0203] In actual implementation, the first power parameter value corresponding to each lamp bead group can be obtained based on the color coordinates of the mixed color light, the proportion of white light and brightness, and the pre-set second mapping relationship. The second mapping relationship is used to indicate the conversion relationship between the color coordinates of the mixed color light, the proportion of white light and brightness.
[0204] In some embodiments, the soft light gradient module 520 includes: an overall lumen soft light gradient module.
[0205] The overall lumen soft light gradient module is used to: based on the first power parameter value and the total brightness of the multiple lamp bead groups, gradually change the initial power parameter value of the multiple lamp bead groups, and output the second power parameter value of each lamp bead group.
[0206] In actual implementation, the overall lumen soft light gradient module is based on the total brightness of multiple lamp groups. It is assumed that the brightness gradually changes from 100% to 10% in a logarithmic curve. Therefore, it is necessary to ensure that the total output brightness also changes in a logarithmic curve on the time axis, thereby ensuring that the final output PWM frequency also maintains a certain ratio, which is suitable for situations where all pixels have the same output.
[0207] In some embodiments, the soft light gradient module 520 includes: a multi-point pixel streamer gradient module.
[0208] The multi-point pixel streamer gradient module is used to: determine the fourth power parameter value of the pixel point corresponding to each lamp bead in the multi-channel lamp bead group based on the first power parameter value; based on the fourth power parameter value, perform gradient processing on the initial power parameter value corresponding to each pixel point, and output the second power parameter value corresponding to each pixel point.
[0209] In actual implementation, the multi-point pixel streamer gradient module is used to: at the pixel point corresponding to each lamp bead, the initial power parameter value corresponding to each pixel point reaches the fifth power parameter value in a linear gradient manner, and determine the situation where the pixel point is an independent output.
[0210] In this step, the fifth power parameter value of the pixel point corresponding to each lamp bead is first determined based on the first power parameter value. Then, for each pixel point, all intermediate values from the initial power parameter value to the fifth power parameter value are determined to obtain the second power parameter value corresponding to each pixel point.
[0211] In some embodiments, the PWM automatic frequency conversion module 550 is used to: determine the PWM value corresponding to each lamp bead group based on the fourth power parameter value of each lamp bead group; determine the PWM frequency corresponding to each lamp bead group based on the PWM value corresponding to each lamp bead group.
[0212] In actual implementation, the fourth power parameter value is linearly related to the PWM value corresponding to each lamp bead group. Based on this linear relationship, after determining the fourth power parameter value, the PWM value corresponding to each lamp bead group can be determined, and then the PWM frequency corresponding to each lamp bead group can be determined.
[0213] In some embodiments, the application process of the dimming device of the lamp includes the following steps 1 to 7.
[0214] Step 1: The user inputs brightness Bi, color temperature CCTi, color deviation DUVi, and color or color coordinates Cxcyi.
[0215] Step 2: Based on the algorithm calibration parameters, the dimming algorithm module 510 calculates the first power parameter value of each lamp bead group and inputs the first power parameter value of each lamp bead group into the soft light gradient module 520.
[0216] Step 3: The soft light gradient module 520 terminates the current gradient, and takes the current state as the starting point, regularly calculates the second power parameter value of each lamp bead group that each lamp bead needs to output during the gradient, and passes the value to the power scaling module 530.
[0217] Step 4: The power scaling module 530 recalculates the second power parameter value of each lamp bead group according to the parameters configured in the scaling process to obtain the third power parameter value of each lamp bead group, and transmits it to the light source current limiting module 540.
[0218] Step 5: The light source current limiting module 540 multiplies the third power parameter value by the upper current limit parameter to obtain a fourth power parameter value.
[0219] Step 6: If the light beads are driven by PWM, the PWM automatic frequency conversion module 550 will convert the fourth power parameter value into the PWM frequency corresponding to each light bead.
[0220] Step 7: Based on the PWM frequency corresponding to each lamp bead, the dimming control of each lamp bead group is finally completed.
[0221] It can be understood that the dimming algorithm module 510 is provided with algorithm calibration parameters for calibrating the light color of the entire lamp. The soft light gradient module 520 is provided with soft light gradient parameters for adjusting the soft light gradient curve and range. The power scaling module 530 is provided with a power threshold for each lamp bead group, and a power threshold for the lamp is set, which is used to scale the overall power of the lamp and each lamp bead group. The light source current limiting module 540 is provided with a limited current parameter for limiting the power parameter value of each lamp bead group based on the working power supply of the lamp. The PWM automatic frequency conversion module 550 is provided with automatic frequency conversion parameters for describing the correspondence between PWM value and PWM frequency, and is also provided with a mapping relationship for converting power parameter value to PWM value.
[0222] In some embodiments, the dimming algorithm module 510 , the soft light gradient module 520 , the power scaling module 530 , the light source current limiting module 540 and the PWM automatic frequency conversion module 550 are independent of each other.
[0223] In some embodiments, the various functional modules of the dimming device of the lamp are decoupled, and when used, the modules are assembled and work together to implement a complete solution from algorithm calculation of power parameter values of each channel to hardware adaptation and soft output.
[0224] In some embodiments, the PWM automatic frequency conversion module 550 independently controls each lamp bead group.
[0225] In actual implementation, as shown in FIG6 , the multi-channel lamp bead group may include a lamp bead group corresponding to the RGBW chip, that is, a red light lamp bead group, a green light lamp bead group, a blue light lamp bead group and a white light lamp bead group.
[0226] In some embodiments, as shown in FIG. 7 , the present application further provides a lamp 700 , comprising a multi-channel lamp bead group 710 and a dimming device 720 of the lamp as described above.
[0227] The lamp 700 provided in this application is described below.
[0228] It should be noted that the dimming device 720 of the lamp provided in this application corresponds to the dimming device of the lamp provided in the above embodiments. The relevant technical features of the dimming device provided in this embodiment can refer to the relevant technical features of the dimming device provided in the above embodiments, and will not be repeated here.
[0229] In actual implementation, after the luminaire design is complete, the power thresholds for each lamp group, the lamp power threshold, and the current-limiting parameters (the power threshold of the lamp's corresponding operating power supply) are determined. With these parameters set, algorithm parameters are collected for each lamp group in a 1:1 configuration to obtain algorithm calibration parameters. All of these parameters are input and stored in the luminaire.
[0230] When the user inputs the dimming command parameters, the final dimming control of each lamp group is obtained through the various modules and parameter calculations in the dimming device of the lamp.
[0231] The parameters set by the computer program in the lamp are shown in Table 1.
[0232] Table 1
[0233] It is understandable that the above parameters need to be adjusted according to the actual lamp to achieve the best product effect.
[0234] The lamp provided in the present application can achieve stroboscopic and soft gradient effects when dimming multiple lamp bead groups by setting a dimming device inside the lamp. It can also take into account the power threshold of the working power supply corresponding to the lamp, the power threshold of each lamp bead group and the hardware adaptation under the power threshold limit of the lamp, and can also take into account the independent power ratio limit of each lamp bead group.
[0235] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0236] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0237] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A dimming method for a lamp, wherein the lamp includes multiple lamp bead groups, each lamp bead group including at least one lamp bead, the method comprising: receiving a dimming instruction parameter, and outputting a first power parameter value of each lamp bead group based on the dimming instruction parameter, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; Based on the first power parameter value, gradually change the initial power parameter value of the lamp to output a second power parameter value of each lamp bead group, where the second power parameter value is used to indicate that the initial power parameter value gradually changes to an intermediate value corresponding to the first power parameter value; Based on the power threshold of each lamp bead group and the power threshold of the lamp, the second power parameter value is scaled and outputted as a third power parameter value of each lamp bead group; Based on the power threshold of the working power supply corresponding to the lamp, the third power parameter value is current limited, and the fourth power parameter value of each lamp bead group is output; Based on the pulse width modulation (PWM) frequency corresponding to each lamp bead group, dimming control is performed on each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
2. The dimming method of a lamp according to claim 1, wherein: The multi-channel lamp bead group includes a white light lamp bead group and a three-channel color light lamp bead group, and the three-channel color light lamp bead groups correspond to different colors of light; The outputting the first power parameter value of each lamp bead group based on the dimming instruction parameter includes: Based on the dimming instruction parameter, obtaining initial color coordinates corresponding to the dimming instruction parameter; Based on the target strategy optimization model and the dimming instruction parameters, obtaining the white light ratio corresponding to the white light lamp bead group; Based on the initial color coordinates and the white light ratio, the color coordinates of the color mixed lights corresponding to the three color light bead groups are obtained; The first power parameter value is output based on the color coordinates of the color light mixture, the white light ratio and the dimming instruction parameter.
3. The dimming method of a lamp according to claim 2, wherein: The dimming instruction parameters include color temperature and color deviation; The acquiring, based on the dimming instruction parameter, initial color coordinates corresponding to the dimming instruction parameter includes: acquiring the initial color coordinates based on the color temperature and the color deviation.
4. The dimming method of a lamp according to claim 2, wherein: The dimming instruction parameters include target color coordinates; The acquiring, based on the dimming instruction parameter, initial color coordinates corresponding to the dimming instruction parameter includes: using the target color coordinates as the initial color coordinates.
5. The dimming method of a lamp according to claim 2, further comprising: Based on the target strategy, within the preset color temperature range and the preset color deviation range, determine the white light ratio corresponding to different color temperatures and different color deviations; Fitting the white light proportions corresponding to the different color temperatures and different color deviations based on the target strategy to obtain a white light proportion function; Based on the white light proportion function, the target strategy optimization model is obtained.
6. The dimming method for a lamp according to any one of claims 2 to 5, wherein: The dimming instruction parameters include brightness; The outputting the first power parameter value based on the color coordinates of the color light mixture, the white light ratio and the dimming instruction parameter includes: Based on the color coordinates of the mixed colored lights, the white light ratio, and the brightness, a first power parameter value corresponding to each lamp bead group is obtained.
7. The dimming method for a lamp according to any one of claims 1 to 5, wherein: The step of gradually changing the initial power parameter value of the lamp based on the first power parameter value to output the second power parameter value of each lamp bead group includes: Based on the first power parameter value and the total brightness of the multiple lamp bead groups, the initial power parameter values of the multiple lamp bead groups are gradually changed to output the second power parameter value of each lamp bead group.
8. The dimming method for a lamp according to any one of claims 1 to 5, wherein: The step of gradually changing the initial power parameter value of the lamp based on the first power parameter value to output the second power parameter value of each lamp bead group includes: Based on the first power parameter value, determine the fifth power parameter value of the pixel point corresponding to each lamp bead in the multi-channel lamp bead group; based on the fifth power parameter value, perform gradient processing on the initial power parameter value corresponding to each pixel point, and output the second power parameter value corresponding to each pixel point.
9. A dimming system for a lamp, using the dimming method for a lamp according to any one of claims 1 to 8, wherein the lamp comprises a plurality of lamp bead groups, each lamp bead group comprising at least one lamp bead, and the system comprises: a dimming algorithm module, configured to receive a dimming instruction parameter and, based on the dimming instruction parameter, output a first power parameter value of each lamp bead group, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; a soft light gradient module, configured to perform a gradient process on the initial power parameter value of the lamp based on the first power parameter value, and output a second power parameter value for each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to an intermediate value corresponding to the first power parameter value; a power scaling module, configured to scale the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and output a third power parameter value of each lamp bead group; a light source current limiting module, configured to perform current limiting processing on the third power parameter value based on a power threshold of the working power supply corresponding to the lamp, and output a fourth power parameter value of each lamp bead group; A PWM automatic frequency conversion module is used to perform dimming control on each lamp bead group based on the PWM frequency corresponding to each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
10. A lamp comprising a plurality of lamp bead groups and a computer program, wherein when the computer program is executed, the dimming method of the lamp according to any one of claims 1 to 8 is implemented.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the dimming method of the lamp according to any one of claims 1 to 8 when executing the program.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the dimming method of the lamp according to any one of claims 1 to 8 is implemented.
13. A dimming device for a lamp, the lamp comprising a plurality of lamp bead groups, each lamp bead group comprising at least one lamp bead, the device comprising: a dimming algorithm module, configured to receive a dimming instruction parameter and, based on the dimming instruction parameter, output a first power parameter value of each lamp bead group, wherein the dimming instruction parameter is a parameter related to the light output effect of the lamp; a soft light gradient module, configured to perform a gradient process on the initial power parameter value of the lamp based on the first power parameter value, and output a second power parameter value for each lamp bead group, wherein the second power parameter value is used to indicate that the initial power parameter value gradually changes to an intermediate value corresponding to the first power parameter value; a power scaling module, configured to scale the second power parameter value based on the power threshold of each lamp bead group and the power threshold of the lamp, and output a third power parameter value of each lamp bead group; a light source current limiting module, configured to perform current limiting processing on the third power parameter value based on a power threshold of the working power supply corresponding to the lamp, and output a fourth power parameter value of each lamp bead group; A PWM automatic frequency conversion module is used to perform dimming control on each lamp bead group based on the PWM frequency corresponding to each lamp bead group, and the PWM frequency is determined based on the fourth power parameter value.
14. The dimming device for a lamp according to claim 13, wherein: The second end of the PWM automatic frequency conversion module includes multiple output ends, and the multiple output ends are connected to the multiple lamp bead groups in a one-to-one correspondence; Among them, the PWM automatic frequency conversion module is used to: determine the PWM value corresponding to each lamp bead group based on the fourth power parameter value of each lamp bead group; determine the PWM frequency corresponding to each lamp bead group based on the PWM value corresponding to each lamp bead group.
15. A lamp comprising multiple lamp bead groups and the dimming device of the lamp according to claim 13 or 14.
Citation Information
Patent Citations
Light-emitting control method, apparatus and system for LED (light emitting diode) lamp
CN105530721A
Method and system for automatically adjusting lamp light
CN106102222A
Load control method, apparatus and device, and computer readable storage medium
CN114326430A
Dimming driver circuit and control method thereof
US20170325304A1
Lighting control techniques considering changes in eye sensitivity
US9125274B1