LED control method and control terminal

By acquiring ambient light RGB data and calculating using an atmospheric model, the brightness and color temperature of LED light strings are controlled, solving the problem that existing technologies cannot adapt to weather and seasonal changes in LED daylight simulation, and achieving a comfortable daylight-like lighting effect throughout the year.

CN118265195BActive Publication Date: 2025-11-25ジャン州立達信光電子科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410396483.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2025-11-25
Estimated Expiration
2044-04-02

AI Technical Summary

Technical Problem

Existing methods for simulating LED daylight cannot adapt to weather and seasonal changes, affecting user experience.

Method used

By acquiring the RGB data of the surrounding ambient light, the current weather conditions are determined. On sunny days, the solar spectral color coordinates are directly simulated, while on cloudy days, the solar spectral color coordinates are calculated using an atmospheric model. The brightness and color temperature of the LED light strings are then controlled to simulate sunlight on a normal sunny day.

Benefits of technology

It achieves adaptive adjustment of LED light source under different weather and seasons, providing comfortable daylight-like lighting all year round and enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118265195B_ABST
    Figure CN118265195B_ABST
Patent Text Reader

Abstract

The application provides an LED control method and a control terminal. The method is used for controlling an LED light source; the LED light source comprises multiple LED lamp strings; the control method comprises the following steps: acquiring RGB data of ambient light, and determining a current weather according to the RGB data; wherein the current weather is sunny or overcast; if the current weather is sunny, determining a sunlight spectrum color coordinate according to the RGB data; if the current weather is overcast, acquiring a current weather parameter, and calculating the sunlight spectrum color coordinate according to the current weather parameter; and controlling each LED lamp string according to the sunlight spectrum color coordinate. The application can control the LED light source to simulate sunlight in sunny days, and can simulate sunlight in normal sunny days based on the sunlight spectrum color coordinate calculated according to an atmospheric model in overcast days. The LED light source can be adaptively adjusted according to weather and seasons, so that a user can obtain comfortable simulated sunlight lighting experience in all time periods.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the LED technical field, and in particular to an LED control method and a control terminal. BACKGROUND

[0002] Due to the change of modern lifestyle, users often work and live indoors without enough opportunities to contact natural light. Simulating sunlight can provide similar natural light illumination in indoor environment, which can effectively improve the comfort of indoor environment, and good lighting conditions can improve work and study efficiency, and help maintain physical and mental health.

[0003] In the prior art, the sunlight simulation of the LED is usually based on the time of day to predetermine the lighting mode, but this method cannot adapt to weather changes and seasonal changes, affecting the user experience. SUMMARY

[0004] The embodiments of the present application provide an LED control method and a control terminal to solve the problem that the time period simulation sunlight method in the prior art cannot adapt to weather and seasonal changes, affecting the user experience.

[0005] In a first aspect, the embodiments of the present application provide an LED control method for controlling an LED light source; the LED light source includes multiple LED light strings, and the color temperature of each LED light string is different; the control method includes:

[0006] Obtaining RGB data of ambient light, and determining the current weather according to the RGB data; wherein the current weather is sunny or overcast;

[0007] If the current weather is sunny, the sunlight spectrum color coordinates are determined according to the RGB data;

[0008] If the current weather is overcast, the current weather parameters are obtained, and the sunlight spectrum color coordinates are calculated based on the atmospheric model according to the current weather parameters; wherein the weather parameters include date, time, and latitude and longitude;

[0009] Controlling each LED light string according to the sunlight spectrum color coordinates.

[0010] In a second aspect, the embodiments of the present application provide a control terminal, including a processor and a memory, the memory is used to store a computer program, and the processor executes the computer program to realize the steps of the LED control method provided by the first aspect or any possible implementation manner of the first aspect.

[0011] The embodiment of the present application provides a LED control method and a control terminal. The method is used for controlling a LED light source; the LED light source comprises multiple LED lamp strings, the color temperature of each LED lamp string is different; the control method comprises the following steps: acquiring the RGB data of ambient light, and determining the current weather according to the RGB data; wherein the current weather is sunny day or cloudy day; if the current weather is sunny day, then the sunlight spectrum color coordinate is determined according to the RGB data; if the current weather is cloudy day, then the current weather parameter is acquired, and the sunlight spectrum color coordinate is calculated according to the current weather parameter; and the multiple LED lamp strings are controlled according to the sunlight spectrum color coordinate. The present application controls the LED light source to simulate sunlight in sunny day; and when it is cloudy day, the sunlight spectrum color coordinate in normal sunny day of the current date, the current time period and the current location is determined based on the atmospheric model, so that the sunlight in normal sunny day is simulated, the LED light source can adaptively adjust the sunlight simulation effect according to the weather and the season, and the user can obtain comfortable sunlight-like illumination in any time period of the whole year, and the user experience is better. BRIEF DESCRIPTION OF DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0013] Figure 1 is an implementation flowchart of the LED control method provided by the embodiment of the present application;

[0014] Figure 2 is a sensitivity curve diagram of the spectrum sensor provided by the embodiment of the present application;

[0015] Figure 3 is a spectrum diagram of different time periods obtained based on the SMARTS model provided by the embodiment of the present application;

[0016] Figure 4 is a structural schematic diagram of the LED control device provided by the embodiment of the present application;

[0017] Figure 5 is a schematic diagram of the control terminal provided by the embodiment of the present application;

[0018] Figure 6 is a structural schematic diagram of the LED lamp provided by the embodiment of the present application. DETAILED DESCRIPTION

[0019] In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and

[0020] In order to make the objects, technical solutions and advantages of the present application clearer, the following will be described in detail with reference to the accompanying drawings.

[0021] Referring to Figure 1 which shows the implementation flowchart of the LED control method provided by the embodiments of the present application, and will be described in detail as follows:

[0022] The LED control method provided by the embodiments of the present application is used for controlling an LED light source; the LED light source comprises multiple LED light strings, and the color temperature of each LED light string is different; the control method comprises the following steps:

[0023] S101: acquiring RGB data of ambient light and determining the current weather according to the RGB data; wherein the current weather is sunny or cloudy;

[0024] Since the light is weak on cloudy days, if the ambient light is simulated on sunny days and cloudy days, when it is cloudy, the light is relatively dark, which may cause the brightness of the LED light source to be too low, affecting the user experience.

[0025] Therefore, in the embodiments of the present application, different methods are used for daylight simulation according to different weather, so as to avoid insufficient illumination of the LED light source on cloudy days, affecting the user experience.

[0026] It should be noted that the RGB data can be directly obtained by the spectral sensor. The spectral sensor can be a three-channel sensor, which has low cost and long battery life. Figure 2 The sensitivity curve of the spectral sensor is shown, and the RGB data is obtained by integrating the spectrum obtained by multiplying the original spectrum by the sensitivity. In order to avoid data overflow, when the integral value exceeds 65535, the gain will be automatically adjusted, the integration time will be reduced, and then it will be read again. The integration time is an arithmetic sequence with 20ms as the initial value and 1ms as the difference value.

[0027] Specifically, S101 can comprise the following steps:

[0028] S1011: converting the RGB data into ambient light tristimulus values;

[0029] The conversion formula is as follows:

[0030] r=R / X

[0031] g = G / X

[0032] b = B / X

[0033] wherein r, g, b are the ambient light tristimulus values, R, G, B are the RGB data, and X is a variable that varies with the RGB data.

[0034] S1012: converting the ambient light tristimulus values into human eye tristimulus values to obtain the sunlight spectrum color coordinates;

[0035] S1013: if the abscissa in the sunlight spectrum color coordinates is less than a first preset value and the ordinate in the sunlight spectrum color coordinates is less than a second preset value within a preset time length, determining that the current weather is overcast;

[0036] S1014: otherwise, the current weather is sunny.

[0037] Since the RGB data is the original channel reading, it is necessary to convert it into tristimulus values, i.e. ambient light tristimulus values, and convert the ambient light tristimulus values (CIE-RGB spectral tristimulus values) into human eye tristimulus values (CIE-XYZ spectral tristimulus values) according to the conversion matrix between CIE-RGB spectral tristimulus values and CIE-XYZ spectral tristimulus values, so as to determine the sunlight spectrum color coordinates.

[0038] Since the color coordinates reflect the brightness, the weather condition can be determined based on the sunlight spectrum color coordinates based on the brightness of the light. Specifically, if the abscissa in the sunlight spectrum color coordinates is less than a first preset value and the ordinate in the sunlight spectrum color coordinates is less than a second preset value for a preset time length, it indicates that the current brightness is low, and it is determined to be overcast. Otherwise, it is sunny.

[0039] For example, the preset time length can be 5 minutes.

[0040] The first preset value and the second preset value can be set according to actual application requirements, and are not limited here. The first preset value and the second preset value can be the same.

[0041] S102: if the current weather is sunny, determining the sunlight spectrum color coordinates according to the RGB data;

[0042] If the current weather is sunny, the LED light source can be directly controlled to simulate the sunlight condition detected by the sensor, i.e. to simulate according to the RGB data, so that the indoor light is closest to the current sunlight.

[0043] S103: if the current weather is overcast, obtaining the current weather parameters, and calculating the sunlight spectrum color coordinates based on the atmospheric model according to the current weather parameters; wherein the weather parameters include: date, time, and latitude and longitude;

[0044] If it is a cloudy day and the outdoor light is dark, if the outdoor light is still simulated, the indoor light will be too dark, affecting the user experience. Therefore, in the embodiment of the application, the solar spectrum color coordinates of the normal weather under the current date, the current period and the latitude and longitude are calculated and simulated based on the atmospheric model, so that the user can still enjoy the similar sunlight irradiation in cloudy days.

[0045] For example, if the current date is autumn, the LED light source will emit soft light; if the current date is summer, the light intensity of the LED light source is larger.

[0046] Similarly, on the same date, if the current location is Hainan, the LED light source is brighter; if the current location is Harbin, the LED light source is dimmer.

[0047] S104: Control each LED light string according to the solar spectrum color coordinates.

[0048] In the embodiment of the application, the LED light source simulates sunlight according to the RGB data detected by the sensor on a sunny day; and when it is cloudy, the solar spectrum color coordinates of the normal weather under the current date, the current period and the current location are determined based on the atmospheric model, so as to simulate the sunlight on a normal sunny day, so that the LED light source can adaptively adjust the sunlight simulation effect according to the weather, season and location, so that the user can obtain comfortable simulated sunlight illumination in any period of the year, and the user experience is better.

[0049] In a possible implementation, S104 can include:

[0050] S1041: Obtain the brightness of each LED light string under the maximum current and the color coordinates of each LED light string;

[0051] S1042: Determine the target duty cycle of each LED light string according to the brightness of each LED light string under the maximum current, the color coordinates of each LED light string and the solar spectrum color coordinates;

[0052] S1043: Drive each LED light string to emit light according to the corresponding target duty cycle, so that the color coordinates of the LED light source are equal to the solar spectrum color coordinates.

[0053] In the embodiment of the application, the target duty cycle of each LED light string is calculated according to the brightness of each LED light string under the maximum current and the color coordinates of each LED light string, so that the color coordinates of the LED light source tend to approach the solar spectrum color coordinates, and the sunlight is simulated.

[0054] In a possible implementation, S1042 can include:

[0055] 1. Determine the target brightness according to the brightness of each LED light string under the maximum current;

[0056] 2. determining target duty cycles of the LED light strings according to luminance of each LED light string at maximum current, color coordinates of each LED light string, target luminance and solar spectrum color coordinates.

[0057] In a possible implementation, the number of LED light strings is three, which are a first LED light string, a second LED light string and a third LED light string; wherein the color temperature of the second LED light string is greater than the color temperature of the first LED light string and less than the color temperature of the third LED light string; and determining target duty cycles of the LED light strings according to luminance of each LED light string at maximum current, color coordinates of each LED light string, target luminance and solar spectrum color coordinates comprises:

[0058] determining PWM duty cycles of the LED light strings according to luminance of each LED light string at maximum current, color coordinates of each LED light string, target luminance and solar spectrum color coordinates in combination with the first formula;

[0059] The first formula can include:

[0060]

[0061]

[0062]

[0063] wherein η1, η2 and η3 are target duty cycles of the first LED light string, the second LED light string and the third LED light string respectively; (x1, y1) are color coordinates of the first LED light string, (x2, y2) are color coordinates of the second LED light string, and (x3, y3) are color coordinates of the third LED light string; Y1, Y2 and Y3 are luminance of the first LED light string, the second LED light string and the third LED light string at maximum current respectively; Y is target luminance; and (x, y) are solar spectrum color coordinates.

[0064] The PWM calculation method along the blackbody radiation curve is adopted in the embodiment of the application, and the three light sources are matched with the Grassmann light mixing technology to ensure good blackbody radiation switching effect and achieve good light quality effect.

[0065] It should be noted that when the light source luminance property is nonlinear with respect to current, PWM calibration is needed to ensure that the actual PWM can output the light power required by the theoretical PWM.

[0066] In a possible implementation, before S1042, S104 can further include:

[0067] S1044: Determine whether the color coordinates of each LED light string meet the first preset condition, and determine whether the sunlight spectrum color coordinates meet the second preset condition;

[0068] S1045: If both conditions are met, then perform the step of determining the target duty cycle of each LED light string according to the brightness of each LED light string at the maximum current, the color coordinates of each LED light string, and the sunlight spectrum color coordinates;

[0069] S1046: Otherwise, do not perform the step of determining the target duty cycle of each LED light string according to the brightness of each LED light string at the maximum current, the color coordinates of each LED light string, and the sunlight spectrum color coordinates.

[0070] The color coordinates of each LED light string and the sunlight spectrum color coordinates should be within a preset range. If they exceed the range, there may be calculation errors or abnormal spectrum sensors, so it is necessary to determine whether the color coordinates of each LED light string and the sunlight spectrum color coordinates are reasonable before calculation, to timely detect abnormalities and avoid outputting incorrect PWM duty cycles, affecting the light effect of the LED light source.

[0071] In one possible implementation, the number of LED light strings is three, namely a first LED light string, a second LED light string, and a third LED light string; wherein the color temperature of the first LED light string is 2700K, the color temperature of the second LED light string is less than 4000K, and the color temperature of the third LED light string is 5700K;

[0072] The first preset condition can include:

[0073] y1<-2.5692*x1 2 +2.5818*x1-0.2335

[0074] y2<-2.5692*x2 2 +2.5818*x2-0.2335

[0075] y3<-2.5692*x3 2 +2.5818*x3-0.2335

[0076] Wherein (x1, y1) is the color coordinates of the first LED light string, (x2, y2) is the color coordinates of the second LED light string, and (x3, y3) is the color coordinates of the third LED light string;

[0077] The second preset condition can include:

[0078] 0.27<x<0.53

[0079] -2.3172*x 2+ 2.3653 * x - 0.2199 < y < - 2.3172 * x 2 + 2.3653 * x - 0.1595

[0080] Wherein, (x, y) is the solar spectrum color coordinate.

[0081] In a possible implementation, determining the target luminance according to the luminance of each LED light string at the maximum current can include: taking the minimum value of the luminance of each LED light string at the maximum current as the target luminance.

[0082] In a possible implementation, S103 can include:

[0083] S1031: inputting the current weather parameter into an atmospheric model to obtain a current atmospheric radiation parameter;

[0084] S1032: calculating a theoretical solar spectrum according to the atmospheric radiation parameter and the extraterrestrial radiation spectrum;

[0085] S1033: calculating a solar spectrum color coordinate according to the theoretical solar spectrum.

[0086] In the embodiment of the application, the current atmospheric radiation parameter, such as air mass and optical path length, is directly output according to the existing atmospheric model. Meanwhile, ray tracing or discrete ordinate method (DOM) and other technologies can be used to simulate the transmission process of sunlight in the atmosphere. At this time, factors such as the absorption of oxygen, ozone, water vapor, CO2 and other substances in the atmosphere to solar radiation need to be considered to calculate the theoretical solar spectrum, so as to simulate the sunlight at the time and location in normal weather, and improve the user experience. For example, Figure 3 FIG. 4 shows the spectral information obtained at different time periods according to the SMARTS model.

[0087] The above method will be described below in combination with specific embodiments. The LED light source includes three LED light strings. The color coordinate of the first LED light string is (0.4578, 0.4101), and the luminous flux is 803 lm. The color coordinate of the second LED light string is (0.4048, 0.4060), and the luminous flux is 799 lm. The color coordinate of the third LED light string is (0.3280, 0.3372), and the luminous flux is 801 lm.

[0088] The above three LED light strings are used to simulate sunlight, and the results are shown in Table 1.

[0089]

[0090] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the application.

[0091] The following is the device embodiment of the application. For details not described in detail, please refer to the corresponding method embodiments described above.

[0092] Figure 4 The structure diagram of the LED control device provided by the embodiment of the application is shown. For the convenience of description, only the part related to the embodiment of the application is shown, and the details are as follows:

[0093] As shown in Figure 4 The LED control device is used to control the LED light source; the LED light source includes multiple LED lamp strings, and the color temperature of each LED lamp string is different; the device includes:

[0094] The parameter acquisition module 21 is used to acquire the RGB data of the surrounding environment light, and determine the current weather according to the RGB data; wherein the current weather is sunny or overcast;

[0095] The first judgment module 22 is used to determine the sunlight spectrum color coordinates according to the RGB data if the current weather is sunny;

[0096] The second judgment module 23 is used to acquire the current weather parameters if the current weather is overcast, and calculate the sunlight spectrum color coordinates based on the atmospheric model according to the current weather parameters; wherein the weather parameters include: date, time and latitude and longitude;

[0097] The lamp control module 24 is used to control each LED lamp string according to the sunlight spectrum color coordinates.

[0098] In a possible implementation, the lamp control module 24 can include:

[0099] The lamp string parameter acquisition unit is used to acquire the brightness of each LED lamp string under the maximum current and the color coordinates of each LED lamp string;

[0100] The target duty cycle output unit is used to determine the target duty cycle of each LED lamp string according to the brightness of each LED lamp string under the maximum current, the color coordinates of each LED lamp string and the sunlight spectrum color coordinates;

[0101] The driving unit is used to drive each LED lamp string to emit light according to the corresponding target duty cycle, so that the color coordinates of the LED light source are equal to the sunlight spectrum color coordinates.

[0102] In a possible implementation, the target duty cycle output unit can include:

[0103] a target brightness determination sub-unit configured to determine the target brightness according to the brightness of each of the LED light strings under the maximum current;

[0104] a target duty cycle calculation sub-unit configured to determine the target duty cycle of each of the LED light strings according to the brightness of each of the LED light strings under the maximum current, the color coordinates of each of the LED light strings, the target brightness, and the sunlight spectrum color coordinates.

[0105] In a possible implementation, the number of the LED light strings is three, and the three LED light strings are a first LED light string, a second LED light string, and a third LED light string; the color temperature of the second LED light string is greater than the color temperature of the first LED light string and less than the color temperature of the third LED light string; and the target duty cycle calculation sub-unit can be specifically configured to:

[0106] 1. determine the PWM duty cycle of each of the LED light strings according to the brightness of each of the LED light strings under the maximum current, the color coordinates of each of the LED light strings, the target brightness, and the sunlight spectrum color coordinates, in combination with a first formula.

[0107] The first formula can include:

[0108]

[0109]

[0110]

[0111] wherein η1, η2, and η3 are the target duty cycles of the first LED light string, the second LED light string, and the third LED light string respectively; (x1, y1) are the color coordinates of the first LED light string, (x2, y2) are the color coordinates of the second LED light string, and (x3, y3) are the color coordinates of the third LED light string; Y1, Y2, and Y3 are the brightness of the first LED light string, the second LED light string, and the third LED light string under the maximum current respectively; Y is the target brightness; and (x, y) are the sunlight spectrum color coordinates.

[0112] In a possible implementation, the lamp control module 24 can further include:

[0113] a parameter verification unit configured to determine whether the color coordinates of each of the LED light strings satisfy a first preset condition, and determine whether the sunlight spectrum color coordinates satisfy a second preset condition;

[0114] a first determination unit configured to, if the two conditions are satisfied simultaneously, perform the step of determining the target duty cycle of each of the LED light strings according to the brightness of each of the LED light strings under the maximum current, the color coordinates of each of the LED light strings, and the sunlight spectrum color coordinates.

[0115] The second determining unit is configured to otherwise not execute the step of determining the target duty cycle of each LED lamp string according to the luminance of each LED lamp string at the maximum current, the color coordinates of each LED lamp string, and the sunlight spectrum color coordinates.

[0116] In a possible implementation, the number of LED lamp strings is three, which are a first LED lamp string, a second LED lamp string, and a third LED lamp string; the color temperature of the first LED lamp string is 2700K, the color temperature of the second LED lamp string is less than 4000K, and the color temperature of the third LED lamp string is 5700K.

[0117] The first preset condition can include:

[0118] y1 <- 2.5692 * x1 2 + 2.5818 * x1 - 0.2335

[0119] y2 <- 2.5692 * x2 2 + 2.5818 * x2 - 0.2335

[0120] y3 <- 2.5692 * x3 2 + 2.5818 * x3 - 0.2335

[0121] wherein (x1, y1) are the color coordinates of the first LED lamp string, (x2, y2) are the color coordinates of the second LED lamp string, and (x3, y3) are the color coordinates of the third LED lamp string.

[0122] The second preset condition can include:

[0123] 0.27 < x < 0.53

[0124] - 2.3172 * x 2 + 2.3653 * x - 0.2199 < y < - 2.3172 * x 2 + 2.3653 * x - 0.1595

[0125] wherein (x, y) are the sunlight spectrum color coordinates.

[0126] In a possible implementation, the target luminance determining subunit can be specifically configured to take the minimum value in the luminance of each LED lamp string at the maximum current as the target luminance.

[0127] In a possible implementation, the parameter acquisition module 21 can include:

[0128] The first parameter conversion unit is configured to convert the RGB data into the ambient light tristimulus value.

[0129] The second parameter conversion unit converts the ambient light tristimulus value into a human eye tristimulus value to obtain a sunlight spectrum color coordinate;

[0130] The first weather output unit is configured to determine that the current weather is overcast if the abscissa in the sunlight spectrum color coordinate is less than a first preset value and the ordinate in the sunlight spectrum color coordinate is less than a second preset value within a preset time length.

[0131] The second weather output unit is configured to determine that the current weather is sunny otherwise.

[0132] In a possible implementation, the second determining module 23 can be specifically configured to:

[0133] 1. input the current weather parameter into an atmospheric model to obtain a current atmospheric radiation parameter;

[0134] 2. calculate a theoretical sunlight spectrum according to the atmospheric radiation parameter and the extraterrestrial radiation spectrum;

[0135] 3. calculate the sunlight spectrum color coordinate according to the theoretical sunlight spectrum.

[0136] Figure 5 is a schematic diagram of the control terminal 3 provided by an embodiment of the present application. As shown in the figure, the control terminal 3 of this embodiment includes a processor 30 and a memory 31. The memory 31 is configured to store a computer program 32, and the processor 30 is configured to invoke and run the computer program 32 stored in the memory 31 to perform the steps in each of the LED control method embodiments, such as steps S101 to S104 shown in the figure. Figure 5 Alternatively, the processor 30 is configured to invoke and run the computer program 32 stored in the memory 31 to realize the functions of each module / unit in each of the device embodiments, such as the functions of the modules 21 to 24 shown in the figure. Figure 1 Figure 4

[0137] For example, the computer program 32 can be divided into one or more modules / units, one or more modules / units are stored in the memory 31 and executed by the processor 30 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which is used to describe the execution process of the computer program 32 in the control terminal 3. For example, the computer program 32 can be divided into the modules / units 21 to 24 shown in the figure. Figure 4

[0138] The control terminal 3 can be a desktop computer, a notebook computer, a palm computer, a cloud server, and other computing devices. The control terminal 3 can include, but is not limited to, the processor 30 and the memory 31. Those skilled in the art can understand that Figure 5 ​​​The example of the control terminal 3 is merely illustrative and does not constitute a limitation on the control terminal 3, which can include more or fewer components than shown, or combine some components, or have different components, for example, the terminal can also include an input / output device, a network access device, a bus, etc.

[0139] The processor 30 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0140] The memory 31 can be an internal storage unit of the control terminal 3, for example, a hard disk or a memory of the control terminal 3. The memory 31 can also be an external storage device of the control terminal 3, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the control terminal 3. Further, the memory 31 can include both the internal storage unit and the external storage device of the control terminal 3. The memory 31 is used to store computer programs and other programs and data required by the terminal. The memory 31 can also be used to temporarily store data that has been output or will be output.

[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of functional units and modules is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or in the form of software. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0142] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in a certain embodiment can be referred to the relevant description of other embodiments.

[0143] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or in combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0144] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / terminal and method can be implemented in other ways. For example, the apparatus / terminal embodiments described above are merely schematic, for example, the division of modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0145] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.

[0146] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0147] The integrated module / unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer-readable storage medium. The computer program can realize the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, an executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0148] Corresponding to the above embodiments, with reference to Figure 6 The embodiment of the present application also provides an LED lamp, which comprises the LED light source 1, the control terminal 3 and the spectrum sensor 2 in the above-mentioned embodiments; the LED light source 1 comprises multiple LED lamp strings, and the color temperatures of the LED lamp strings are different.

[0149] The spectrum sensor 2 and the LED light source 1 are connected with the control terminal 3.

[0150] The spectrum sensor 2 obtains the RGB data of the ambient light and sends the RGB data to the control terminal 3, the control terminal 3 calculates the PWM duty cycles of the LED lamp strings according to the RGB data, controls the LED lamp strings, and makes the LED light source 1 simulate the sunlight.

[0151] The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. An LED control method, characterized in that, Used to control an LED light source; the LED light source includes multiple LED strings, each with a different color temperature; the control method includes: Acquire the RGB data of the ambient light and determine the current weather based on the RGB data; wherein the current weather is sunny or cloudy. If the current weather is sunny, then the solar spectral color coordinates are determined based on the RGB data; If the current weather is cloudy, the current weather parameters are obtained, and the solar spectral color coordinates are calculated based on the atmospheric model according to the current weather parameters; wherein, the weather parameters include: date, time, and latitude and longitude; Obtain the brightness and color coordinates of each LED string under maximum current; The minimum brightness of each LED string under maximum current is taken as the target brightness. The target duty cycle of each LED string is determined based on the brightness of each LED string at maximum current, the color coordinates of each LED string, the target brightness, and the solar spectral color coordinates. Drive each LED string to emit light according to the corresponding target duty cycle, so that the color coordinates of the LED light source are equal to the color coordinates of the solar spectrum; The LED light strings consist of three groups: a first LED light string, a second LED light string, and a third LED light string. The color temperature of the second LED light string is greater than that of the first LED light string and less than that of the third LED light string. Determining the target duty cycle of each LED light string based on its brightness at maximum current, its color coordinates, the target brightness, and the solar spectral color coordinates includes: Based on the brightness of each LED string at maximum current, the color coordinates of each LED string, the target brightness, and the solar spectrum color coordinates, the PWM duty cycle of each LED string is determined using the first formula. The first formula includes: in, , and These are the target duty cycles for the first LED light string, the second LED light string, and the third LED light string, respectively. Let be the color coordinates of the first LED string. The color coordinates of the second LED string are... The color coordinates of the third LED string; , , The brightness of the first LED string, the second LED string, and the third LED string at maximum current; The target brightness; The coordinates are the color coordinates of the solar spectrum.

2. The LED control method according to claim 1, characterized in that, Before determining the target duty cycle of each LED string, the control of each LED string based on the solar spectral color coordinates further includes: Determine whether the color coordinates of each LED string meet the first preset condition, and determine whether the solar spectrum color coordinates meet the second preset condition; If both conditions are met, then the step of determining the target duty cycle of each LED string based on the brightness of each LED string at maximum current, the color coordinates of each LED string, and the solar spectral color coordinates is executed. Otherwise, the step of determining the target duty cycle of each LED string based on the brightness of each LED string at maximum current, the color coordinates of each LED string, and the solar spectral color coordinates will not be performed.

3. The LED control method according to claim 2, characterized in that, The number of LED light strings is three, namely the first LED light string, the second LED light string and the third LED light string; wherein, the color temperature of the first LED light string is 2700K, the color temperature of the second LED light string is at least 4000K, and the color temperature of the third LED light string is 5700K. The first preset conditions include: in, Let these be the color coordinates of the first LED string. The color coordinates of the second LED string are... The color coordinates of the third LED string; The second preset condition includes: in, The coordinates of the solar spectrum are denoted as .

4. The LED control method according to any one of claims 1 to 3, characterized in that, Determining the current weather based on the RGB data includes: Convert the RGB data into ambient light tristimulus values; The ambient light tristimulus values ​​are converted into human eye tristimulus values ​​to obtain the solar spectral color coordinates; If, within a preset time period, the horizontal coordinate of the solar spectral color coordinate is less than a first preset value and the vertical coordinate of the solar spectral color coordinate is less than a second preset value, then the current weather is determined to be cloudy. Otherwise, the current weather is sunny.

5. The LED control method according to any one of claims 1 to 3, characterized in that, The step of calculating the solar spectral color coordinates based on current weather parameters and an atmospheric model includes: Input the current weather parameters into the atmospheric model to obtain the current atmospheric radiation parameters; Based on the atmospheric radiation parameters and the extraterrestrial radiation spectrum, the theoretical solar spectrum is calculated. The solar spectral color coordinates are calculated based on the theoretical solar spectrum.

6. A control terminal, characterized in that, It includes a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the steps of the LED control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Photo taking method, mobile terminal and computer readable storage medium

    CN108337433A

  • Distributed solar street lamp system

    CN116634642A