CN115002968A - Lamp control method and device, electronic equipment and storage medium - Google Patents

Lamp control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115002968A
CN115002968A CN202110230011.9A CN202110230011A CN115002968A CN 115002968 A CN115002968 A CN 115002968A CN 202110230011 A CN202110230011 A CN 202110230011A CN 115002968 A CN115002968 A CN 115002968A
Authority
CN
China
Prior art keywords
color temperature
time
lamp
change information
preset
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
CN202110230011.9A
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.)
Leedarson Lighting Co Ltd
Original Assignee
Leedarson Lighting 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 Leedarson Lighting Co Ltd filed Critical Leedarson Lighting Co Ltd
Priority to CN202110230011.9A priority Critical patent/CN115002968A/en
Publication of CN115002968A publication Critical patent/CN115002968A/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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The application is applicable to the field of lamp control, and provides a lamp control method and device, electronic equipment and a storage medium. The lamp control method comprises the steps of obtaining sunrise time and sunset time of a preset geographical position on a preset date, determining color temperature change information of a lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of sunlight, and controlling the lamp to emit light according to the color temperature change information. The color temperature change information is determined according to the daylight color temperature collected in advance, so that the color temperature change information from sunrise time to sunset time is consistent with the change situation of the daylight color temperature, and the lamp is controlled to emit light according to the color temperature change information, so that the lamp can simulate the daylight color temperature to emit light.

Description

Lamp control method and device, electronic equipment and storage medium
Technical Field
The present application belongs to the field of lamp control, and in particular, to a lamp control method, device, electronic device, and storage medium.
Background
The existing light fixtures generally adjust the color temperature according to the set modes, and the color temperature in each mode is kept unchanged. However, in some situations where the ambient light requirement is high, maintaining a fixed color temperature in each mode is not sufficient.
Disclosure of Invention
In view of this, embodiments of the present application provide a lamp control method, an apparatus, an electronic device, and a storage medium, which enable a lamp to emit light by simulating a daylight color temperature.
A first aspect of an embodiment of the present application provides a luminaire control method, including:
acquiring sunrise time and sunset time of a preset geographic position on a preset date;
determining color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of the daylight;
and controlling the lamp to emit light according to the color temperature change information.
In a possible implementation manner, the daylight color temperature includes a first color temperature, a second color temperature, and a third color temperature, and the color temperature change information includes an increase from the first color temperature to the second color temperature, and a decrease from the second color temperature to the third color temperature according to a preset rule.
In a possible implementation manner, the determining, according to the sunrise time, the sunset time, and the daylight color temperature of the pre-collected daylight, the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date includes:
determining time nodes for adjusting the color temperature of the lamp according to the sunrise time, the sunset time and the number of preset time nodes;
determining a lamp color temperature corresponding to each time node according to the first color temperature, the second color temperature, the third color temperature and the time node;
and determining the color temperature change information according to the lamp color temperature corresponding to each time node.
In a possible implementation manner, the determining the color temperature change information according to the color temperature of the lamp corresponding to each time node includes:
and determining a color temperature change curve of the lamp according to the color temperature of the lamp corresponding to each time node, and determining the color temperature change information according to the color temperature change curve.
In a possible implementation manner, the determining, according to the first color temperature, the second color temperature, the third color temperature, and the time node, a luminaire color temperature corresponding to each time node includes:
determining the corresponding relation between the lamp color temperature and the time according to the first color temperature, the second color temperature and the third color temperature;
and determining the lamp color temperature corresponding to each time node according to the corresponding relation between the lamp color temperature and the time nodes.
In a possible implementation manner, the controlling the light fixture to emit light according to the color temperature change information includes:
determining change information of current ratio according to a preset corresponding relation between a lamp color temperature and the current ratio and the color temperature change information, wherein the lamp comprises a first light-emitting unit and a second light-emitting unit, the first light-emitting unit is used for emitting light under the drive of first input current, the second light-emitting unit is used for emitting light under the drive of second input current, and the current ratio is a ratio of the first input current to the second input current;
and adjusting the currents of the first light-emitting unit and the second light-emitting unit according to the change information of the current ratio.
In a possible implementation manner, the obtaining sunrise time and sunset time of the preset geographic location on the preset date includes:
acquiring a preset geographic position and a preset date;
and determining the sunrise time and the sunset time according to the preset geographic position, the preset date and preset illumination information.
A second aspect of an embodiment of the present application provides a luminaire control apparatus, including:
the acquisition module is used for acquiring sunrise time and sunset time of a preset geographic position on a preset date;
the calculation module is used for determining the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of the daylight;
and the control module is used for controlling the lamp to emit light according to the color temperature change information.
In a possible implementation manner, the daylight color temperature includes a first color temperature, a second color temperature, and a third color temperature, and the color temperature change information includes an increase from the first color temperature to the second color temperature, and a decrease from the second color temperature to the third color temperature according to a preset rule.
In a possible implementation manner, the calculation module is specifically configured to:
determining time nodes for adjusting the color temperature of the lamp according to the sunrise time, the sunset time and the number of preset time nodes;
determining a lamp color temperature corresponding to each time node according to the first color temperature, the second color temperature, the third color temperature and the time node;
and determining the color temperature change information according to the lamp color temperature corresponding to each time node.
In a possible implementation manner, the calculation module is specifically further configured to:
and determining a color temperature change curve of the lamp according to the color temperature of the lamp corresponding to each time node, and determining the color temperature change information according to the color temperature change curve.
In a possible implementation manner, the calculation module is specifically further configured to:
determining the corresponding relation between the lamp color temperature and the time according to the first color temperature, the second color temperature and the third color temperature;
and determining the lamp color temperature corresponding to each time node according to the corresponding relation between the lamp color temperature and the time nodes.
In a possible implementation manner, the control module is specifically configured to:
determining change information of current ratio according to a preset corresponding relation between a lamp color temperature and the current ratio and the color temperature change information, wherein the lamp comprises a first light-emitting unit and a second light-emitting unit, the first light-emitting unit is used for emitting light under the drive of first input current, the second light-emitting unit is used for emitting light under the drive of second input current, and the current ratio is a ratio of the first input current to the second input current;
and adjusting the currents of the first light-emitting unit and the second light-emitting unit according to the change information of the current ratio.
In a possible implementation manner, the obtaining module is specifically configured to:
acquiring a preset geographic position and a preset date;
and determining the sunrise time and the sunset time according to the preset geographic position, the preset date and preset illumination information.
A third aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the luminaire control method according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the luminaire control method according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the luminaire control method according to any one of the first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of obtaining sunrise time and sunset time of a preset geographical position on a preset date, determining color temperature change information of a lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of sunlight, and controlling the lamp to emit light according to the color temperature change information. Since the color temperature change information is determined according to the previously collected daylight color temperature, the color temperature change information from the sunrise time to the sunset time is consistent with the change situation of the daylight color temperature, and therefore, the lamp is controlled to emit light according to the color temperature change information, so that the lamp simulates the daylight color temperature to emit light.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic implementation flow diagram of a lamp control method according to an embodiment of the present application;
FIG. 2 is a graph showing the variation of the color temperature and the current ratio corresponding to the color temperature of sunlight provided by the embodiment of the present application;
fig. 3 is a flowchart of lamp control provided in the embodiment of the present application;
FIG. 4 is a graph showing changes in color temperature and current ratio corresponding to the color temperature of a lamp provided by an embodiment of the present application;
fig. 5 is a schematic view of a lamp control device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
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 present application. It will be apparent, however, to one skilled in the art that the present application 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 application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The color temperature adjusting mode of the existing lamp is not flexible enough, and the daylight color temperature change cannot be effectively simulated, so that the application provides a lamp control method, which comprises the following steps: the method comprises the steps of obtaining sunrise time and sunset time of a preset geographical position on a preset date, determining color temperature change information of a lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of sunlight, and controlling the lamp to emit light according to the color temperature change information. The color temperature change information is determined according to the daylight color temperature collected in advance, so that the color temperature change information from sunrise time to sunset time is consistent with the change situation of the daylight color temperature, and the lamp is controlled to emit light according to the color temperature change information, so that the lamp can simulate the daylight color temperature to emit light.
The following provides an exemplary description of a luminaire control method provided in the present application.
Referring to fig. 1, a lamp control method according to an embodiment of the present application includes:
s101: and acquiring sunrise time and sunset time of the preset geographic position on a preset date.
Wherein the sunrise time and the sunset time may be input by a user. The sunrise time and the sunset time can also be determined according to the acquired preset geographic position, the preset date and the preset illumination information, wherein the preset illumination information comprises the sunrise time and the sunrise time of each geographic position every day. The sunrise time and the sunset time are determined according to the preset geographic position, the preset date and the preset illumination information, and the accuracy is high.
In one possible implementation, the preset geographic location is a location where the lamp is located, that is, geographic coordinates of the lamp, where the geographic coordinates include a longitude and a latitude, and the location where the lamp is located can be identified by a positioning device on the lamp.
In one possible implementation, the preset date is the current date, for example, if the current date is 2021 year 2 month 1 day, then the preset date is also 2021 year 2 month 1 day. That is, sunrise time and sunset time of the preset geographical location (for example, the location where the lamp is located) on 2/1/2021 are obtained.
S102: and determining the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of the daylight.
The sunlight color temperature refers to the color temperature of sunlight. In this embodiment, the daylight color temperatures of different dates and different times are collected in advance, and it should be noted that the daylight color temperatures collected in advance include the daylight color temperature at any time before the current time. The change trend of the daylight color temperature on the day of collecting the daylight color temperature can be determined according to the pre-collected daylight color temperature, and the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date is consistent with the change trend of the daylight color temperature.
In one possible implementation manner, the daylight color temperature includes a first color temperature, a second color temperature and a third color temperature, the first color temperature is the daylight color temperature for collecting the sunrise time of the day of the daylight color temperature, the second color temperature is the daylight color temperature for collecting the sunrise time of the day of the daylight color temperature and is also the highest color temperature for collecting the daylight color temperature of the day, and the third color temperature is the daylight color temperature for collecting the sunset time of the day of the daylight color temperature. The color temperature change information includes increasing from the first color temperature to the second color temperature and decreasing from the second color temperature to the third color temperature according to a preset rule. In other words, in the color temperature change information, the color temperature at the sunrise time is the first color temperature, the highest color temperature is the second color temperature, and the color temperature at the sunset time is the third color temperature, so that the color temperature change information is closer to the change trend of the sunlight color temperature.
In a possible implementation manner, the time length from the sunrise time to the sunset time is averagely divided into two sections, and the color temperature change information is that the color temperature is increased from the first color temperature to the second color temperature in the first section of time length, and is decreased from the second color temperature to the third color temperature in the second section of time length.
In another possible implementation manner, the number of set time nodes for adjusting the color temperature of the lamp is first obtained, and the time nodes for adjusting the color temperature of the lamp are determined according to the sunrise time, the sunset time and the number of the time nodes. In particular, according to the formula
Figure RE-GDA0003092812260000071
T n Calculating a time node for adjusting the color temperature of the luminaire at T1+ Δ T n, wherein T 2 Representing sunset time, t 1 Representing sunrise time, Δ T representing the time interval between two adjacent time nodes, n representing the number of time nodes, T n A time node for adjusting the color temperature of the luminaire is indicated.
And after the time node for adjusting the color temperature of the lamp is determined, determining the color temperature corresponding to each time node for adjusting the color temperature of the lamp according to the first color temperature, the second color temperature, the third color temperature and the time node for adjusting the color temperature of the lamp. Specifically, the corresponding relation between the daylight color temperature and the time is determined according to the first color temperature, the second color temperature, the third color temperature, the corresponding acquisition time of the first color temperature, the corresponding acquisition time of the second color temperature, and the corresponding acquisition time of the third color temperature. In order to improve the accuracy of the determined correspondence between the daylight color temperatures and the time, the number of the collected daylight color temperatures can be increased, and the correspondence between the daylight color temperatures and the time is determined according to all the collected daylight color temperatures and the corresponding collection time.
And after the corresponding relation between the daylight color temperature and the time is determined, determining the color temperature corresponding to each time node of the lamp according to the corresponding relation between the daylight color temperature and the time node for adjusting the color temperature of the lamp. In a possible implementation manner, time nodes between the collection time of the first color temperature and the collection time of the third color temperature, that is, time nodes of daylight color temperature change are determined according to the number of the time nodes, and the daylight color temperature corresponding to each time node of daylight color temperature change is determined according to the time nodes of daylight color temperature change and a relation between the daylight color temperature and time. And according to the sequence of the time nodes, the time nodes for adjusting the color temperature of the lamp are in one-to-one correspondence with the time nodes for changing the color temperature of the daylight, and the color temperature of the time nodes for changing the color temperature of the daylight is used as the color temperature of the time nodes for correspondingly adjusting the color temperature of the lamp. In another possible implementation manner, the correspondence between the daylight color temperature and the time may also be modified according to the sunrise time and the sunset time to obtain a modified correspondence between the daylight color temperature and the time, and the time node for adjusting the color temperature of the lamp is substituted into the modified correspondence between the daylight color temperature and the time to obtain the color temperature corresponding to each time node for adjusting the color temperature of the lamp.
After the color temperature corresponding to each time node for adjusting the color temperature of the lamp is determined, the relation between the color temperature of the lamp and the time can be determined, namely the color temperature change curve of the lamp, and the color temperature change information is consistent with the color temperature change curve, so that the color temperature of the lamp is changed in a gradual change mode, and the accuracy of simulating the color temperature of sunlight is improved. In another possible implementation manner, the color temperature of the lamp may also be instantaneously changed to the color temperature of the corresponding time node at each time node according to the color temperature corresponding to each time node for adjusting the color temperature of the lamp.
S103: and controlling the lamp to emit light according to the color temperature change information.
Specifically, the color temperature of the lamp at each time node is controlled to be consistent with the color temperature change information. Wherein, the lamps and lanterns can be ceiling lamp, lamp panel lamp, ball bubble lamp etc..
In one possible implementation manner, the lamp includes a first light emitting unit and a second light emitting unit, the first light emitting unit is configured to emit light under driving of a first input current, and the second light emitting unit is configured to emit light under driving of a second input current. The first and second light emitting units may each be an LED lamp. The color temperature of the first light-emitting unit is different from that of the second light-emitting unit, the first light-emitting unit and the second light-emitting unit correspond to different current output channels, and the proportion of the first input current to the second input current is current proportion. In a possible implementation manner, one of the first light emitting unit and the second light emitting unit has a color temperature lower than the lowest color temperature of sunlight, and the other has a color temperature higher than the highest color temperature of sunlight, and the first light emitting unit and the second light emitting unit emit light simultaneously, and the range of change of the color temperature of the synthesized light can satisfy the color temperature change information consistent with the change of the color temperature of sunlight. And determining the change information of the current ratio according to the corresponding relation between the color temperature of the lamp and the current ratio and the color temperature change information, and adjusting the first input current of the first light-emitting unit and the second input current of the second light-emitting unit according to the change information of the current ratio, so that the lamp emits light according to the corresponding color temperature at each time node. The corresponding relation between the color temperature of the lamp and the current ratio is determined according to experimental data obtained by testing the lamp in advance. The simulated sunlight can be emitted through the two light-emitting units, and the manufacturing cost of the lamp is reduced.
In one possible implementation, the current ratio is the ratio I of the current of one of the output channels to the total current f Indicating, for example, that the current ratio is expressed in terms of the ratio of the first input current to the sum of the first input current and the second input current. The relationship between the color temperature and the current ratio of the lamp can be expressed as a first relationship CCT ═ f (I) f ) And the relation between the daylight color temperature and the time is a second relation CCT (f (t'), and a third relation I between the current ratio and the time can be obtained according to the first relation and the second relation when the daylight color temperature of the lamp is simulated and collected and the daylight color temperature of the day is luminous f F (t'), wherein the first, second, and third relationships may each be polynomial equations. And according to a third relation between the current ratio and the time node of the sunlight color temperature change, determining the current ratio corresponding to the time node of the sunlight color temperature change. And according to the sequence of the time nodes, the time nodes for adjusting the color temperature of the lamp are in one-to-one correspondence with the time nodes for changing the daylight color temperature, and the current proportion of the time nodes for changing the daylight color temperature is used as the current proportion of the time nodes for correspondingly adjusting the color temperature of the lamp. According to the time node for adjusting the color temperature of the lamp and the corresponding current ratio, the relation between the current ratio and the time of the lamp on the preset date can be determined, and according to the preset current ratio of the lampThe relation between the current ratio of the date and the time controls the first light-emitting unit and the second light-emitting unit to emit light.
In another possible implementation manner, the lamp may also include a plurality of light-emitting units, each light-emitting unit corresponds to one color temperature, and the corresponding lamp is controlled to emit light according to the color temperature corresponding to each time node, so that the lamp emits light according to the corresponding color temperature at each time node.
In the embodiment, the sunrise time and the sunset time of the preset geographic position on the preset date are acquired, and the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date is determined according to the sunrise time, the sunset time and the pre-collected daylight color temperature, wherein the color temperature change information is consistent with the change trend of the pre-collected daylight color temperature; and controlling the lamp to emit light according to the color temperature change information. Since the color temperature change information is determined according to the color temperature of the sunlight collected in advance, the color temperature change information from the sunrise time to the sunset time is consistent with the change situation of the color temperature of the sunlight, and therefore the lamp is controlled to emit light according to the color temperature change information to simulate the color temperature change of the sunlight. And the lamp can simulate the change condition of the color temperature of the sunlight on the local day along with the change of the geographical position, and is beneficial to regulating the physiological rhythm of the personnel working indoors for a long time by simulating the change of the color temperature of the sunlight.
The following describes a lamp control method provided in the embodiment of the present application with reference to a specific application scenario.
The lamp comprises a first light-emitting unit and a second light-emitting unit, wherein the color temperature of the first light-emitting unit is 6533K, and the color temperature of the second light-emitting unit is 2722K. Firstly, when the current ratio changes, the color temperature of the lamp is collected. As shown in table 1, the driving currents of the lamp are distributed in two channels, and the ratio of the first input current to the driving current (i.e., the sum of the first input current and the second input current) of the first light-emitting unit is used as a current ratio, and the current ratio is changed by 1%, so as to obtain data of the color temperature CCT and the current ratio of the lamp. According to the data of the color temperature and the current ratio of the lamp, a relational expression of the color temperature and the current ratio of the lamp can be determined.
TABLE 1
Figure RE-GDA0003092812260000101
Figure RE-GDA0003092812260000111
The pre-collected daylight color temperatures are shown in table 2, and the sunrise time of the day for collecting the daylight color temperatures is 6: 00, time in the middle of the day 12: 00, sunset time 18: 00, collecting daylight color temperature CCT at sunrise time, mid-day time and sunset time, respectively. According to the daylight color temperature and the data of the acquisition time, a relational expression of the daylight color temperature and the time can be obtained. Meanwhile, according to the corresponding relation between the color temperature of the lamp and the current ratio, the current ratio corresponding to the color temperature of each daylight can be obtained. Taking the relation between the current ratio and the time as a quadratic function relation as an example, the sunrise time t 1 And corresponding current ratio P 1 Substituting the quadratic function relation to obtain P 1 =a*t 1 2 +b*t 1 + c, the time t from the middle of the day m And corresponding current ratio P m Substituting into quadratic function relation to obtain P m =a*t m 2 +b*t m + c, the sunset time t 2 And corresponding current ratio P 2 Substituting the quadratic function relation to obtain P 2 =a*t 2 2 +b*t 2 + c, obtaining a-14.08, b-14.08 and c-2.64 according to the relation of three quadratic functions, and further obtaining the relation of the current ratio and the time when the lamp simulates and collects the daylight color temperature of the daylight color temperature day to emit light, wherein P is-14.08 t 2 +14.08 × t-2.64, where P represents the current proportioning and t represents time.
TABLE 2
Time CCT(K) Current proportioning
Sunrise 6:00 2722 0%
Median of the day 12:00 5714 88%
Sunset 18:00 2722 0%
According to the relation between the daylight color temperature and the time and the relation between the current ratio and the time, the change curve of the color temperature and the current ratio when the lamp shown in fig. 2 simulates and collects the daylight color temperature and emits light on the day can be obtained, wherein the curve 1 is the change curve of the daylight color temperature, and the curve 2 is the change curve of the corresponding current ratio.
The number of the time nodes is set to be 11, the time lengths among the time nodes are equidistant, the time nodes with the changed daylight color temperature shown in the table 3 are obtained according to the sunrise time and the sunset time of the day for collecting the daylight color temperature, the color temperature corresponding to each time node is obtained according to the change curve of the daylight color temperature, and the current ratio corresponding to each time node is obtained according to the change curve of the current ratio.
TABLE 3
Figure RE-GDA0003092812260000121
As shown in fig. 3, after the lamp is started, reading the geographic position and the date, for example, the lamp is located in xiamen city of china, the geographic position is 118 ° 04 'east longitude, 24 ° 26' north latitude, the date is 1, and 7 days 2021 year, and the sunrise time and the sunset time of the day are determined to be 6:52:55 and 17:34:58 according to the preset illumination information. After the sunrise time and the sunset time are determined, time nodes corresponding to the daylight color temperature, the color temperature corresponding to each time node and the current ratio are obtained, the duration between the sunrise time and the sunset time is averagely divided into 12 time periods according to the number 11 of the time nodes, and the obtained time nodes for adjusting the color temperature of the lamp are shown in table 4. After the time nodes for adjusting the color temperature of the lamp are determined, the time nodes for adjusting the color temperature of the lamp are in one-to-one correspondence with the time nodes for changing the color temperature of the sunlight according to the sequence of the time nodes, the color temperature corresponding to the time nodes for adjusting the color temperature of the lamp is obtained, and the current ratio corresponding to the time nodes for adjusting the color temperature of the lamp is obtained. And obtaining a relation between the lamp color temperature and the time according to the color temperature corresponding to the time node for adjusting the lamp color temperature, and further obtaining a curve 3 shown in fig. 4, wherein the curve 3 is a lamp color temperature change curve. The relation between the current ratio and the time can be obtained according to the current ratio corresponding to the time node of the lamp, and then a curve 4 as shown in fig. 4 is obtained, wherein the curve 4 is a change curve of the current ratio of the lamp on the preset date. And controlling the output currents of the first light-emitting unit and the second light-emitting unit according to the change curve of the current ratio, so that the lamp can emit light according to the corresponding color temperature. Specifically, the current ratio and the color temperature of the lamp at any time can be obtained according to the change curve of the current ratio and the change curve of the color temperature. For example, at real time 7: 30, the color temperature of the lamp is 2745K, and the current ratio is 19%, so that the lamp is controlled to emit light according to the color temperature change curve.
TABLE 4
Figure RE-GDA0003092812260000131
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 application.
Fig. 5 shows a block diagram of a luminaire control apparatus provided in an embodiment of the present application, where only portions related to the embodiment of the present application are shown for convenience of description, corresponding to the image synthesis method described in the foregoing embodiment.
As shown in fig. 5, the lamp control device includes,
the acquisition module 10 is configured to acquire sunrise time and sunset time of a preset geographic location on a preset date;
the calculation module 20 is configured to determine, according to the sunrise time, the sunset time, and a pre-collected daylight color temperature, color temperature change information of the lamp from the sunrise time to the sunset time on the preset date;
and the control module 30 is used for controlling the lamp to emit light according to the color temperature change information.
In a possible implementation manner, the pre-collected daylight color temperature includes a first color temperature, a second color temperature and a third color temperature, and the color temperature change information includes an increase from the first color temperature to the second color temperature and a decrease from the second color temperature to the third color temperature according to a preset rule.
In a possible implementation manner, the calculation module 20 is specifically configured to:
determining time nodes for adjusting the color temperature of the lamp according to the sunrise time, the sunset time and the number of preset time nodes;
determining a lamp color temperature corresponding to each time node according to the first color temperature, the second color temperature, the third color temperature and the time node;
and determining the color temperature change information according to the lamp color temperature corresponding to each time node.
In a possible implementation manner, the computing module 20 is specifically further configured to:
and determining a color temperature change curve of the lamp according to the color temperature of the lamp corresponding to each time node, and determining the color temperature change information according to the color temperature change curve.
In a possible implementation manner, the computing module 20 is specifically further configured to:
determining the corresponding relation between the lamp color temperature and the time according to the first color temperature, the second color temperature and the third color temperature;
and determining the lamp color temperature corresponding to each time node according to the corresponding relation between the lamp color temperature and the time nodes.
In a possible implementation manner, the control module 30 is specifically configured to:
determining change information of current ratio according to a preset corresponding relation between a lamp color temperature and the current ratio and the color temperature change information, wherein the lamp comprises a first light-emitting unit and a second light-emitting unit, the first light-emitting unit is used for emitting light under the drive of first input current, the second light-emitting unit is used for emitting light under the drive of second input current, and the current ratio is a ratio of the first input current to the second input current;
and adjusting the currents of the first light-emitting unit and the second light-emitting unit according to the change information of the current ratio.
In a possible implementation manner, the obtaining module 10 is specifically configured to:
acquiring a preset geographic position and a preset date;
and determining the sunrise time and the sunset time according to the preset geographic position, the preset date and preset illumination information.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be a lamp, a desktop computer, a notebook, a palm computer and other computing devices. As shown in fig. 6, the electronic apparatus of this embodiment includes: a processor 11, a memory 12 and a computer program 13 stored in said memory 12 and executable on said processor 11. The processor 11, when executing the computer program 13, implements the steps in the control method embodiment of the electronic device described above, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 11 executes the computer program 13 to implement the functions of the modules/units in the device embodiments, such as the functions of the acquisition module 10 to the control module 30 shown in fig. 5.
Illustratively, the computer program 13 may be partitioned into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 13 in the terminal device.
Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device and is not limiting of an electronic device, and may include more or fewer components than those shown, or some components in combination, or different components, e.g., the electronic device may also include input output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 12 may also be an external storage device of the electronic device, 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 provided on the electronic device. Further, the memory 12 may also include both an internal storage unit and an external storage device of the electronic device. The memory 12 is used for storing the computer program and other programs and data required by the electronic device. The memory 12 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.
In the embodiments provided in the present application, 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 through some interfaces, indirect coupling or communication connection of 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.
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 in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. 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.
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 application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 application and are intended to be included within the scope of the present application.

Claims (10)

1. A luminaire control method, comprising:
acquiring sunrise time and sunset time of a preset geographic position on a preset date;
determining color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of the daylight;
and controlling the lamp to emit light according to the color temperature change information.
2. The luminaire control method of claim 1, wherein the daylight color temperature comprises a first color temperature, a second color temperature, and a third color temperature, and the color temperature change information comprises an increase from the first color temperature to the second color temperature, and a decrease from the second color temperature to the third color temperature according to a preset rule.
3. The lamp control method according to claim 2, wherein the determining of the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time, and the daylight color temperature of the pre-collected daylight comprises:
determining time nodes for adjusting the color temperature of the lamp according to the sunrise time, the sunset time and the number of preset time nodes;
determining a lamp color temperature corresponding to each time node according to the first color temperature, the second color temperature, the third color temperature and the time node;
and determining the color temperature change information according to the lamp color temperature corresponding to each time node.
4. The lamp control method according to claim 3, wherein the determining the color temperature change information according to the lamp color temperature corresponding to each time node comprises:
and determining a color temperature change curve of the lamp according to the color temperature of the lamp corresponding to each time node, and determining the color temperature change information according to the color temperature change curve.
5. The luminaire control method of claim 3, wherein determining the luminaire color temperature corresponding to each time node according to the first color temperature, the second color temperature, the third color temperature, and the time node comprises:
determining the corresponding relation between the lamp color temperature and the time according to the first color temperature, the second color temperature and the third color temperature;
and determining the lamp color temperature corresponding to each time node according to the corresponding relation between the lamp color temperature and the time nodes.
6. The lamp control method according to claim 1, wherein the controlling the lamp to emit light according to the color temperature change information includes:
determining change information of current ratio according to a preset corresponding relation between a lamp color temperature and the current ratio and the color temperature change information, wherein the lamp comprises a first light-emitting unit and a second light-emitting unit, the first light-emitting unit is used for emitting light under the drive of first input current, the second light-emitting unit is used for emitting light under the drive of second input current, and the current ratio is a ratio of the first input current to the second input current;
and adjusting the currents of the first light-emitting unit and the second light-emitting unit according to the change information of the current ratio.
7. The luminaire control method of claim 1, wherein the obtaining sunrise time and sunset time of the preset geographic location on the preset date comprises:
acquiring a preset geographic position and a preset date;
and determining the sunrise time and the sunset time according to the preset geographic position, the preset date and preset illumination information.
8. A luminaire control device, characterized by comprising:
the acquisition module is used for acquiring sunrise time and sunset time of a preset geographic position on a preset date;
the calculation module is used for determining the color temperature change information of the lamp from the sunrise time to the sunset time on the preset date according to the sunrise time, the sunset time and the pre-collected daylight color temperature of the daylight;
and the control module is used for controlling the lamp to emit light according to the color temperature change information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the luminaire control method of any one 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 a luminaire control method according to any one of claims 1 to 7.
CN202110230011.9A 2021-03-02 2021-03-02 Lamp control method and device, electronic equipment and storage medium Pending CN115002968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110230011.9A CN115002968A (en) 2021-03-02 2021-03-02 Lamp control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110230011.9A CN115002968A (en) 2021-03-02 2021-03-02 Lamp control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115002968A true CN115002968A (en) 2022-09-02

Family

ID=83018665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110230011.9A Pending CN115002968A (en) 2021-03-02 2021-03-02 Lamp control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115002968A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506994A (en) * 2023-04-10 2023-07-28 广州柏曼光电科技有限公司 Color temperature adjusting method and device and lamp

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506994A (en) * 2023-04-10 2023-07-28 广州柏曼光电科技有限公司 Color temperature adjusting method and device and lamp
CN116506994B (en) * 2023-04-10 2024-03-08 广州柏曼光电科技有限公司 Color temperature adjusting method and device and lamp

Similar Documents

Publication Publication Date Title
Zhai et al. The impact of illuminance and colour temperature on viewing fine art paintings under LED lighting
US8723450B2 (en) System and method for controlling the spectral content of an output of a light fixture
Inanici Evaluation of high dynamic range photography as a luminance data acquisition system
Hickox et al. Black hole variability and the star formation–active galactic nucleus connection: do all star-forming galaxies host an active galactic nucleus?
CA2859502C (en) Assembling and controlling light unit arrays
ES2898686T3 (en) Detect a new commissioning
CN111465135B (en) Intelligent lighting control system based on circadian rhythm
CN115002968A (en) Lamp control method and device, electronic equipment and storage medium
Boyce et al. LRT symposium ‘Better metrics for better lighting’–a summary
Szalai et al. Smart SSL: Application of IoT/CPS design platforms in LED-based street-lighting luminaires
US20220027532A1 (en) Illumination planning system
BR112013012675A8 (en) LIGHTING SYSTEM
CN116484728B (en) Building illumination integrated simulation implementation method and system based on BIM technology
Esposito An adjusted error score calculation for the Farnsworth-Munsell 100 hue test
Beu et al. Circular economy aspects regarding LED lighting retrofit—From case studies to vision
Ugarte-Urra et al. Modeling coronal response in decaying active regions with magnetic flux transport and steady heating
Baumgartner et al. Natural and accelerated ageing of LED lamps
Ptak et al. Investigations of Electrical and Optical Parameters of Some LED Luminaires—A Study Case
CN108954042B (en) Synthetic method of illumination light source with adjustable large-range spectral precision
Oxoli et al. Hotspot analysis: a first prototype Python plugin enabling exploratory spatial data analysis into QGIS
Zalewski A proposed method for the calculation of light emitting diode road lighting
CN113518487B (en) Light mixing method and device for lamp and electronic equipment
Simonot et al. The usefulness of near-field goniophotometry data to assess illuminances and discomfort glare in indoor lighting
Zaikina et al. Verification of the accuracy of the luminance-based metrics of contour, shape, and detail distinctness of 3d object in simulated daylit scene by numerical comparison with photographed hdr images
KR101632405B1 (en) Control device for Illumination simulation of spectrum tunable lighting and method thereof

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