Lamp control method and device and storage medium

By controlling the fan speed and light source power in real time, the problem of inflexible lamp control methods in the existing technology is solved, and intelligent adjustment of stage lamp noise and brightness is achieved to meet the needs of diverse users.

CN119277604APending Publication Date: 2025-01-07GUANGZHOU CAIYI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411692376.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing stage lamp control method is difficult to flexibly adjust brightness and noise while meeting the noise requirements, and cannot meet the diverse needs of users.

Method used

By obtaining the real-time temperature of the lamp, setting the following temperature and calculating real-time variables, adjusting the fan speed and light source power, the intelligent control of the lamp can be achieved and the noise and brightness requirements are balanced.

Benefits of technology

It realizes intelligent adjustment of lamps, dynamically adjusts fan speed and light source power, meets the noise and brightness requirements in different places, and improves user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277604A_ABST
    Figure CN119277604A_ABST
Patent Text Reader

Abstract

The invention discloses a lamp control method and device and a storage medium. The method comprises the following steps that the real-time actual temperature of a lamp is obtained; setting a following temperature of the lamp according to the real-time actual temperature, and determining a real-time variable of the following temperature based on the following temperature and the real-time actual temperature; according to the real-time variable and the difference value between the real-time actual temperature and the preset temperature threshold value, the rotating speed adjusting amount and / or the light source power adjusting amount of the draught fan are / is determined; and controlling the lamp in real time based on the rotating speed adjusting quantity and / or the light source power adjusting quantity. The following temperature of the lamp is set, the real-time variable of the following temperature is calculated, the real-time variable can reflect the temperature change trend, then the corresponding fan rotating speed adjusting amount and / or the light source power adjusting amount of the lamp are / is calculated, the lamp is dynamically controlled in real time, and the effect of intelligently adjusting the fan and the light source power is achieved. And noise limitation and brightness requirements are reasonably balanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of stage lighting, and in particular to a lighting control method, device and storage medium. Background Art

[0002] The stage lighting industry standard has clear requirements for lighting noise. Under the premise of meeting the noise requirements of the industry standard, industry manufacturers generally build in multiple working modes, such as high brightness mode, standard mode, and silent mode, to meet the noise requirements of lights in different places. These existing modes can only make simple trade-offs between brightness and noise in a relatively fixed way. The lighting control method is not flexible enough to meet user needs. For example, customers use the high brightness mode but feel that the lighting noise is too loud; customers use the silent mode and feel that the lighting is too dim. There are always some factors that make customers dissatisfied. Summary of the invention

[0003] The purpose of the present application is to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a lamp control method that can dynamically and flexibly control the lamp in real time based on the real-time temperature of the lamp, and reasonably balance the requirements of noise limitation and brightness.

[0004] The present application also provides a device for controlling a lamp.

[0005] The present application also proposes a storage medium, and when the instructions in the storage medium are loaded and executed, the operations performed by the above-mentioned lamp control method can be implemented.

[0006] According to the first aspect of the present application, the lamp control method includes the following steps:

[0007] Get the real-time actual temperature of the lamp;

[0008] Setting a follow-up temperature of the lamp according to the real-time actual temperature, and determining a real-time variable of the follow-up temperature based on the follow-up temperature and the real-time actual temperature;

[0009] Determine a speed adjustment amount of the fan and / or a power adjustment amount of the light source according to the real-time variable and a difference between the real-time actual temperature and a preset temperature threshold;

[0010] The lamp is controlled in real time based on the rotation speed adjustment amount and / or the light source power adjustment amount.

[0011] According to the lamp control method of the first aspect embodiment of the present application, there are at least the following beneficial effects: by setting the follow temperature of the lamp and calculating the real-time variable of the follow temperature, the real-time variable can reflect the temperature change trend, and then calculate the corresponding fan speed adjustment amount and / or the light source power adjustment amount of the lamp, and dynamically control the lamp in real time, so as to achieve the effect of intelligently adjusting the fan and light source power, and reasonably balance the requirements of noise limitation and brightness.

[0012] According to the lamp control method described in the first aspect of the present application, the method for setting the follow-up temperature of the lamp according to the real-time actual temperature includes:

[0013] Using the initial value of the real-time actual temperature as the initial value of the following temperature;

[0014] The following temperature is set according to the set following time interval, the set following temperature interval and the real-time actual temperature.

[0015] According to the lamp control method described in the embodiment of the first aspect of the present application, the method for determining the real-time variable of the following temperature based on the following temperature and the real-time actual temperature includes:

[0016] The initial value of the real-time variable is set to zero;

[0017] Determining a following state based on a comparison result between the following temperature and the real-time actual temperature;

[0018] If the following state is not reversed, and the following temperature is not equal to the real-time actual temperature, the real-time variable is obtained based on the difference between the real-time value of the following temperature and the corresponding value of the following temperature at the last time the real-time variable is cleared;

[0019] When the following temperature is equal to the real-time actual temperature, or when the following state is reversed, the real-time variable is cleared.

[0020] According to the lamp control method described in the embodiment of the first aspect of the present application, the method for determining the speed adjustment amount of the fan according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold includes:

[0021] Calculate the difference between the preset temperature threshold and the real-time actual temperature;

[0022] The speed regulation amount is calculated according to a preset formula of the speed regulation amount, the difference and the real-time variable; wherein the preset formula of the speed regulation amount is:

[0023] F var = k * T tre -k 1 ΔT

[0024] Among them, F var is the speed adjustment amount, T tre is the real-time variable, ΔT is the difference, k, k 1 is the preset speed adjustment constant;

[0025] The method for controlling the lamp in real time based on the speed adjustment amount includes:

[0026] Determine the target speed F according to the speed adjustment amount and the real-time fan speed tar ;

[0027] The target speed F tar The fan speed threshold F max Make a comparison;

[0028] If F tar <F max , adjust the fan speed to F tar ;

[0029] If F tar >F max , adjust the fan speed to F max .

[0030] According to the lamp control method described in the first aspect of the present application, the method for determining the light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold includes:

[0031] When the real-time actual temperature is greater than a preset temperature threshold, calculating a difference between the preset temperature threshold and the real-time actual temperature;

[0032] The first light source power adjustment amount is calculated according to the difference, the real-time variable and a first preset formula of the light source power adjustment amount; the first preset formula is:

[0033] W var1 =k 2 *T tre +k 3 *|ΔT|

[0034] Among them, W var1 is the power adjustment value of the first light source, and the T tre is the real-time variable, ΔT is the difference, k 2 , k 3 is a preset power adjustment constant corresponding to the first preset formula;

[0035] The method for controlling the lamp in real time based on the light source power adjustment amount includes:

[0036] The power is reduced according to the first light source power adjustment amount.

[0037] According to the lamp control method described in the embodiment of the first aspect of the present application, after the step of reducing the power according to the first light source power adjustment amount, the method includes:

[0038] When the real-time actual temperature is less than or equal to the preset temperature threshold, and the real-time light source power of the lamp is less than the preset power, the second light source power adjustment amount is calculated according to the second preset formula of the light source adjustment amount; the second preset formula is:

[0039] W var2 =k 4 *T tre +k 5 *|ΔT|

[0040] Among them, W var2 is the power adjustment value of the second light source, k 4 , k 5 is a preset power adjustment constant corresponding to the second preset formula;

[0041] The power is increased according to the second light source power adjustment amount until the real-time light source power is equal to the preset power.

[0042] According to the lamp control method described in the first aspect of the present application, in the stage from when the lamp is initially powered on to when the real-time actual temperature of the lamp reaches the preset temperature threshold, the lamp control method includes:

[0043] According to the preset formula F of the fan speed adjustment amount var = k * T tre -k 1 ΔT controls the operation of the fan;

[0044] When the real-time actual temperature of the lamp is greater than the preset temperature threshold, while executing the step of reducing the power according to the first light source power adjustment amount, the fan operation is controlled based on the preset fan speed threshold;

[0045] The step of increasing the power according to the second light source power adjustment amount until the real-time light source power is equal to the preset power includes:

[0046] When the real-time light source power is equal to the preset power, if the real-time actual temperature is less than the preset temperature threshold, the fan is controlled to run at a reduced speed until the real-time actual temperature is equal to the preset temperature threshold.

[0047] According to the lamp control method described in the first aspect of the present application, performing real-time lamp control based on the speed adjustment amount and / or the light source power adjustment amount includes:

[0048] Determine a corresponding variable adjustment rate based on the rotation speed adjustment amount and / or the light source power adjustment amount;

[0049] The lamp is controlled according to the rotation speed adjustment amount and / or the light source power adjustment amount and the corresponding variable adjustment rate.

[0050] According to the second aspect of the present application, a device for controlling a lamp includes:

[0051] The temperature acquisition module is used to obtain the real-time actual temperature of the lamp;

[0052] A calculation module, used for setting a following temperature of the lamp according to the real-time actual temperature, and determining a real-time variable of the following temperature based on the following temperature and the real-time actual temperature;

[0053] A control module is used to determine the fan speed adjustment amount and / or the light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold, and to control the lamp in real time based on the speed adjustment amount and / or the light source power adjustment amount.

[0054] According to the storage medium of the third aspect embodiment of the present application, at least one instruction is stored in the storage medium, and the instruction is loaded and executed by the processor to implement the operation performed by the lamp control method of the first aspect embodiment of the present application.

[0055] It is not difficult to understand that the lamp control device in the second aspect embodiment of the present application and the storage medium in the third aspect embodiment of the present application both have the technical effects of the lamp control method in the first aspect embodiment described above, and therefore will not be described in detail.

[0056] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The present application is further described below with reference to the accompanying drawings and embodiments;

[0058] Figure 1 This is a lighting control framework diagram of an embodiment of the present application;

[0059] Figure 2 A schematic diagram of a flow chart of a lamp control method provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of the structure of a lighting control device provided in an embodiment of the present application;

[0061] Figure 4A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0063] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0064] In the description of this application, "several" means one or more, "more" means at least two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0065] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application after combining the specific content of the technical solution.

[0066] The present application can be used in many general or special computer system environments or configurations, such as in stage lighting. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0067] In some embodiments, the industry standard general technical requirements for stage LED lamps (such as GB / T32486-2016) mentions that lamps used indoors should meet the following requirements:

[0068] a) Electric lamps: The maximum noise level when in operation should not be greater than 60 (dB).

[0069] b) Lamps with active heat dissipation devices: The noise level during operation should not be greater than 45 (dB).

[0070] c) Lamps that do not belong to the above two categories: the noise level when in operation should not be greater than 25 (dB).

[0071] Under the premise of meeting this noise requirement, the lamp has multiple working state modes, and the power and fan speed are restricted in different modes. This application sets the follow-up temperature of the lamp and calculates the real-time variable of the follow-up temperature. The real-time variable can reflect the temperature change trend, and then calculate the corresponding fan speed adjustment amount and / or the light source power adjustment amount of the lamp, and dynamically control the lamp in real time to achieve the effect of intelligently adjusting the fan and light source power, and reasonably balance the requirements of noise restriction and brightness.

[0072] Reference Figure 1 and Figure 2 The lamp control method of the first aspect of the present application is applied to the adjustment of stage lamps. The lamp control method comprises the following steps:

[0073] Step 110: Obtain the real-time actual temperature of the lamp.

[0074] When the control method of the present invention is implemented, the lamp starts to collect its own real-time temperature T at regular intervals from the time of power-on. now , as the real-time actual temperature, and each time the real-time actual temperature is collected, subsequent steps are performed based on the collected real-time data.

[0075] In some embodiments of the present application, the actual temperature T of the lamp is read. now The method includes: sampling the temperature of the lamp multiple times in a unit time by a sensor, and then calculating the average value. It is understandable that the temperature read by the single-chip microcomputer will fluctuate a little. Here, the accuracy of the temperature can be improved by sampling multiple times and then calculating the average value. In some embodiments, the temperature can be sampled 10 times in half a second. Then calculate the average value of the 10 temperatures (the number of acquisitions and the time can be changed here. The more acquisitions, the more accurate the average value). The average value here is the actual temperature T of the lamp at present. now .

[0076] Step 120: setting the following temperature of the lamp according to the real-time actual temperature, and determining the real-time variable of the following temperature based on the following temperature and the real-time actual temperature.

[0077] The following temperature is a temperature value set according to a preset unit time interval and unit temperature variable based on the comparison of the actual temperature of the lamp.

[0078] In some embodiments of the present application, the method for setting the follow-up temperature of the lamp according to the real-time actual temperature includes:

[0079] Using the initial value of the real-time actual temperature as the initial value of the following temperature;

[0080] The following temperature is set according to the set following time interval, the set following temperature interval and the real-time actual temperature.

[0081] Specifically, in some embodiments of the present application, the following temperature T of the lamp is set fol The methods include:

[0082] Preset the following time interval and the following temperature interval C, wherein the following time interval can be consistent with the time interval for the lamp to collect the actual temperature. now0 As the following temperature T fol The initial value T fol0 ;

[0083] Calculate T first fol (t+1)=T fol (t)+C, then when T now >T fol When T fol (t+1)=T fol (t)+C; when T now <T fol When T fol (t+1)=T fol (t)-C; where T fol (t+1), T fol (t) are the following temperatures at two adjacent moments.

[0084] It is understandable that when the lamp is powered on, the actual initial temperature T now0 The following temperature T assigned to the lamp fol , as the following temperature T fol The initial value T fol0 In the initial stage of operation after power-on, the actual initial temperature of the lamp will change. Generally speaking, it will rise first. Therefore, the follow-up temperature will first increase according to the set follow-up time interval and the set follow-up temperature interval (such as C below). fol (t+1)=T fol (t)+C. When T now >T fol When T fol (t+1)=T fol (t)+C. When T now <T fol When T fol(t+1)=T fol (t)-C. Where, T fol (t+1), T fol (t) are the follow-up temperatures at two adjacent moments. By setting the follow-up temperature, the continuous change process and change trend of the real-time temperature can be better reflected.

[0085] In some embodiments, T fol0 =T now0 =25℃, the set follow time interval is 1s, and the set follow temperature interval is 1℃, then T fol1 =26℃, T fol2 =27℃, T fol3 =28℃……When following temperature T fol The actual temperature T now When they are equal, T fol Pause the change until a certain moment later, following the temperature T fol The actual temperature T now When they are not equal again, T fol Changes are made again according to the set time interval and the set follow-up temperature interval.

[0086] During the process of following the temperature rise, it will be compared with the real-time actual temperature at regular intervals. It can be compared with the real-time actual temperature once per second. According to the comparison result, it is determined whether to add or subtract the following temperature interval when calculating the following temperature value. For example, if the current following temperature value is greater than the real-time actual temperature, the value of the next following temperature is the current following temperature value minus the following temperature interval. When the current following temperature value is equal to the real-time actual temperature, the value of the next following temperature remains unchanged.

[0087] In some embodiments of the present application, the real-time variable T following the temperature tre It is obtained by the difference between the following temperature value at a certain moment and the following temperature value when the real-time variable of the previous following temperature is reset to zero. The real-time variable of the following temperature reflects the difference between the real-time value of the following temperature at a specific real-time moment and the value of the following temperature at the initial moment of the current following stage. It can be understood that by setting the following temperature of the lamp and calculating the real-time variable of the following temperature, the real-time variable can reflect the stage-by-stage temperature change, and then calculate the corresponding fan speed reduction adjustment amount and / or the power adjustment amount of the lamp, and achieve the effect of intelligently adjusting the fan and reducing the power, realizing flexible control of the lamp in real time and dynamic, and balancing the needs between noise display and brightness.

[0088] In some embodiments, the real-time variable following the temperature is a real-time following variable following the temperature, which can be understood as a stage-by-stage temperature change trend.

[0089] In some embodiments of the present application, a method for determining a real-time variable of the following temperature based on the following temperature and the real-time actual temperature includes:

[0090] The initial value of the real-time variable is set to zero;

[0091] Determining a following state based on a comparison result between the following temperature and the real-time actual temperature;

[0092] If the following state is not reversed, and the following temperature is not equal to the real-time actual temperature, the real-time variable is obtained based on the difference between the real-time value of the following temperature and the corresponding value of the following temperature at the last time the real-time variable is cleared;

[0093] When the following temperature is equal to the real-time actual temperature, or when the following state is reversed, the real-time variable is cleared.

[0094] In some embodiments, the following state includes: T now <T fol 、T now =T fol 、T now >T fol The following state reversal refers to the following state of two adjacent moments changing from T now <T fol The state becomes T now >T fol state, or by T now >T fol The state becomes T now <T fol state.

[0095] By setting the follow temperature and calculating the follow temperature with the actual temperature, the real-time variable T of the follow temperature is obtained. tre The real-time variable of the following temperature refers to the difference between the following temperature value at a certain moment and the following temperature value when the real-time variable of the following temperature was cleared to zero. As shown in the following table, assuming that the real-time value of the following temperature is less than the real-time actual temperature from 1s to 4s (i.e., assuming that it is in the following stage of the same following state), the real-time variable T at the moment of power-on is tre is 0, and the corresponding follow temperature is T fol0 =T now0 =25℃; 1s after power on, the value of the temperature T fol1 =26℃, the following temperature value when the real-time variable of the previous following temperature is cleared is T fol0 =T now0 =25℃ (the last time the real-time variable following the temperature was cleared is the time corresponding to the power-on moment), then the real-time variable at this time is T tre=26-25=1; 2s after power-on, follow the temperature value T fol1 =27℃, the following temperature value when the real-time variable of the previous following temperature is cleared is T fol0 =T now0 =25℃ (the last time the real-time variable following the temperature was cleared is the time corresponding to the power-on moment), then the real-time variable at this time is T tre =27-25=2...From the above description, we can know that at the moment of power-on, set T tre =0,1s later, T tre1 =1,T tre2 =2, T tre3 =3...5 seconds after power-on, the actual temperature value is exactly the same as the temperature value again, both are 30℃, then T tre5 =0, T of the fifth second tre6 Cleared.

[0096] time <![CDATA[T now ]]> <![CDATA[T fol ]]> <![CDATA[T tre ]]> Power-on moment <![CDATA[T now0 =25℃]]> <![CDATA[T fol0 =T now0 =25℃]]> 0 1s later <![CDATA[T now1 ]]> <![CDATA[T fol1 =26℃]]> <![CDATA[T tre1 =1]]> 2s later <![CDATA[T now2 ]]> <![CDATA[T fol2 =27℃]]> <![CDATA[T tre2 =2]]> 3s later <![CDATA[T now3 ]]> <![CDATA[T fol2 =28℃]]> <![CDATA[T tre3 =3]]> 4s later <![CDATA[T now4 ]]> <![CDATA[T fo;2 =29℃]]> <![CDATA[T tre =4]]> After 5 seconds <![CDATA[T now5 =30℃]]> <![CDATA[T fol2 =30℃]]> <![CDATA[T tre5 =0]]> After 6s ……

[0097] In some embodiments, the temperature decreases by 3°C in the next 3 seconds. Then at the 5th second, T tre It will be reset first and then recalculated. At the 6th second, T tre Equal to -1 at the 7th second T tre = -2, T at 8 seconds tre If the real-time actual temperature is equal to the follow-up temperature and remains unchanged, the real-time variable is always zero.

[0098] It is understandable that in some embodiments, when the following state changes, the real-time variable clearing operation will be performed: 1) T now <T fol Become T now =T fol ; 2) T now <T fol Become T now >T fol ; 3) T now >T fol Become T now <T fol ; 4) T now >T fol Become T now =T fol . And in T now =T fol When the state is set, the real-time variable can be set to zero. A following state can be understood as corresponding to a following stage. The following variable determined by the above method can reflect the stage-by-stage temperature change trend.

[0099] Step 130: determining a speed adjustment amount of the fan and / or a light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold;

[0100] Step 140: Control the lamp in real time based on the rotation speed adjustment amount and / or the light source power adjustment amount.

[0101] In some embodiments of the present application, the method for determining the fan speed adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold includes:

[0102] Calculate the difference between the preset temperature threshold and the real-time actual temperature;

[0103] The speed regulation amount is calculated according to a preset formula of the speed regulation amount, the difference and the real-time variable; wherein the preset formula of the speed regulation amount is:

[0104] F var = k * T tre -k 1 ΔT

[0105] Among them, F var is the speed adjustment amount, T tre is the real-time variable, ΔT is the difference, k, k 1 is the preset speed adjustment constant;

[0106] The method for controlling the lamp in real time based on the speed adjustment amount includes:

[0107] Determine the target speed F according to the speed adjustment amount and the real-time fan speed tar ;

[0108] The target speed F tar The fan speed threshold F max Make a comparison;

[0109] If F tar <F max , adjust the fan speed to F tar ;

[0110] If F tar >F max , adjust the fan speed to F max .

[0111] In some embodiments of the present application, the method of determining the speed reduction adjustment amount of the fan and adjusting the speed of the fan includes:

[0112] Set the preset temperature threshold T of the lamp max , set the preset temperature threshold T of the lamp max And the actual temperature T of the lampnow The difference is ΔT, that is, ΔT = T max -T now ;

[0113] When T now Less than T max When combined with the real-time variable T that follows the temperature tre To adjust the speed of the fan, the variable F of the fan speed var = k * T tre -k 1 ΔT, where k, κ 1 It is a constant set based on experience or experimental values. Different models or types of lamps have different lamp characteristics, such as heat dissipation characteristics, and the corresponding set constants are different;

[0114] The actual speed of the fan is F cur , then the target speed of the fan is F tar =F cur +F var The threshold of the actual speed adjustment amount of the fan per unit time (i.e., the threshold of the variable adjustment rate corresponding to the speed) can be set in advance according to different fans, and the fan can be adjusted according to the threshold so that the speed adjustment amount gradually reaches the variable F of the fan speed. var The value of

[0115] When T now Greater than or equal to T max When the fan is turned on, the speed of the fan gradually increases to reach the maximum speed and continues to run.

[0116] It is understandable that the lamp needs to be set according to the preset temperature threshold T max and the current actual temperature T now The difference ΔT (i.e. ΔT = T max -T now ), and calculate the real-time variable T that follows the temperature tre The variable F of the fan speed is related to the fan speed regulation process. var = k * T tre -k 1 ΔT, k, k 1 are coefficients, where k and k 1 It needs to be processed according to different lamps. In some embodiments, k, k 1 is a positive number, and k>k 1 , it can be obtained from the formula that the real-time variable |T that follows the temperature tre |The larger the fan speed, the variable |F var |The larger it is; the real-time variable following the temperature |T tre The smaller |F is, the variable of fan speed is var | is smaller. The difference ΔT is only an auxiliary adjustment. Temperature rise k*Ttre >k 1 ΔT, temperature drop |k*T tre |>|k 1 ΔT|. When the overall lamp temperature rises, the fan will definitely speed up; when the lamp temperature drops, the fan will definitely slow down. And when the actual temperature of the lamp is in a continuous rising stage, T tre Continue to increase, k*T tre Continue to increase, auxiliary regulation k 1 ΔT continues to decrease, so the fan speed adjustment amount F var Increase, that is, as the actual temperature of the lamp increases, the real-time actual temperature is closer to the preset temperature threshold, and the speed adjustment amount F var The larger the temperature, the less likely it is to exceed the preset temperature threshold. When the lamp is in equilibrium before reaching the preset temperature threshold, the real-time variable T that follows the temperature tre When F is 0, the difference ΔT is not 0, that is, the temperature has not reached the maximum temperature. At this time, according to F var = k * T tre -k 1 ΔT can be obtained as F var =-k 1 ΔT, the fan speed is reduced according to the difference ΔT, so as to reduce the fan speed and noise while meeting the heat dissipation requirements. In this process, the larger the difference ΔT, the larger the fan speed. var | is larger, that is, the fan speed is reduced more, until T tre =0, ΔT = 0, that is, the real-time actual temperature of the lamp reaches the preset temperature threshold, and the lamp basically reaches a balanced state, so that the noise of the lamp can be reduced to the minimum under the premise of meeting the heat dissipation requirements. 1 The value is affected by factors such as the LED lamp, the adjustable range of the fan, the thermal conductivity and heat dissipation characteristics of the lamp, and the number of fans. 1 The value needs to be determined or adjusted in advance according to the actual lamp, based on experience or experimental data. For example, for some lamps, when the duty cycle is adjustable from 0 to 1000, k is set to about 20, k 1 When the LED duty cycle is adjustable from 0 to 65535, k is set to about 10. 1 About 8.

[0117] It is understandable that the variable F of the fan speed va1 The actual speed of the fan is the amount of adjustment required, not the actual speed of the fan. tar =F cur +F varIn some embodiments, a corresponding variable adjustment rate can be set for the fan speed adjustment amount. The variable adjustment rate of the speed adjustment amount represents the speed of speed adjustment, that is, the adjustment amount per unit time. When the lamp adjusts the fan speed, it adjusts the speed based on the variable adjustment rate until the final adjustment amount reaches the variable F of the fan speed. var , the actual speed of the fan reaches the target speed F tar In specific implementation, a variable adjustment rate threshold can be pre-set. When adjusting the speed, the variable adjustment rate can be increased gradually until the actual speed adjustment rate reaches the threshold and the variable adjustment rate is no longer increased. The speed is adjusted at the threshold until the final adjustment amount reaches the variable F of the fan speed. var , that is, the actual speed of the fan reaches the target speed F tar For example, the variable F of the fan var The variable adjustment rate threshold is 600rpm, and the variable adjustment rate threshold is 3. The variable of the fan will change at a speed of 1rpm every 0.1 millisecond during the change process of 0-100rpm; the variable of the fan will change at a speed of 2rpm every 0.1 millisecond during the change process of 100-300rpm. The speed will change at 3rpm every 0.1 millisecond during the remaining changes. Through the above process, the fan speed can be adjusted step by step and smoothly to avoid noise caused by sudden changes in speed. In some embodiments, different variable adjustment rate thresholds can be set in advance for different speed adjustment ranges. When the fan speed needs to be adjusted, the range of the speed adjustment amount can be determined first, and then the corresponding variable adjustment rate threshold can be determined, and then the speed can be adjusted based on the threshold based on the above method. Setting different variable adjustment rate thresholds for different speed adjustment ranges can match the variable adjustment rate of the speed with the adjustment amount to be adjusted, improve the speed adjustment efficiency, and achieve better adjustment effects. Of course, one or more specific values ​​of the variable adjustment rate can also be directly set, and the adjustment can be made directly based on the set value.

[0118] In some embodiments of the present application, the fan speed threshold F may be set by receiving a user-triggered instruction. max When the fan speed is adjusted by the method of the above embodiment, it is ensured that the adjusted fan speed does not exceed the fan speed threshold. tar <F max When the fan speed is adjusted to F tar If F tar >F max When the fan speed is adjusted to F max .

[0119] In some embodiments, F maxIt can be set according to the user's setting operation, receive the instruction of setting the fan speed threshold of the lamp triggered by the user through the lamp panel or the console, and update the fan speed threshold F in the lamp setting based on the instruction max In the subsequent process of using this method for real-time dynamic control, the real-time fan speed is compared with the fan speed threshold, that is, according to F tar =F cur +F var When the fan speed is adjusted by the formula, if the calculated value F tar <F max When the fan speed is adjusted to F tar ; If the calculated value F tar >F max When the fan speed is adjusted to F max Through the above steps, a function for setting the fan speed threshold is added, so that the user can set the fan speed threshold according to his or her tolerance for noise or the noise restriction requirements in different occasions to avoid the fan speed exceeding the threshold, so that the user can control the maximum noise generated by the fan to a certain extent.

[0120] In some embodiments of the present application, the method for determining the light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold includes:

[0121] When the real-time actual temperature is greater than a preset temperature threshold, calculating a difference between the preset temperature threshold and the real-time actual temperature;

[0122] The first light source power adjustment amount is calculated according to the difference, the real-time variable and a first preset formula of the light source power adjustment amount; the first preset formula is:

[0123] W var1 =k 2 *T tre +k 3 *|ΔT|

[0124] Among them, W var1 is the power adjustment value of the first light source, and the T tre is the real-time variable, ΔT is the difference, k 2 , k 3 is a preset power adjustment constant corresponding to the first preset formula;

[0125] The method for controlling the lamp in real time based on the light source power adjustment amount includes:

[0126] The power is reduced according to the first light source power adjustment amount.

[0127] Fan speed regulation is usually used in the temperature range below the preset temperature threshold T of the lamp. max When the actual temperature of the lamp is higher than the preset temperature threshold T max When the maximum speed of the fan can no longer meet the heat dissipation requirements, the lamp needs to reduce power. max and the current actual temperature T now The difference ΔT is calculated with step S2 to follow the real-time variable T of the temperature. tre Perform power reduction adjustment. The power reduction variable W var =k 2 *T tre +k 3 *|ΔT|,k 2 , k 3 is the preset coefficient, k 2 , k 3 It is pre-determined based on the characteristics of the lamp and can be a positive number. When the temperature exceeds the preset temperature threshold, it may go through a short heating process until it reaches the peak of the actual temperature and then decreases. During the heating stage after exceeding the preset temperature threshold, the real-time variable T that follows the temperature tre and |ΔT| increase with increasing temperature, the power reduction variable W var1 As it increases, that is, the greater the power reduction, in this process k 2 *T tre , k 3 *|ΔT| is a positive number and is increasing. In the cooling phase (the process of the actual temperature dropping from the peak value to the preset temperature threshold) after the actual temperature of the lamp exceeds the preset temperature threshold, T tre is a negative number, |ΔT| is a positive number, and a reasonable k is set in advance. 2 , k 3 The constraint can make W var1 When the actual temperature is higher than the preset temperature threshold, power control is required in both the heating and cooling stages. tar1 =W cur -W var1 Control, where W tar1 , W cur They are the target power and actual power of the power reduction regulation operation. When the lamp is in a balanced state, that is, it follows the real-time variable T of the temperature treWhen the temperature is 0, the difference ΔT is not 0, that is, the temperature is still higher than the maximum temperature. At this time, the lamp power needs to be reduced according to the difference ΔT until the lamp temperature is lower than the maximum temperature. Through the above power reduction adjustment operation, when the actual temperature of the lamp is greater than or equal to the preset temperature threshold, the actual temperature of the lamp is reduced in time, thereby preventing the lamp from running for too long beyond the safe temperature threshold and ensuring the safe operation of the lamp.

[0128] In some embodiments of the present application, after the step of reducing the power according to the first light source power adjustment amount, the step includes:

[0129] When the real-time actual temperature is less than or equal to the preset temperature threshold, and the real-time light source power of the lamp is less than the preset power, the second light source power adjustment amount is calculated according to the second preset formula of the light source adjustment amount; the second preset formula is:

[0130] W var2 =k 4 *T tre +k 5 *|ΔT|

[0131] Among them, W var2 is the power adjustment value of the second light source, k 4 , k 5 is a preset power adjustment constant corresponding to the second preset formula;

[0132] The power is increased according to the second light source power adjustment amount until the real-time light source power is equal to the preset power.

[0133] In some embodiments, k 4 , k 5 can be respectively 2 , k 3 They are equal, and can also be set differently according to actual conditions.

[0134] In some embodiments, the manner of performing power reduction adjustment according to the first light source power adjustment amount or performing power increase adjustment according to the second light source power adjustment amount may refer to the relevant embodiments below.

[0135] Specifically, based on the above embodiment, when the real-time actual temperature is greater than the preset temperature threshold, the fan runs at the maximum speed. In order to reduce the actual temperature of the lamp as soon as possible, the light source will also be controlled to reduce power. The power reduction adjustment operation will continue until the actual temperature of the lamp is less than or equal to the preset temperature threshold. After stopping the power reduction adjustment operation on the light source, the light source power after the power reduction adjustment can be maintained for the preset low-power operation time. The actual temperature of the lamp generally does not approach the preset temperature threshold. At this time, the light source can be adjusted to increase power until the real-time light source power is equal to the preset power to ensure that the lamp runs at maximum power. Of course, in addition to determining the start node of the power increase adjustment operation by presetting the preset low-power operation time, the start node of the power increase adjustment operation can also be determined by presetting a preset safety temperature value lower than the preset temperature threshold, that is, after stopping the power reduction adjustment operation on the light source, the light source power after the power reduction adjustment can be maintained until the actual temperature of the lamp is equal to the preset safety temperature value, and then the power increase operation is performed.

[0136] Specifically, when performing a power increase operation, the adjustment amount of the light source power, that is, the second light source power adjustment amount, can be determined by the following formula: var2 =k 4 *T tre +k 5 *|ΔT|. During the power-up operation, the actual temperature of the lamp may be in a process of continuous increase, or a process of first dropping briefly and then continuously increasing. 4 , k 5 The reasonable value of var2 It is always positive, so when performing power-up operation, it can be calculated according to the formula W tar2 =W cur +W var2 To execute, where W cur is the real-time actual power, W tar2 The target power for the power-up regulation operation.

[0137] In some embodiments, k 4 Set to less than k 5 , so that W var2 Mainly determined by |ΔT|, during the power increase and regulation operation, in the continuous heating stage, as the real-time actual temperature of the lamp is getting closer and closer to the preset temperature threshold, |ΔT| becomes smaller and smaller, W var2 The smaller the actual temperature of the lamp is, the closer it is to the preset temperature threshold, and the smaller the power adjustment increment of the power adjustment operation is.

[0138] In some embodiments of the present application, controlling the lamp in real time based on the speed adjustment amount and / or the light source power adjustment amount includes:

[0139] Determine a corresponding variable adjustment rate based on the rotation speed adjustment amount and / or the light source power adjustment amount;

[0140] The lamp is controlled according to the rotation speed adjustment amount and / or the light source power adjustment amount and the corresponding variable adjustment rate.

[0141] Specifically, the variable adjustment rate is used to characterize the speed of variable adjustment. Based on the above embodiment, the control of the lamp involves the adjustment of variables such as the fan speed adjustment amount and / or the light source power adjustment amount. The variable adjustment rate here refers to the adjustment rate of variables such as the fan speed adjustment amount and / or the light source power adjustment amount. Among them, the method of setting the corresponding variable adjustment rate for the fan speed adjustment amount and performing fan adjustment control based on the variable adjustment rate refers to the above embodiment and will not be repeated here.

[0142] Similarly, for the adjustment method of the variable adjustment rate corresponding to the light source power adjustment amount, reference can also be made to the adjustment method of the speed adjustment amount. Specifically, for example, when the light source power adjustment amount W of the lamp is var When the power of the light source is not greater than 2, the power decreases by 1W per second; when the light source power adjustment amount W var When it is not greater than 5, the power is reduced by 1W every half second. When the adjustment of a specific light source power adjustment amount (for example, 2.5) is completed, the remaining state will reduce the power by 1W every 0.1 second.

[0143] In some embodiments of the present application, during the period from when the lamp is initially powered on to when the actual temperature of the lamp reaches the preset temperature threshold, the lamp control method includes:

[0144] According to the preset formula F of the fan speed adjustment amount var = k * T tre -k 1 ΔT controls the operation of the fan;

[0145] When the real-time actual temperature of the lamp is greater than the preset temperature threshold, while executing the step of reducing the power according to the first light source power adjustment amount, the fan operation is controlled based on the preset fan speed threshold;

[0146] The step of increasing the power according to the second light source power adjustment amount until the real-time light source power is equal to the preset power includes:

[0147] When the real-time light source power is equal to the preset power, if the real-time actual temperature is less than the preset temperature threshold, the fan is controlled to run at a reduced speed until the real-time actual temperature is equal to the preset temperature threshold.

[0148] Specifically, in some embodiments, from the initial power-on of the lamp to the stage when the actual temperature of the lamp reaches the preset temperature threshold, the real-time dynamic adjustment of the fan is mainly based on the real-time dynamic adjustment of the fan, and this stage does not involve the adjustment of the light source power of the lamp. In the process of adjusting the fan speed, according to the preset formula F of the fan speed adjustment amount var = k * T tre -k 1 ΔT controls the operation of the fan. For the specific control method, refer to the above embodiment. Through the above control of the fan operation, the real-time dynamic control of the fan based on the real-time actual temperature of the lamp is realized, the heat dissipation efficiency is improved, the fan is prevented from running at high power all the time, and the overall noise level is reduced. As the lamp continues to run, the actual temperature of the lamp may be higher than the preset temperature threshold at a certain moment. At this time, in order to ensure the safe operation of the lamp, the actual speed of the fan can be adjusted to the preset rated speed (that is, the preset fan speed threshold) and the light source power of the lamp can be reduced so that the actual temperature of the lamp returns to below the preset temperature threshold. At this time, in order to ensure the lighting effect, the light source can be re-adjusted to increase the power according to the W calculated at different times. var2 The power is increased and adjusted until the real-time power of the light source is equal to the preset power, so that the light source can be operated at a higher power while meeting the noise limitation and heat dissipation requirements, thereby better balancing the noise limitation and heat dissipation requirements and the luminous effect.

[0149] In some implementation scenarios, when the real-time light source power of the lamp is adjusted to the preset power based on the above-mentioned power increase operation, the real-time actual temperature of the lamp will be compared with the preset temperature threshold. If the real-time actual temperature is lower than the preset temperature threshold, the fan can be controlled to slow down to reduce the operating noise of the lamp until the real-time actual temperature is equal to the preset temperature threshold.

[0150] In some embodiments of the present application, a high-power lamp can be simply divided into a lamp light source, a light source driver board, a control unit and a heat dissipation fan, wherein the lamp light source is usually a high-power LED lamp. In actual applications, a lamp often has multiple light-emitting lamp beads, and each lamp bead constitutes a lamp light source; the control unit stores a software program corresponding to the control method, and the control unit realizes the operating temperature control of the lamp light source and the light source driver board by changing the working status of the light source driver board and the heat dissipation fan based on the software program.

[0151] It should be noted that, in actual applications, a lamp often has multiple light-emitting lamp beads, each of which constitutes a lamp light source. Therefore, the power-off of the light source driver board in the embodiment of the present application can be the power-off of the drive circuit corresponding to a certain lamp light source, so that the drive circuits of other lamp light sources on the light source driver board can work normally. In addition, when the fan speed represents the working voltage, the update of the fan speed can also be the update of the fan working voltage. The example of this application is for illustration only and does not impose any limitation on this application.

[0152] Reference Figure 3 The device for dynamically adjusting the fan and reducing the power of the second aspect embodiment of the present application may be a device applying the lamp control method of the first aspect embodiment of the present application, and the device for dynamically adjusting the fan and reducing the power includes a temperature acquisition module 101, a calculation module 102 and a control module 103.

[0153] The temperature acquisition module 101 is used to obtain the real-time actual temperature of the lamp; the calculation module 102 is used to set the follow temperature of the lamp according to the real-time actual temperature, and determine the real-time variable of the follow temperature based on the follow temperature and the real-time actual temperature; the control module 103 is used to determine the speed adjustment amount and / or the light source power adjustment amount of the fan according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold, and control the lamp in real time based on the speed adjustment amount and / or the light source power adjustment amount.

[0154] It can be understood that by setting the follow temperature of the lamp and calculating the real-time variable of the follow temperature, the real-time variable can reflect the temperature change trend, and then calculate the corresponding fan speed adjustment amount and / or the light source power adjustment amount of the lamp, and dynamically control the lamp in real time, so as to achieve the effect of intelligently adjusting the fan and light source power, and reasonably balance the requirements of noise limitation and brightness.

[0155] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0156] Reference Figure 4 , the embodiment of the present application further provides an electronic device, including:

[0157] at least one processor 201;

[0158] At least one memory 202, used to store at least one program;

[0159] When the at least one program is executed by the at least one processor 201, the at least one processor 201 implements the above method embodiment.

[0160] Similarly, it can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0161] The storage medium of the fourth aspect embodiment of the present application stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed by the lamp control method of the first aspect embodiment of the present application.

[0162] Similarly, the contents of the above method embodiments are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0163] In addition, an embodiment of the present application also provides a lamp, including a controller, a light source, a fan and a temperature sensor, wherein the controller is respectively connected to the temperature sensor, the light source and the fan; the temperature sensor is used to collect the real-time actual temperature of the lamp and send it to the controller; the controller is used to execute the steps of the lamp control method as described above based on the received real-time actual temperature, control the fan speed for heat dissipation control, and / or control the power of the light source.

[0164] The specific implementation of the steps of the controller executing the lamp control method can refer to the above-mentioned embodiment, which will not be described in detail here.

[0165] It is understandable that, in some embodiments, the temperature sensor may collect the real-time actual temperature of the lamp by collecting the temperature of the light source. The fan mainly dissipates heat generated by the light source.

[0166] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part described as a larger operation is performed independently.

[0167] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.

[0168] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0169] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0170] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0171] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0172] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0173] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present application.

Claims

1. A lamp control method, characterized in that: The following steps are involved: Get the real-time actual temperature of the lamp; Setting a follow-up temperature of the lamp according to the real-time actual temperature, and determining a real-time variable of the follow-up temperature based on the follow-up temperature and the real-time actual temperature; Determine a speed adjustment amount of the fan and / or a power adjustment amount of the light source according to the real-time variable and a difference between the real-time actual temperature and a preset temperature threshold; The lamp is controlled in real time based on the rotation speed adjustment amount and / or the light source power adjustment amount.

2. The lamp control method according to claim 1, characterized in that: The method for setting the follow-up temperature of the lamp according to the real-time actual temperature includes: Using the initial value of the real-time actual temperature as the initial value of the following temperature; The following temperature is set according to the set following time interval, the set following temperature interval and the real-time actual temperature.

3. The lamp control method according to claim 2, characterized in that: The method for determining the real-time variable of the following temperature based on the following temperature and the real-time actual temperature includes: The initial value of the real-time variable is set to zero; Determining a following state based on a comparison result between the following temperature and the real-time actual temperature; If the following state is not reversed, and the following temperature is not equal to the real-time actual temperature, the real-time variable is obtained based on the difference between the real-time value of the following temperature and the corresponding value of the following temperature at the last time the real-time variable is cleared; When the following temperature is equal to the real-time actual temperature, or when the following state is reversed, the real-time variable is cleared.

4. The lamp control method according to any one of claims 1 to 3, characterized in that: The method for determining the speed adjustment amount of the fan according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold comprises: Calculate the difference between the preset temperature threshold and the real-time actual temperature; The speed regulation amount is calculated according to a preset formula of the speed regulation amount, the difference and the real-time variable; wherein the preset formula of the speed regulation amount is: F var =k*T tre -k1ΔT Among them, F var is the speed adjustment amount, T tre is the real-time variable, ΔT is the difference, k and k1 are preset speed adjustment constants; The method for controlling the lamp in real time based on the speed adjustment amount includes: Determine the target speed F according to the speed adjustment amount and the real-time fan speed tar ; The target speed F tar The fan speed threshold F max Make a comparison; If F tar <F max , adjust the fan speed to F tar ; If F tar >F max , adjust the fan speed to F max .

5. The lamp control method according to any one of claims 1 to 3, characterized in that: The method for determining the light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold comprises: When the real-time actual temperature is greater than a preset temperature threshold, calculating a difference between the preset temperature threshold and the real-time actual temperature; The first light source power adjustment amount is calculated according to the difference, the real-time variable and a first preset formula of the light source power adjustment amount; the first preset formula is: W var1 =k2*T tre +k3*|ΔT| Among them, W var1 is the power adjustment value of the first light source, and the T tre is the real-time variable, ΔT is the difference, k2 and k3 are preset power adjustment constants corresponding to the first preset formula; The method for controlling the lamp in real time based on the light source power adjustment amount includes: The power is reduced according to the first light source power adjustment amount.

6. The lamp control method according to claim 5, characterized in that: After the step of reducing power according to the first light source power adjustment amount, the following steps are included: When the real-time actual temperature is less than or equal to the preset temperature threshold, and the real-time light source power of the lamp is less than the preset power, the second light source power adjustment amount is calculated according to the second preset formula of the light source adjustment amount; the second preset formula is: W var2 =k4*T tre +k5*|ΔT| Among them, W var2 is the power adjustment amount of the second light source, k4 and k5 are preset power adjustment constants corresponding to the second preset formula; The power is increased according to the second light source power adjustment amount until the real-time light source power is equal to the preset power.

7. The lamp control method according to claim 6, characterized in that: In the stage from when the lamp is initially powered on to when the real-time actual temperature of the lamp reaches the preset temperature threshold, the lamp control method includes: According to the preset formula F of the fan speed adjustment amount var = k * T tre -k1ΔT controls the operation of the fan; When the real-time actual temperature of the lamp is greater than the preset temperature threshold, while executing the step of reducing the power according to the first light source power adjustment amount, the fan operation is controlled based on the preset fan speed threshold; The step of increasing the power according to the second light source power adjustment amount until the real-time light source power is equal to the preset power includes: When the real-time light source power is equal to the preset power, if the real-time actual temperature is less than the preset temperature threshold, the fan is controlled to run at a reduced speed until the real-time actual temperature is equal to the preset temperature threshold.

8. The lamp control method according to claim 1, characterized in that: The real-time control of the lamp based on the speed adjustment amount and / or the light source power adjustment amount includes: Determine a corresponding variable adjustment rate based on the rotation speed adjustment amount and / or the light source power adjustment amount; The lamp is controlled according to the rotation speed adjustment amount and / or the light source power adjustment amount and the corresponding variable adjustment rate.

9. A device for controlling a lamp, characterized in that: include: The temperature acquisition module is used to obtain the real-time actual temperature of the lamp; A calculation module, used for setting a following temperature of the lamp according to the real-time actual temperature, and determining a real-time variable of the following temperature based on the following temperature and the real-time actual temperature; A control module is used to determine the fan speed adjustment amount and / or the light source power adjustment amount according to the real-time variable and the difference between the real-time actual temperature and the preset temperature threshold, and to control the lamp in real time based on the speed adjustment amount and / or the light source power adjustment amount.

10. A storage medium, characterized in that: include: The storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed by the lamp control method according to any one of claims 1 to 8.