Lamp control method and device, computer equipment and storage medium
By monitoring the temperature of the lamps in real time and using a PID control algorithm to adjust the fan speed, the problem of the inability of traditional lamp control systems to intelligently adjust the temperature is solved, achieving stable temperature control and improved energy efficiency.
Patent Information
- Application Number
- CN202410976489.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-20
- Publication Date
- 2024-09-20
AI Technical Summary
Traditional lighting control systems cannot intelligently adjust based on real-time temperature, causing lamps to operate in overheated or overcooled environments, affecting service life and posing safety hazards, and lacking refined control strategies.
By obtaining real-time temperature information of the lamp, switching working modes, and using PID control algorithm to adjust the fan speed, dynamically adjust the fan operating status to maintain a stable temperature, and set internal and external temperature thresholds to monitor and control the environment.
It achieves stable temperature control of lamps under different environmental conditions, extends service life, reduces energy consumption, improves energy efficiency, and avoids damage or performance degradation caused by overheating or overcooling.
Smart Images

Figure CN118669773A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp lighting, and in particular to a lamp control method, device, computer equipment and storage medium. Background Art
[0002] With the continuous development of science and technology, intelligent lighting systems have gradually become an important development direction of modern lighting technology. As an important part of the lighting system, the operating status of lamps directly affects the lighting effect and energy consumption. However, traditional lamp control systems are often unable to make intelligent adjustments based on the real-time temperature of the lamps, causing the lamps to operate in an overheated or overcooled environment, which not only affects the service life of the lamps, but also may pose safety hazards.
[0003] At present, although some lighting control systems have temperature detection functions, they often simply turn on or off the fan or adjust the brightness of the light source in terms of temperature regulation, lacking sophisticated control strategies.
[0004] Therefore, how to design a control system that can intelligently adjust the fan speed and light source operating status according to the real-time temperature information of the lamp has become an urgent problem to be solved in the current field of lighting technology. Summary of the invention
[0005] In order to adjust the fan operating state according to the temperature of the lamp, the present application provides a lamp control method, device, computer equipment and storage medium.
[0006] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A lamp control method, the lamp control method comprising: Get lamp operation information; Acquire the real-time temperature information of the lamp from the lamp operation information, and switch the lamp operation mode according to the real-time temperature information of the lamp; The fan operation mode is obtained from the lamp operation mode, and a PID control algorithm is obtained. The PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
[0007] By adopting the above technical solution, the system can respond to temperature changes in a timely manner by monitoring the temperature information of the lamp in real time, thereby switching the working mode of the lamp according to the set threshold. This ensures that the lamp can maintain a stable temperature under different environmental conditions, which is conducive to extending the service life of the lamp. Using the PID control algorithm to adjust the fan operation mode and speed, the system can dynamically adjust the fan operation status according to actual needs. For example, in a high temperature environment, the fan can be adjusted to a high speed to enhance the heat dissipation effect; in a low temperature environment, the fan speed can be reduced or some fans can be turned off to reduce energy consumption without affecting the normal operation of the lamp. After the PID control algorithm is used, the system can automatically adjust the fan operation mode and speed according to the real-time temperature data and preset parameters.
[0008] In a preferred example, the present application may be further configured as follows: the step of obtaining the lamp operation information further includes: Obtaining a lamp start signal, and obtaining a lamp operating state according to the lamp start signal; According to the lamp operating state, a lamp temperature variation range when the lamp operating state is normal is acquired, and the lamp temperature variation range is used as a lamp temperature threshold.
[0009] By adopting the above technical solution, the system can obtain the current working status of the lamp in real time by obtaining the lamp start signal and obtaining the lamp operating status accordingly. It can immediately start monitoring the real-time temperature change of the lamp. According to the temperature change range when the lamp is in normal operating state, the system can set the temperature threshold of the lamp. These thresholds can help the system make corresponding adjustments when the lamp temperature reaches the preset range, such as switching the working mode or adjusting the fan operating state.
[0010] In a preferred example, the present application can be further configured as follows: the step of acquiring the real-time temperature information of the lamp from the lamp operation information and switching the lamp operation mode according to the real-time temperature information of the lamp specifically includes: Acquire the internal temperature information and the external temperature information of the lamp from the real-time temperature information of the lamp; The working mode of the lamp is switched according to the real-time temperature information of the lamp.
[0011] By adopting the above technical solution, the system can instantly understand the temperature conditions inside and outside the lamp by obtaining the real-time temperature information of the lamp. This real-time monitoring can help the system respond to temperature changes quickly and take timely measures to keep the lamp in normal working condition. According to the real-time temperature information of the lamp, the system can set and adjust the working mode of the lamp. For example, when the temperature is too high, it can switch to a suitable heat dissipation mode; when the temperature is low, it can be adjusted to energy-saving mode to avoid energy waste. Effective temperature control helps prevent lamps from being damaged or degraded due to overheating or overcooling. By adjusting the fan operating status according to real-time temperature information, the system can reduce energy consumption, improve energy efficiency, and extend the service life of the lamp.
[0012] In a preferred example, the present application may be further configured as follows: the step of switching the working mode of the lamp according to the real-time temperature information of the lamp specifically includes: When the internal temperature information of the lamp is higher than the lamp temperature threshold, a lamp protection mode is obtained; when the internal temperature information of the lamp is lower than the lamp temperature threshold, the lamp protection mode is obtained; When the external temperature information of the lamp is higher than the lamp temperature threshold, the external mode of the lamp is obtained; when the external temperature information of the lamp is lower than the lamp temperature threshold, the external mode of the lamp is obtained.
[0013] By adopting the above technical solution, by setting the temperature thresholds inside and outside the lamp, the system can accurately monitor and control the working environment of the lamp. When the internal temperature is higher than the threshold, the system automatically enters the lamp protection mode, and enhances the heat dissipation effect by adjusting the fan operation state to avoid overheating of the lamp. Conversely, when the internal temperature is lower than the threshold, the lamp protection mode is entered to prevent the lamp from being overcooled. At the same time, considering the changes in external temperature information, the system can adjust the fan operation state according to the external high or low temperature mode. For example, when the external temperature is higher than the threshold, the heat dissipation capacity of the fan can be increased; when the external temperature is lower than the threshold, the fan operation can be reduced to save energy.
[0014] In a preferred example, the present application can be further configured as follows: the fan operation mode is obtained from the lamp operation mode, a PID control algorithm is obtained, the PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode, specifically including: Acquire the lamp protection mode and the lamp protection mode from the lamp working mode; According to the lamp protection mode, a high-speed operation mode of the fan is obtained, and according to the lamp protection mode, a low-speed operation mode of the fan is obtained; A PID control algorithm is obtained, where the PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
[0015] By adopting the above technical solution, through the high temperature protection in the lamp working mode and the lamp protection mode, the system can respond quickly according to the real-time internal temperature information. The lamp protection mode can ensure that the lamp can be cooled down in time when the internal temperature is too high to avoid damage caused by overheating of the equipment; the lamp protection mode ensures that the lamp can maintain a suitable working temperature when the ambient temperature is low to avoid overcooling. According to the lamp protection mode, the system will automatically adjust the fan to enter the high-speed operation mode to enhance the heat dissipation effect of the lamp and effectively reduce the internal temperature. In the lamp protection mode, the system will adjust the fan to run at a low speed to maintain the appropriate working temperature and save energy. The PID control algorithm can accurately calculate the control signal according to the real-time temperature feedback and the set target value, and adjust the operation mode and speed of the fan. This sophisticated control strategy ensures that the lamp can maintain a stable temperature state in various working modes, extending the service life of the equipment and improving work efficiency.
[0016] In a preferred example, the present application may be further configured as follows: the PID control algorithm is obtained, and the PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode, and specifically includes: By using the PID control algorithm, a PID output signal is obtained; If the PID output signal is positive, a signal for increasing the speed of the fan is generated, and the speed of the fan is increased according to the signal for increasing the speed of the fan; If the PID output signal is positive, a signal for reducing the speed of the fan is generated, and the speed of the fan is reduced according to the signal for reducing the speed of the fan.
[0017] By adopting the above technical solutions, the PID control algorithm can quickly calculate the PID output signal according to the real-time temperature changes of the lamp. The system can respond to temperature changes in real time and provide precise control to ensure that the lamp is always within a stable operating temperature range. When the PID output signal is positive, the system generates a signal to increase the fan speed to enhance the heat dissipation effect. This dynamic adjustment can effectively reduce the internal temperature of the lamp, prevent overheating and protect the equipment.
[0018] In a preferred example, the present application can be further configured as follows: the lamp control method further includes: The operating state of the light source is adjusted according to the lamp operating mode.
[0019] By adopting the above technical solution, the heat generation and heat dissipation requirements of the lamp are affected by adjusting the operating state of the light source. In the high-load working mode, the brightness of the light source is increased to improve the lighting effect, and the heat dissipation effect of the fan also needs to be increased. Conversely, in the low-load working mode, the power of the light source and the operating speed of the fan are reduced to save energy and reduce heat generation. By comprehensively adjusting the operating state of the light source and the fan, the system can manage the temperature changes of the lamp in a more balanced manner.
[0020] The second object of the invention is achieved by the following technical solutions: A lighting control device, comprising: Information acquisition module, used to obtain lamp operation information; A mode switching module, used to obtain the real-time temperature information of the lamp from the lamp operation information, and switch the lamp working mode according to the real-time temperature information of the lamp; The speed regulating module is used to obtain the fan operation mode from the lamp operation mode and obtain a PID control algorithm, wherein the PID control algorithm is used to adjust the fan operation mode and adjust the fan speed according to the fan operation mode.
[0021] By adopting the above technical solution, the system can obtain the current working status of the lamp in real time by obtaining the lamp start signal and obtaining the lamp operating status accordingly. It can immediately start monitoring the real-time temperature change of the lamp. According to the temperature change range when the lamp is in normal operating state, the system can set the temperature threshold of the lamp. These thresholds can help the system make corresponding adjustments when the lamp temperature reaches the preset range, such as switching the working mode or adjusting the fan operating state.
[0022] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned lamp control method when executing the computer program.
[0023] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned lamp control method are implemented.
[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. By obtaining the lamp start signal and obtaining the lamp operating status based on it, the system can understand the current working status of the lamp in real time. It can immediately start monitoring the real-time temperature changes of the lamp. According to the temperature change range when the lamp is in normal operating status, the system can set the temperature threshold of the lamp. These thresholds can help the system make corresponding adjustments when the lamp temperature reaches the preset range, such as switching the working mode or adjusting the fan operating status; 2. Through the high temperature protection in the lamp working mode and the lamp protection mode, the system can respond quickly according to the real-time internal temperature information. The lamp protection mode can ensure that the lamp can be cooled down in time when the internal temperature is too high to avoid damage caused by overheating of the equipment; the lamp protection mode ensures that the lamp can maintain a suitable working temperature when the ambient temperature is low to avoid overcooling. According to the lamp protection mode, the system will automatically adjust the fan to enter the high-speed operation mode to enhance the heat dissipation effect of the lamp and effectively reduce the internal temperature. In the lamp protection mode, the system will adjust the fan to a low speed to maintain the appropriate operating temperature and save energy. The PID control algorithm can accurately calculate the control signal based on the real-time temperature feedback and the set target value, and adjust the operation mode and speed of the fan. This sophisticated control strategy ensures that the lamp can maintain a stable temperature state in various working modes, extending the service life of the equipment and improving work efficiency; 3. By setting the temperature thresholds inside and outside the lamp, the system can accurately monitor and control the working environment of the lamp. When the internal temperature is higher than the threshold, the system automatically enters the lamp protection mode, and enhances the heat dissipation effect by adjusting the fan operation state to avoid overheating of the lamp. Conversely, when the internal temperature is lower than the threshold, the lamp protection mode is entered to prevent the lamp from overcooling. At the same time, considering the changes in external temperature information, the system can adjust the fan operation state according to the external high or low temperature mode. For example, when the external temperature is higher than the threshold, the heat dissipation capacity of the fan can be increased; when the external temperature is lower than the threshold, the fan operation can be reduced to save energy. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of a lamp control method in one embodiment of the present application; Figure 2 This is a flowchart of the implementation after step S10 in the lamp control method in one embodiment of the present application; Figure 3 is a flowchart for implementing step S20 in the lamp control method in one embodiment of the present application; Figure 4 is a flowchart for implementing step S22 in the lamp control method in one embodiment of the present application; Figure 5 is a flowchart for implementing step S30 in the lamp control method in one embodiment of the present application; Figure 6 is a flowchart for implementing step S33 in the lamp control method in one embodiment of the present application; Figure 7 This is a flowchart of the implementation after step S30 in the lamp control method in one embodiment of the present application; Figure 8 is a principle block diagram of a lamp control method in one embodiment of the present application; Fig. 9 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The present application is further described in detail below in conjunction with the accompanying drawings.
[0027] In one embodiment, if Figure 1 As shown, the present application discloses a lamp control method, which specifically includes the following steps: S10: obtaining lamp operation information.
[0028] In this embodiment, the lamp operation information refers to the lamp internal temperature information, the lamp external temperature information, the light source status, the fan status, the working mode and the environmental parameters.
[0029] Specifically, by installing temperature sensors, current sensors, voltage sensors, and fan speed sensors, etc., information such as temperature, electrical parameters, and fan status are collected in real time. The signal output by the sensor is converted into a digital signal through an ADC (analog-to-digital converter), and the lighting controller receives the digital signal from the sensor for real-time processing and analysis. The data is transmitted to the cloud platform or mobile device through Zigbee wireless communication.
[0030] S20: Acquire the real-time temperature information of the lamp from the lamp operation information, and switch the lamp working mode according to the real-time temperature information of the lamp.
[0031] In this embodiment, the real-time temperature information of the lamp refers to the real-time temperature inside the lamp, the real-time temperature outside the lamp and the temperature of the air inlet of the fan. The lamp working mode refers to the standard mode, the lamp protection mode and the energy-saving mode. Among them, the standard mode means that the lamp runs at medium power and brightness, and the fan is at a low or medium speed to maintain normal heat dissipation and lighting effects. The lamp protection mode means that the fan is switched to a high-speed operation state to enhance heat dissipation, while the light source power is reduced to reduce heat generation or the fan is slowed down or turned off, and the light source power is increased. The energy-saving mode means that the light source brightness and power are reduced, and the fan speed is slowed down or intermittent operation.
[0032] Specifically, by installing a temperature sensor to monitor the temperature of the lamp in real time, the internal and external temperatures of the lamp are obtained in real time, and the light source power and the speed of the cooling fan are dynamically adjusted according to the set temperature threshold and different working modes (such as lamp protection mode and standard mode, etc.). When the internal temperature exceeds the threshold, it switches to the lamp protection mode, increases the fan speed and reduces the light source power; when the external temperature is too low, it switches to the lamp protection mode, reduces the fan speed and increases the light source power.
[0033] S30: Obtain the fan operation mode from the lamp working mode, and obtain a PID control algorithm, the PID control algorithm is used to adjust the fan operation mode, and adjust the fan speed according to the fan operation mode.
[0034] In this embodiment, the fan operation mode refers to the fan high-speed operation mode, the fan medium-speed operation mode, the fan low-speed operation mode and the fan intermittent operation mode. The fan high-speed operation mode means that it starts when the internal temperature exceeds the temperature threshold in the lamp protection mode. The fan medium-speed operation mode means that in the standard mode, the fan maintains medium speed operation to ensure normal heat dissipation of the lamp. The fan low-speed operation mode means that in the lamp protection mode, when the external temperature is lower than the temperature threshold, the fan slows down. The fan intermittent operation mode means that the fan runs intermittently when it is running at low load at night. The PID control algorithm refers to calculating the error between the current state and the target value (set value), and adjusting the control output according to the three parts of proportion (P), integral (I) and differential (D).
[0035] Specifically, by obtaining the target temperature in the fan operation mode, the error between the current lamp temperature and the target temperature is calculated. PID control calculation: Proportional control (P), calculate the proportional term of the current error, P = Kp·e(t). Integral control (I), calculate the cumulative term of the error, Derivative control (D), calculates the rate of change of the error,
[0036] Add the proportional, integral and differential control parts to generate the final control signal, u(t) = P + I + D. Obtain the real-time temperature information of the lamp through the sensor. According to the current working mode of the lamp, select the corresponding fan operation mode. Initialize the target temperature and PID parameters of the PID controller according to the selected fan operation mode. Calculate the error between the current temperature and the target temperature. Calculate the PID control signal based on the error value. Use the PID control signal as the speed adjustment of the fan to adjust the fan speed.
[0037] In one embodiment, if Figure 2 As shown, after step S10, the lamp operation information is obtained, and the following steps are also included: S101: Obtain a lamp start signal, and obtain the lamp operating status according to the lamp start signal.
[0038] In this embodiment, the lamp start signal refers to notifying the lamp system to start running or enter a working state. The lamp operating state refers to the lamp on / off state, lamp working mode, brightness level, lamp internal temperature, ambient temperature and fan state.
[0039] Specifically, when the lamp starts to work, a lamp start signal is obtained by starting the lamp, and the lamp operation status is obtained by identifying whether the lamp start signal has an abnormal signal.
[0040] S102: According to the operating state of the lamp, obtain the temperature variation range of the lamp when the operating state of the lamp is normal, and use the temperature variation range of the lamp as the temperature threshold of the lamp.
[0041] Specifically, by calculating the average value, maximum value, minimum value and standard deviation of the temperature, the temperature range under normal operation is determined. The temperature variation range under normal operation is obtained by the average value ± two times the standard deviation. On the basis of the determined temperature variation range, a safety margin is added to prevent temperature fluctuations. The upper threshold value is the average value + two times the standard deviation + safety margin. The lower threshold value is the average value - two times the standard deviation - safety margin. For example, for small lamps (such as household LED lamps and downlights), the working environment temperature is -10℃ to +40℃, and the surface temperature of the lamp is less than 60℃, so the temperature threshold of the small lamp is set to -10℃ to +60℃. For large lamps (such as high ceiling lamps and industrial lamps), the working environment temperature is -20℃ to +50℃. The surface temperature of the lamp is 70℃ to 90℃, so the temperature threshold of the large lamp is set to -20℃ to +90℃. The temperature threshold includes a high temperature threshold and a low temperature threshold.
[0042] In one embodiment, if Figure 3 As shown, in step S20, the real-time temperature information of the lamp is obtained from the lamp operation information, and the lamp operation mode is switched according to the real-time temperature information of the lamp, which specifically includes: S21: Acquire the internal temperature information and the external temperature information of the lamp from the real-time temperature information of the lamp.
[0043] In this embodiment, the internal temperature information of the lamp refers to the temperature inside the lamp, such as the light source temperature, the driver temperature and the fan temperature. The external temperature information of the lamp refers to the ambient temperature outside the lamp.
[0044] Specifically, temperature sensors need to be installed in key internal parts of the lamp (such as light source, power driver, near the fan) and in the external environment. The data is transmitted to the control module wirelessly. The data of each sensor is accompanied by a unique identifier to distinguish between internal and external temperature data. After receiving the data, the controller stores it in the lamp temperature database and distinguishes the data source based on the identifier. The internal and external temperatures are displayed to dynamically adjust the working status of the lamp.
[0045] S22: Switch the lamp working mode according to the real-time temperature information of the lamp.
[0046] Specifically, within the normal temperature range, the lamp is in standard mode and the fan is in low or medium speed operation. When the internal temperature of the lamp exceeds the preset high temperature threshold, it switches to the lamp protection mode and the fan switches to high speed operation to enhance the heat dissipation effect. When the ambient temperature is lower than the preset low temperature threshold, it switches to the lamp protection mode and the fan reduces operation or shuts down to prevent overcooling of the lamp. Different temperature thresholds are set according to the normal working temperature range of the lamp. For example, the safe temperature range is set to 20℃ to 60℃, the high temperature protection threshold is set to 60℃, and the low temperature protection threshold is set to 20℃. The controller monitors the internal and external temperature information of the lamp in real time and makes judgments according to the preset temperature thresholds: when the internal temperature is higher than 60℃, it enters the lamp protection mode. When the internal temperature is between 20℃ and 60℃, it maintains the standard mode. When the external temperature is lower than 20℃, it enters the lamp protection mode. According to the comparison result of the real-time temperature information and the temperature threshold, the control system switches the working mode of the lamp, standard mode: the lamp works within the normal temperature range and the fan runs at low or medium speed. Lamp protection mode: When the internal temperature exceeds 60°C, the fan runs at high speed to enhance heat dissipation. Lamp protection mode: When the external temperature is below 20°C, the fan runs less or shuts down to prevent overcooling.
[0047] In one embodiment, if Figure 4 As shown, in step S22, the lamp working mode is switched according to the real-time temperature information of the lamp, which specifically includes: S221: When the internal temperature information of the lamp is higher than the lamp temperature threshold, a lamp protection mode is obtained; when the internal temperature information of the lamp is lower than the lamp temperature threshold, a lamp protection mode is obtained.
[0048] Specifically, the control system automatically switches the working mode of the lamp based on the comparison result between the internal temperature information and the preset temperature threshold: Lamp protection mode: When the internal temperature of the lamp is higher than 60°C, the control system switches the fan to high-speed operation to enhance the heat dissipation effect and prevent the lamp from overheating and damage. In lamp protection mode, the system continuously monitors the temperature until the temperature drops to a safe range. Lamp protection mode: When the internal temperature of the lamp is lower than 20°C, the control system reduces or turns off the fan to prevent the lamp from overcooling. In lamp protection mode, the system continuously monitors the temperature until the temperature rises back to a safe range.
[0049] S222: When the external temperature information of the lamp is higher than the lamp temperature threshold, the external mode of the lamp is obtained; when the external temperature information of the lamp is lower than the lamp temperature threshold, the external mode of the lamp is obtained.
[0050] In this embodiment, the lamp external mode refers to the working mode switched to when the ambient temperature around the lamp is higher than the temperature threshold. The lamp external mode refers to the working mode switched to when the ambient temperature around the lamp is lower than the temperature threshold.
[0051] Specifically, when the ambient temperature is higher than the temperature threshold, the control system switches to the external mode of the lamp. Increase the speed of the fan, increase air flow, and enhance the heat dissipation effect. Reduce the power output of the lamp to reduce heat generation. If the temperature continues to rise, trigger an alarm to notify maintenance personnel. External mode of the lamp: When the external ambient temperature is lower than the temperature threshold, the control system switches to the external mode of the lamp. Reduce or turn off the speed of the fan, reduce air flow, and prevent the lamp from overcooling. Increase the power output of the lamp to reduce heat generation.
[0052] In one embodiment, if Figure 5 As shown, in step S30, the fan operation mode is obtained from the lamp operation mode, and a PID control algorithm is obtained. The PID control algorithm is used to adjust the fan operation mode. According to the fan operation mode, the fan speed is adjusted, which specifically includes: S31: Obtain the lamp protection mode and the lamp protection mode from the lamp working mode.
[0053] Specifically, set the temperature threshold: according to the normal operating temperature range of the lamp, set the trigger threshold of the high temperature and lamp protection mode. For example: high temperature threshold: 60℃ (internal temperature) low temperature threshold: 20℃ (internal temperature). The lamp works within the normal temperature range and does not need to switch to the protection mode. When the internal or external temperature of the lamp is higher than the temperature threshold, the system switches to the lamp protection mode. When the internal or external temperature of the lamp is lower than the temperature threshold, the system switches to the lamp protection mode. For example, if the internal temperature > 60℃ or the external temperature > 30℃, switch to the lamp protection mode. If the internal temperature < 20℃ or the external temperature < 5℃, switch to the lamp protection mode. Otherwise, keep the standard mode.
[0054] S32: According to the lamp protection mode, obtain the high-speed operation mode of the fan, and according to the lamp protection mode, obtain the low-speed operation mode of the fan.
[0055] Specifically, the temperature threshold is set according to the normal operating temperature range of the lamp. For example: high temperature threshold, 60℃. Low temperature threshold, 20℃. The control system determines the current working mode based on the real-time internal and external temperature information and the temperature threshold: when the internal temperature is between 20℃ and 60℃ and the external temperature is in the normal range, the lamp is in the standard working mode. Lamp protection mode: when the internal temperature is higher than 60℃ or the external temperature is higher than 30℃. The control system switches the fan to high-speed operation mode to enhance the heat dissipation effect and prevent the lamp from overheating. Lamp protection mode: when the internal temperature is lower than 20℃ or the external temperature is lower than 5℃. The control system switches the fan to low-speed operation mode to prevent the lamp from overcooling.
[0056] S33: Obtain a PID control algorithm, where the PID control algorithm is used to adjust the fan operation mode, and adjust the fan speed according to the fan operation mode.
[0057] Specifically, the implementation process of using the PID control algorithm to adjust the fan operation mode and speed includes setting PID parameters, collecting and processing temperature data, calculating PID output, and adjusting the fan operation status according to the output. By real-time monitoring of temperature, calculating errors and applying the PID algorithm, the system can automatically adjust the fan speed or operation mode.
[0058] In one embodiment, if Figure 6 As shown, in step S33, a PID control algorithm is obtained, and the PID control algorithm is used to adjust the fan operation mode. According to the fan operation mode, the fan speed is adjusted, which specifically includes: S331: Obtain a PID output signal through a PID control algorithm.
[0059] In this embodiment, the PID output signal refers to the control quantity calculated according to the PID control algorithm. The magnitude and sign of the PID output signal determine the control operation, for example, adjusting the speed of the fan.
[0060] Specifically, the three parameters of the PID controller are set, namely the proportional coefficient Kp, the integral coefficient Ki, and the differential coefficient Kd. The proportional coefficient Kp controls the proportional relationship between the output signal and the current error, and determines the response speed and stability. The integral coefficient Ki controls the influence of the output signal on the error integral, and is used to eliminate the static error and deviation of the system. The differential coefficient Kd controls the response of the output signal to the error change rate, which helps to suppress the oscillation of the system and improve the dynamic response capability of the system. Calculate the current error, that is, the difference between the set value and the system state variable, e (t) = set value - system state change. Use PID control algorithm to calculate PID output signal. Where e(t) is the current error. is the integral of the error, which represents the accumulation of error over time. is the derivative of the error, which represents the rate of change of the error over time. The calculated PID output signal u(t) is applied to the control system.
[0061] S332: If the PID output signal is positive, a signal for increasing the speed of the fan is generated, and the speed of the fan is increased according to the signal for increasing the speed of the fan.
[0062] Specifically, the difference between the target temperature and the current temperature is calculated. The PID output signal u(t) is calculated, and when u(t) is positive, a control signal for increasing the fan speed is generated. The control signal is a voltage signal.
[0063] S333: If the PID output signal is positive, a signal for reducing the speed of the fan is generated, and the speed of the fan is reduced according to the signal for reducing the speed of the fan.
[0064] Specifically, the difference between the target temperature and the current temperature is calculated. The PID output signal u(t) is calculated, and when u(t) is negative, a control signal for reducing the fan speed is generated.
[0065] In one embodiment, if Figure 7 As shown, after step S10, the lamp control method further includes: S40: Adjust the operating state of the light source according to the working mode of the lamp.
[0066] In this embodiment, the light source operating state refers to the light source switch state, the light source brightness level, the light source temperature state, the light source operating time, the light source current and voltage.
[0067] Specifically, in the standard mode, the light source operates at normal brightness and power. In the lamp protection mode, the light source power is reduced and the brightness is reduced to reduce heat generation. In the lamp protection mode, a certain brightness is maintained to prevent the temperature from being too low. According to the current working mode, a corresponding control signal is generated to adjust the operating state of the light source. The generated control signal is transmitted to the light source control system to adjust the power and brightness of the light source.
[0068] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0069] In one embodiment, a lamp control device is provided, which corresponds one-to-one to the lamp control method in the above embodiment. Figure 8 As shown, the lamp control device includes an information acquisition module, a mode switching module and a speed adjustment module. The detailed description of each functional module is as follows: Information acquisition module, used to obtain lamp operation information; A mode switching module is used to obtain the real-time temperature information of the lamp from the lamp operation information and switch the lamp working mode according to the real-time temperature information of the lamp; The speed adjustment module is used to obtain the fan operation mode from the lamp working mode and obtain the PID control algorithm. The PID control algorithm is used to adjust the fan operation mode and adjust the fan speed according to the fan operation mode.
[0070] Optionally, the information acquisition module also includes: The dynamic operation module is used to obtain the lamp start signal and obtain the lamp operation status according to the lamp start signal; The temperature threshold module is used to obtain the temperature variation range of the lamp when the lamp operation state is normal according to the lamp operation state, and use the lamp temperature variation range as the lamp temperature threshold.
[0071] Optionally, the mode switching module includes: The real-time temperature information submodule is used to obtain the internal temperature information and the external temperature information of the lamp from the real-time temperature information of the lamp; The working mode submodule is used to switch the working mode of the lamp according to the real-time temperature information of the lamp.
[0072] Optionally, the working mode submodule includes: A high temperature mode unit, used to obtain a lamp protection mode when the internal temperature information of the lamp is higher than the lamp temperature threshold, and to obtain a lamp protection mode when the internal temperature information of the lamp is lower than the lamp temperature threshold; The low temperature mode unit is used to obtain the external mode of the lamp when the external temperature information of the lamp is higher than the lamp temperature threshold, and to obtain the external mode of the lamp when the external temperature information of the lamp is lower than the lamp temperature threshold.
[0073] Optionally, the speed regulation module includes: The working mode acquisition submodule is used to obtain the lamp protection mode and the lamp protection mode from the lamp working mode; The fan speed submodule is used to obtain the fan high-speed operation mode according to the lamp protection mode, and obtain the fan low-speed operation mode according to the lamp protection mode; The PID control submodule is used to obtain a PID control algorithm. The PID control algorithm is used to adjust the fan operation mode and adjust the fan speed according to the fan operation mode.
[0074] Optionally, the PID control submodule includes: A signal unit is used to obtain a PID output signal through a PID control algorithm; The speed increasing unit is used for generating a signal for increasing the speed of the fan if the PID output signal is positive, and increasing the speed of the fan according to the signal for increasing the speed of the fan; The speed reduction unit is used to generate a signal for reducing the speed of the fan if the PID output signal is positive, and reduce the speed of the fan according to the signal for reducing the speed of the fan.
[0075] Optionally, the speed regulation module also includes: The light source submodule is used to adjust the operating state of the light source according to the working mode of the lamp.
[0076] The specific definition of the lighting control device can be found in the definition of the lighting control method above, which will not be repeated here. Each module in the above lighting control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0077] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for a lamp temperature database. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a lamp control method is implemented.
[0078] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Get lamp operation information; Obtain the real-time temperature information of the lamp from the lamp operation information, and switch the lamp working mode according to the real-time temperature information of the lamp; The fan operation mode is obtained from the lamp working mode, and a PID control algorithm is obtained. The PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
[0079] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Get lamp operation information; Obtain the real-time temperature information of the lamp from the lamp operation information, and switch the lamp working mode according to the real-time temperature information of the lamp; The fan operation mode is obtained from the lamp working mode, and a PID control algorithm is obtained. The PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
[0080] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0081] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0082] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A lamp control method, characterized in that: The lamp control method comprises: Get lamp operation information; Acquire the real-time temperature information of the lamp from the lamp operation information, and switch the lamp operation mode according to the real-time temperature information of the lamp; The fan operation mode is obtained from the lamp operation mode, and a PID control algorithm is obtained. The PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
2. The lamp control method according to claim 1, characterized in that: The obtaining of lamp operation information further includes: Obtaining a lamp start signal, and obtaining a lamp operating state according to the lamp start signal; According to the lamp operating state, a lamp temperature variation range when the lamp operating state is normal is acquired, and the lamp temperature variation range is used as a lamp temperature threshold.
3. The lamp control method according to claim 1, characterized in that: The step of acquiring the real-time temperature information of the lamp from the lamp operation information and switching the lamp operation mode according to the real-time temperature information of the lamp specifically includes: Acquire the internal temperature information and the external temperature information of the lamp from the real-time temperature information of the lamp; The working mode of the lamp is switched according to the real-time temperature information of the lamp.
4. The lamp control method according to claim 3, characterized in that: The step of switching the working mode of the lamp according to the real-time temperature information of the lamp specifically includes: When the internal temperature information of the lamp is higher than the lamp temperature threshold, a lamp protection mode is obtained; when the internal temperature information of the lamp is lower than the lamp temperature threshold, the lamp protection mode is obtained; When the external temperature information of the lamp is higher than the lamp temperature threshold, the external mode of the lamp is obtained; when the external temperature information of the lamp is lower than the lamp temperature threshold, the external mode of the lamp is obtained.
5. The lamp control method according to claim 1, characterized in that: The step of acquiring the fan operation mode from the lamp operation mode, acquiring a PID control algorithm, wherein the PID control algorithm is used to adjust the fan operation mode, and adjusting the fan speed according to the fan operation mode, specifically includes: Acquire the lamp protection mode and the lamp protection mode from the lamp working mode; According to the lamp protection mode, a high-speed operation mode of the fan is obtained, and according to the lamp protection mode, a low-speed operation mode of the fan is obtained; A PID control algorithm is obtained, where the PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode.
6. The lamp control method according to claim 5, characterized in that: The acquiring of a PID control algorithm, wherein the PID control algorithm is used to adjust the fan operation mode, and the fan speed is adjusted according to the fan operation mode, specifically further comprising: By using the PID control algorithm, a PID output signal is obtained; If the PID output signal is positive, a signal for increasing the speed of the fan is generated, and the speed of the fan is increased according to the signal for increasing the speed of the fan; If the PID output signal is positive, a signal for reducing the speed of the fan is generated, and the speed of the fan is reduced according to the signal for reducing the speed of the fan.
7. The lamp control method according to claim 1, characterized in that: The lamp control method further includes: The operating state of the light source is adjusted according to the lamp operating mode.
8. A lighting control device, characterized in that: The lighting control device comprises: Information acquisition module, used to obtain lamp operation information; A mode switching module, used to obtain the real-time temperature information of the lamp from the lamp operation information, and switch the lamp working mode according to the real-time temperature information of the lamp; The speed regulating module is used to obtain the fan operation mode from the lamp operation mode and obtain a PID control algorithm, wherein the PID control algorithm is used to adjust the fan operation mode and adjust the fan speed according to the fan operation mode.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the lamp control method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the lamp control method according to any one of claims 1 to 7 are implemented.
