CN110677944A - Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip - Google Patents

Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip Download PDF

Info

Publication number
CN110677944A
CN110677944A CN201910853830.1A CN201910853830A CN110677944A CN 110677944 A CN110677944 A CN 110677944A CN 201910853830 A CN201910853830 A CN 201910853830A CN 110677944 A CN110677944 A CN 110677944A
Authority
CN
China
Prior art keywords
constant current
color
current threshold
lamp strip
different light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910853830.1A
Other languages
Chinese (zh)
Other versions
CN110677944B (en
Inventor
陈建锋
童俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Lianzhou International Technology Co ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201910853830.1A priority Critical patent/CN110677944B/en
Publication of CN110677944A publication Critical patent/CN110677944A/en
Application granted granted Critical
Publication of CN110677944B publication Critical patent/CN110677944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a method for adjusting the color of a lamp strip, which comprises the following steps: acquiring the length of a current lamp strip and current constant current thresholds of different light colors of the current lamp strip; searching a corresponding constant current threshold value from a preset corresponding relation table of the lamp strip length and the constant current threshold value; looking up corresponding numerical values of different light colors from a preset corresponding relation table of the constant current threshold and the different light colors, and converting the numerical values into corresponding duty ratios of pulse width modulation; determining the color proportion of different light colors under the color of the lamp strip according to the duty ratio of pulse width modulation; determining the duty ratio of pulse width modulation of current different light colors according to the color proportion, the total color degree and the current constant current threshold; and adjusting the color of the lamp strip according to the duty ratio modulated by the pulse widths of the current different light colors. The embodiment of the invention also provides a device, equipment and medium for adjusting the color of the lamp strip and an intelligent LED lamp strip, which can keep the color of the lamp strips with different lengths consistent when the length of the lamp strip is expanded.

Description

Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip
Technical Field
The invention relates to the technical field of LED color adjustment, in particular to a method, a device, equipment and a medium for adjusting the color of a lamp strip and an intelligent LED lamp strip.
Background
Because of the characteristic that the length of the intelligent LED lamp strip can be expanded, the LED brightness is generally controlled by two parameters of duty ratio (PWM) and constant current threshold value of pulse width modulation, and because the difference of luminous efficiency of RGBW four-way LED lamp beads is large, the constant current threshold values of four ways (R, G, B, W) under the default state of the lamp strip with the length of 2 meters are unequal. This results in the proportion of the four constant current threshold values changing with the increase of the length, in which case, if the duty ratio (PWM) of the original four pulse width modulation is maintained, the color will have a significant deviation, and the user experience will be greatly influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for adjusting the color of a lamp strip and an intelligent LED lamp strip, which can keep the color of the lamp strips with different lengths consistent when the length of the lamp strip is expanded.
An embodiment of the present invention provides a method for adjusting a color of a light strip, including:
acquiring the length of a current lamp strip and current constant current thresholds of different light colors of the current lamp strip;
searching a constant current threshold corresponding to the length of the current lamp strip from a preset corresponding relation table of the lamp strip length and the constant current threshold;
searching numerical values of different light colors corresponding to the constant current threshold from a preset corresponding relation table of the constant current threshold and the different light colors, and converting the numerical values of the different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value;
determining the color proportion of different light colors under the light belt color according to the duty ratio of the pulse width modulation of the different light colors;
determining the duty ratio of pulse width modulation of different current light colors according to the color proportion, the total color degree and the current constant current threshold; the color degree is the product of a constant current threshold value and a duty ratio of pulse width modulation;
and adjusting the color of the lamp strip according to the duty ratio modulated by the pulse widths of the current different light colors.
As an improvement of the above scheme, the table of correspondence between the preset lamp strip length and the constant current threshold specifically includes:
acquiring a constant current threshold of a single light color and constant current thresholds of different light colors under the conditions that the rated power of the adapter and the duty ratio of pulse width modulation are set to be 100%;
and selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
As an improvement of the above scheme, the table of correspondence between the preset constant current threshold and different light colors further includes:
and if the required lamp band colors do not exist in the corresponding relation table of the preset constant current threshold and the different light colors, calculating to obtain the numerical values of the different light colors corresponding to the required lamp band colors under the limited constant current threshold according to the equal proportion difference.
As an improvement of the scheme, the lamp strip is a four-way LED lamp strip.
Another embodiment of the present invention correspondingly provides a device for adjusting a color of a light strip, including:
the obtaining module is used for obtaining the length of the current lamp strip and the current constant current threshold values of different light colors of the current lamp strip.
The first searching module is used for searching a constant current threshold value corresponding to the length of the current lamp strip from a preset corresponding relation table of the lamp strip length and the constant current threshold value.
The second searching module is used for searching the numerical values of different light colors corresponding to the constant current threshold from a preset corresponding relation table of the constant current threshold and the different light colors and converting the numerical values of the different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value.
And the first calculation module is used for determining the color proportion of different light colors under the light belt color according to the duty ratio of the pulse width modulation of the different light colors.
The second calculation module is used for determining the duty ratios of pulse width modulation of the current different light colors according to the color proportion, the total color degree and the current constant current threshold; the color degree is the product of the constant current threshold value and the duty ratio of the pulse width modulation.
And the adjusting module is used for adjusting the color of the lamp strip according to the duty ratio modulated by the pulse widths of the current different light colors.
As an improvement of the above scheme, the table of correspondence between the preset lamp strip length and the constant current threshold specifically includes:
acquiring a constant current threshold of a single light color and constant current thresholds of different light colors under the conditions that the rated power of the adapter and the duty ratio of pulse width modulation are set to be 100%;
and selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
Another embodiment of the present invention provides a device for adjusting a color of a light strip, which is characterized by comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the method for adjusting a color of a light strip according to the above-mentioned embodiment of the present invention.
Another embodiment of the present invention provides a storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute the method for adjusting the color of the light strip described in the above embodiment of the present invention.
Another embodiment of the invention provides an intelligent LED strip, which includes the device for adjusting the color of the strip.
Compared with the prior art, the method, the device, the equipment, the medium and the intelligent LED lamp strip for adjusting the lamp strip color disclosed by the embodiment of the invention have the advantages that the corresponding constant current threshold is determined in the preset corresponding relation table of the lamp strip length and the constant current threshold through the obtained length of the current lamp strip, the numerical values of different light colors are obtained at the preset constant current threshold through the corresponding constant current threshold, the duty ratio of pulse width modulation is converted according to the numerical values of the different light colors, the color degree and the color proportion of each light color are calculated through the duty ratio of the pulse width modulation and the constant current threshold, and the duty ratio of the pulse width modulation of the current different light colors is determined according to the color proportion and the current constant current threshold, so that the color of the lamp strip is adjusted. By the analysis, the linkage of the pulse width modulation duty ratio, the constant current threshold value and the lamp strip length is realized, and when the length of the lamp strip is expanded, the lamp strip colors with different lengths can be kept consistent only by adjusting the pulse width modulation duty ratio.
Drawings
Fig. 1 is a schematic flow chart of a method for adjusting colors of a light strip according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for adjusting color of a light strip according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for adjusting color of a light strip according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for adjusting a color of a light strip according to an embodiment of the present invention.
The embodiment of the invention correspondingly provides a method for adjusting the color of a lamp strip, which comprises the following steps:
and S10, acquiring the length of the current lamp strip and the current constant current threshold of different light colors of the current lamp strip. In this embodiment, the lamp area is four ways LED lamp area, and four ways lamp area includes red, green, blue, white (R, G, B, W) four kinds of colored light, can mix into the light of different colours according to different proportions.
For example, after the LED lamp is powered on, since the current sampling resistor is connected in series to the power supply loop of the lamp strip controller, the voltage values at the two ends of the current sampling resistor can represent the value of the current flowing through the lamp strip, and the sampling voltage is converted into a decimal value through the ADC detection function of the MCU.
The ADC value when the lamp strip is completely extinguished is V0, the value when any section of minimum lamp bead unit is independently lightened is V1, the difference value of the two is delta V, a threshold value VTH between 0 and delta V is determined by considering errors and design allowance, and the condition that the ADC value is larger than or equal to VTH through software judgment is that the lamp bead is lightened currently. After the prototype is electrified, the software controls the prototype to sequentially light the 1 st, 2 nd and 3 … … N sections of lamp beads, and the corresponding N-1 value is the length of the current lamp strip when the reading value is smaller than VTH.
And S20, searching a constant current threshold corresponding to the length of the current lamp strip from a preset corresponding relation table of the lamp strip length and the constant current threshold.
The preset corresponding relation table of the lamp strip length and the constant current threshold is a constant current threshold for obtaining a single light color and constant current thresholds for different light colors under the conditions that the rated power of the adapter and the pulse width modulation value are set to be 100%. In this embodiment, the constant current threshold of the single light color only depends on the loading capability of the adapter, so the RGBW 4-way threshold is the same. The constant current threshold values under different light colors mainly depend on the luminous efficiency of each lamp bead of the RGBW lamp strip. And selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
Specifically, the constant current threshold of the single light color and the minimum constant current threshold of the constant current thresholds of the different light colors are selected as the constant current threshold corresponding to the length of the light strip, which is more favorable for mixing the lights of different colors
S30, searching the numerical values of different light colors corresponding to the constant current threshold from the corresponding relation table of the preset constant current threshold and different light colors, and converting the numerical values of different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value. The constant current threshold may include a plurality of set colors, each color corresponding to a light color value. In this embodiment, the table of correspondence between the preset constant current threshold and different light colors is a table formed by setting RGBW4 PWM combinations under typical colors (i.e., color gamut and saturation) through actual measurement to obtain 5 discrete points.
Specifically, a constant current threshold value is limited, and the color gamut and the saturation are determined according to the colors of the lamp strip; values of different light colors at the current color gamut and saturation are obtained. In this embodiment, 5 tables of discrete points can be obtained by setting the color gamut and saturation and measuring the values of different colors.
Table 1: saturation 100, gamut 0-360, taking a discrete point every 15 gamuts.
TABLE 1
Color gamut R G B W
0 0 0 0 0
15 255 18 0 0
30 248 23 0 0
345 235 0 13 0
Table 2 shows saturation 75, gamut 0-360, taking one discrete point every 15 gamuts, each discrete point describing RGBW value of the color; table 3 shows saturation 50, gamut 0-360, taking one discrete point every 15 gamuts, each discrete point describing RGBW value of the color; table 4 shows saturation 25, gamut 0-360, taking one discrete point every 15 gamuts, each discrete point describing RGBW value of the color; table 5: saturation 0, gamut 0-360, taking one discrete point every 15 gamuts, each discrete point describing the RGBW value for that color.
For example, if R is 100 and the PWM period is 255, the duty cycle of the pulse width modulation is 100/255.
And S40, determining the color proportion of different light colors under the light strip color according to the duty ratio of the pulse width modulation of different light colors.
In this embodiment, the color ratio of each light color is determined based on the duty cycle of the pulse width modulation of R, G, W, B each light under the strip color.
S50, determining the duty ratio of pulse width modulation of different current light colors according to the color proportion, the total color degree and the current constant current threshold; the color degree is the product of the constant current threshold and the duty ratio of the pulse width modulation, namely the color degree is the pulse width modulation duty ratio and the constant current threshold.
Illustratively, the length of the lamp strip is 2 meters, the color proportion of R is 20 percent,
total color number of bits PWM _ R _2m current _ R _2m + PWM _ G _2m current _ G _2m + PWM _ B _2m current _ W _2m + PWM _ W _2m current _ W _2m
20% total color number PWM _ R _2m current _ R _2m
Similarly, the duty ratio of R pulse width modulation (PWM _ R), the duty ratio of W pulse width modulation (PWM _ W), the duty ratio of G pulse width modulation (PWM _ G), and the duty ratio of B pulse width modulation (PWM _ B) can be obtained from the color ratio of W, G, B.
And S60, adjusting the color of the lamp strip according to the duty ratio of the pulse width modulation of the current different light colors.
Specifically, the colors of the lamp strips with different lengths are kept consistent by adjusting the duty ratio of pulse width modulation of the current different light colors.
In summary, in the method for adjusting the color of the lamp strip disclosed in the embodiment of the present invention, the length of the obtained current lamp strip is used to determine the corresponding constant current threshold in the preset table of the correspondence between the length of the lamp strip and the constant current threshold, then the corresponding constant current threshold is used to obtain the values of different light colors at the preset constant current threshold, the values of the different light colors are converted into the duty ratios of pulse width modulation according to the values of the different light colors, the color ratios of the different light colors are calculated according to the duty ratios of the pulse width modulation, and then the duty ratios of the pulse width modulation of the different light colors are determined according to the color ratios, the total color degrees and the current constant current threshold, so as to adjust the. By the analysis, the linkage of the pulse width modulation duty ratio, the constant current threshold value and the lamp strip length is realized, and when the length of the lamp strip is expanded, the lamp strip colors with different lengths can be kept consistent only by adjusting the pulse width modulation duty ratio.
As an improvement of the above scheme, the table of correspondence between the preset constant current threshold and different light colors further includes:
and if the required lamp band colors do not exist in the corresponding relation table of the preset constant current threshold and the different light colors, calculating to obtain the numerical values of the different light colors corresponding to the required lamp band colors under the limited constant current threshold according to the equal proportion difference.
For example, by looking up a preset correspondence table between the constant current threshold and different light colors, for example, knowing the RGBW value of color a and the RGBW value of color B, the RGBW value of the color between a and B can be obtained by calculating the proportional difference.
Fig. 2 is a schematic structural view of a device for adjusting color of a light strip according to an embodiment of the present invention.
The embodiment of the invention correspondingly provides a device for adjusting the color of a lamp strip, which comprises:
the obtaining module 10 is configured to obtain a length of a current light band and a current constant current threshold of different light colors of the current light band.
The first searching module 20 is configured to search a constant current threshold corresponding to the length of the current lamp strip from a preset table of correspondence between the length of the lamp strip and the constant current threshold.
The second searching module 30 is configured to search, from a preset correspondence table between a constant current threshold and different light colors, values of different light colors corresponding to the constant current threshold, and convert the values of different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value.
The first calculating module 40 is configured to determine, according to the duty ratios of the pulse width modulations of different light colors, the color ratios of the different light colors in the light band color.
The second calculating module 50 is configured to determine duty ratios of pulse width modulation of the current different light colors according to the color proportion, the total color degree, and the current constant current threshold; the color degree is the product of the constant current threshold value and the duty ratio of the pulse width modulation.
And the adjusting module 60 is configured to adjust the color of the light strip according to the duty ratio modulated by the pulse widths of the current different light colors.
As an improvement of the above scheme, the table of correspondence between the preset lamp strip length and the constant current threshold specifically includes:
acquiring a constant current threshold of a single light color and constant current thresholds of different light colors under the condition that the rated power of the adapter and the pulse width modulation value are set to be 100%;
and selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
In summary, in the device for adjusting the color of the lamp strip disclosed in the embodiment of the present invention, the corresponding constant current threshold is determined in the preset table of correspondence between the length of the lamp strip and the constant current threshold by the obtained length of the current lamp strip, then the numerical values of different light colors are obtained at the preset constant current threshold by the corresponding constant current threshold, the numerical values of different light colors are converted into the duty ratios of pulse width modulation according to the numerical values of different light colors, the color proportions of different light colors are calculated by the duty ratios of pulse width modulation, and then the duty ratios of pulse width modulation of different light colors are determined according to the color proportions, the total color degrees, and the current constant current threshold, so as to adjust the color of the lamp strip. By the analysis, the linkage of the pulse width modulation duty ratio, the constant current threshold value and the lamp strip length is realized, and when the length of the lamp strip is expanded, the lamp strip colors with different lengths can be kept consistent only by adjusting the pulse width modulation duty ratio. And the color of the lamp strip is adjusted by the method for adjusting the color of the lamp strip, so that the code storage space can be saved.
Fig. 3 is a schematic view of a device for adjusting color of a light strip according to an embodiment of the present invention. The color adjusting device for a lamp strip of this embodiment comprises: a processor 11, a memory 12 and a computer program stored in said memory 12 and executable on said processor 11. The processor 11 implements the steps in the above-mentioned embodiments of the method for adjusting the color of the light strip when executing the computer program. Alternatively, the processor 11 implements the functions of the modules/units in the above-described device embodiments when executing the computer program.
The embodiment of the invention provides an intelligent LED lamp belt which comprises a lamp belt color adjusting device.
According to the embodiment of the invention, due to the adoption of the lamp belt color adjusting device, when the length of the LED lamp belt is expanded, the colors of the LED lamp belts with different lengths can be kept consistent only by adjusting the duty ratio of pulse width modulation.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the light strip color adjusting device.
The device for adjusting the color of the lamp strip can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The device for adjusting the color of the lamp strip can comprise, but is not limited to, a processor and a memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of a light string color adjusting device and does not constitute a limitation of a light string color adjusting device, and may include more or fewer components than shown, or some components in combination, or different components, for example, the light string color adjusting device may also include an input-output device, a network access device, a bus, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the light strip color adjusting device, and various interfaces and lines are used for connecting various parts of the whole light strip color adjusting device.
The memory 12 may be used to store the computer programs and/or modules, and the processor may implement the various functions of the light strip color adjusting device by running or executing the computer programs and/or modules stored in the memory and invoking the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module/unit integrated with the light belt color adjusting device can be stored in a computer readable storage medium if the module/unit is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (9)

1. A method for adjusting the color of a lamp strip is characterized by comprising the following steps:
acquiring the length of a current lamp strip and current constant current thresholds of different light colors of the current lamp strip;
searching a constant current threshold corresponding to the length of the current lamp strip from a preset corresponding relation table of the lamp strip length and the constant current threshold;
searching numerical values of different light colors corresponding to the constant current threshold from a preset corresponding relation table of the constant current threshold and the different light colors, and converting the numerical values of the different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value;
determining the color proportion of different light colors under the light belt color according to the duty ratio of the pulse width modulation of the different light colors;
determining the duty ratio of pulse width modulation of different current light colors according to the color proportion, the total color degree and the current constant current threshold; the color degree is the product of a constant current threshold value and a duty ratio of pulse width modulation;
and adjusting the color of the lamp strip according to the duty ratio modulated by the pulse widths of the current different light colors.
2. The method for adjusting the color of the lamp strip according to claim 1, wherein the table of correspondence between the preset lamp strip length and the constant current threshold specifically includes:
acquiring a constant current threshold of a single light color and constant current thresholds of different light colors under the conditions that the rated power of the adapter and the duty ratio of pulse width modulation are set to be 100%;
and selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
3. The method for adjusting the colors of the light strip according to claim 1, wherein the table of the correspondence between the preset constant current threshold and the different colors of light further comprises:
and if the required lamp band colors do not exist in the corresponding relation table of the preset constant current threshold and the different light colors, calculating to obtain the numerical values of the different light colors corresponding to the required lamp band colors under the limited constant current threshold according to the equal proportion difference.
4. The method for adjusting the color of a light strip according to claim 1, wherein the light strip is a four-way LED light strip.
5. A device for adjusting the color of a lamp strip, comprising:
the obtaining module is used for obtaining the length of the current lamp strip and the current constant current threshold values of different light colors of the current lamp strip.
The first searching module is used for searching a constant current threshold value corresponding to the length of the current lamp strip from a preset corresponding relation table of the lamp strip length and the constant current threshold value.
The second searching module is used for searching the numerical values of different light colors corresponding to the constant current threshold from a preset corresponding relation table of the constant current threshold and the different light colors and converting the numerical values of the different light colors into corresponding duty ratios of pulse width modulation; the preset corresponding relation table of the constant current threshold value and different light colors comprises numerical values of different light colors under at least one lamp strip color corresponding to the constant current threshold value.
And the first calculation module is used for determining the color proportion of different light colors under the light belt color according to the duty ratio of the pulse width modulation of the different light colors.
The second calculation module is used for determining the duty ratios of pulse width modulation of the current different light colors according to the color proportion, the total color degree and the current constant current threshold; the color degree is the product of the constant current threshold value and the duty ratio of the pulse width modulation.
And the adjusting module is used for adjusting the color of the lamp strip according to the duty ratio modulated by the pulse widths of the current different light colors.
6. The device for adjusting the color of a light strip according to claim 5, wherein the table of correspondence between the preset length of the light strip and the constant current threshold specifically comprises:
acquiring a constant current threshold of a single light color and constant current thresholds of different light colors under the conditions that the rated power of the adapter and the duty ratio of pulse width modulation are set to be 100%;
and selecting the minimum constant current threshold from the constant current threshold of the single light color and the constant current thresholds of the different light colors as the constant current threshold corresponding to the length of the lamp strip.
7. A light strip color adjusting device, comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the light strip color adjusting method according to any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls a device on which the computer-readable storage medium is located to perform the method of adjusting light strip color according to any one of claims 1 to 4.
9. An intelligent LED strip, comprising the device for adjusting the color of a strip according to claim 7.
CN201910853830.1A 2019-09-10 2019-09-10 Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip Active CN110677944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910853830.1A CN110677944B (en) 2019-09-10 2019-09-10 Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910853830.1A CN110677944B (en) 2019-09-10 2019-09-10 Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip

Publications (2)

Publication Number Publication Date
CN110677944A true CN110677944A (en) 2020-01-10
CN110677944B CN110677944B (en) 2022-05-06

Family

ID=69077624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910853830.1A Active CN110677944B (en) 2019-09-10 2019-09-10 Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip

Country Status (1)

Country Link
CN (1) CN110677944B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060220586A1 (en) * 2005-04-05 2006-10-05 Latham Christopher B Array of light emitting diodes
US20100109570A1 (en) * 2008-11-06 2010-05-06 Mpj Lighting, Llc Electrical circuit for driving leds in dissimilar color string lengths
EP3086371A1 (en) * 2015-04-20 2016-10-26 Everlight Electronics Co., Ltd Light emitting module
CN109655766A (en) * 2019-02-25 2019-04-19 广东大唐永恒智能科技有限公司 Light bar detection autoregulation voltage compensator and its application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060220586A1 (en) * 2005-04-05 2006-10-05 Latham Christopher B Array of light emitting diodes
US20100109570A1 (en) * 2008-11-06 2010-05-06 Mpj Lighting, Llc Electrical circuit for driving leds in dissimilar color string lengths
EP3086371A1 (en) * 2015-04-20 2016-10-26 Everlight Electronics Co., Ltd Light emitting module
CN109655766A (en) * 2019-02-25 2019-04-19 广东大唐永恒智能科技有限公司 Light bar detection autoregulation voltage compensator and its application

Also Published As

Publication number Publication date
CN110677944B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN110211191B (en) Mixed color correction method and device, terminal equipment and readable storage medium
CN204259247U (en) The five road light adjusting systems that mobile phone controls
US8878455B2 (en) Systems and methods of controlling the output of a light fixture
CN108426186B (en) Lamp color calibration method and device and electronic equipment
CN114727452B (en) Multi-primary color light control method based on RGB mode and application thereof
CN110337158B (en) Light emitting control method and device of light emitting diode
CN114466477A (en) Constant-current dimming method of multichannel light source, computer device and computer readable storage medium
CN115297590B (en) Color non-shift control method for dimming lamp and application thereof
CN115334710B (en) Isothermal line color matching control method and application thereof
CN115052387B (en) Black body track and isotherm color modulation control method and application thereof
CN113453396A (en) WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium
CN110677944B (en) Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip
US20080074409A1 (en) Method for Controlling the Power Supply from a Power Source to a Power Consumer
CN110809346B (en) Light adjusting method, light adjusting device and terminal equipment
WO2024037506A1 (en) Screen color adjusting and uniformizing method and device, and storage medium
CN111083834B (en) LED calibration method, device, equipment and system
CN114900925B (en) Multi-primary color light control method and application thereof
CN114828345A (en) Lamp bead light parameter calibration method, lamp bead parameter acquisition method, device and system
CN111915688B (en) Theme style generation method, electronic device and medium
CN112135402B (en) RGB light path current adjusting method, terminal equipment and storage medium
CN111915601A (en) Intelligent terminal abnormity testing method, device and system
CN111836420A (en) LED driving method, circuit, LED device and driving power module
CN111707455A (en) Smooth dimming method and system for lamp
CN106504723B (en) Screen color adjusting method and device and electronic equipment
CN117769078A (en) Calculation method, device, terminal and storage medium for light duty ratio

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220608

Address after: Floor 12-17, unit 1, building 2, No. 466, Xinyu Road, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Lianzhou International Technology Co.,Ltd.

Address before: 518000 the 1st and 3rd floors of the south section of building 24 and the 1st-4th floor of the north section of building 28, Shennan Road Science and Technology Park, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: TP-LINK TECHNOLOGIES Co.,Ltd.