CN115866830B - LED light source control method and system with color temperature and illumination adjustment - Google Patents
LED light source control method and system with color temperature and illumination adjustment Download PDFInfo
- Publication number
- CN115866830B CN115866830B CN202310199478.0A CN202310199478A CN115866830B CN 115866830 B CN115866830 B CN 115866830B CN 202310199478 A CN202310199478 A CN 202310199478A CN 115866830 B CN115866830 B CN 115866830B
- Authority
- CN
- China
- Prior art keywords
- color temperature
- light source
- preset
- led light
- data
- 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.)
- Active
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a method and a system for controlling an LED light source with color temperature and illumination adjustment, wherein the method comprises the following steps: the LED controller controls the LED light source to work based on a preset control instruction generated by the upper computer; respectively acquiring and processing the preset color temperature and the preset illuminance of the LED light source, and feeding back the acquired and processed color temperature and the preset illuminance to the upper computer; the upper computer receives the set color temperature data and the set illuminance data set by a user and judges whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not; if the color temperature data and the illuminance data are inconsistent, the upper computer generates an LED light source adjustment control instruction based on the color temperature data and the illuminance data and sends the LED light source adjustment control instruction to the LED controller; the LED controller adjusts and controls the LED light source based on the LED light source adjusting and controlling instruction. In the embodiment of the invention, the LED light source is controlled, and the color temperature and illumination requirements of users under different conditions are met.
Description
Technical Field
The invention relates to the technical field of LED light source control, in particular to an LED light source control method and system with color temperature and illumination adjustment.
Background
In the LED light source, the light source is generally composed of RGB three-color LED lamp beads, so that the color temperature and the illumination of the LED light source can be conveniently and subsequently adjusted; in the prior art, however, a plurality of common color temperature and illuminance data are set in advance, and then a user adjusts the LED light source to a gear position corresponding to the required color temperature and illuminance according to the requirement of the user, so that the color temperature and illuminance of the LED light source are changed; however, the selection of color temperature and illumination data given by the existing settings is less, so that the application of users on some specific requirements cannot be well met; therefore, the existing color temperature and illuminance adjustment control method of the LED light source cannot well meet the needs of users, and a control method of the LED light source is needed to solve the technical problem.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a system for controlling an LED light source with color temperature and illumination adjustment, which realize the control of the LED light source and meet the color temperature and illumination requirements of users under different conditions.
In order to solve the technical problems, the embodiment of the invention provides an LED light source control method with color temperature and illumination adjustment, which comprises an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illumination detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; the LED light source is a light source composed of RGB three-color LED lamp beads; the method comprises the following steps:
the LED controller controls the LED light source to work based on a preset control instruction generated by the upper computer;
respectively acquiring and processing the preset color temperature and the preset illuminance of the LED light source based on the color temperature detection sensor and the illuminance detection sensor, and feeding back the preset color temperature data and the preset illuminance data of the LED light source to the upper computer;
the upper computer receives set color temperature data and set illuminance data set by a user and judges whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not;
if the color temperature data and the illuminance data are inconsistent, the upper computer generates an LED light source adjustment control instruction based on the color temperature data and the illuminance data, and issues the LED light source adjustment control instruction to the LED controller;
and the LED controller adjusts and controls the LED light source based on the LED light source adjusting and controlling instruction.
Optionally, the LED controller controls the LED light source to operate based on a preset control instruction generated by the upper computer, including:
after receiving a work request of a user for controlling an LED light source, the upper computer matches a preset work current corresponding to the LED light source in the upper computer based on the work request of the control LED light source;
the upper computer performs instruction packaging based on the preset working current, generates a preset control instruction and sends the preset control instruction to the LED controller;
and the LED controller drives the LED light source to work based on the preset control instruction.
Optionally, the preset control instruction includes the preset working current, and the preset working current is driven to be the working current corresponding to the preset RGB three-color LED lamp beads respectively.
Optionally, after feeding back the preset color temperature data and the preset illuminance data of the LED light source to the upper computer, the method further includes:
the upper computer performs matching processing on the received preset color temperature data and preset illuminance data in a database;
if the corresponding data are matched in the database, the preset color temperature data and the preset illuminance data do not need to be stored in the database;
and if the corresponding data cannot be matched in the database, storing the preset color temperature data and the preset illumination data and the preset working current corresponding to the preset color temperature data and the preset illumination data in the database in a correlated mode.
Optionally, the determining whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data includes:
performing difference processing by using the set color temperature data and the preset color temperature data to obtain a first difference value;
performing difference processing by using the set illuminance data and the preset illuminance data to obtain a second difference value;
comparing the first difference value with a preset first difference value, and comparing the second difference value with a preset second difference value to obtain a first difference value comparison result and a second difference value comparison result;
and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the first difference comparison result and the second difference comparison result.
Optionally, the determining whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data based on the first difference comparison result and the second difference comparison result includes:
and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the mode that whether the first difference value comparison result and the second difference value comparison result are in a preset range or not.
Optionally, the upper computer generates the LED light source adjustment control instruction based on the set color temperature data and the set illuminance data, including:
performing matching processing in a database by using the set color temperature data and the set illuminance data;
when matching color temperature data and matching illuminance data which are matched with each other are obtained, obtaining associated working current associated with the matching color temperature data and the matching illuminance data;
and generating the LED light source adjustment control instruction based on the associated working current.
Optionally, the upper computer generates the LED light source adjustment control instruction based on the set color temperature data and the set illuminance data, and further includes:
performing matching processing in a database by using the set color temperature data and the set illuminance data, and modifying the brightness values of RGB three-color LED lamp beads of the LED light source based on a successive approximation mode when the matching color temperature data and the matching illuminance data which are matched with each other cannot be matched;
calculating working current corresponding to RGB three-color LED lamp beads in the LED light source based on the proportion of the brightness values of the RGB three-color LED lamp beads of the modified LED light source;
and generating the LED light source adjustment control instruction based on the working current corresponding to the RGB three-color LED lamp beads in the LED light source.
Optionally, the modifying the brightness value of the RGB three-color LED bead of the LED light source based on the successive approximation method includes:
subtracting the X coordinate in the coordinates of the set color temperature data from the X coordinate in the coordinates of the preset color temperature data to obtain an X coordinate difference value;
subtracting the Y coordinate in the coordinates of the set color temperature data from the Y coordinate in the coordinates of the preset color temperature data to obtain a Y coordinate difference value;
and modifying the brightness value of the RGB three-color LED lamp beads of the LED light source in a successive approximation mode based on the X coordinate difference value and the Y coordinate difference value.
In addition, the embodiment of the invention also provides an LED light source control system with color temperature and illuminance adjustment, which comprises an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illuminance detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; the LED light source is a light source composed of RGB three-color LED lamp beads; wherein the system is configured for performing the LED light source control method of any one of the above.
In the embodiment of the invention, whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not is judged; and then, the LED light source adjustment control instruction is generated by utilizing the set color temperature data and the set illumination data, and the LED light source is adjusted and controlled by the LED light source adjustment control instruction, so that the adjustment and control of the color temperature data and the illumination data of the LED light source are realized, and the LED light source can meet the requirements of users on the color temperature and the illumination data under different conditions.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for controlling an LED light source with color temperature and illuminance adjustment according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an LED light source control system with color temperature and illuminance adjustment according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of an LED light source control method with color temperature and illuminance adjustment in an embodiment of the invention.
As shown in fig. 1, the LED light source control method with color temperature and illuminance adjustment includes an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illuminance detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; the LED light source is a light source composed of RGB three-color LED lamp beads;
in the specific implementation process of the invention, when the LED light source control method is realized, the required hardware carrier comprises an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illuminance detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; and the LED light source is a light source composed of RGB three-color LED lamp beads.
The method comprises the following steps:
s11: the LED controller controls the LED light source to work based on a preset control instruction generated by the upper computer;
in the implementation process of the invention, the LED controller controls the LED light source to work based on a preset control instruction generated by the upper computer, and the implementation process comprises the following steps: after receiving a work request of a user for controlling an LED light source, the upper computer matches a preset work current corresponding to the LED light source in the upper computer based on the work request of the control LED light source; the upper computer performs instruction packaging based on the preset working current, generates a preset control instruction and sends the preset control instruction to the LED controller; and the LED controller drives the LED light source to work based on the preset control instruction.
Further, the preset control instruction includes the preset working current, and the preset working current is driven to be the working current corresponding to the preset RGB three-color LED lamp beads respectively.
Specifically, firstly, a request for controlling an LED light source to work is received through an upper computer, and after the request is received, the request for controlling the LED light source to work is matched with a preset working current corresponding to the LED light source on the upper computer; then the upper computer performs instruction packaging processing through the preset working current, and a preset control instruction can be generated; after a preset control instruction is generated, the preset control instruction is issued to an LED controller, and the LED controller drives the LED light source to work according to the preset control instruction; the preset control instruction also comprises a preset working current, and the preset working current is driven to be the working current corresponding to the preset RGB three-color LED lamp beads respectively.
S12: respectively acquiring and processing the preset color temperature and the preset illuminance of the LED light source based on the color temperature detection sensor and the illuminance detection sensor, and feeding back the preset color temperature data and the preset illuminance data of the LED light source to the upper computer;
in the implementation process of the invention; after the preset color temperature data and the preset illuminance data of the LED light source are fed back to the upper computer, the method further comprises the following steps: the upper computer performs matching processing on the received preset color temperature data and preset illuminance data in a database; if the corresponding data are matched in the database, the preset color temperature data and the preset illuminance data do not need to be stored in the database; and if the corresponding data cannot be matched in the database, storing the preset color temperature data and the preset illumination data and the preset working current corresponding to the preset color temperature data and the preset illumination data in the database in a correlated mode.
Specifically, after the LED light source enters a working state, a color temperature detection sensor and an illuminance detection sensor are activated through the LED controller; and the preset color temperature data and the preset illuminance data of the LED light source in operation are acquired and processed through the color temperature detection sensor and the illuminance detection sensor respectively, so that the preset color temperature data and the preset illuminance data can be obtained, and meanwhile, the obtained preset color temperature data and the preset illuminance data of the LED light source are fed back to the upper computer through the LED controller.
After the upper computer receives the fed back preset color temperature data and preset illuminance data, the upper computer performs matching processing on the received preset color temperature data and preset illuminance data in a corresponding database, and when the corresponding data is matched in the database, the preset color temperature data and the preset illuminance data do not need to be stored in the database; if the corresponding data are not matched in the database, the preset color temperature data and the preset illumination data and the preset working current corresponding to the preset color temperature data and the preset illumination data are required to be stored in the database in a correlated mode, so that the corresponding working current can be quickly called when the color temperature data and the illumination data are matched later, and the control processing of the color temperature and the illumination of the LED is realized quickly.
S13: the upper computer receives set color temperature data and set illuminance data set by a user and judges whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not;
in the implementation process of the present invention, the determining whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data includes: performing difference processing by using the set color temperature data and the preset color temperature data to obtain a first difference value; performing difference processing by using the set illuminance data and the preset illuminance data to obtain a second difference value; comparing the first difference value with a preset first difference value, and comparing the second difference value with a preset second difference value to obtain a first difference value comparison result and a second difference value comparison result; and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the first difference comparison result and the second difference comparison result.
Further, the determining whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data based on the first difference comparison result and the second difference comparison result includes: and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the mode that whether the first difference value comparison result and the second difference value comparison result are in a preset range or not.
Specifically, the upper computer receives the set color temperature data and the set illuminance data required by the user, and then judges whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data; when judging, firstly performing difference processing by using the set color temperature data and the preset color temperature data to obtain a first difference value; meanwhile, performing difference processing by using the set illuminance data and the preset illuminance data to obtain a second difference value; then comparing the first difference value with a preset first difference value, and comparing the second difference value with a preset second difference value to obtain a first difference value comparison result and a second difference value comparison result; and finally judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not according to the first difference value comparison result and the second difference value comparison result.
Judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not according to the mode that whether the first difference value comparison result and the second difference value comparison result are in the preset range or not; any comparison result is not in a preset range, and is judged to be inconsistent.
S14: if the color temperature data and the illuminance data are inconsistent, the upper computer generates an LED light source adjustment control instruction based on the color temperature data and the illuminance data, and issues the LED light source adjustment control instruction to the LED controller;
in the implementation process of the invention, the upper computer generates an LED light source adjustment control instruction based on the set color temperature data and the set illuminance data, and the LED light source adjustment control instruction comprises: performing matching processing in a database by using the set color temperature data and the set illuminance data; when matching color temperature data and matching illuminance data which are matched with each other are obtained, obtaining associated working current associated with the matching color temperature data and the matching illuminance data; and generating the LED light source adjustment control instruction based on the associated working current.
Further, the upper computer generates an LED light source adjustment control instruction based on the set color temperature data and the set illuminance data, and further includes: performing matching processing in a database by using the set color temperature data and the set illuminance data, and modifying the brightness values of RGB three-color LED lamp beads of the LED light source based on a successive approximation mode when the matching color temperature data and the matching illuminance data which are matched with each other cannot be matched; calculating working current corresponding to RGB three-color LED lamp beads in the LED light source based on the proportion of the brightness values of the RGB three-color LED lamp beads of the modified LED light source; and generating the LED light source adjustment control instruction based on the working current corresponding to the RGB three-color LED lamp beads in the LED light source.
Further, the successive approximation-based method for modifying the brightness value of the RGB three-color LED lamp beads of the LED light source comprises the following steps: subtracting the X coordinate in the coordinates of the set color temperature data from the X coordinate in the coordinates of the preset color temperature data to obtain an X coordinate difference value; subtracting the Y coordinate in the coordinates of the set color temperature data from the Y coordinate in the coordinates of the preset color temperature data to obtain a Y coordinate difference value; and modifying the brightness value of the RGB three-color LED lamp beads of the LED light source in a successive approximation mode based on the X coordinate difference value and the Y coordinate difference value.
Specifically, when matching processing is performed in a database by using the set color temperature data and the set illuminance data, and matching color temperature data and matching illuminance data which are matched with each other are obtained, associated working currents are obtained in an index manner by the matching color temperature data and the matching illuminance data; the LED light source adjustment command is then generated by the associated operating current.
Or when the set color temperature data and the set illuminance data are used for matching processing in the database and the matched color temperature data and the matched illuminance data which are matched with each other cannot be matched, the brightness value of the RGB three-color LED lamp beads of the LED light source is required to be modified in a successive approximation mode for adjustment, and the working current corresponding to the RGB three-color LED lamp beads in the LED light source is calculated according to the proportion of the brightness value of the RGB three-color LED lamp beads of the modified LED light source; because the preset brightness value and the preset working current of the LED and the current brightness value and the current working current have an equal ratio relationship, the working current corresponding to the RGB three-color LED lamp beads in the LED light source can be calculated through the equal ratio relationship; and generating an LED light source adjustment control instruction through the working current corresponding to the RGB three-color LED lamp beads in the LED light source.
In the successive approximation, firstly, subtracting an X coordinate in coordinates of the set color temperature data from an X coordinate in coordinates of the preset color temperature data to obtain an X coordinate difference value; subtracting the Y coordinate in the coordinates of the set color temperature data from the Y coordinate in the coordinates of the preset color temperature data to obtain a Y coordinate difference value; and the brightness values of the RGB three-color LED lamp beads of the LED light source are modified in a successive approximation mode according to the X coordinate difference value and the Y coordinate difference value.
The specific modification mode is that when the X coordinate difference value is positive, the brightness of the red lamp beads is reduced; when the X coordinate difference is negative, increasing the brightness of the red lamp beads; when the Y coordinate difference value is positive, the brightness of the green lamp beads is reduced; when the Y coordinate difference is negative, increasing the brightness of the green lamp beads; when the X coordinate difference value and the Y coordinate difference value are positive, the brightness of the blue lamp beads is increased, and when the X coordinate difference value and the Y coordinate difference value are negative, the brightness of the blue lamp beads is reduced; when the X coordinate difference value and the Y coordinate difference value are positive or negative, the blue lamp beads are not adjusted; the brightness value of the RGB three-color LED lamp beads of the LED light source is modified in the mode;
s15: and the LED controller adjusts and controls the LED light source based on the LED light source adjusting and controlling instruction.
In the implementation process of the invention, after the LED controller receives the LED light source adjustment control instruction, the LED controller adjusts and controls the LED light source according to the LED light source adjustment control instruction; after each adjustment, the step S12 is returned to repeat until the color temperature data and the illuminance data generated by the LED light source satisfy the set color temperature data and the set illuminance data set by the user.
In the embodiment of the invention, whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not is judged; and then, the LED light source adjustment control instruction is generated by utilizing the set color temperature data and the set illumination data, and the LED light source is adjusted and controlled by the LED light source adjustment control instruction, so that the adjustment and control of the color temperature data and the illumination data of the LED light source are realized, and the LED light source can meet the requirements of users on the color temperature and the illumination data under different conditions.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of an LED light source control system with color temperature and illuminance adjustment in an embodiment of the invention.
As shown in fig. 2, an LED light source control system with color temperature and illuminance adjustment includes an LED light source 25, a host computer 21, an LED controller 23, a color temperature detection sensor 22, and an illuminance detection sensor 24; the LED controller 23 is connected to the LED light source 25, the color temperature detection sensor 22, and the illuminance detection sensor 24, respectively; the upper computer 21 and the LED controller 23 are connected based on network communication; the LED light source 25 is a light source composed of RGB three-color LED lamp beads; wherein the system is configured for performing the LED light source control method of any one of the above.
In the implementation process of the present invention, the embodiments of the system part refer to the embodiments of the method part in detail, and are not repeated here.
In the embodiment of the invention, whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not is judged; and then, the LED light source adjustment control instruction is generated by utilizing the set color temperature data and the set illumination data, and the LED light source is adjusted and controlled by the LED light source adjustment control instruction, so that the adjustment and control of the color temperature data and the illumination data of the LED light source are realized, and the LED light source can meet the requirements of users on the color temperature and the illumination data under different conditions.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, randomAccess Memory), magnetic or optical disk, and the like.
In addition, the above description has been made in detail on a method and a system for controlling an LED light source with color temperature and illuminance adjustment provided in the embodiments of the present invention, and specific examples should be adopted to illustrate the principles and embodiments of the present invention, where the description of the above embodiments is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (7)
1. The LED light source control method with the color temperature and illumination adjustment is characterized by comprising an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illumination detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; the LED light source is a light source composed of RGB three-color LED lamp beads; the method comprises the following steps:
the LED controller controls the LED light source to work based on a preset control instruction generated by the upper computer;
respectively acquiring and processing the preset color temperature and the preset illuminance of the LED light source based on the color temperature detection sensor and the illuminance detection sensor, and feeding back the preset color temperature data and the preset illuminance data of the LED light source to the upper computer;
the upper computer receives set color temperature data and set illuminance data set by a user and judges whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not;
if the color temperature data and the illuminance data are inconsistent, the upper computer generates an LED light source adjustment control instruction based on the color temperature data and the illuminance data, and issues the LED light source adjustment control instruction to the LED controller;
the LED controller adjusts and controls the LED light source based on the LED light source adjusting and controlling instruction;
the preset control instruction comprises preset working currents, and the preset working currents are working currents respectively corresponding to the driving RGB three-color LED lamp beads;
the upper computer generates an LED light source adjustment control instruction based on the set color temperature data and the set illuminance data, and the LED light source adjustment control instruction further comprises:
performing matching processing in a database by using the set color temperature data and the set illuminance data, and modifying the brightness values of RGB three-color LED lamp beads of the LED light source based on a successive approximation mode when the matching color temperature data and the matching illuminance data which are matched with each other cannot be matched;
calculating working current corresponding to RGB three-color LED lamp beads in the LED light source based on the proportion of the brightness values of the RGB three-color LED lamp beads of the modified LED light source;
generating an LED light source adjustment control instruction based on working currents corresponding to RGB three-color LED lamp beads in the LED light source;
the successive approximation-based method for modifying the brightness value of the RGB three-color LED lamp beads of the LED light source comprises the following steps:
subtracting the X coordinate in the coordinates of the set color temperature data from the X coordinate in the coordinates of the preset color temperature data to obtain an X coordinate difference value;
subtracting the Y coordinate in the coordinates of the set color temperature data from the Y coordinate in the coordinates of the preset color temperature data to obtain a Y coordinate difference value;
modifying the brightness value of the RGB three-color LED lamp beads of the LED light source in a successive approximation mode based on the X coordinate difference value and the Y coordinate difference value; wherein, when the X coordinate difference value is positive, the brightness of the red lamp beads is reduced; when the X coordinate difference is negative, increasing the brightness of the red lamp beads; when the Y coordinate difference value is positive, the brightness of the green lamp beads is reduced; when the Y coordinate difference is negative, increasing the brightness of the green lamp beads; when the X coordinate difference value and the Y coordinate difference value are positive, the brightness of the blue lamp beads is increased, and when the X coordinate difference value and the Y coordinate difference value are negative, the brightness of the blue lamp beads is reduced; and when the X coordinate difference value and the Y coordinate difference value are positive and negative, the blue lamp beads are not adjusted.
2. The LED light source control method according to claim 1, wherein the LED controller controls the LED light source to operate based on a preset control instruction generated by the host computer, comprising:
after receiving a work request of a user for controlling an LED light source, the upper computer matches a preset work current corresponding to the LED light source in the upper computer based on the work request of the control LED light source;
the upper computer performs instruction packaging based on the preset working current, generates a preset control instruction and sends the preset control instruction to the LED controller;
and the LED controller drives the LED light source to work based on the preset control instruction.
3. The method according to claim 1, wherein after feeding back the preset color temperature data and the preset illuminance data of the LED light source to the host computer, further comprising:
the upper computer performs matching processing on the received preset color temperature data and preset illuminance data in a database;
if the corresponding data are matched in the database, the preset color temperature data and the preset illuminance data do not need to be stored in the database;
and if the corresponding data cannot be matched in the database, storing the preset color temperature data and the preset illumination data and the preset working current corresponding to the preset color temperature data and the preset illumination data in the database in a correlated mode.
4. The LED light source control method according to claim 1, wherein the determining whether the set color temperature data and the set illuminance data are identical to the preset color temperature data and the preset illuminance data includes:
performing difference processing by using the set color temperature data and the preset color temperature data to obtain a first difference value;
performing difference processing by using the set illuminance data and the preset illuminance data to obtain a second difference value;
comparing the first difference value with a preset first difference value, and comparing the second difference value with a preset second difference value to obtain a first difference value comparison result and a second difference value comparison result;
and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the first difference comparison result and the second difference comparison result.
5. The method according to claim 4, wherein the determining whether the set color temperature data and the set illuminance data are identical to the preset color temperature data and the preset illuminance data based on the first difference comparison result and the second difference comparison result, comprises:
and judging whether the set color temperature data and the set illuminance data are consistent with the preset color temperature data and the preset illuminance data or not based on the mode that whether the first difference value comparison result and the second difference value comparison result are in a preset range or not.
6. The LED light source control method according to claim 1, wherein the host computer generates LED light source adjustment control instructions based on the set color temperature data and set illuminance data, comprising:
performing matching processing in a database by using the set color temperature data and the set illuminance data;
when matching color temperature data and matching illuminance data which are matched with each other are obtained, obtaining associated working current associated with the matching color temperature data and the matching illuminance data;
and generating the LED light source adjustment control instruction based on the associated working current.
7. An LED light source control system with color temperature and illumination adjustment is characterized by comprising an LED light source, an upper computer, an LED controller, a color temperature detection sensor and an illumination detection sensor; the LED controller is respectively connected with the LED light source, the color temperature detection sensor and the illuminance detection sensor; the upper computer is connected with the LED controller based on network communication; the LED light source is a light source composed of RGB three-color LED lamp beads; wherein the system is configured for performing the LED light source control method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310199478.0A CN115866830B (en) | 2023-03-04 | 2023-03-04 | LED light source control method and system with color temperature and illumination adjustment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310199478.0A CN115866830B (en) | 2023-03-04 | 2023-03-04 | LED light source control method and system with color temperature and illumination adjustment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115866830A CN115866830A (en) | 2023-03-28 |
CN115866830B true CN115866830B (en) | 2023-05-16 |
Family
ID=85659887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310199478.0A Active CN115866830B (en) | 2023-03-04 | 2023-03-04 | LED light source control method and system with color temperature and illumination adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115866830B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741559A (en) * | 2020-08-27 | 2020-10-02 | 江西嘉捷鑫源科技有限公司 | Color temperature correction method, system, control terminal and computer readable storage medium |
CN112423426A (en) * | 2020-12-14 | 2021-02-26 | 东莞锐视光电科技有限公司 | Method for automatically calibrating color temperature and illumination of light source based on color coordinates |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9326359B2 (en) * | 2014-09-02 | 2016-04-26 | LIFI Labs, Inc. | Lighting system operation management method |
CN109803465A (en) * | 2019-01-09 | 2019-05-24 | 常州数言信息技术有限公司 | Illumination and color temperature compensating control method and system based on room lighting |
CN112804782B (en) * | 2021-01-27 | 2022-12-27 | 东莞康视达自动化科技有限公司 | Intelligent color temperature and illumination calibration light source illumination system and method |
JP2022155944A (en) * | 2021-03-31 | 2022-10-14 | 大和ハウス工業株式会社 | Illumination control system |
CN113365386A (en) * | 2021-06-11 | 2021-09-07 | 南昌大学 | Control method and device of indoor lighting system |
-
2023
- 2023-03-04 CN CN202310199478.0A patent/CN115866830B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741559A (en) * | 2020-08-27 | 2020-10-02 | 江西嘉捷鑫源科技有限公司 | Color temperature correction method, system, control terminal and computer readable storage medium |
CN112423426A (en) * | 2020-12-14 | 2021-02-26 | 东莞锐视光电科技有限公司 | Method for automatically calibrating color temperature and illumination of light source based on color coordinates |
Also Published As
Publication number | Publication date |
---|---|
CN115866830A (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103414905B (en) | White balance data adjusting method, device and system | |
US9064443B2 (en) | Projection apparatus, projection method, and storage medium storing program, for reducing energy consumption by shortening color mixing period | |
CN100594421C (en) | Color optimization system and method of digital light processing projecting machine | |
US20170034894A1 (en) | Configuration of ambient light using wireless connection | |
CN113895353B (en) | Instrument interface skin changing method and system following automobile atmosphere lamp change and vehicle | |
CN106293060A (en) | The control method of display screen and device | |
CN104767984A (en) | Color temperature adjusting method for flash lamp and terminal | |
CN115866830B (en) | LED light source control method and system with color temperature and illumination adjustment | |
EP4312466A1 (en) | Full-spectrum light-emitting diode (led) color management system based on rgbwcla seven-color integration | |
CN115119365A (en) | Light modulation method, light modulation device and computer storage medium | |
WO2018182856A1 (en) | Image-based lighting controller | |
CN116453477A (en) | Backlight processing method and device based on local dimming, backlight equipment and projector | |
CN111148332A (en) | Scene control system and method of intelligent lighting equipment | |
CN115802538A (en) | Light color control method, system, terminal and storage medium | |
US20230225035A1 (en) | Controlling a pixelated lighting device based on a relative location of a further light source | |
US9661723B2 (en) | Method for controlling lighting element and associated system | |
CN110225334B (en) | OTP light source automatic calibration method and system for mobile phone module detection | |
CN112333931B (en) | Remote control method and system of composite flash initiator, electronic equipment and storage medium | |
CN105551442A (en) | Backlight brightness adjustment method and device | |
US12030719B2 (en) | Multi-layered circulation type part feeding apparatus | |
WO2024060254A1 (en) | System and method for controlling lamp device, lamp device, and storage medium | |
CN116761317B (en) | Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium | |
CN116939928B (en) | Energy-saving illumination intelligent control method, system and computer readable storage medium | |
CN115866836A (en) | Configuration control method and device based on LED composite light source | |
WO2024216875A1 (en) | Dynamic constant-current control method and system suitable for led dimming |
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 |