Temperature control method of photoelectric system, main controller, photoelectric system and electronic equipment
By using the main controller in the photoelectric system to dynamically adjust the fan speed and calculate the target duty cycle and PWM signal based on real-time temperature data, the problem of insufficient temperature control accuracy in traditional heat dissipation solutions is solved, and the luminous efficiency of LED light sources and system stability is improved sex.
Patent Information
- Application Number
- CN202411336367.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-03
Smart Images

Figure CN119248031A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optoelectronic technology, and in particular to a temperature control method, a main controller, a optoelectronic system and an electronic device. Background Art
[0002] In the optoelectronics field, especially in the display field based on DLP / AR technology, the light source is usually composed of R / G / B three-color LED (semiconductor light emitting diode) light source. The LED light source will generate heat during operation, and the heat will affect the luminous efficiency of the light source. For example, the increase in heat will lead to an increase in temperature, which will lead to lower luminous efficiency, affecting the brightness and stability of the final product.
[0003] In traditional heat dissipation solutions, a PWM value is used to control the speed of the fan in the system to reduce the current temperature of the LED. When the temperature is higher than the target temperature, the fan is turned on and the LED is cooled according to the PWM value. When the temperature is lower than the target temperature, the fan is turned off. In this way, the current temperature of the LED cannot be accurately controlled near the target temperature, and the heat dissipation performance is poor. Summary of the invention
[0004] The main purpose of the present invention is to provide a temperature control method, a main controller, a photoelectric system and an electronic device for a photoelectric system, aiming to improve the control accuracy of the current temperature of a light source.
[0005] To achieve the above-mentioned purpose, the present invention proposes a temperature control method for a photoelectric system, wherein the photoelectric system comprises a main controller, a fan and a light source, wherein a controlled end of the fan is connected to the main controller, and an air outlet end of the fan is connected to the light source, and the main controller outputs a PWM value to the fan and controls the fan to rotate at a corresponding duty cycle so that the fan adjusts the current temperature of the light source; the temperature control method comprises:
[0006] Acquire the current temperature of the light source multiple times within a preset time;
[0007] Determining a target duty cycle of the fan corresponding to each of the current temperatures according to the target temperature of the light source and the multiple current temperatures;
[0008] According to the plurality of target duty cycles, a current change rate of the target duty cycle is determined, and according to the current change rate, a current target PWM value of the main controller is determined.
[0009] Optionally, the photoelectric system further includes a temperature sensor disposed at the light source; the method of obtaining the current temperature of the light source multiple times within a preset time specifically includes:
[0010] The temperature sensor outputs a corresponding temperature signal according to the current temperature;
[0011] A temperature value corresponding to each current temperature is determined according to the temperature signal.
[0012] Optionally, the method of determining the target duty cycle of the fan corresponding to each current temperature according to the target temperature of the light source and the multiple current temperatures specifically includes:
[0013] Determine a temperature difference between each current temperature and the target temperature according to the target temperature of the light source and the multiple current temperatures;
[0014] According to the plurality of temperature differences, a target duty cycle of the fan corresponding to each temperature difference is determined.
[0015] Optionally, the target duty cycle is proportional to the corresponding temperature difference.
[0016] Optionally, the method for determining the target duty cycle corresponding to each temperature difference value according to the plurality of temperature differences specifically includes:
[0017] Acquire a current temperature difference value and a previous temperature difference value among the plurality of temperature difference values, wherein the current temperature difference value represents a difference between the target temperature and the current temperature, and the previous temperature difference value represents a difference between the target temperature and the previous current temperature;
[0018] According to the current temperature difference and the previous temperature difference, a target duty cycle corresponding to the current temperature difference is determined.
[0019] Optionally, the target duty cycle is proportional to the current temperature difference; or,
[0020] The target duty cycle is proportional to the current temperature difference value, and the target duty cycle is proportional to the difference between the current temperature difference value and the previous temperature difference value.
[0021] Optionally, according to the multiple target duty cycles, the method for determining the current change rate of the target duty cycle specifically includes:
[0022] Obtaining a target duty cycle corresponding to a current temperature difference and a target duty cycle corresponding to a previous temperature difference, and determining a difference between the target duty cycle corresponding to the current temperature difference and the target duty cycle corresponding to the previous temperature difference;
[0023] The current rate of change is determined according to the difference.
[0024] Optionally, the current change rate is specifically the sum of the difference and a preset compensation value;
[0025] The preset compensation value is proportional to the current temperature difference.
[0026] Optionally, the method for determining the current target PWM value of the main controller according to the target current change rate specifically includes:
[0027] Obtaining a maximum speed value of the fan, and determining a maximum PWM value according to the maximum speed value;
[0028] The current target PWM value is determined according to the previous target PWM value, the current change rate and the maximum PWM value.
[0029] Optionally, the current target PWM value is the sum of the previous target PWM value and the product of the current change rate and the maximum PWM value.
[0030] Optionally, the light source is an LED lamp, and the LED lamp includes a first light source, a second light source and a third light source; the method further includes:
[0031] Determining a first temperature difference between the first current temperature and the first target temperature according to a first current temperature of the first light source and a first target temperature;
[0032] Determine a second temperature difference between the second current temperature and the second target temperature according to the second current temperature of the second light source and the second target temperature;
[0033] determining a third temperature difference between the third current temperature and the third target temperature according to a third current temperature of the third light source and a third target temperature;
[0034] According to the magnitude relationship among the first temperature difference, the second temperature difference and the third temperature difference, the working priorities of the main controller corresponding to the first light source, the second light source and the third light source are determined.
[0035] The present invention also provides a main controller, which is used to implement the above temperature control method.
[0036] Optionally, the main controller cyclically runs the above-mentioned temperature control method according to a first cycle period.
[0037] The present invention also provides a photoelectric system, the photoelectric system comprising:
[0038] Light source;
[0039] A temperature sensor, provided at the light source, for detecting the current temperature of the light source;
[0040] a fan, the fan being disposed at the light source and used for cooling the light source to control the current temperature;
[0041] As the main controller mentioned above, the main controller generates a corresponding PWM value according to the current temperature and the target temperature, and controls the fan to work with the PWM value to reduce the difference between the current temperature and the target temperature.
[0042] Optionally, the light source is an LED lamp, and the LED lamp includes a first light source, a second light source and a third light source;
[0043] The fan comprises a first fan, a second fan and a third fan, wherein the controlled ends of the first fan, the second fan and the third fan are connected to the main controller, the air outlet end of the first fan is connected to the first light source, the air outlet end of the second fan is connected to the second light source, and the air outlet end of the third fan is connected to the third light source;
[0044] The main controller is used to output a plurality of corresponding current target PWM values to the first fan, the second fan and the third fan respectively according to the temperature control method as described above, so as to control the first fan, the second fan and the third fan to operate at the corresponding current target PWM values.
[0045] The present invention also provides an electronic device, wherein the electronic device comprises the above-mentioned optoelectronic system.
[0046] The technical solution of the present invention proposes a temperature control method for a photoelectric system to improve the control accuracy of the current temperature of the light source. Specifically, within a preset time interval, the system will measure the actual temperature of the light source multiple times, and then calculate the target duty cycle of the fan at each measurement point based on the difference between these measured values and the preset target temperature. Then, by analyzing the rate of change of these target duty cycles, the fan speed adjustment required for the next step can be more accurately predicted, thereby generating a corresponding PWM signal to control the fan speed. This method can adjust the fan speed more smoothly, avoid temperature fluctuations caused by frequent starting and stopping of the fan in traditional control methods, and achieve more stable and precise control of the temperature of the light source, thereby improving the stability of the light source's luminous efficiency and the quality of the display effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0048] Figure 1 A flow chart of a first embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0049] Figure 2 A flow chart of a second embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0050] Figure 3 A flow chart of a third embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0051] Figure 4 A flow chart of a fourth embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0052] Figure 5 A flow chart of a fifth embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0053] Figure 6 A flow chart of a sixth embodiment of a temperature control method for a photovoltaic system provided by the present invention;
[0054] Figure 7 A flow chart of a seventh embodiment of the temperature control method for a photovoltaic system provided by the present invention;
[0055] Figure 8 A schematic diagram of the structure of an embodiment of a temperature control method for a photoelectric system provided by the present invention;
[0056] Fig. 9 This is a schematic structural diagram of another embodiment of the temperature control method for a photovoltaic system provided by the present invention.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0060] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0061] In the optoelectronics field, especially in the display field based on DLP / AR technology, the light source is usually composed of R / G / B three-color LED (semiconductor light emitting diode) light source. The LED light source will generate heat during operation, and the heat will affect the luminous efficiency of the light source. For example, the increase in heat will lead to an increase in temperature, which will lead to lower luminous efficiency, affecting the brightness and stability of the final product.
[0062] In the display field based on DLP / AR technology, some exemplary heat dissipation solutions usually rely on a fixed PWM value to control the fan speed to adjust the operating temperature of the LED light source. This method has several obvious limitations: First, the fixed fan speed is easily affected by external environmental factors, such as changes in the distance between the fan and the LED lamp or fluctuations in indoor temperature, which may cause the originally set optimal speed to no longer apply, making the temperature control unstable. Secondly, this fixed speed method lacks flexibility. In different usage scenarios (such as different ambient temperatures or LED loads), the fan speed parameters need to be manually readjusted to adapt to new conditions, which is time-consuming and inconvenient. In addition, when there are multiple LED light sources in the system that need to be cooled at the same time, the temperatures between the channels will affect each other, and a single fan speed control is difficult to take into account the optimal cooling effect of all light sources. In summary, these shortcomings of traditional heat dissipation solutions limit the luminous efficiency of LED light sources and the overall performance stability of the system.
[0063] In other exemplary heat dissipation schemes, a simple on / off control strategy based on PWM (pulse width modulation) is used to adjust the fan speed. This control method has several obvious disadvantages. First, since the fan is turned on or off only based on whether the LED temperature exceeds the preset threshold, this will lead to frequent switching of the fan's working state, which not only increases the power consumption and noise of the system, but also may cause temperature over-adjustment, that is, the temperature fluctuates greatly above and below the target temperature, making it difficult to achieve stable temperature control. Secondly, this simple binary control mechanism lacks the ability to predict and respond to temperature change trends, and cannot adjust the fan speed in advance to adapt to the trend of temperature changes, making the system respond slowly and unable to effectively adjust the temperature to the ideal working range in a timely manner. Therefore, this traditional heat dissipation solution often cannot provide sufficiently accurate temperature control, affecting the luminous efficiency of the LED light source and the overall stability of the system.
[0064] Based on the above problems, the present invention provides a temperature control method for a photoelectric system to improve the control accuracy of the current temperature of the light source, thereby improving the luminous efficiency and overall stability of the photoelectric system. Figure 6 As shown, the photoelectric system includes a main controller, a fan and a light source. The controlled end of the fan is connected to the main controller, and the air outlet end of the fan is connected to the light source. The main controller outputs a PWM value to the fan and controls the fan to rotate with a corresponding duty cycle so that the fan can adjust the current temperature of the light source.
[0065] In one embodiment, if Figure 1 As shown, the temperature control method of the photovoltaic system includes steps S100 to S300.
[0066] Step S100: obtaining the current temperature of the light source multiple times within a preset time.
[0067] In this step, the main controller of the optoelectronic system collects temperature data of the light source multiple times within a pre-set time period to obtain a series of continuous temperature readings for subsequent analysis of temperature trends. For example, the system may collect temperature data once a second, so that enough data points can be collected in a short period of time for subsequent temperature control strategies. The temperature sensor is responsible for monitoring the temperature of the light source in real time and passing this information to the main controller. In this way, through continuous monitoring, the system can better understand the temperature changes and make corresponding adjustments.
[0068] Step S200: determining a target duty cycle of the fan corresponding to each current temperature according to the target temperature of the light source and the multiple current temperatures.
[0069] In this step, the system will calculate the duty cycle that the fan should have for each temperature measurement value based on the relationship between the collected temperature data and the preset target temperature. This process can be completed by looking up a pre-established temperature-duty cycle mapping table, or it can be automatically calculated by an algorithm (such as a PID control algorithm). Specifically, if the temperature is higher than the target temperature, the system will determine a higher duty cycle to increase the fan speed to accelerate heat dissipation; conversely, if the temperature is lower than the target temperature, a lower duty cycle will be selected to reduce the fan speed to prevent overcooling. Through such dynamic adjustments, it can be ensured that the temperature of the light source can be stabilized near the target temperature.
[0070] Step S300: determining a current change rate of the target duty cycle according to the plurality of target duty cycles, and determining a current target PWM value of the main controller according to the current change rate.
[0071] In this step, the change rate of these duty cycles, that is, the change trend of the duty cycle, is determined based on the multiple target duty cycles calculated previously. Then, the system will update the value of the PWM signal sent by the main controller to the fan according to this change rate, thereby adjusting the fan speed. This process ensures that the fan speed can be adjusted smoothly to avoid drastic temperature fluctuations. Specifically, the system calculates the difference between two adjacent target duty cycles, and obtains the rate of change of the duty cycle through this difference. Then, based on this change rate, the duty cycle of the PWM signal is adjusted to control the change of the fan speed. In this way, the fan speed can be smoothly transitioned, avoiding sudden changes in traditional on / off control, thereby reducing temperature fluctuations and achieving more precise temperature control.
[0072] In practical applications, first, in step S100, the system can capture the trend of temperature changes over time by acquiring the current temperature of the light source multiple times within a preset time, rather than relying solely on a single point measurement value, so that the actual temperature conditions can be more accurately reflected. Secondly, in step S200, the system dynamically adjusts the duty cycle of the fan based on the difference between these continuous temperature measurements and the target temperature. In this way, the speed of the fan can be adjusted in real time according to actual needs, rather than maintained at a fixed level, thereby improving the flexibility and accuracy of temperature control. Finally, in step S300, by analyzing the rate of change of the target duty cycle to determine the current target PWM value, the system can predictably adjust the fan speed, avoid large temperature fluctuations, and achieve smoother and more accurate temperature control. In summary, these three steps work together to form a closed-loop control system that can continuously monitor and finely adjust the temperature of the light source in a complex operating environment, thereby significantly improving the temperature control accuracy and overall performance stability of the optoelectronic system.
[0073] It is understandable that this embodiment only provides one light source, but can actually be applied to multiple light sources. It only needs to execute steps S100 to S300 for each light source to control the current temperature of each light source; for example, in an LED lamp, the LED lamp has three light sources, so three fans can be added to respectively control the current temperatures of the three light sources of the LED lamp to achieve multi-way control.
[0074] In summary, the technical solution of the present invention improves the control accuracy of the current temperature of the light source by adopting a temperature control method of a photoelectric system. Specifically, within a preset time interval, the system will measure the actual temperature of the light source multiple times, and then calculate the target duty cycle of the fan at each measurement point based on the difference between these measured values and the preset target temperature. Then, by analyzing the rate of change of these target duty cycles, the fan speed adjustment required for the next step can be more accurately predicted, thereby generating a corresponding PWM signal to control the fan speed. This method can adjust the fan speed more smoothly, avoid temperature fluctuations caused by frequent starting and stopping of the fan in traditional control methods, and achieve more stable and precise control of the temperature of the light source, thereby improving the stability of the light source's luminous efficiency and the quality of the display effect.
[0075] In one embodiment, if Figure 2 As shown, the photoelectric system further includes a temperature sensor, which is disposed at the light source; step S100: the method of obtaining the current temperature of the light source multiple times within a preset time may specifically include steps S110 to S120.
[0076] S110: The temperature sensor outputs a corresponding temperature signal according to the current temperature.
[0077] In this step, the temperature sensor monitors the temperature of the light source in real time and converts it into a temperature signal in the form of an electrical signal. A temperature sensor is usually a device that converts physical temperature changes into electrical signals that can be recognized by electronic devices. For example, a thermistor changes its resistance value as the temperature changes, or a thermocouple generates a voltage proportional to the temperature difference. These signals are then transmitted to the main controller of the photovoltaic system.
[0078] S120: Determine a temperature value corresponding to each current temperature according to the temperature signal.
[0079] In this step, the main controller receives the temperature signal from the temperature sensor and converts it into a specific temperature value. This process usually involves signal processing and data conversion. For example, the main controller may convert the analog temperature signal into a digital signal, and then convert these digital signals into actual temperature readings through a preset conversion formula or table lookup. These temperature readings are then used for subsequent temperature control.
[0080] In this way, the system can continuously obtain the temperature information of the light source and convert it into a processable data form, providing a basis for subsequent temperature control.
[0081] In one embodiment, if Figure 3 As shown, step S200: the method of determining the target duty cycle of the fan corresponding to each current temperature according to the target temperature of the light source and multiple current temperatures may specifically include steps S210 to S220.
[0082] S210: Determine a temperature difference between each current temperature and the target temperature according to the target temperature of the light source and a plurality of current temperatures.
[0083] In this step, the system calculates the temperature difference at each moment by comparing the current temperature with the preset target temperature. This difference reflects the degree of deviation between the current temperature of the light source and the expected temperature. If the current temperature is higher than the target temperature, the temperature difference is positive, indicating that the heat dissipation needs to be strengthened, and the fan speed or duty cycle can be increased; conversely, if the current temperature is lower than the target temperature, the temperature difference is negative, which means that the heat dissipation intensity needs to be reduced, and the fan speed or duty cycle can be reduced.
[0084] S220: Determine a target duty cycle of the fan corresponding to each temperature difference according to the plurality of temperature differences.
[0085] In this step, the system determines the target duty cycle that the fan should have based on the calculated temperature difference. This process can be done by looking up a pre-established temperature difference-duty cycle mapping table, or it can be automatically calculated by a control algorithm (such as a PID control algorithm). Specifically, if the temperature difference is positive and large, the system will determine a higher duty cycle to increase the fan speed, thereby accelerating heat dissipation; conversely, if the temperature difference is small or negative, a lower duty cycle will be selected to reduce the fan speed to prevent overcooling. In this way, through dynamic adjustment, it can be ensured that the temperature of the light source can be stabilized near the target temperature.
[0086] In the above embodiment, the target duty cycle is proportional to the corresponding temperature difference. When the temperature difference is positive (i.e., the current temperature is higher than the target temperature), the target duty cycle will also increase accordingly. This is because a larger temperature difference indicates that the temperature of the light source is too high and heat dissipation needs to be strengthened. To achieve this goal, the system will increase the heat dissipation by increasing the speed of the fan, and increasing the fan speed can be achieved by increasing the duty cycle of the PWM signal.
[0087] It is understandable that in the absence of a fan, the operating temperature of the light source will inevitably exceed the target temperature. Even if the current temperature drops below the target temperature due to the fan, the fan will still work, but the fan's duty cycle will be relatively lower. Therefore, the fan will not stop working, and the specific speed or duty cycle depends on the temperature difference.
[0088] In one embodiment, if Figure 4 As shown, step S220: according to a plurality of temperature differences, the method for determining a target duty cycle corresponding to each temperature difference may further specifically include steps S221 to S222.
[0089] Step S221: obtaining a current temperature difference value and a previous temperature difference value among a plurality of temperature difference values, wherein the current temperature difference value represents a difference between a target temperature and a current temperature, and the previous temperature difference value represents a difference between a target temperature and a previous current temperature.
[0090] In this step, the system extracts the current temperature difference and the previous temperature difference from the previously collected temperature data. The current temperature difference reflects the difference between the latest temperature measurement and the target temperature, while the previous temperature difference is the difference between the temperature and the target temperature at the previous measurement. These temperature differences are used to evaluate the trend of the current temperature change.
[0091] It is understandable that the last temperature difference refers to the difference between the target temperature and the actual temperature at that time during the most recent measurement (or calculation) cycle. This value reflects the state of the system temperature at the previous sampling point. For example, if the target temperature is 35°C and the actual temperature at the last sampling moment is 32°C, the last temperature difference is 3°C. The current temperature difference refers to the difference between the target temperature and the current actual temperature during the current measurement (or calculation) cycle. This value reflects the temperature state of the system at the current moment. For example, if the target temperature is still 35°C and the current actual temperature becomes 33°C, the current temperature difference is 2°C. In this case, the "last temperature difference" and "current temperature difference" can help the controller better understand the temperature change trend and adjust the fan speed accordingly to achieve the target temperature, thereby improving the control accuracy.
[0092] Step S222: Determine a target duty cycle corresponding to the current temperature difference according to the current temperature difference and the previous temperature difference.
[0093] In this step, the system determines the target duty cycle corresponding to the current temperature difference based on the current temperature difference and the previous temperature difference. This can be achieved by comparing the changing trends of the current temperature difference and the previous temperature difference. For example, if the current temperature difference increases compared to the previous temperature difference, the system will think that the temperature is rising, so it is necessary to increase the fan speed to enhance heat dissipation, that is, the target duty cycle will increase. On the contrary, if the current temperature difference decreases compared to the previous temperature difference, it means that the temperature is dropping or approaching the target temperature. At this time, the fan speed can be appropriately reduced, that is, the target duty cycle will decrease. This control strategy based on temperature change trends helps to more accurately predict the fan speed adjustment required for the next step, thereby generating a corresponding PWM signal to control the fan speed, ensuring a smooth transition of the fan speed and avoiding drastic temperature fluctuations.
[0094] In one embodiment, the target duty cycle is proportional to the current temperature difference.
[0095] In this embodiment, the target duty cycle is proportional to the current temperature difference, which means that when the temperature difference increases, the target duty cycle also increases; and vice versa. This control method can quickly respond to temperature changes. When the temperature is higher than the target temperature, the fan speed increases to speed up heat dissipation; when the temperature is lower than the target temperature, the fan speed decreases to reduce unnecessary heat dissipation.
[0096] In one embodiment, the target duty cycle is proportional to the current temperature difference value, and the target duty cycle is proportional to the difference between the current temperature difference value and the previous temperature difference value.
[0097] In this embodiment, the target duty cycle is not only proportional to the current temperature difference, but also proportional to the difference between the current temperature difference and the previous temperature difference, that is, the system not only pays attention to the gap between the current temperature and the target temperature, but also pays attention to the speed and direction of the temperature change. When the temperature difference changes rapidly (that is, the difference between the current temperature difference and the previous temperature difference is large), the target duty cycle will also change more greatly to respond to the temperature change trend more quickly. It can be understood that by considering the speed of temperature change, the system in this embodiment can adjust the fan speed more smoothly and avoid drastic temperature fluctuations, thereby achieving more stable temperature control; moreover, the system can more accurately predict the fan speed adjustment required for the next step, thereby generating a more accurate PWM signal to control the fan speed and improve the overall accuracy of temperature control.
[0098] In one embodiment, if Figure 5 As shown, in step S300, the method for determining the current change rate of the target duty cycle according to the multiple target duty cycles may specifically include steps S311 and S312.
[0099] Step S311: obtaining a target duty cycle corresponding to a current temperature difference and a target duty cycle corresponding to a previous temperature difference, and determining a difference between the target duty cycle corresponding to the current temperature difference and the target duty cycle corresponding to the previous temperature difference.
[0100] In this step, the system first needs to obtain the target duty cycle corresponding to the current temperature difference and the target duty cycle corresponding to the previous temperature difference. These two temperature differences correspond to the target duty cycles at the current and previous moments, respectively, and the system can determine the speed that the fan should have based on these two temperature differences. Once the two target duty cycles are obtained, the system will calculate the difference between them. This difference represents the change in the target duty cycle and is the basis for the subsequent determination of the rate of change.
[0101] Step S312: Determine the current change rate according to the difference.
[0102] In this step, the system uses the target duty cycle difference obtained from step S311 to determine the current rate of change of the target duty cycle. The rate of change is an indicator of how fast the target duty cycle changes over time. Specifically, the system calculates the rate of change of the target duty cycle relative to the sampling period. If the sampling period is fixed, the rate of change can be directly represented by the difference in the target duty cycle; if the sampling period is not fixed, the difference needs to be divided by the actual time interval to calculate the rate of change. In this way, the system can predict the possible changes in the target duty cycle at the next moment, and adjust the value of the PWM signal accordingly to control the fan speed. In this way, not only can the trend of temperature change be reflected more accurately, but also drastic temperature fluctuations can be effectively avoided, ensuring that the temperature of the light source can be steadily maintained near the target temperature, thereby achieving more precise and stable temperature control.
[0103] In the above embodiment, the current change rate is specifically the sum of the difference value and the preset compensation value; the preset compensation value is proportional to the current temperature difference value.
[0104] It is understandable that if the current rate of change is only proportional to the difference between the target duty cycle corresponding to the current temperature difference and the target duty cycle corresponding to the previous temperature difference, then when the temperature difference detected three times in a row is equal, the fan speed will not be adjusted, which will affect the final temperature control accuracy. Therefore, it is necessary to introduce a preset compensation value to ensure that the adjustment of the fan speed will not stagnate by increasing the compensation value. The compensation value should be a small positive value, and the specific size needs to be determined according to the actual application scenario. Therefore, in order to prevent the fan speed from not adjusting due to slow temperature changes, the current rate of change not only includes the difference part in the original equation, but also adds an additional preset compensation value.
[0105] It can be understood that the preset compensation value is proportional to the current temperature difference, which helps to adjust the fan speed more quickly to approach the target temperature. At the same time, it can also reduce the risk of over-adjustment and make the change of fan speed smoother.
[0106] In one embodiment, if Figure 6 As shown, in step S300, the method for determining the current target PWM value of the main controller according to the target current change rate may specifically include S321-S322.
[0107] Step S321: Acquire the maximum speed value of the fan, and determine the maximum PWM value according to the maximum speed value.
[0108] In this step, the system first needs to know the maximum speed value of the fan, and then the system will determine the maximum value of the corresponding PWM signal based on this maximum speed value. In some cases, the duty cycle of the PWM signal ranges from 0% to 100%, where 100% duty cycle corresponds to the maximum speed of the fan. Therefore, the maximum PWM value usually corresponds to a 100% duty cycle.
[0109] Step S322: Determine the current target PWM value according to the previous target PWM value, the current change rate and the maximum PWM value.
[0110] In this step, based on these parameters, the system can calculate the current target PWM value. The specific calculation method can be adjusted according to the actual situation, but a common method is to add the previous target PWM value to the current rate of change and ensure that the result does not exceed the maximum PWM value. For example, if the previous target PWM value is 80%, the current rate of change is +5%, and the maximum PWM value is 100%, then the current target PWM value will be 85%, but if the rate of change results in a result exceeding 100%, the current target PWM value should be set to 100%.
[0111] In one embodiment, the current target PWM value is the sum of the previous target PWM value and the product of the current change rate and the maximum PWM value.
[0112] It can be understood that in this step, the current target PWM value is calculated by the following formula: current target PWM value = previous target PWM value + (current change rate × maximum PWM value). Among them, the previous target PWM value is the PWM value used by the system in the previous sampling period, which is used to control the speed of the fan; the current change rate is the change rate of the target duty cycle calculated according to the previous step, reflecting the speed at which the fan speed needs to be adjusted; the maximum PWM value is the maximum value that the PWM signal in the system can reach, which can correspond to a duty cycle of 100%. In addition, if the calculated current target PWM value exceeds the maximum PWM value (100%), the current target PWM value should be set to the maximum PWM value. Similarly, if the calculated value is lower than the minimum PWM value (usually 0%), the current target PWM value should be set to the minimum PWM value.
[0113] In this way, the system can quickly adjust the PWM signal according to the trend of temperature change, thereby more accurately controlling the fan speed and ensuring that the temperature of the light source can be stabilized near the target temperature, improving the accuracy of temperature control and enhancing the stability and efficiency of the entire optoelectronic system.
[0114] In one embodiment, if Figure 7 and Fig. 9 As shown, the light source is an LED lamp, and the LED lamp includes a first light source, a second light source and a third light source; the method may further include S410-S440.
[0115] Step S410: determining a first temperature difference between the first current temperature and the first target temperature according to a first current temperature of the first light source and a first target temperature.
[0116] In this step, the system first measures the current temperature of the first light source (eg, red LED) and compares it with a preset first target temperature to determine a first temperature difference, which reflects the difference between the current temperature of the first light source and the target temperature.
[0117] Step S420: determining a second temperature difference between the second current temperature and the second target temperature according to the second current temperature of the second light source and the second target temperature.
[0118] Similarly, the system measures the current temperature of the second light source (eg, green LED) and compares it with a preset second target temperature to determine a second temperature difference, which reflects the gap between the current temperature of the second light source and the target temperature.
[0119] Step S430: determining a third temperature difference between the third current temperature and the third target temperature according to the third current temperature of the third light source and the third target temperature.
[0120] Similarly, the system measures the current temperature of the third light source (eg, blue LED) and compares it with a preset third target temperature to determine a third temperature difference, which reflects the gap between the current temperature of the third light source and the target temperature.
[0121] Step S440: determining the working priorities of the main controller corresponding to the first light source, the second light source and the third light source according to the magnitude relationship among the first temperature difference, the second temperature difference and the third temperature difference.
[0122] In this step, the system determines which light source needs to be adjusted first based on the relationship between the first temperature difference, the second temperature difference, and the third temperature difference. Generally speaking, the larger the temperature difference, the greater the degree to which the temperature of the light source deviates from the target temperature, and therefore the temperature adjustment needs to be prioritized. For example, if the temperature difference of the first light source is much larger than the temperature difference of the second light source and the third light source, the system will prioritize adjusting the temperature of the first light source to control its temperature within the target range as soon as possible.
[0123] It is understandable that the method can be applied to different light sources, not limited to LED lights, and the specific application scenario is not limited here.
[0124] The present invention also provides a main controller, which is used to implement the above-mentioned temperature control method. It should be noted that the main controller provided by the present invention adopts the temperature control method of the photoelectric system in the above-mentioned embodiment to solve the technical problem of control. Compared with the prior art, the beneficial effects of the main controller provided by the present invention are the same as the beneficial effects of the temperature control method provided by the above-mentioned embodiment, and other technical features in the main controller are the same as the features disclosed in the above-mentioned embodiment, which will not be repeated here.
[0125] In this embodiment, the main controller cyclically runs the above temperature control method according to the first cycle period, forms a closed-loop control between the temperature difference and the fan speed, and finally stabilizes the current temperature to the target temperature.
[0126] The present invention also provides a photoelectric system, including a light source, a temperature sensor, a fan and a main controller. It should be noted that the photoelectric system provided by the present invention adopts the main controller in the above embodiment to solve the technical problem of control. Compared with the prior art, the beneficial effects of the photoelectric system provided by the present invention are the same as the beneficial effects of the main controller provided by the above embodiment, and other technical features of the photoelectric system are the same as those disclosed in the above embodiment, which will not be repeated here.
[0127] Among them, a temperature sensor is arranged at the light source to detect the current temperature of the light source; a fan is arranged at the light source to cool the light source to control the current temperature; a main controller generates a corresponding PWM value according to the current temperature and the target temperature of the light source, and controls the operation of the fan with the PWM value to reduce the difference between the current temperature and the target temperature.
[0128] Optionally, the light source is an LED lamp, which includes a first light source, a second light source and a third light source; the fan includes a first fan, a second fan and a third fan, the controlled ends of the first fan, the second fan and the third fan are connected to a main controller, the air outlet end of the first fan is connected to the first light source, the air outlet end of the second fan is connected to the second light source, and the air outlet end of the third fan is connected to the third light source; the main controller is used to output multiple corresponding current target PWM values to the first fan, the second fan and the third fan respectively according to the temperature control method as claimed in any one of claims 1 to 11, so as to control the first fan, the second fan and the third fan to operate at the corresponding current target PWM values.
[0129] It can be understood that the LED lamp has three-color light sources of R / G / B. A fan and a corresponding PWM value can be set up for each light source, or a fan and a corresponding PWM value can be set up for three light sources. In this embodiment, in order to accurately control the current temperature of each light source, a temperature sensor is provided for each light source, and three fans and three PWM values are used to control each light source individually. In this way, the luminous efficiency of the LED lamp system can be improved.
[0130] It is understandable that the light source may be other types of light sources, or may be more than three light sources, which is not limited here. What is important in the present invention is the temperature control method for the light source.
[0131] In a practical application, Fig. 9 As shown, the temperature of the LED lamp can be controlled. Specifically, the target temperature to be controlled of the three light sources (r, g, and b) in the LED lamp is set, which is recorded as T r , T g , T b , obtain the current real-time temperature value of each LED light source through the temperature sensor I2C interface, and r , R g , R b ; Calculate ΔR r (k) = R r (k)-R r (k-1), ΔR g (k) = R g (k)-R g (k-1), ΔR b(k) = R b (k)-R b The maximum value in (k-1), the larger the value, the greater the temperature error, the corresponding LED light can be controlled first to achieve temperature control according to priority; where k is the kth temperature acquisition or temperature adjustment.
[0132] Then calculate the temperature difference between each current temperature and the target temperature, and record them as E r (k) = R r (k)-T r , E g (k) = R g (k)-T g , E b (k) = R b (k)-T b ; The kth error E(k), the k-1th error E(k-1) and the duty cycle y corresponding to the fan speed are k , establish a functional relationship, as follows: k =k1E(k)+k2[E(k)-E(k-1)], where k1E(k) represents the kth adjustment. If there is an error between the current temperature and the target temperature, it is necessary to adjust the fan duty cycle, that is, adjust the fan speed. The larger the error, the larger the fan speed adjustment amount, and the smaller the error, the smaller the fan speed adjustment amount. If there is only the k1E(k) part in the first formula, the actual effect is that the current temperature will jump back and forth between the target temperature and cannot stabilize at the target temperature. Therefore, k2[E(k)-E(k-1)] is added to represent the kth and k-1th changes. The larger the change, the larger the fan speed adjustment amount; the smaller the change, the smaller the fan speed adjustment amount. The values of k1 and k2 in the first formula are positive decimals, and their sizes are determined according to the relationship between the temperature error value and the fan duty cycle to be adjusted or the experimental value. It can be seen that the target duty cycle is proportional to the current temperature difference, and the target duty cycle is proportional to the difference between the current temperature difference and the previous temperature difference.
[0133] Then according to y k -y k-1 The second formula is: The current change rate of the target duty cycle Δy k =(k1+k2)E(k)+(-2k2-k1)E(k-1)+k2E(k-2). In the second formula, if the temperature changes slowly, the temperature acquisition values may be the same for three consecutive times, that is, E(k)=E(k-1)=E(k-2). This will cause an error between the actual temperature and the target temperature, but the fan speed will not be adjusted (Δy k =0) problem.
[0134] Therefore, it is necessary to add a compensation value k3E(k) on the basis of the third formula, where k3 is a positive decimal value and needs to be determined according to the actual situation; after adding the compensation value, the third formula becomes the following formula Δy k =(k1+k2+k3)E(k)+(-2k2-k1)E(k-1)+k2E(k-2). So we can get: Δy rk =A0*E r (k)+A1*E r (k-1)+A2*E r (k-2); Δy gk =A0*E g (k)+A1*E g (k-1)+A2*E g (k-2); Δy bk =A0*E b (k)+A1*E b (k-1)+A2*E b (k-2); where Δy rk is the current rate of change of the target duty cycle of the fan corresponding to the r light of the LED, or the incremental value of the duty cycle.
[0135] Then, according to the fan operating frequency, the maximum fan speed is calculated and recorded as PWM max ; Finally get PWM r (K)=PWM r (K-1)+Δy rk *PWM max ;PWM g (K)=PWM g (K-1)+Δy gk *PWM max ;PWM b (K)=PWM b (K-1)+Δy bk *PWM max It should be noted that the PWM calculated here is r (K), PWM g (K), PWM b (K) value should be consistent with PWM max If the maximum value is exceeded, the PWM max Setting; if PWM r (K), PWM g (K), PWM b(K) is less than 0, the speed is set to 0; the above maximum and minimum value settings are to prevent numerical overflow and cause malfunction of the fan; the PWM (K) calculated above is used to control the PWM signal of the output end through the main controller to control the fan speed respectively, thereby realizing independent control of the temperature of each LED lamp and achieving the purpose of multi-channel temperature control.
[0136] The present invention also provides an electronic device, including any of the above-mentioned optoelectronic systems. It should be noted that the electronic device provided by the present invention, using the optoelectronic system in the above-mentioned embodiment, can solve the technical problem of real-time temperature control of the light source. Compared with the prior art, the beneficial effects of the optoelectronic system provided by the present invention are the same as those of the optoelectronic system provided by the above-mentioned embodiment, and other technical features in the electronic device are the same as those of the above-mentioned embodiment method, which will not be described in detail here.
[0137] In this embodiment, optionally, the electronic device includes a smart wearable device, such as AR glasses / head-mounted display, VR glasses / head-mounted display, MR glasses / head-mounted display and XR glasses / head-mounted display, smart bracelets, smart watches, smart rings, etc. In one example, the above-mentioned optoelectronic system can be arranged in the optical-mechanical module of the smart wearable device to reduce the temperature fluctuation of the optical-mechanical module, thereby improving the effect and stability of the image projected / displayed by the optical-mechanical module on the optical element. Optionally, the electronic device may also include other projection devices, such as a projector, etc. In one example, the above-mentioned optoelectronic system may be arranged in the projection module of the above-mentioned projection device to improve the projection effect of the projection device.
[0138] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A temperature control method for a photoelectric system, characterized in that: The photoelectric system includes a main controller, a fan and a light source, wherein the controlled end of the fan is connected to the main controller, and the air outlet end of the fan is connected to the light source, and the main controller outputs a PWM value to the fan and controls the fan to rotate at a corresponding duty cycle so that the fan adjusts the current temperature of the light source; The temperature control method comprises: Acquire the current temperature of the light source multiple times within a preset time; Determining a target duty cycle of the fan corresponding to each of the current temperatures according to the target temperature of the light source and the multiple current temperatures; According to the plurality of target duty cycles, a current change rate of the target duty cycle is determined, and according to the current change rate, a current target PWM value of the main controller is determined.
2. The temperature control method of the photovoltaic system according to claim 1, characterized in that: The photoelectric system further includes a temperature sensor disposed at the light source; the method for obtaining the current temperature of the light source multiple times within a preset time specifically includes: The temperature sensor outputs a corresponding temperature signal according to the current temperature; A temperature value corresponding to each current temperature is determined according to the temperature signal.
3. The temperature control method of the photovoltaic system according to claim 1, characterized in that: The method of determining the target duty cycle of the fan corresponding to each current temperature according to the target temperature of the light source and the multiple current temperatures specifically includes: Determine a temperature difference between each current temperature and the target temperature according to the target temperature of the light source and the multiple current temperatures; According to the plurality of temperature differences, a target duty cycle of the fan corresponding to each temperature difference is determined.
4. The temperature control method of the photovoltaic system according to claim 3, characterized in that: The target duty cycle is proportional to the corresponding temperature difference.
5. The temperature control method of the photovoltaic system according to claim 3, characterized in that: The method of determining the target duty cycle corresponding to each temperature difference value according to the plurality of temperature differences specifically includes: Acquire a current temperature difference value and a previous temperature difference value among the plurality of temperature difference values, wherein the current temperature difference value represents a difference between the target temperature and the current temperature, and the previous temperature difference value represents a difference between the target temperature and the previous current temperature; According to the current temperature difference and the previous temperature difference, a target duty cycle corresponding to the current temperature difference is determined.
6. The temperature control method of the photovoltaic system according to claim 5, characterized in that: The target duty cycle is proportional to the current temperature difference; or, The target duty cycle is proportional to the current temperature difference value, and the target duty cycle is proportional to the difference between the current temperature difference value and the previous temperature difference value.
7. The temperature control method of a photovoltaic system according to claim 1, characterized in that: According to the multiple target duty cycles, the method for determining the current change rate of the target duty cycle specifically includes: Obtaining a target duty cycle corresponding to a current temperature difference and a target duty cycle corresponding to a previous temperature difference, and determining a difference between the target duty cycle corresponding to the current temperature difference and the target duty cycle corresponding to the previous temperature difference; The current rate of change is determined according to the difference.
8. The temperature control method of the photovoltaic system according to claim 7, characterized in that: The current change rate is specifically the sum of the difference and the preset compensation value; The preset compensation value is proportional to the current temperature difference.
9. The temperature control method of a photovoltaic system according to claim 7 or 8, characterized in that: The method for determining the current target PWM value of the main controller according to the target current change rate specifically includes: Obtaining a maximum speed value of the fan, and determining a maximum PWM value according to the maximum speed value; The current target PWM value is determined according to the previous target PWM value, the current change rate and the maximum PWM value.
10. The temperature control method of the photovoltaic system according to claim 9, characterized in that: The current target PWM value is the sum of the previous target PWM value and the product of the current change rate and the maximum PWM value.
11. The temperature control method of a photovoltaic system according to claim 1, characterized in that: The light source is an LED lamp, and the LED lamp includes a first light source, a second light source, and a third light source; the method further includes: Determining a first temperature difference between the first current temperature and the first target temperature according to a first current temperature of the first light source and a first target temperature; Determine a second temperature difference between the second current temperature and the second target temperature according to the second current temperature of the second light source and the second target temperature; determining a third temperature difference between the third current temperature and the third target temperature according to a third current temperature of the third light source and a third target temperature; According to the magnitude relationship among the first temperature difference, the second temperature difference and the third temperature difference, the working priorities of the main controller corresponding to the first light source, the second light source and the third light source are determined.
12. A main controller, characterized in that: The main controller is used to implement the temperature control method according to any one of claims 1 to 11.
13. The main controller according to claim 12, characterized in that: The main controller cyclically executes the temperature control method according to any one of claims 1 to 11 according to a first cycle period.
14. A photoelectric system, characterized in that: The optoelectronic system comprises: Light source; A temperature sensor, provided at the light source, for detecting the current temperature of the light source; a fan, the fan being disposed at the light source and used for cooling the light source to control the current temperature; According to the main controller as described in claim 12 or 13, the main controller generates a corresponding PWM value according to the current temperature and the target temperature, and controls the operation of the fan with the PWM value to reduce the difference between the current temperature and the target temperature.
15. The photovoltaic system according to claim 14, wherein: The light source is an LED lamp, and the LED lamp includes a first light source, a second light source and a third light source; The fan comprises a first fan, a second fan and a third fan, wherein the controlled ends of the first fan, the second fan and the third fan are connected to the main controller, the air outlet end of the first fan is connected to the first light source, the air outlet end of the second fan is connected to the second light source, and the air outlet end of the third fan is connected to the third light source; The main controller is used to output multiple corresponding current target PWM values to the first fan, the second fan and the third fan respectively according to the temperature control method according to any one of claims 1 to 11, so as to control the first fan, the second fan and the third fan to operate at the corresponding current target PWM values.
16. An electronic device, characterized in that: The electronic device comprises the optoelectronic system according to claim 14 or 15.