A method and system for controlling temperature and humidity in a simulated environment
Through weighted averaging algorithm and hierarchical control strategy, combined with spectrum analysis and fan orientation adjustment, the hysteresis and instability of the existing temperature and humidity control methods are solved, and more efficient and stable temperature and humidity management is achieved.
Patent Information
- Application Number
- CN202411234096.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-09-04
AI Technical Summary
The existing temperature and humidity control methods have lag and unstable parameter control in the soil environment, and the control method is single, making it difficult to effectively regulate the temperature and humidity of the soil and air.
The weighted average algorithm is used to calculate the comprehensive temperature and humidity value, and according to its trend and acceleration, pre-control strategies and strong control strategies are implemented in a graded manner, dynamically adjust the operating parameters of air conditioners, fans, and humidification equipment, and combine spectrum analysis and fan orientation adjustment to optimize temperature and humidity. control.
More accurate and stable temperature and humidity control is achieved, the system's response speed and stability is improved, over-regulation and energy waste are reduced, and environmental needs are adapted to different regions and soil types.
Smart Images

Figure CN118732751B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of temperature and humidity regulation, and in particular to a method and system for controlling temperature and humidity in a simulated environment. Background Art
[0002] In the teaching simulation device, a variety of existing mature modules can be used for assembly and design, and then a temperature and humidity automatic control system can be assembled to simulate the temperature and humidity control experiment. Existing mature modules include temperature and humidity sensors, fans, controllers, heaters, humidifiers and other modules.
[0003] At present, the commonly used method for controlling the temperature and humidity of the soil and the air above the soil in the simulated temperature and humidity control method for the soil environment is to arrange temperature sensors and humidity sensors in the simulated air environment and soil environment to obtain the temperature and humidity data of the air and soil in real time. Then, a simple threshold judgment logic is used to perform basic PID control. When the temperature is high, the fan is used to cool down, and when the temperature is low, the heater is used to heat up; similarly, when the humidity is high or low, the action of the humidifier is adjusted.
[0004] Among the existing methods, the control methods of temperature and humidity are relatively simple and have hysteresis. Therefore, the parameter control of temperature and humidity is unstable and the control method needs to be optimized. Summary of the invention
[0005] In order to optimize the temperature and humidity control method, the present application provides a temperature and humidity control method and system for a simulated environment.
[0006] In a first aspect, the present application provides a method for controlling temperature and humidity in a simulated environment, using the following technical solution:
[0007] A method for controlling temperature and humidity in a simulated environment comprises the following steps:
[0008] Obtain air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters in a confined space in real time;
[0009] Calculate a comprehensive temperature value using a weighted average algorithm based on the air temperature parameter and the soil temperature parameter;
[0010] Calculate the comprehensive humidity value by using a weighted average algorithm according to the air humidity parameter and the soil humidity parameter;
[0011] According to the comprehensive temperature value and the comprehensive humidity value; a weighted average algorithm is used to calculate the comprehensive temperature and humidity value; the comprehensive temperature and humidity value = a1×comprehensive temperature value + a2×comprehensive humidity value; wherein a1 is the weight corresponding to the comprehensive temperature value, and a2 is the weight corresponding to the comprehensive humidity value;
[0012] Get the preset target temperature and humidity values;
[0013] Analyze the rising and falling trends of the comprehensive temperature and humidity values according to the comprehensive temperature and humidity values, and calculate the acceleration of the comprehensive temperature and humidity values;
[0014] When the comprehensive temperature and humidity value is within the first temperature and humidity range, the current equipment operation state is maintained; the target temperature and humidity value is within the first temperature and humidity range;
[0015] When the comprehensive temperature and humidity value is within the second temperature and humidity range, and the absolute value of the acceleration exceeds the acceleration threshold of the temperature and humidity, the pre-control strategy is started; the value within the second temperature and humidity range deviates from the target temperature and humidity value to a greater extent than the value within the first temperature and humidity range deviates from the target temperature and humidity value;
[0016] When the comprehensive temperature and humidity value is within the third temperature and humidity range, the strong control strategy is started; wherein the value within the third temperature and humidity range deviates from the target temperature and humidity value to a greater extent than the value within the second temperature and humidity range deviates from the target temperature and humidity value.
[0017] By adopting the above technical solution, not only the current temperature and humidity values are relied on, but also the changing trend of temperature and humidity is taken into account, so that the environment can be predicted and controlled more accurately. In addition, by setting different control strategies, the system can take mild measures when the temperature and humidity deviate slightly from the target, and take stronger measures when the deviation is large, so as to achieve more efficient environmental control.
[0018] Optionally, the pre-control strategy includes calculating a first proportional value for adjusting the comprehensive temperature and humidity value; the first proportional value=b1×the rate of change of the pre-adjusted temperature value of the air conditioner+b2×the rate of change of the speed of the fan+b3×the rate of change of the pre-adjusted humidity value of the humidifying device+b4×the rate of change of the pre-adjusted temperature value of the heating device; b1 is the weight corresponding to the air conditioner in the pre-control strategy; b2 is the weight corresponding to the fan in the pre-control strategy; b3 is the weight corresponding to the humidifying device in the pre-control strategy; b4 is the weight corresponding to the heating device in the pre-control strategy;
[0019] The strong control strategy includes calculating a second proportional value for adjusting the comprehensive temperature and humidity value; the second proportional value=c1×the rate of change of the pre-adjusted temperature value of the air conditioner+c2×the rate of change of the speed of the fan+c3×the rate of change of the pre-adjusted humidity value of the humidifying device+c4×the rate of change of the pre-adjusted temperature value of the heating device; c1 is the weight corresponding to the air conditioner in the strong control strategy; c2 is the weight corresponding to the fan in the strong control strategy; c3 is the weight corresponding to the humidifying device in the strong control strategy; c4 is the weight corresponding to the heating device in the strong control strategy;
[0020] If the comprehensive temperature and humidity value is greater than or equal to the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset negative number range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifying device, and the change rate of the pre-adjusted temperature value of the heating device; conversely, if the comprehensive temperature and humidity value is less than the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset positive number range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifying device, and the change rate of the pre-adjusted temperature value of the heating device; wherein, c1>b1; c2>b2; c3>b3; c4>b4; wherein, the positive number range is a preset data range, and the preset values in the range are all positive numbers; the negative number range is a preset data range, and the preset values in the range are all negative numbers.
[0021] By adopting the above technical solution, the control strategy can be flexibly adjusted according to different situations. Minor adjustments can be made when the temperature and humidity are close to the target values, that is, the pre-control strategy, or more decisive actions can be taken when the temperature and humidity deviate seriously from the target values, that is, the strong control strategy. The hierarchical control method helps to improve the stability and response speed of the system while avoiding over-adjustment and energy waste.
[0022] Optionally, the method comprises the following steps:
[0023] Obtain air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters at different locations in a confined space;
[0024] Calculate the regional comprehensive temperature value and regional comprehensive humidity value in each area;
[0025] According to the regional comprehensive temperature value and regional comprehensive humidity value in each area,
[0026] The weighted average algorithm is used to calculate the regional comprehensive temperature and humidity values in each area;
[0027] Based on the regional comprehensive temperature and humidity values of each area, the comprehensive temperature and humidity values in the confined space are calculated according to the weight of each area;
[0028] According to the regional comprehensive temperature and humidity values in each area, the discrete value of the regional comprehensive temperature and humidity value is calculated; if the discrete value exceeds the set threshold, the fan speed is adjusted; the larger the discrete value, the faster the fan speed; the smaller the discrete value, the slower the fan speed.
[0029] By adopting the above technical solution, it is not only possible to monitor and adjust the environmental conditions of the entire confined space, but also to take into account the differences between different areas within the space and actively reduce these differences by adjusting the fan speed, thereby creating a more uniform and stable environment.
[0030] Optionally, the method further comprises the following steps:
[0031] Performing spectrum analysis on the comprehensive temperature value within a set time period, and converting the waveform of the comprehensive temperature value in the time domain dimension into first frequency domain data in the frequency domain dimension;
[0032] Extracting a first frequency from the first frequency domain data; wherein the first frequency domain data reflects the intensity of different frequency components in the temperature signal, and the first frequency is a main frequency, that is, a frequency component corresponding to the maximum intensity;
[0033] If the first frequency exceeds the set threshold, the value of a1 is adjusted according to the first frequency; the larger the first frequency, the smaller a1; the smaller the first frequency, the larger a1;
[0034] Performing spectrum analysis on the comprehensive humidity value within a set time period, and converting the waveform of the comprehensive humidity value in the time domain dimension into second frequency domain data in the frequency domain dimension;
[0035] The second frequency domain data is obtained and a second frequency is extracted; wherein the second frequency domain data reflects the intensity of different frequency components in the humidity signal, and the second frequency is the main frequency, that is, the frequency component corresponding to the maximum intensity;
[0036] If the second frequency exceeds the set threshold, the size of a2 is adjusted according to the second frequency; the larger the second frequency is, the smaller a2 is; the smaller the second frequency is, the larger a2 is.
[0037] By adopting the above technical solution, the weights of temperature and humidity in the calculation of comprehensive temperature and humidity values are dynamically adjusted according to their actual fluctuations. This helps the system to more accurately reflect the actual conditions of the environment and adjust the control strategy in time when the environmental parameters change significantly to maintain the stability of the environment.
[0038] Optionally, when the humidifying device is an atomizer, the method comprises the following steps:
[0039] According to the first change rate of the integrated temperature value, the value of b3 is adjusted in a positive correlation; the larger the first change rate, the larger b3; the smaller the first change rate, the smaller b3.
[0040] By adopting the above technical solution, since the humidification method of the atomizer is relatively gentle, considering the gentle characteristics of the atomizer humidification method, the method flexibly adjusts the humidification effect of the atomizer according to the changes in ambient temperature to maintain the balance and stability of ambient temperature and humidity.
[0041] Optionally, when the humidifying device is a shower head, the method comprises the following steps:
[0042] According to the second change rate of the integrated temperature value, the value of c3 is adjusted in an anti-correlation manner; the greater the second change rate, the smaller c3; the smaller the second change rate, the greater c3.
[0043] By adopting the above technical solution, since the humidification method of the sprinkler head is relatively fast and direct, another dynamic adjustment strategy is provided, that is, responding to the second change rate of the comprehensive temperature value by anti-correlated adjustment of the value of parameter c3; flexibly adjusting the possible impact of the sprinkler head on the temperature according to the changes in the ambient temperature to maintain the relative stability of the ambient temperature and humidity.
[0044] Optionally, the method further comprises the following steps:
[0045] According to the regional comprehensive temperature value and the regional comprehensive humidity value of each area in each area position, the rotation angle of the fan is adjusted;
[0046] By comparing and determining the area corresponding to the highest regional comprehensive temperature value or the area corresponding to the highest regional comprehensive humidity value, the angle of the fan is adjusted toward the area corresponding to the highest regional comprehensive temperature value or the area corresponding to the highest regional comprehensive humidity value;
[0047] The speed of the fan is adjusted in a positive correlation according to the size of the regional comprehensive temperature value or the regional comprehensive humidity value; the larger the regional comprehensive temperature value or the regional comprehensive humidity value is, the higher the speed is; the smaller the regional comprehensive temperature value or the regional comprehensive humidity value is, the lower the speed is.
[0048] By adopting the above technical solution, the fan can be controlled more intelligently to respond to humidity changes in different areas.
[0049] Optionally, the method comprises the following steps:
[0050] When the soil is loose soil or sandy soil; the soil includes interconnected soil gaps;
[0051] According to multiple comprehensive humidity values in multiple area positions, the direction of the fan is adjusted; so that the blowing direction of the fan blows from the direction of high comprehensive humidity value to the direction of low comprehensive humidity value; and the blowing angle is 0° or an acute angle relative to the horizontal plane;
[0052] Calculate the difference between the maximum integrated humidity value and the minimum integrated humidity value;
[0053] The greater the difference between the maximum integrated humidity value and the minimum integrated humidity value, the smaller the blowing angle of the fan; the smaller the difference, the greater the blowing angle of the fan.
[0054] By adopting the above technical solution, the soil is loose sand or has gaps in sand and gravel, which can allow wind to enter; through the action of the fan, the humidity can be quickly adjusted, so that when the humidity changes, the temperature can also be changed, so as to achieve more timely temperature and humidity control, and more stable temperature and humidity control. By increasing the wind force in the dry area, and making the wind parallel to the ground, or toward the upper or oblique angle of the dry area; when the wind force reaches a certain speed, since the soil is a soil with gaps, a relative negative pressure is generated in the soil gaps in the dry part, so that moisture from the surrounding high humidity areas can be attracted, so that the humidity in the soil can be adjusted by the action of wind force. Therefore, the system can intelligently adjust the direction and blowing angle of the fan to adapt to the humidity requirements of different areas. This method not only helps to achieve more timely temperature and humidity control, but also improves the stability of control. Especially in an environment with loose soil or sandy soil, this method can make full use of the soil gaps and the wind force of the fan to achieve natural regulation and balanced distribution of humidity.
[0055] In a second aspect, the present application provides a temperature and humidity control system for simulating an environment, which adopts the following technical solution:
[0056] A temperature and humidity control system for a simulated environment comprises a processor, wherein a program of any one of the temperature and humidity control methods for a simulated environment described above is run on the processor.
[0057] In summary, the present application includes at least one of the following beneficial technical effects: by making a pre-response to the temperature and humidity, the changes in temperature and humidity can be controlled in a timely manner. Since the temperature and humidity of the air and soil will affect each other, by controlling multiple parameters, the operation of multiple devices can be adjusted accordingly, and the temperature and humidity of the air and soil can be adjusted simultaneously; this is more conducive to achieving stable control of temperature and humidity. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a step diagram of a method for controlling temperature and humidity in a simulated environment.
[0059] Figure 2 It is a step diagram for obtaining various parameters of different areas in a confined space and adjusting the temperature and humidity.
[0060] Figure 3 This is a step diagram for performing spectrum analysis on the comprehensive temperature value and the comprehensive humidity value. DETAILED DESCRIPTION
[0061] Embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings.
[0062] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0063] The present application discloses a method for controlling the temperature and humidity of a simulated environment. Figure 1 , including the following steps:
[0064] By installing a variety of sensors in the enclosed space, the air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters in the enclosed space are obtained in real time.
[0065] The comprehensive temperature value is calculated by using the weighted average algorithm based on the air temperature parameters and the soil temperature parameters;
[0066] The comprehensive humidity value is calculated by using the weighted average algorithm according to the air humidity parameters and the soil humidity parameters;
[0067] According to the comprehensive temperature value and the comprehensive humidity value, the comprehensive temperature and humidity value is calculated by the weighted average algorithm; the comprehensive temperature and humidity value = a1×comprehensive temperature value + a2×comprehensive humidity value; where a1 is the weight corresponding to the comprehensive temperature value, and a2 is the weight corresponding to the comprehensive humidity value. For example, air temperature: 25℃; soil temperature: 20℃; air humidity: 60%; soil humidity: 40%; for temperature, the weights of air temperature and soil temperature are 0.5 each. For humidity, the weights of air humidity and soil humidity are also 0.5 each. For the comprehensive temperature and humidity value, we assume that the weights of temperature and humidity are also equal, that is, a1=0.5, a2=0.5. The comprehensive temperature value = 0.5×25℃+0.5×20℃=22.5℃; the comprehensive humidity value = 0.5×60%+0.5×40%=50%; the comprehensive temperature and humidity value = 0.5×22.5+0.5×50=11.25+25=36.25, among which the comprehensive temperature and humidity value is a comprehensive indicator without specific physical units and is only used to indicate the comprehensive state of temperature and humidity.
[0068] Get the preset target temperature and humidity values; where the target temperature corresponding to the target temperature and humidity values is set to 25°C, and the target humidity is set to 60% humidity, then the comprehensive temperature and humidity value corresponding to the target temperature and humidity is 42.5.
[0069] Analyze the rising and falling trends of the comprehensive temperature and humidity values according to the comprehensive temperature and humidity values, and calculate the acceleration of the comprehensive temperature and humidity values;
[0070] When the comprehensive temperature and humidity value is within the first temperature and humidity range, the current equipment operating state is maintained; wherein, the target temperature and humidity value is within the first temperature and humidity range.
[0071] When the comprehensive temperature and humidity value is within the second temperature and humidity range and the absolute value of acceleration exceeds the acceleration threshold of the comprehensive temperature and humidity value, the pre-control strategy is started; the degree to which the value within the second temperature and humidity range deviates from the target temperature and humidity value is greater than the degree to which the value within the first temperature and humidity range deviates from the target temperature and humidity value.
[0072] When the comprehensive temperature and humidity value is within the third temperature and humidity range, the strong control strategy is started; wherein the value within the third temperature and humidity range deviates from the target temperature and humidity value to a greater extent than the value within the second temperature and humidity range deviates from the target temperature and humidity value.
[0073] For example, the first temperature and humidity range: the temperature and humidity corresponding to the comprehensive temperature and humidity values are between 24-26℃ and 55%-65% respectively. The range of the comprehensive temperature and humidity values can be obtained by calculation. The range is different under different weights. Within this range, the system considers the environment to be stable, so it will maintain the current device operation status. Correspondingly, the range of the comprehensive temperature and humidity values is: 39.5-45.5.
[0074] The second temperature and humidity range: The temperature corresponding to the comprehensive temperature and humidity value is 23-24℃ or 26-27℃, and the corresponding humidity corresponding to the comprehensive temperature and humidity value is between 50%-55% or 65%-70%; that is, the temperature is 23-24 degrees Celsius and the humidity is 50-55%; or the temperature is 26-27 degrees Celsius and the humidity is 65-70%. The range of the comprehensive temperature and humidity values can be obtained by calculation, and the range is different under different weights. If the acceleration exceeds the assumed acceleration threshold, the system will start the pre-control strategy, such as fine-tuning the output of the heating, cooling or humidification equipment. Correspondingly, the range of the comprehensive temperature and humidity values is: 36.5-39.5 or 45.5-48.5.
[0075] The third temperature and humidity range: the temperature corresponding to the comprehensive temperature and humidity value is lower than 23°C or higher than 27°C, and the humidity corresponding to the comprehensive temperature and humidity value is lower than 50% or higher than 70%. The range of the comprehensive temperature and humidity value can be obtained by calculation, and the range is different under different weights. Within this range, the system will start a strong control strategy, such as turning on the backup heater, refrigerator or humidifier, and sending an alarm to notify the operator. Correspondingly, the range of the comprehensive temperature and humidity value is: less than 36.5 or greater than 48.5.
[0076] It not only relies on the current comprehensive temperature and humidity values, but also takes into account the changing trend of the comprehensive temperature and humidity values, so as to be able to predict and control the environment more accurately. In addition, by setting different control strategies, the system can take mild measures when the comprehensive temperature and humidity values deviate slightly from the target, and take stronger measures when the deviation is large, so as to achieve more efficient environmental control.
[0077] Among them, the pre-control strategy includes calculating the first proportional value for adjusting the comprehensive temperature and humidity values; the first proportional value = b1×the rate of change of the pre-adjustment temperature value of the air conditioner + b2×the rate of change of the speed of the fan + b3×the rate of change of the pre-adjustment humidity value of the humidifying device + b4×the rate of change of the pre-adjustment temperature value of the heating device; b1 is the weight corresponding to the air conditioner in the pre-control strategy; b2 is the weight corresponding to the fan in the pre-control strategy; b3 is the weight corresponding to the humidifying device in the pre-control strategy; b4 is the weight corresponding to the heating device in the pre-control strategy.
[0078] Among them, the strong control strategy includes calculating the second proportional value of the comprehensive temperature and humidity value; the second proportional value = c1×the rate of change of the pre-adjusted temperature value of the air conditioner + c2×the rate of change of the speed of the fan + c3×the rate of change of the pre-adjusted humidity value of the humidifier + c4×the rate of change of the pre-adjusted temperature value of the heating device; c1 is the weight corresponding to the air conditioner in the strong control strategy; c2 is the weight corresponding to the fan in the strong control strategy; c3 is the weight corresponding to the humidifier in the strong control strategy; c4 is the weight corresponding to the heating device in the strong control strategy. For example, suppose there are the following rates of change and weights of device parameters:
[0079] The change rate of the pre-adjusted temperature value of the air conditioner: 0.5℃ / minute, b1=0.3, c1=0.4;
[0080] The rate of change of the fan speed: 10 rpm, b2=0.2, c2=0.3;
[0081] The change rate of the pre-adjusted humidity value of the humidification equipment: 2% / minute, b3=0.25, c3=0.3;
[0082] The rate of change of the pre-adjusted temperature value of the heating device is: 0.3°C / minute, b4=0.25, c4=0.3; wherein the sum of c1 to c4 is greater than 1.
[0083] Calculation of the first proportional value of the pre-control strategy:
[0084] The first ratio value = 0.3 × 0.5 + 0.2 × 10 + 0.25 × 2 + 0.25 × 0.3 = 0.15 + 2 + 0.5 + 0.075 = 2.725;
[0085] The first proportional value is used to fine-tune the operating parameters of the environmental control device to achieve smooth regulation of temperature and humidity.
[0086] The second proportional value calculation of the strong control strategy:
[0087] The second ratio value = 0.4 × 0.5 + 0.3 × 10 + 0.3 × 2 + 0.3 × 0.3 = 0.2 + 3 + 0.6 + 0.09 = 3.89;
[0088] The second proportional value will be used to guide the system to take stronger control measures to quickly adjust the environmental conditions back to the target value.
[0089] If the comprehensive temperature and humidity value is greater than or equal to the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset negative range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifier, and the change rate of the pre-adjusted temperature value of the heating device; conversely, if the comprehensive temperature and humidity value is less than the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset positive range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifier, and the change rate of the pre-adjusted temperature value of the heating device; wherein, c1>b1; c2>b2; c3>b3; c4>b4. When the comprehensive temperature and humidity value is greater than or equal to the target temperature and humidity value, the system needs to take measures to reduce the temperature and humidity. At this time, the system will use a random function to generate random numbers within a preset negative range, which represent the change rates of air conditioning temperature adjustment, fan speed, humidification equipment humidity adjustment, and heating equipment temperature adjustment. Since they are generated within a negative range, these rates of change will guide the device to adjust in the direction of reducing the output. On the contrary, if the comprehensive temperature and humidity value is less than the target temperature and humidity value, the system needs to increase the temperature and humidity. At this time, the system will generate random numbers within a preset positive range to guide the device to adjust in the direction of increasing the output. Among them, in the pre-control strategy and the strong control strategy, different devices are assigned different weights. These weights reflect the importance and efficiency of each device in the process of adjusting the temperature and humidity. For example, c1>b1 means that in the strong control strategy, the impact of air conditioning temperature regulation is given a higher weight because it is more effective in quickly changing the ambient temperature. The first ratio value is always less than the second ratio value, and in other embodiments it can also be set to a multiple relationship to constrain the selection of the overall random number.
[0090] Examples of positive ranges or negative ranges are as follows: for example, the rate of change of the pre-adjusted temperature value of the air conditioner: +0.1 to +0.5°C / minute; randomly selected, for example, +0.3°C / minute;
[0091] The rate of change of the fan speed: +5 to +15 rpm; randomly selected, for example, +10 rpm;
[0092] The rate of change of the pre-adjusted humidity value of the humidifying device: -1% to -3% / minute; randomly selected, for example -2% / minute;
[0093] Rate of change of the pre-adjusted temperature value of the heating device: -0.1 to -0.3°C / minute; randomly selected, for example -0.2°C / minute.
[0094] The control strategy can be flexibly adjusted according to different situations. Minor adjustments can be made when the temperature and humidity are close to the target values, that is, the pre-control strategy. More decisive actions can also be taken when the temperature and humidity deviate seriously from the target values, that is, the strong control strategy. The hierarchical control method helps to improve the stability and response speed of the system while avoiding over-adjustment and energy waste.
[0095] Reference Figure 2 , the method comprises the following steps:
[0096] The air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters of different areas in the confined space are obtained in real time through sensors. Considering the unevenness of temperature and humidity, the confined space is divided into multiple areas, and the environment of each area is analyzed separately, and then comprehensively analyzed to improve the accuracy of data monitoring. For example, a square confined space is divided into four areas for separate temperature and humidity measurements.
[0097] The weighted average algorithm is used to calculate the regional comprehensive temperature value and regional comprehensive humidity value in each area;
[0098] According to the regional comprehensive temperature value and regional comprehensive humidity value in each area, the regional comprehensive temperature and humidity value in each area is calculated by using a weighted average algorithm.
[0099] Based on the regional comprehensive temperature and humidity values of each area, the comprehensive temperature and humidity values in the confined space are calculated according to the weight of each area.
[0100] According to the regional comprehensive temperature and humidity values in each area, the discrete value of the regional comprehensive temperature and humidity value is calculated; if the discrete value exceeds the set threshold, the fan speed is adjusted; the larger the discrete value, the faster the fan speed; the smaller the discrete value, the slower the fan speed. If the discrete value of a certain area exceeds the set threshold, it means that the environmental conditions of the area are significantly different from those of other areas. At this time, the system will adjust the fan speed to balance the temperature and humidity distribution in the space. The larger the discrete value, the more significant the difference, and the fan speed will be increased accordingly to strengthen air flow and promote the balanced distribution of temperature and humidity. Conversely, if the discrete value decreases, it means that the difference between areas is shrinking, and the fan speed will also slow down accordingly. For example, assume that the comprehensive temperature and humidity value of area A is 70 (an indicator that integrates temperature and humidity), area B is 65, area C is 72, and area D is 68. The set discrete value threshold is 5. Calculate the degree of discreteness of these four values. If the calculated discrete value exceeds 5, the system will adjust the fan speed accordingly according to the size of the discrete value. If the discrete value is large, such as 10, it means that the temperature and humidity in each area are significantly different, and the fan speed will be greatly increased to quickly balance the temperature and humidity in the space. As the temperature and humidity in the space gradually balance, the discrete value will decrease and the fan speed will also decrease accordingly.
[0101] Not only is it able to monitor and regulate environmental conditions throughout the confined space, it is also able to take into account differences between different areas within the space and actively reduce these differences by adjusting the fan speed, thereby creating a more uniform and stable environment.
[0102] Reference Figure 3 , the method further comprises the following steps:
[0103] Perform spectrum analysis on the integrated temperature value within the set time period, and convert the waveform of the integrated temperature value in the time domain dimension into the first frequency domain data in the frequency domain dimension. Spectral analysis is a technique that converts a time domain signal, that is, a signal that changes over time, into a frequency domain signal, so that the intensity and distribution of different frequency components in the signal can be observed. Through spectrum analysis, the system converts the time domain waveform of the integrated temperature value into the first frequency domain data in the frequency domain dimension. These data reflect the intensity of different frequency components in the temperature signal.
[0104] A first frequency is extracted from the first frequency domain data, which is usually the main frequency component in the signal.
[0105] If the first frequency exceeds the set threshold, the size of a1 is adjusted according to the first frequency; the larger the first frequency, the smaller a1; the smaller the first frequency, the larger a1. If this first frequency exceeds the set threshold, it means that the temperature signal has a significant change at this frequency. At this time, the system will adjust the weight a1, the weight of the comprehensive temperature value in the comprehensive temperature and humidity calculation, according to the size of the first frequency. The specific adjustment rule is: the larger the first frequency, the more frequent the temperature fluctuation, so the value of a1 is reduced to reduce the impact of temperature fluctuations on the comprehensive temperature and humidity values; conversely, the smaller the first frequency, the relatively stable temperature, so the value of a1 is increased to increase the importance of temperature in the comprehensive temperature and humidity calculation. For example, suppose the system sets a threshold of F, and the first frequency extracted after spectrum analysis is F1. If F1>F, it means that the temperature fluctuates significantly. At this time, the system will reduce the value of a1 according to the size of F1. For example, a linear or nonlinear function can be set to adjust a1, such as a1=ak×(F1-F), where k is a positive proportional coefficient and a is the upper limit of a1. If F1<=F, it means that the temperature is relatively stable. At this time, the system can appropriately increase the value of a1 to increase the importance of temperature in the comprehensive temperature and humidity calculation. The adjustment method can be a similar linear or nonlinear function.
[0106] Perform spectrum analysis on the comprehensive humidity value within the set time period, and convert the waveform of the comprehensive humidity value in the time domain dimension into second frequency domain data in the frequency domain dimension; the spectrum analysis method is the same as above.
[0107] A second frequency is extracted from the obtained second frequency domain data; usually the main frequency component in the signal.
[0108] If the second frequency exceeds the set threshold, the size of a2 is adjusted according to the second frequency; the larger the second frequency, the smaller a2; the smaller the second frequency, the larger a2. If the second frequency exceeds this threshold, it means that the comprehensive humidity value changes frequently or drastically. At this time, the system will dynamically adjust the weight a2 according to the size of the second frequency. The adjustment method is actually to adjust the weight of the comprehensive humidity value in the calculation of the comprehensive temperature and humidity value according to the frequency of humidity change. For example, assume that the second frequency is F2 and the set threshold is H. When F2>H, it indicates that the humidity fluctuates greatly. At this time, a2 will be adjusted down to reduce the impact of humidity fluctuations on the comprehensive judgment. The specific adjustment function can be linear, such as a2=m1-m×(F2-H), where m is the adjustment coefficient and m1 is the maximum weight of humidity. When F2<=H, it indicates that the humidity is relatively stable. At this time, the value of a2 can be appropriately increased to enhance the importance of humidity in the comprehensive judgment.
[0109] The weights of temperature and humidity in the calculation of comprehensive temperature and humidity values are dynamically adjusted according to their actual fluctuations. This helps the system to more accurately reflect the actual conditions of the environment and adjust the control strategy in time when environmental parameters change significantly to maintain environmental stability.
[0110] When the humidifying device is an atomizer, the method comprises the following steps:
[0111] According to the first change rate of the integrated temperature value, the value of b3 is adjusted in a positive correlation; the larger the first change rate, the larger b3; the smaller the first change rate, the smaller b3. If the first change rate is large, it means that the ambient temperature is changing rapidly, which requires a faster adjustment of the humidity to adapt to the temperature change. Therefore, the system will increase the value of b3 so that the humidification effect of the atomizer is given a greater weight when adjusting the temperature and humidity. On the contrary, if the first change rate is small, it means that the ambient temperature is relatively stable, and the system will reduce the value of b3 to avoid over-humidification.
[0112] Since the humidification method of the atomizer is relatively gentle, considering the gentle characteristics of the atomizer humidification method, this method flexibly adjusts the humidification effect of the atomizer according to the changes in the ambient temperature to maintain the balance and stability of the ambient temperature and humidity. For example, suppose the system detects that the first change rate of the integrated temperature value is ΔT / Δt, ΔT represents the temperature change, and Δt represents the time change. If the value of ΔT / Δt is large, it means that the ambient temperature is changing rapidly. At this time, the system will appropriately increase the value of b3 to enhance the humidification effect of the atomizer, so as to adapt to the temperature change more quickly. If the value of ΔT / Δt is small, it means that the ambient temperature is relatively stable. At this time, the system will appropriately reduce the value of b3 to avoid the problem of excessive ambient humidity caused by excessive humidification.
[0113] When the humidifying device is a sprinkler head, the method comprises the following steps:
[0114] According to the second rate of change of the integrated temperature value, the value of c3 is adjusted inversely; the larger the second rate of change, the smaller c3; the smaller the second rate of change, the larger c3. If the second rate of change is large, it means that the ambient temperature is changing rapidly. Since the humidification method of the sprinkler head has a direct impact on the temperature; for example, the use of cold water spraying may cause the temperature to drop, reducing the value of c3 can reduce the further impact of the sprinkler head on the temperature change, thereby avoiding a sharp fluctuation in temperature. If the second rate of change is small, it means that the ambient temperature is relatively stable. In this case, increasing the value of c3 means that the system trusts the humidification effect of the sprinkler head more, or is more willing to let the sprinkler head fine-tune the ambient temperature when necessary. Similarly, for example, suppose that the system detects that the second rate of change of the integrated temperature value is ΔT' / Δt, ΔT' represents the temperature change in another time period, and Δt represents the corresponding time change. If the value of ΔT' / Δt is large, it means that the ambient temperature is changing rapidly. At this time, the system will reduce the value of c3 to reduce the direct impact of the sprinkler head on the ambient temperature and prevent excessive temperature fluctuations. If the value of ΔT' / Δt is small, it means that the ambient temperature is relatively stable. The system will increase the value of c3 to fine-tune the ambient temperature through the sprinkler heads when necessary while maintaining an appropriate humidity level.
[0115] Since the humidification method of the sprinkler head is relatively fast and direct, another dynamic adjustment strategy is provided, that is, responding to the second change rate of the comprehensive temperature value by anti-correlated adjustment of the value of parameter c3; flexibly adjusting the possible impact of the sprinkler head on the temperature according to the changes in the ambient temperature to maintain the relative stability of the ambient temperature and humidity.
[0116] The method further comprises the steps of:
[0117] Adjust the rotation angle of the fan according to the regional comprehensive temperature value and regional comprehensive humidity value of each area in each area position:
[0118] By comparing and determining the area with the highest regional comprehensive temperature value or the area with the highest regional comprehensive humidity value, the fan angle is adjusted toward the area with the highest regional comprehensive temperature value or the area with the highest regional comprehensive humidity value. Once the area with the highest regional comprehensive humidity value is determined, the system will adjust the fan angle to face this area. The purpose is to accelerate the balanced distribution of humidity by increasing the air flow in the area.
[0119] The speed of the fan is adjusted according to the size of the comprehensive temperature value or the comprehensive humidity value; the larger the regional comprehensive temperature value or the regional comprehensive humidity value, the larger the speed; the smaller the regional comprehensive temperature value or the regional comprehensive humidity value, the smaller the speed. If the regional comprehensive humidity value is high, the system will increase the speed of the fan to increase air flow, thereby helping to reduce humidity. On the contrary, if the regional comprehensive humidity value is low, the system will reduce the speed of the fan to reduce unnecessary air flow and maintain the stability of the environment. For example, assume that an indoor environment is divided into three areas A, B, and C, each of which is equipped with a humidity sensor. The system monitors in real time that the regional comprehensive humidity value of area A is significantly higher than that of areas B and C. Based on this information, the system first adjusts the rotation angle of the fan to face area A. At the same time, since the regional comprehensive humidity value of area A is high, the system increases the speed of the fan to increase air flow in the area and accelerate the diffusion of moisture. Over time, if the regional comprehensive humidity of area A gradually decreases, the system will reduce the speed of the fan accordingly and gradually adjust the rotation angle of the fan to adapt to the new humidity distribution.
[0120] The above method can be used to control the fan more intelligently to respond to humidity changes in different areas.
[0121] The method comprises the following steps:
[0122] When the soil is loose soil or sandy soil; the soil includes interconnected soil gaps; the gaps allow air to flow.
[0123] According to the multiple comprehensive humidity values in multiple areas, the direction of the fan is adjusted; the blowing direction of the fan is from the direction of high comprehensive humidity value to the direction of low comprehensive humidity value; and the blowing angle is 0° or acute angle relative to the horizontal plane; such an angle setting helps to use wind force to generate negative pressure effect in the soil gaps, thereby more effectively attracting moisture. When the wind force reaches a certain speed, a relative negative pressure will be generated in the soil gaps in the dry area, which helps to attract moisture from the surrounding areas with higher humidity and achieve natural humidity regulation.
[0124] Calculate the difference between the maximum integrated humidity value and the minimum integrated humidity value;
[0125] The greater the difference between the largest and smallest comprehensive humidity values, the smaller the fan blowing angle; the smaller the difference, the greater the fan blowing angle. The larger the difference, the more uneven the humidity distribution. At this time, the system will reduce the fan blowing angle to blow moisture from the high humidity area to the low humidity area more directly and effectively. The smaller the difference, the relatively balanced humidity distribution. At this time, the system will increase the fan blowing angle to cover a wider area and maintain a balanced humidity state.
[0126] The soil is loose sand or has gaps in sand and gravel, which can allow wind to enter. Through the action of the fan, the humidity can be quickly adjusted, so that when the humidity changes, the temperature can also change, so as to achieve more timely temperature and humidity control, and more stable temperature and humidity control. By increasing the wind force in the dry area, and making the wind parallel to the ground, or toward the top or obliquely above the dry area; when the wind force reaches a certain speed, since the soil is a soil with gaps, a relative negative pressure is generated in the soil gaps in the dry part, which can attract moisture from the surrounding areas with higher humidity, so that the humidity in the soil can be adjusted by the action of wind force. Therefore, the system can intelligently adjust the direction and blowing angle of the fan to adapt to the humidity requirements of different areas. This method not only helps to achieve more timely temperature and humidity control, but also improves the stability of control. Especially in an environment with loose soil or sandy soil, this method can make full use of the soil gaps and the wind force of the fan to achieve natural regulation and balanced distribution of humidity.
[0127] An embodiment of the present application further discloses a temperature and humidity control system for a simulated environment, comprising a processor, wherein a program of any one of the temperature and humidity control methods for a simulated environment described above is run on the processor.
[0128] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for controlling temperature and humidity in a simulated environment, characterized in that: The steps include: Obtain air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters in a confined space in real time; Calculate a comprehensive temperature value using a weighted average algorithm based on the air temperature parameter and the soil temperature parameter; Calculate the comprehensive humidity value by using a weighted average algorithm according to the air humidity parameter and the soil humidity parameter; According to the comprehensive temperature value and the comprehensive humidity value; a weighted average algorithm is used to calculate the comprehensive temperature and humidity value; the comprehensive temperature and humidity value = a1×comprehensive temperature value + a2×comprehensive humidity value; wherein a1 is the weight corresponding to the comprehensive temperature value, and a2 is the weight corresponding to the comprehensive humidity value; Get the preset target temperature and humidity values; Analyze the rising and falling trends of the comprehensive temperature and humidity values according to the comprehensive temperature and humidity values, and calculate the acceleration of the comprehensive temperature and humidity values; When the comprehensive temperature and humidity value is within the first temperature and humidity range, the current equipment operation state is maintained; the target temperature and humidity value is within the first temperature and humidity range; When the comprehensive temperature and humidity value is within the second temperature and humidity range, and the absolute value of the acceleration exceeds the acceleration threshold of the temperature and humidity, the pre-control strategy is started; the value within the second temperature and humidity range deviates from the target temperature and humidity value to a greater extent than the value within the first temperature and humidity range deviates from the target temperature and humidity value; When the comprehensive temperature and humidity value is within the third temperature and humidity range, the strong control strategy is started; wherein the value within the third temperature and humidity range deviates from the target temperature and humidity value to a greater extent than the value within the second temperature and humidity range deviates from the target temperature and humidity value; Wherein, the pre-control strategy includes calculating a first proportional value for adjusting the comprehensive temperature and humidity values; the first proportional value=b1×the rate of change of the pre-adjusted temperature value of the air conditioner+b2×the rate of change of the speed of the fan+b3×the rate of change of the pre-adjusted humidity value of the humidifying device+b4×the rate of change of the pre-adjusted temperature value of the heating device; b1 is the weight corresponding to the air conditioner in the pre-control strategy; b2 is the weight corresponding to the fan in the pre-control strategy; b3 is the weight corresponding to the humidifying device in the pre-control strategy; b4 is the weight corresponding to the heating device in the pre-control strategy; the first proportional value is the total adjustment ratio corresponding to the rate of change of the pre-adjusted temperature value of the air conditioner, the rate of change of the speed of the fan, the rate of change of the pre-adjusted humidity value of the humidifying device and the rate of change of the pre-adjusted temperature value of the heating device, which is used to constrain the degree of the comprehensive adjustment change rate of the above four devices; The strong control strategy includes calculating a second proportional value for adjusting the comprehensive temperature and humidity value; the second proportional value=c1×the rate of change of the pre-adjusted temperature value of the air conditioner+c2×the rate of change of the speed of the fan+c3×the rate of change of the pre-adjusted humidity value of the humidifying device+c4×the rate of change of the pre-adjusted temperature value of the heating device; c1 is the weight corresponding to the air conditioner in the strong control strategy; c2 is the weight corresponding to the fan in the strong control strategy; c3 is the weight corresponding to the humidifying device in the strong control strategy; c4 is the weight corresponding to the heating device in the strong control strategy; the second proportional value is the total adjustment ratio corresponding to the rate of change of the pre-adjusted temperature value of the air conditioner, the rate of change of the speed of the fan, the rate of change of the pre-adjusted humidity value of the humidifying device and the rate of change of the pre-adjusted temperature value of the heating device, which is used to constrain the degree of the comprehensive adjustment change rate of the above four devices; If the comprehensive temperature and humidity value is greater than or equal to the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset negative number range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifying device, and the change rate of the pre-adjusted temperature value of the heating device; conversely, if the comprehensive temperature and humidity value is less than the target temperature and humidity value, a random function is used to randomly generate uniformly distributed random numbers within a preset positive number range, corresponding to the change rate of the pre-adjusted temperature value of the air conditioner, the change rate of the speed of the fan, the change rate of the pre-adjusted humidity value of the humidifying device, and the change rate of the pre-adjusted temperature value of the heating device; wherein, c1>b1; c2>b2; c3>b3; c4>b4; wherein, the positive number range is a preset data range, and the preset values in the range are all positive numbers; the negative number range is a preset data range, and the preset values in the range are all negative numbers.
2. The method for controlling temperature and humidity in a simulated environment according to claim 1, characterized in that: The method comprises the following steps: Obtain air temperature parameters, soil temperature parameters, air humidity parameters and soil humidity parameters at different locations in a confined space; Calculate the regional comprehensive temperature value and regional comprehensive humidity value in each area; According to the regional comprehensive temperature value and regional comprehensive humidity value in each area, The weighted average algorithm is used to calculate the regional comprehensive temperature and humidity values in each area; Based on the regional comprehensive temperature and humidity values of each area, the comprehensive temperature and humidity values in the confined space are calculated according to the weight of each area; According to the regional comprehensive temperature and humidity values in each area, the discrete value of the regional comprehensive temperature and humidity value is calculated; if the discrete value exceeds the set threshold, the speed of the fan is adjusted; The larger the discrete value, the faster the fan speed; the smaller the discrete value, the slower the fan speed.
3. The method for controlling temperature and humidity in a simulated environment according to claim 1, characterized in that: The method further comprises the steps of: Performing spectrum analysis on the comprehensive temperature value within a set time period, and converting the waveform of the comprehensive temperature value in the time domain dimension into first frequency domain data in the frequency domain dimension; Extracting a first frequency from the first frequency domain data; wherein the first frequency domain data reflects the intensity of different frequency components in the temperature signal, and the first frequency is a main frequency, that is, a frequency component corresponding to the maximum intensity; If the first frequency exceeds the set threshold, the value of a1 is adjusted according to the first frequency; the larger the first frequency, the smaller a1; the smaller the first frequency, the larger a1; Performing spectrum analysis on the comprehensive humidity value within a set time period, and converting the waveform of the comprehensive humidity value in the time domain dimension into second frequency domain data in the frequency domain dimension; The second frequency domain data is obtained and a second frequency is extracted; wherein the second frequency domain data reflects the intensity of different frequency components in the humidity signal, and the second frequency is the main frequency, that is, the frequency component corresponding to the maximum intensity; If the second frequency exceeds the set threshold, the size of a2 is adjusted according to the second frequency; the larger the second frequency is, the smaller a2 is; the smaller the second frequency is, the larger a2 is.
4. The method for controlling temperature and humidity in a simulated environment according to claim 1, characterized in that: When the humidifying device is an atomizer, the method comprises the following steps: According to the first change rate of the integrated temperature value, the value of b3 is adjusted in a positive correlation; the larger the first change rate, the larger b3; the smaller the first change rate, the smaller b3.
5. The method for controlling temperature and humidity in a simulated environment according to claim 1, characterized in that: When the humidifying device is a sprinkler head, the method comprises the following steps: According to the second change rate of the integrated temperature value, the value of c3 is adjusted in an anti-correlation manner; the greater the second change rate, the smaller c3; the smaller the second change rate, the greater c3.
6. The method for controlling temperature and humidity in a simulated environment according to claim 2, characterized in that: The method further comprises the steps of: According to the regional comprehensive temperature value and the regional comprehensive humidity value of each area in each area position, the rotation angle of the fan is adjusted; By comparing and determining the area corresponding to the highest regional comprehensive temperature value or the area corresponding to the highest regional comprehensive humidity value, the angle of the fan is adjusted toward the area corresponding to the highest regional comprehensive temperature value or the area corresponding to the highest regional comprehensive humidity value; The speed of the fan is adjusted in a positive correlation according to the size of the regional comprehensive temperature value or the regional comprehensive humidity value; the larger the regional comprehensive temperature value or the regional comprehensive humidity value is, the higher the speed is; the smaller the regional comprehensive temperature value or the regional comprehensive humidity value is, the lower the speed is.
7. The method for controlling temperature and humidity in a simulated environment according to claim 2, characterized in that: The method comprises the following steps: When the soil is loose soil or sandy soil; the soil includes interconnected soil gaps; According to multiple comprehensive humidity values in multiple area positions, the direction of the fan is adjusted; so that the blowing direction of the fan blows from the direction of high comprehensive humidity value to the direction of low comprehensive humidity value; and the blowing angle is 0° or an acute angle relative to the horizontal plane; Calculate the difference between the maximum integrated humidity value and the minimum integrated humidity value; The greater the difference between the maximum integrated humidity value and the minimum integrated humidity value, the smaller the blowing angle of the fan; the smaller the difference, the greater the blowing angle of the fan.
8. A temperature and humidity control system for simulating an environment, characterized in that: It comprises a processor, in which a program of the temperature and humidity control method of the simulated environment as described in any one of claims 1 to 7 is run.
