CN112135402A - RGB light path current adjusting method, terminal equipment and storage medium - Google Patents

RGB light path current adjusting method, terminal equipment and storage medium Download PDF

Info

Publication number
CN112135402A
CN112135402A CN202011037033.5A CN202011037033A CN112135402A CN 112135402 A CN112135402 A CN 112135402A CN 202011037033 A CN202011037033 A CN 202011037033A CN 112135402 A CN112135402 A CN 112135402A
Authority
CN
China
Prior art keywords
current
channel
color
rgb
maximum
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
CN202011037033.5A
Other languages
Chinese (zh)
Other versions
CN112135402B (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.)
Xiamen Yankon Energetic Lighting Co Ltd
Zhejiang Yankon Group Co Ltd
Original Assignee
Xiamen Yankon Energetic Lighting Co Ltd
Zhejiang Yankon Group 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 Xiamen Yankon Energetic Lighting Co Ltd, Zhejiang Yankon Group Co Ltd filed Critical Xiamen Yankon Energetic Lighting Co Ltd
Priority to CN202011037033.5A priority Critical patent/CN112135402B/en
Publication of CN112135402A publication Critical patent/CN112135402A/en
Application granted granted Critical
Publication of CN112135402B publication Critical patent/CN112135402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/14Controlling the light source in response to determined parameters by determining electrical parameters of the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The invention relates to an RGB light path current adjusting method, a terminal device and a storage medium, wherein the method comprises the following steps: s1: calculating initial current of each channel corresponding to the color to be output; s2: calculating the maximum duty ratio current of each channel according to the initial current and the maximum value of each channel; s3: setting parameter M ═ Iout/ImaxWherein, IoutRepresents the sum of the maximum values of the currents that can be actually output by the channels, ImaxAnd the parameter H represents the sum of three paths of maximum duty ratio currents, and the actual output current of each path of channel is set according to the magnitude relation between H and M. The invention combines the characteristics of the output current of the product, improves the actual display effect of RGB three primary colors, improves the accuracy of color output, keeps the maximum luminous flux of color light in real time, improves the customer experience and increases the product competitiveness.

Description

RGB light path current adjusting method, terminal equipment and storage medium
Technical Field
The present invention relates to the field of optical path adjustment, and in particular, to an RGB optical path current adjusting method, a terminal device, and a storage medium.
Background
The common RGB colored lamp controlled by the intelligent module receives the signal of the intelligent module and converts the signal into the current values of the RGB three light sources, and different colors are prepared according to different current values. In practical implementation, white light is generally used as a reference color, the current ratios of the three light sources are determined by adjusting the reference color according to the light parameters of the actual light source of the lamp, and then the current ratios are proportionally reduced according to the maximum driving current and are used as the maximum current values of the light sources. The method is simple to implement, but the current ratio of each path of light source is not 1:1:1 due to the difference of the optical parameters of the light sources, and one path or even two paths of light source current cannot work under the driving set maximum current, so that the condition of insufficient brightness of the light sources is caused.
Disclosure of Invention
In order to solve the above problem, the present invention provides an RGB optical path current adjusting method, a terminal device, and a storage medium.
The specific scheme is as follows:
an RGB light path current regulation method comprises the following steps:
s1: calculating initial current of each channel corresponding to the color to be output according to the reference color current of each channel in the RGB three channels;
s2: calculating the maximum duty ratio current of each channel according to the initial current and the maximum value of each channel;
s3: setting parameter M ═ Iout/ImaxWherein, IoutRepresents the sum of the maximum values of the currents that can be actually output by the channels, ImaxRepresenting the maximum value of the current maximum values which can be actually output by each channel, representing the sum of the three maximum duty ratio currents by a parameter H, and judging H>Whether M is true or not is judged, if yes, the actual output current of each channel is set as the product of the ratio of the parameters M and H and the maximum duty ratio current; otherwise, setting the actual output current of each channel as the maximum duty ratio current.
Further, the calculation process of the initial current of each channel corresponding to the color to be output includes: calculating the value of RGB three primary colors corresponding to the color to be output, calculating the duty ratio of each color in the three primary colors according to the value of the three primary colors, and calculating the initial current of each channel in the RGB three channels according to the duty ratio of each color and the reference color current.
Further, setting the values of the three primary colors to A, B, C respectively, the duty ratio A is1、B1、C1Respectively as follows:
A1=A/255,B1=B/255,C1=C/255
setting the reference color current of each color as D, E, F, the initial current X of each channel of RGB three channels is1、Y1、Z1Respectively as follows:
X1=A1*D,Y1=B1*E,Z1=C1*F。
further, the maximum duty ratio current X of each channel2、Y2、Z2The calculation formulas of (A) and (B) are respectively as follows:
X2=X1/N,Y2=Y1/N,Z2=Z1/N
wherein, X1、Y1、Z1Respectively represents the initial current of each channel in the RGB three channels, and N represents the maximum value in the initial current.
An RGB optical path current adjusting terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method described above in the embodiment of the present invention are implemented.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above for an embodiment of the invention.
By adopting the technical scheme, the invention combines the characteristics of the output current of the product, improves the actual display effect of RGB three primary colors, improves the accuracy of color output, keeps the maximum luminous flux of color light in real time, improves the customer experience and increases the product competitiveness.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of the present invention.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The first embodiment is as follows:
the embodiment of the invention provides an RGB light path current adjusting method, as shown in FIG. 1, the method comprises the following steps:
s1: and calculating the initial current of each channel corresponding to the color to be output according to the reference color current of each channel in the RGB three channels.
The specific calculation steps include:
s11: the values A, B, C of the RGB three primary colors corresponding to the color to be output are calculated.
In this embodiment, hexadecimal color codes are used as the color library data, and the code consists of six hexadecimal codes, where each two bits represent the value of one color in the three primary colors of RGB, and a, B, and C are [0,255 ].
In this embodiment, the decoration to be output is a lamp, and after the user selects the color to be output, the hexadecimal code corresponding to each color is obtained from the color library as the value of A, B, C.
S12: calculating duty ratio A of each color in RGB three primary colors according to the values of the three primary colors1、B1、C1
A1=A/255,B1=B/255,C1=C/255
S13: duty ratio A according to each color1、B1、C1And a reference color current D, E, F for each color, and calculating the initial current X of each channel in the RGB three channels1、Y1、Z1
X1=A1*D,Y1=B1*E,Z1=C1*F
The initial current is the current control mode of the existing RGB colored lamp.
S2: and calculating the maximum duty ratio current of each channel according to the initial current and the maximum value of each channel.
Step S2 is to boost the duty cycle of the current such that the maximum duty cycle is boosted to 100%.
Setting the maximum value N of the initial current to MAX (X)1,Y1,Z1) Then the maximum duty ratio current X of each channel2、Y2、Z2The calculation formulas of (A) and (B) are respectively as follows:
X2=X1/N,Y2=Y1/N,Z2=Z1/N
s3: setting parameter M ═ Iout/ImaxWherein, IoutRepresents the sum of the maximum values of the currents that can be actually output by the channels, ImaxRepresenting the maximum value of the current maximum values which can be actually output by each channel, representing the sum of the three maximum duty ratio currents by a parameter H, and judging H>If M is true, setting the actual output current of each channel as the product of the ratio of the parameter M to H and the maximum duty ratio current, that is, the calculation formulas of the actual output current X, Y, Z of each channel are: x is M X2/H,Y=M*Y2/H,Z=M*Z2H; otherwise, the actual output current of each channel is set to be the maximum duty ratio current, that is, the actual output current X, Y, Z of each channel is X ═ X respectively2,Y=Y2,Z=Z2
Since when the luminaire for some reason may cause Iout<3*ImaxAt this time, the actual power cannot reach the theoretical maximum power, and further operation in step S3 is required to ensure the completeness and reliability of the product function and life.
According to the first embodiment of the invention, through the operation of the steps, the characteristics of the output current of the product are combined, the actual display effect of RGB three primary colors is improved, the accuracy of color output is improved, the maximum luminous flux of color light is kept in real time, the customer experience is improved, and the product competitiveness is increased.
Example two:
the invention further provides an RGB optical path current adjusting terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps in the above method embodiment of the first embodiment of the invention are implemented.
Further, as an executable scheme, the RGB optical path current adjusting terminal device may be a desktop computer, a mobile phone, a palm computer, a cloud server, or other computing devices. The RGB light path current regulation terminal equipment can comprise, but is not limited to, a processor and a memory. It is understood by those skilled in the art that the above-mentioned RGB optical path current adjusting terminal device is only an example of the RGB optical path current adjusting terminal device, and does not constitute a limitation on the RGB optical path current adjusting terminal device, and may include more or less components than the above, or combine some components, or different components, for example, the RGB optical path current adjusting terminal device may further include an input-output device, a network access device, a bus, and the like, which is not limited by the embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the RGB optical path current regulation terminal device, and various interfaces and lines are used to connect various parts of the entire RGB optical path current regulation terminal device.
The memory may be configured to store the computer program and/or the module, and the processor may implement various functions of the RGB optical path current adjusting terminal device by executing or executing the computer program and/or the module stored in the memory and calling data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile 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.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The RGB optical path current adjusting terminal device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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), software distribution medium, and the like.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. An RGB light path current regulation method is characterized by comprising the following steps:
s1: calculating initial current of each channel corresponding to the color to be output according to the reference color current of each channel in the RGB three channels;
s2: calculating the maximum duty ratio current of each channel according to the initial current and the maximum value of each channel;
s3: setting parameter M ═ Iout/ImaxWherein, IoutRepresents the sum of the maximum values of the currents that can be actually output by the channels, ImaxRepresenting the maximum value of the current maximum values which can be actually output by each channel, representing the sum of the three maximum duty ratio currents by a parameter H, and judging H>Whether M is true or not is judged, if yes, the actual output current of each channel is set as the product of the ratio of the parameters M and H and the maximum duty ratio current; otherwise, setting the actual output current of each channel as the maximum duty ratio current.
2. The RGB light path current adjusting method according to claim 1, wherein: the calculation process of the initial current of each channel corresponding to the color to be output comprises the following steps: calculating the value of RGB three primary colors corresponding to the color to be output, calculating the duty ratio of each color in the three primary colors according to the value of the three primary colors, and calculating the initial current of each channel in the RGB three channels according to the duty ratio of each color and the reference color current.
3. The RGB light path current adjusting method according to claim 2, wherein: setting the values of the three primary colors to A, B, C, respectively, the duty ratio A1、B1、C1Respectively as follows:
A1=A/255,B1=B/255,C1=C/255
setting the reference color current of each color as D, E, F, the initial current X of each channel of RGB three channels is1、Y1、Z1Respectively as follows:
X1=A1*D,Y1=B1*E,Z1=C1*F。
4. the RGB light path current adjusting method according to claim 1, wherein: maximum duty cycle current X of each channel2、Y2、Z2The calculation formulas of (A) and (B) are respectively as follows:
X2=X1/N,Y2=Y1/N,Z2=Z1/N
wherein, X1、Y1、Z1Respectively represents the initial current of each channel in the RGB three channels, and N represents the maximum value in the initial current.
5. The utility model provides a RGB light path current regulation terminal equipment which characterized in that: comprising a processor, a memory and a computer program stored in the memory and running on the processor, the processor implementing the steps of the method according to any of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method as claimed in any one of claims 1 to 4.
CN202011037033.5A 2020-09-28 2020-09-28 RGB light path current adjusting method, terminal equipment and storage medium Active CN112135402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011037033.5A CN112135402B (en) 2020-09-28 2020-09-28 RGB light path current adjusting method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011037033.5A CN112135402B (en) 2020-09-28 2020-09-28 RGB light path current adjusting method, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112135402A true CN112135402A (en) 2020-12-25
CN112135402B CN112135402B (en) 2022-12-09

Family

ID=73840839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011037033.5A Active CN112135402B (en) 2020-09-28 2020-09-28 RGB light path current adjusting method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112135402B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621880B (en) * 2009-04-16 2011-02-16 青岛海信电器股份有限公司 Three-color light source color point adjustment method and adjustment system
CN101582220B (en) * 2008-05-13 2013-04-17 北京中视中科光电技术有限公司 Control device and control method for display system with a plurality of lasers
CN205179455U (en) * 2015-11-13 2016-04-20 欧普照明股份有限公司 Linear illumination lamps and lanterns
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
US20190132919A1 (en) * 2017-10-30 2019-05-02 Melexis Technologies Nv Method and device for calibrating led lighting
US20190164316A1 (en) * 2017-03-24 2019-05-30 Guangzhou Yajiang Photoelectric Equipment Co., Ltd . Method for mixed color correction
CN110337158A (en) * 2019-07-01 2019-10-15 深圳和而泰智能照明有限公司 A kind of light-emitting control method and device of light emitting diode
CN105430790B (en) * 2015-11-13 2019-12-27 欧普照明股份有限公司 Light mixing method for LED light source and linear lighting lamp

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582220B (en) * 2008-05-13 2013-04-17 北京中视中科光电技术有限公司 Control device and control method for display system with a plurality of lasers
CN101621880B (en) * 2009-04-16 2011-02-16 青岛海信电器股份有限公司 Three-color light source color point adjustment method and adjustment system
CN205179455U (en) * 2015-11-13 2016-04-20 欧普照明股份有限公司 Linear illumination lamps and lanterns
CN105430790B (en) * 2015-11-13 2019-12-27 欧普照明股份有限公司 Light mixing method for LED light source and linear lighting lamp
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
US20190164316A1 (en) * 2017-03-24 2019-05-30 Guangzhou Yajiang Photoelectric Equipment Co., Ltd . Method for mixed color correction
US20190132919A1 (en) * 2017-10-30 2019-05-02 Melexis Technologies Nv Method and device for calibrating led lighting
CN110337158A (en) * 2019-07-01 2019-10-15 深圳和而泰智能照明有限公司 A kind of light-emitting control method and device of light emitting diode

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
宋鹏程等: "基于PWM的三基色LED的调光调色方法", 《光学学报》 *
胡奕彬等: "PWM调制占空比对混合白光LED光源光色度的影响", 《照明工程学报》 *

Also Published As

Publication number Publication date
CN112135402B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN110211191B (en) Mixed color correction method and device, terminal equipment and readable storage medium
US10755448B2 (en) Method for mixed color correction
CN110337158B (en) Light emitting control method and device of light emitting diode
CN111800923B (en) Light control method and device, readable storage medium and terminal equipment
CN104835460A (en) Image processing apparatus, image processing method, display panel driver and display apparatus
CN105955754B (en) A kind of user interface character displaying method and device
CN113453396A (en) WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium
CN109637437A (en) Image display control method, device, medium and display screen control system
CN102034431A (en) Gamma correction method and device for LED
CN112135402B (en) RGB light path current adjusting method, terminal equipment and storage medium
CN113260127B (en) Color temperature adjusting method, terminal equipment and computer readable storage medium
CN117316097A (en) Display screen brightness adjusting method, electronic equipment and storage medium
CN111083834B (en) LED calibration method, device, equipment and system
CN113939058A (en) Color temperature controllable multi-path light source color mixing method and device and terminal equipment
US20170041992A1 (en) Light source driving device and dimming/toning control method
CN115175401A (en) RGB LED adjusting method and related assembly
CN113129813B (en) White balance adjusting method and device and computer equipment
CN111915688B (en) Theme style generation method, electronic device and medium
CN114783354A (en) Color cast compensation method, architecture and medium
CN112612992A (en) Color temperature optimization method and device, terminal equipment and storage medium
CN112148288A (en) Interface color setting method, device, equipment and storage medium
WO2019184037A1 (en) Led dimming method, apparatus and device, and storage medium
CN109152163B (en) Control method and device for breathing lamp in non-real-time system
CN110677944A (en) Lamp strip color adjusting method, device, equipment, medium and intelligent LED lamp strip
JP7341656B2 (en) Image processing device, control method, program, and storage medium

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