CN112616225A - Color light lamp illumination control method and terminal equipment - Google Patents

Color light lamp illumination control method and terminal equipment Download PDF

Info

Publication number
CN112616225A
CN112616225A CN202011429272.5A CN202011429272A CN112616225A CN 112616225 A CN112616225 A CN 112616225A CN 202011429272 A CN202011429272 A CN 202011429272A CN 112616225 A CN112616225 A CN 112616225A
Authority
CN
China
Prior art keywords
color
light source
illumination
light lamp
mode
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.)
Pending
Application number
CN202011429272.5A
Other languages
Chinese (zh)
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.)
Zhangzhou Lidaxin Optoelectronic Technology Co ltd
Original Assignee
Zhangzhou Lidaxin Optoelectronic Technology 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 Zhangzhou Lidaxin Optoelectronic Technology Co ltd filed Critical Zhangzhou Lidaxin Optoelectronic Technology Co ltd
Priority to CN202011429272.5A priority Critical patent/CN112616225A/en
Publication of CN112616225A publication Critical patent/CN112616225A/en
Pending legal-status Critical Current

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
    • 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/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]

Landscapes

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

Abstract

The invention is suitable for the technical field of lighting equipment control, and provides a color light lamp lighting control method and terminal equipment, wherein the method comprises the following steps: the color light lamps comprise RGB color light lamps and additional cold color white light lamps and warm color white light lamps, and the color control commands are received and analyzed to obtain color control modes and color parameters; when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter; the color temperature and color mixing ratio is output to the light source driving equipment to control the light source to illuminate, so that the illumination requirement of a user can be met, and the problem that the illumination effect of the three-primary-color light lamp in the prior art is poor is solved.

Description

Color light lamp illumination control method and terminal equipment
Technical Field
The invention belongs to the technical field of lighting equipment control, and particularly relates to a color light lamp lighting control method and terminal equipment.
Background
The existing color light lamp generally adopts red, green and blue three-primary-color light sources for color mixing, is used as atmosphere decoration, and can form a colorful lighting effect. However, the light flux of the three color light sources is relatively small, and the mixed color illumination effect is poor, so that the mixed color illumination can only be used as atmosphere decoration and is poor in illumination brightness.
Disclosure of Invention
In view of this, embodiments of the present invention provide a color light lamp illumination control method and a terminal device, which aim to solve the problem in the prior art that the illumination effect of a three-primary-color light lamp is poor.
In order to achieve the above object, a first aspect of an embodiment of the present invention provides a color light lamp illumination control method, where a color light lamp includes an RGB color light lamp and a cold-color white light lamp and a warm-color white light lamp that are added, and the color light lamp illumination control method includes:
receiving a color control instruction, and analyzing the color control instruction to obtain a color control mode and color parameters;
when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter;
and outputting the color temperature and color mixing ratio to light source driving equipment to control light source illumination.
As another embodiment of the present application, after obtaining the color control mode and the color parameter, the method further includes:
when the color control mode is a color mode, calculating a color mixing ratio of three primary color light sources of the RGB color light lamp according to color parameter values in the color parameters;
and outputting the color mixing ratio of the three primary color light sources to a light source driving device to control the light source to illuminate.
As another embodiment of the present application, after outputting the color temperature and color mixing ratio to a light source driving device to control light source illumination, or outputting the three-primary color light source mixing ratio to a light source driving device to control light source illumination, the method further includes:
when a new color control instruction different from the current lighting mode is received, analyzing the new color control instruction to obtain a target lighting mode, a target color parameter and a command execution time;
calculating the luminous flux of the current illumination mode and the luminous flux of a target illumination mode according to the target color parameters;
calculating a luminous flux change rate according to the command execution time, the luminous flux of the current illumination mode and the luminous flux of the target illumination mode;
according to the luminous flux change rate, adjusting the color mixing ratio between the current illumination mode and the target illumination mode to enable the luminous flux to be in linear smooth transition to the target illumination mode, and obtaining a target color mixing ratio;
and when the starting time of the command execution time is reached, outputting the target color mixing ratio to a light source driving device to control light source illumination.
As another embodiment of the present application, the calculating a color temperature and color mixture ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter includes:
calculating a standard color temperature parameter according to the color temperature value in the color parameter;
and calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the standard color temperature parameter.
As another embodiment of the present application, the calculating a color mixture ratio of three primary color light sources of the RGB color light lamps according to color parameter values in the color parameters includes:
converting color parameter values in the color parameters into corresponding tristimulus values;
converting the tristimulus values into color coordinate parameters;
updating the color coordinate parameters according to the color coordinate parameters and the current environment temperature of the RGB color light lamp;
and calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the updated color coordinate parameters.
As another embodiment of the present application, the outputting the color temperature and color mixing ratio to a light source driving apparatus to control light source illumination includes:
outputting the color temperature and color mixing ratio to a light source driving device in a PWM or I2C mode to control light source illumination;
the outputting the three-primary-color light source color mixing ratio to the light source driving device to control the light source illumination comprises:
the three primary color light source color mixing ratio is output to the light source driving device in a PWM or I2C mode to control the light source illumination.
As another embodiment of the present application, the outputting the target color mixture ratio to a light source driving device to control light source illumination includes:
outputting the target color mixture ratio to a light source driving device in a PWM or I2C mode to control light source illumination.
A second aspect of the embodiments of the present invention provides a color light lamp illumination control device, where the color light lamp includes an RGB color light lamp and a cold-color white light lamp and a warm-color white light lamp that are added; the color light lamp illumination control device comprises:
the analysis module is used for receiving a color control instruction and analyzing the color control instruction to obtain a color control mode and color parameters;
the calculation module is used for calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter when the color control mode is the color temperature mode;
and the output module is used for outputting the color temperature and color mixing ratio to light source driving equipment to control light source illumination.
A third aspect of an embodiment of the present invention provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the color light lamp illumination control method according to any of the above embodiments when executing the computer program.
A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, which when executed by a processor implements the steps of the color-light lamp illumination control method according to any of the above embodiments.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: compared with the prior art, the RGB color light lamp is additionally provided with the cold color white light lamp and the warm color white light lamp, and the color control instruction is analyzed by receiving the color control instruction to obtain the color control mode and the color parameters; when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter; the color temperature and color mixing ratio is output to the light source driving equipment to control the light source to illuminate, so that the illumination requirement of a user can be met, and the problem that the illumination effect of the three-primary-color light lamp in the prior art is poor is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for controlling illumination of a color light lamp according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a method for controlling illumination of a color-light lamp according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a method for mode conversion of a color light lamp according to an embodiment of the present invention;
fig. 4 is an exemplary diagram of a color-light lamp illumination control device provided by an embodiment of the invention;
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic view of an implementation process of a color light lamp illumination control method according to an embodiment of the present invention, where the color light lamp includes an RGB color light lamp, and a cold-color white light lamp and a warm-color white light lamp that are added, and the RGB color light lamp is a color light lamp composed of red, green, and blue three primary color light sources. The cold white light lamp is also high colour temperature white light source, and the warm white light lamp is low colour temperature white light source, and cold white light lamp and warm white light lamp are white light lamp, and luminous flux is higher, can be used for the illumination.
The method for controlling the illumination of the color light lamp comprises the following steps:
step 101, receiving a color control instruction, and analyzing the color control instruction to obtain a color control mode and a color parameter.
Optionally, the color control instruction input by the user is received, and the color control instruction frame is analyzed according to the color control instruction frame format to obtain the color control mode and the color parameter.
Optionally, the color control mode may include a color temperature mode and a color mode, and the color parameters may include color temperature values and color parameters.
And 102, when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter.
Optionally, this step may include: calculating a standard color temperature parameter according to the color temperature value in the color parameter; and calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the standard color temperature parameter.
Alternatively, the Color temperature value is converted into a standard Color temperature parameter according to Color temperature in kelvins of 1000000/colortemperature meters.
And 103, outputting the color temperature and color mixing ratio to light source driving equipment to control light source illumination.
Optionally, this step may include: and outputting the color temperature and color mixing ratio to light source driving equipment in a PWM or I2C mode, controlling light source illumination by the light source driving equipment according to the color temperature and color mixing ratio, and providing an illumination lamp for a user through adding a cold color white light lamp and a warm color white light lamp.
In another embodiment, as shown in fig. 2, after step 101, the method further includes:
and 104, when the color control mode is a color mode, calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the color parameter values in the color parameters.
Optionally, this step may include:
and converting the color parameter values in the color parameters into corresponding tristimulus values, namely calculating XYZ (namely the tristimulus values) corresponding to the color parameters by using a CIE 1931 XYZ color matching function when the current color mode is the color mode.
Converting the tristimulus values into color coordinate parameters; updating the color coordinate parameters according to the color coordinate parameters and the current environment temperature of the RGB color light lamp; and calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the updated color coordinate parameters.
Optionally, when the tristimulus values are converted into color coordinate parameters, the color coordinate parameters can be obtained according to
Figure BDA0002826041760000061
And calculating, wherein X, Y, Z is the coordinate value of the tristimulus value, and x, y and z are the coordinate values of the color coordinate parameter.
Since the color coordinate parameters of the three-primary-color light source have temperature characteristics, that is, the color coordinate parameters change along with the change of temperature, the color coordinate parameters obtained by updating according to the current environment temperature are needed to determine the color gamut of the three-primary-color light source in the CIE xyY color space at the current temperature, that is, the color coordinate parameters are updated, so as to obtain the updated color coordinate parameters.
And step 105, outputting the color mixing ratio of the three primary color light sources to a light source driving device to control the light source to illuminate.
Optionally, this step may include: the three primary color light source color mixing ratio is output to the light source driving device in a PWM or I2C mode to control the light source illumination.
In another embodiment, in order to smooth the transition color change when the different modes are switched, the present embodiment further provides a method for switching the modes of the color light lamp. As shown in fig. 3, after outputting the color temperature and color mixture ratio to the light source driving device to control the light source illumination, or outputting the three-primary color light source mixture ratio to the light source driving device to control the light source illumination, that is, after step 103 or step 105, the method further includes:
step 301, when a new color control command different from the current lighting mode is received, analyzing the new color control command to obtain a target lighting mode, a target color parameter and a command execution time.
When the user wants to switch the lighting modes, a new color control command is re-issued, where the new color control command includes a target lighting mode, and the target lighting mode is a mode different from the current lighting mode, for example, if the current lighting mode is a color temperature mode, the target lighting mode is a color mode, and if the current lighting mode is a color mode, the target lighting mode is a color temperature mode.
Step 302, calculating the luminous flux of the current illumination mode and calculating the luminous flux of the target illumination mode according to the target color parameters.
Luminous flux (luminous flux) refers to the radiation power perceived by the human eye, which is equal to the product of the radiation energy in a certain wavelength band per unit time and the relative visibility of that wavelength band. Because the relative visual rate of human eyes to different wavelengths of light is different, the luminous fluxes of different wavelengths of light are not equal when the radiation power of different wavelengths of light is equal.
In this embodiment, the luminous flux of the current lighting mode and the luminous flux of the target lighting mode are respectively calculated, and the obtained luminous fluxes are processed, so that when the modes are smoothly switched, the human eye adaptability is higher, and the body feeling is better.
Step 303, calculating a luminous flux change rate according to the command execution time, the luminous flux of the current illumination mode and the luminous flux of the target illumination mode.
Optionally, the received new color control instruction further includes a command execution time, so that the luminous flux can be subdivided and divided based on the human visual characteristics according to the command execution time, the luminous flux of the current lighting mode, and the luminous flux of the target lighting mode, so as to obtain a luminous flux change rate.
And 304, adjusting the color mixing ratio between the current illumination mode and the target illumination mode according to the light flux change rate to enable the light flux to be in linear smooth transition to the target illumination mode, so as to obtain the target color mixing ratio.
And readjusting the change curve of the light source drive output proportion among different modes according to the calculated light flux change rate.
And step 304, outputting the target color mixture ratio to a light source driving device to control light source illumination when the starting time of the command execution time is reached.
Optionally, this step may include: the target color mixture ratio is output to the light source driving apparatus in PWM or I2C manner at preset time intervals according to the target color mixture ratio so that the light source driving can smoothly transit into the target illumination mode.
According to the color light lamp illumination control method, the cold color white light lamp and the warm color white light lamp are added on the RGB color light lamp, and the color control instruction is analyzed by receiving the color control instruction to obtain the color control mode and the color parameters; when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter; the color temperature and color mixing ratio is output to the light source driving equipment to control the light source to illuminate, so that the illumination requirement of a user can be met, and the problem that the illumination effect of the three-primary-color light lamp in the prior art is poor is solved. When the color control mode is a color mode, calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the color parameter values in the color parameters; and outputting the color mixing ratio of the three primary color light sources to a light source driving device to control light source illumination, so that color lamp illumination can be adopted to adjust the atmosphere. And when receiving a Japanese lighting mode different from the current lighting mode, the Japanese lighting mode can be converted into the target lighting mode in a smooth conversion mode, so that the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a diagram illustrating an example of a color light lamp illumination control apparatus according to an embodiment of the present invention, where the color light lamp includes an RGB color light lamp and a cold-color white light lamp and a warm-color white light lamp. As shown in fig. 4, the apparatus may include: a parsing module 401, a calculation module 402 and an output module 403.
The analysis module 401 is configured to receive a color control instruction, and analyze the color control instruction to obtain a color control mode and a color parameter;
a calculating module 402, configured to calculate a color temperature and color mixture ratio of the cold white light lamp and the warm white light lamp according to a color temperature value in the color parameter when the color control mode is a color temperature mode;
and an output module 403, configured to output the color temperature and color mixture ratio to a light source driving device to control the light source illumination.
Optionally, the calculating module 402 is further configured to:
when the color control mode is a color mode, calculating a color mixing ratio of three primary color light sources of the RGB color light lamp according to color parameter values in the color parameters;
the output module 403 is further configured to output the color mixture ratio of the three primary color light sources to a light source driving device to control the light source to illuminate.
Optionally, the calculating module 402 is further configured to, when a new color control instruction different from the current lighting mode is received, analyze the new color control instruction to obtain a target lighting mode, a target color parameter, and a command execution time; calculating the luminous flux of the current illumination mode and the luminous flux of a target illumination mode according to the target color parameters; calculating a luminous flux change rate according to the command execution time, the luminous flux of the current illumination mode and the luminous flux of the target illumination mode; according to the luminous flux change rate, adjusting the color mixing ratio between the current illumination mode and the target illumination mode to enable the luminous flux to be in linear smooth transition to the target illumination mode, and obtaining a target color mixing ratio;
the output module 403 is further configured to output the target color mixture ratio to a light source driving device to control light source illumination when the starting time of the command execution time is reached.
Optionally, when the calculating module 402 calculates the color temperature and color mixture ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter, it is configured to:
calculating a standard color temperature parameter according to the color temperature value in the color parameter;
and calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the standard color temperature parameter.
Optionally, when the calculating module 402 calculates the color mixture ratio of the three primary color light sources of the RGB color light lamp according to the color parameter values in the color parameters, the calculating module is configured to:
converting color parameter values in the color parameters into corresponding tristimulus values;
converting the tristimulus values into color coordinate parameters;
updating the color coordinate parameters according to the color coordinate parameters and the current environment temperature of the RGB color light lamp;
and calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the updated color coordinate parameters.
Optionally, the output module 403 outputs the color temperature and color mixture ratio to a light source driving device to control illumination of a light source, and is configured to:
outputting the color temperature and color mixing ratio to a light source driving device in a PWM or I2C mode to control light source illumination;
optionally, the output module 403 outputs the color mixture ratio of the three primary color light sources to a light source driving device to control the light source to illuminate, and is configured to:
the three primary color light source color mixing ratio is output to the light source driving device in a PWM or I2C mode to control the light source illumination.
Optionally, when the output module 403 outputs the target color mixture ratio to a light source driving device to control light source illumination, the output module is configured to:
outputting the target color mixture ratio to a light source driving device in a PWM or I2C mode to control light source illumination.
According to the color light lamp illumination control device, the RGB color light lamp is additionally provided with the cold color white light lamp and the warm color white light lamp, the color control instruction is received through the analysis module, and the color control instruction is analyzed to obtain the color control mode and the color parameters; when the color control mode is a color temperature mode, the calculation module calculates the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter; the output module outputs the color temperature and color mixing ratio to the light source driving equipment to control the light source to illuminate, so that the illumination requirement of a user can be met, and the problem that the illumination effect of the three-primary-color light lamp in the prior art is poor is solved. When the color control mode is a color mode, the calculation module calculates the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the color parameter values in the color parameters; the output module outputs the color mixing ratio of the three primary color light sources to the light source driving equipment to control the light source illumination, so that the atmosphere can be adjusted by adopting color lamp illumination. And when a target illumination mode different from the current illumination mode is received, the target illumination mode can be converted through a smooth conversion mode, and the user experience is improved.
Fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 500 of this embodiment includes: a processor 501, a memory 502 and a computer program 503, such as a color light lamp illumination control program, stored in said memory 502 and executable on said processor 501. The processor 501 executes the computer program 503 to implement the steps in the above-mentioned embodiment of the color light lamp illumination control method, such as the steps 101 to 103 shown in fig. 1, or the steps shown in fig. 2 or fig. 3, and the processor 501 executes the computer program 503 to implement the functions of the modules in the above-mentioned embodiments of the apparatuses, such as the modules 401 to 403 shown in fig. 4.
Illustratively, the computer program 503 may be partitioned into one or more program modules that are stored in the memory 502 and executed by the processor 501 to implement the present invention. The one or more program modules 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 503 in the color-light-lamp illumination control apparatus or the terminal device 500. For example, the computer program 503 may be divided into an analysis module 401, a calculation module 402, and an output module 403, and specific functions of the modules are shown in fig. 4, which is not described herein again.
The terminal device 500 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 501, a memory 502. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 500 and is not intended to limit the terminal device 500 and may include more or fewer components than those shown, or some components may be combined, or different components, for example, the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 501 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. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may be an internal storage unit of the terminal device 500, such as a hard disk or a memory of the terminal device 500. The memory 502 may also be an external storage device of the terminal device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 500. Further, the memory 502 may also include both an internal storage unit and an external storage device of the terminal device 500. The memory 502 is used for storing the computer programs and other programs and data required by the terminal device 500. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, 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), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A color light lamp illumination control method is characterized in that a color light lamp comprises an RGB color light lamp and a cold color white light lamp and a warm color white light lamp which are added, and the color light lamp illumination control method comprises the following steps:
receiving a color control instruction, and analyzing the color control instruction to obtain a color control mode and color parameters;
when the color control mode is a color temperature mode, calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter;
and outputting the color temperature and color mixing ratio to light source driving equipment to control light source illumination.
2. The method for controlling illumination of a color light lamp according to claim 1, further comprising, after said obtaining the color control pattern and the color parameters:
when the color control mode is a color mode, calculating a color mixing ratio of three primary color light sources of the RGB color light lamp according to color parameter values in the color parameters;
and outputting the color mixing ratio of the three primary color light sources to a light source driving device to control the light source to illuminate.
3. The method of controlling illumination of a color light lamp according to claim 2, wherein after outputting the color temperature and color mixture ratio to a light source driving device for controlling illumination of the light source, or outputting the three primary color light source mixture ratio to a light source driving device for controlling illumination of the light source, further comprising:
when a new color control instruction different from the current lighting mode is received, analyzing the new color control instruction to obtain a target lighting mode, a target color parameter and a command execution time;
calculating the luminous flux of the current illumination mode and the luminous flux of a target illumination mode according to the target color parameters;
calculating a luminous flux change rate according to the command execution time, the luminous flux of the current illumination mode and the luminous flux of the target illumination mode;
according to the luminous flux change rate, adjusting the color mixing ratio between the current illumination mode and the target illumination mode to enable the luminous flux to be in linear smooth transition to the target illumination mode, and obtaining a target color mixing ratio;
and when the starting time of the command execution time is reached, outputting the target color mixing ratio to a light source driving device to control light source illumination.
4. The method for controlling illumination of a color light lamp according to any one of claims 1-3, wherein said calculating the ratio of color temperature and color mixture of the cold color white light lamp and the warm color white light lamp according to the color temperature values in the color parameters comprises:
calculating a standard color temperature parameter according to the color temperature value in the color parameter;
and calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the standard color temperature parameter.
5. The illumination control method of a color light lamp as claimed in claim 2 or 3, wherein said calculating the color mixture ratio of the three primary color light sources of the RGB color light lamp according to the color parameter values in the color parameters comprises:
converting color parameter values in the color parameters into corresponding tristimulus values;
converting the tristimulus values into color coordinate parameters;
updating the color coordinate parameters according to the color coordinate parameters and the current environment temperature of the RGB color light lamp;
and calculating the color mixing ratio of the three primary color light sources of the RGB color light lamp according to the updated color coordinate parameters.
6. The method for controlling illumination of a color light lamp according to claim 2, wherein outputting the color temperature and color mixture ratio to a light source driving device for controlling illumination of the light source comprises:
outputting the color temperature and color mixing ratio to a light source driving device in a PWM or I2C mode to control light source illumination;
the outputting the three-primary-color light source color mixing ratio to the light source driving device to control the light source illumination comprises:
the three primary color light source color mixing ratio is output to the light source driving device in a PWM or I2C mode to control the light source illumination.
7. The method for controlling illumination of a color light lamp according to claim 3, wherein outputting the target color mixture ratio to a light source driving device for controlling illumination of a light source comprises:
outputting the target color mixture ratio to a light source driving device in a PWM or I2C mode to control light source illumination.
8. A color light lamp lighting control device is characterized in that the color light lamp comprises an RGB color light lamp and an additional cold color white light lamp and a warm color white light lamp; the color light lamp illumination control device comprises:
the analysis module is used for receiving a color control instruction and analyzing the color control instruction to obtain a color control mode and color parameters;
the calculation module is used for calculating the color temperature and color mixing ratio of the cold white light lamp and the warm white light lamp according to the color temperature value in the color parameter when the color control mode is the color temperature mode;
and the output module is used for outputting the color temperature and color mixing ratio to light source driving equipment to control light source illumination.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. 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 according to any one of claims 1 to 7.
CN202011429272.5A 2020-12-09 2020-12-09 Color light lamp illumination control method and terminal equipment Pending CN112616225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011429272.5A CN112616225A (en) 2020-12-09 2020-12-09 Color light lamp illumination control method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011429272.5A CN112616225A (en) 2020-12-09 2020-12-09 Color light lamp illumination control method and terminal equipment

Publications (1)

Publication Number Publication Date
CN112616225A true CN112616225A (en) 2021-04-06

Family

ID=75229482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011429272.5A Pending CN112616225A (en) 2020-12-09 2020-12-09 Color light lamp illumination control method and terminal equipment

Country Status (1)

Country Link
CN (1) CN112616225A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113260127A (en) * 2021-04-30 2021-08-13 深圳市爱图仕影像器材有限公司 Color temperature adjusting method, terminal equipment and computer readable storage medium
CN113301684A (en) * 2021-05-20 2021-08-24 生迪智慧科技有限公司 LED control circuit
CN113542754A (en) * 2021-06-23 2021-10-22 浙江谷泓生物技术有限公司 Method for encoding and decoding light source color in color space with white background light
CN114007308A (en) * 2021-10-29 2022-02-01 百度在线网络技术(北京)有限公司 Color temperature control method, device, equipment, storage medium and desk lamp
CN114143930A (en) * 2021-10-26 2022-03-04 漳州立达信光电子科技有限公司 Method, medium and device for calculating color temperature of mixed light conversion of cold white LED and warm white LED
CN114666956A (en) * 2022-05-17 2022-06-24 深圳市飞腾云科技有限公司 Bluetooth lamp band driving method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
CN206291000U (en) * 2016-12-30 2017-06-30 道晟灯具(上海)有限公司 Many scene-type LED illumination modules
CN109819546A (en) * 2017-11-21 2019-05-28 上海航空电器有限公司 A kind of width colour gamut light modulation light mixing method and atmosphere lamp
CN110225622A (en) * 2019-06-24 2019-09-10 广东七大洲实业有限公司 The color and color temperature control system and method for lamps and lanterns

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162981A (en) * 2016-05-22 2016-11-23 上海大学 Light mixing method based on three-primary color LED
CN206291000U (en) * 2016-12-30 2017-06-30 道晟灯具(上海)有限公司 Many scene-type LED illumination modules
CN109819546A (en) * 2017-11-21 2019-05-28 上海航空电器有限公司 A kind of width colour gamut light modulation light mixing method and atmosphere lamp
CN110225622A (en) * 2019-06-24 2019-09-10 广东七大洲实业有限公司 The color and color temperature control system and method for lamps and lanterns

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113260127A (en) * 2021-04-30 2021-08-13 深圳市爱图仕影像器材有限公司 Color temperature adjusting method, terminal equipment and computer readable storage medium
CN113260127B (en) * 2021-04-30 2023-04-25 深圳市爱图仕影像器材有限公司 Color temperature adjusting method, terminal equipment and computer readable storage medium
CN113301684A (en) * 2021-05-20 2021-08-24 生迪智慧科技有限公司 LED control circuit
CN113301684B (en) * 2021-05-20 2023-12-08 生迪智慧科技有限公司 LED control circuit
CN113542754A (en) * 2021-06-23 2021-10-22 浙江谷泓生物技术有限公司 Method for encoding and decoding light source color in color space with white background light
CN114143930A (en) * 2021-10-26 2022-03-04 漳州立达信光电子科技有限公司 Method, medium and device for calculating color temperature of mixed light conversion of cold white LED and warm white LED
CN114143930B (en) * 2021-10-26 2024-04-23 漳州立达信光电子科技有限公司 Calculation method, medium and device for cold white and warm white LED mixed light conversion color temperature
CN114007308A (en) * 2021-10-29 2022-02-01 百度在线网络技术(北京)有限公司 Color temperature control method, device, equipment, storage medium and desk lamp
CN114666956A (en) * 2022-05-17 2022-06-24 深圳市飞腾云科技有限公司 Bluetooth lamp band driving method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN112616225A (en) Color light lamp illumination control method and terminal equipment
EP2887634B1 (en) Method of mapping source colors from a source color gamut into a target color gamut
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
CN105632412B (en) Method and its device and system that bias light showed and be played simultaneously video are provided
CN107209928A (en) For HDR pictures to be mapped as to the method and apparatus of SDR pictures and corresponding SDR to HDR mapping method and equipment
US10593292B2 (en) Dynamic power management for an HDR display
KR101183456B1 (en) Method and system for extending color gamut
CN103685850B (en) Image processing method and image processing apparatus
CN103391412A (en) Method and device for displaying image provided with brightness self-adaptive and adjustable light source
US20160322024A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
CN101729913A (en) Method and system for adjusting image saturation
CN102223547A (en) Image color enhancement device and method
WO2022041512A1 (en) Four-color low-blue-light wide-color-gamut display method, apparatus and system
CN111935885A (en) Linkage control method, equipment and storage medium for terminal and equipment light color
CN112601062A (en) Projection equipment control method, device, medium and electronic equipment
CN110809346B (en) Light adjusting method, light adjusting device and terminal equipment
CN103021375B (en) Image intensity regulating circuit
EP2779150B1 (en) Image display method and device
KR20030017126A (en) Apparatus and method for transformation of color temperature capable of calculate variable output image according to input image
CN113260127B (en) Color temperature adjusting method, terminal equipment and computer readable storage medium
CN114566118B (en) Display color cast correction method, device and system
CN113347757B (en) White balance control method for RGBW lamp and application thereof
CN205179455U (en) Linear illumination lamps and lanterns
US9626892B2 (en) Optimization method and system of real-time LCD white balance selection
CN111954334A (en) Control method and device of breathing lamp, electronic equipment and readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210406