Detailed Description
The application provides a heating method, a heating system and a heating device, and the scheme is applied to the technical field of temperature control. The actual temperature generated by the first heating module is dynamically changed within a certain temperature range taking the target temperature as the center by adjusting the duty ratio of the first PWM signal, so that the actual temperature is not greatly deviated from the target temperature, and the control accuracy of the actual temperature and the use experience of a user are improved.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a schematic flow chart of a heating method according to the present application, including:
S11, outputting a first PWM signal of a current heating period to control the first heating module to heat and obtain the actual temperature of the current heating period for a plurality of times;
s12, judging whether absolute values of differences between the actual temperature and the target temperature which are not less than the first preset times are smaller than preset differences, if yes, entering S13, and if no, entering S14;
S13, maintaining the duty ratio of a first PWM signal of the next heating period;
And S14, adjusting the duty ratio of the first PWM signal of the next heating period to reduce the absolute value of the difference between the actual temperature and the target temperature.
In some application scenes, the required target temperature is larger than the actual temperature, heating is needed to raise the actual temperature, and conventional heating methods such as an electric blanket and a hot water bag are generally adopted in the prior art, but cannot be adjusted in real time according to the actual temperature, so that the control accuracy of the temperature is low, the actual temperature cannot be flexibly maintained at the target temperature, and the use experience of a user is reduced. The application scene can be used for maintaining the body temperature of a patient in the medical field and also can be used for maintaining the indoor temperature in the living scene.
When the application scene is that the body temperature of a patient is maintained in the medical field, specifically, the body temperature is required to be constant, and the heat generation and the heat dissipation are kept in dynamic balance through a body temperature adjusting system, so that the central body temperature is maintained at 37 ℃ plus or minus 0.4 ℃. Hypothermia refers to a core body temperature below 36 ℃, and core body temperatures between 34 ℃ and 36 ℃ are generally referred to clinically as mild hypothermia. Patients often get into the operating room with normothermia, but may be hypothermic during anesthesia and surgery. The decrease of body temperature is mainly caused by factors such as exposure or waiting for towel spreading or ice-cold and humid disinfectant, anesthetic use, low ambient temperature, psychological tension and the like, and the hypothermia can cause a plurality of complications such as coagulation mechanism disorder, wound cracking or healing time extension, infection increase and drug metabolism speed reduction, and can also cause serious heart and lung diseases, which can bring adverse effects to postoperative rehabilitation of patients, prolong hospitalization time, increase economic burden of the patients and influence life health of the patients. Therefore, maintaining the body temperature of the patient during surgery is a problem which needs to be solved clinically at present, and effective monitoring and adjusting of the body temperature are one of important measures for ensuring the success of anesthesia surgery and reducing postoperative complications. When the electric blanket, the hot water bag and the like are adopted to preserve heat of patients, the temperature control precision is low, the actual temperature cannot be flexibly maintained at the target temperature, and the use effect is unsatisfactory.
In order to solve the technical problems, the control of the first heating module is realized through the first PWM (Pulse Width Modulation ) signal, the duty ratio of the first PWM signal is adjusted according to the actual temperature, the control precision of the temperature is improved, and the comfort and the intelligence of the temperature adjustment in the heating process are ensured.
Specifically, in S11, the heating temperature of the first heating module may be positively correlated with the positive pulse width duty cycle of the first PWM signal, that is, the greater the positive pulse width duty cycle of the first PWM signal, the greater the heating temperature of the first heating module, and thus the greater the actual temperature heated by the first heating module.
For the heating period, a timer for timing the heating period can be started, for example, when the timer is applied to the medical field to maintain the body temperature of a patient, the selected heating period needs to ensure that the temperature rise in each heating period is not more than 0.25 degree when the first heating module heats at the standard temperature of 21-25 degrees at the full duty cycle pulse width, the requirement of the medical field on temperature errors (such as +/-1) is ensured, the temperature can be detected in real time, the duty cycle of the next heating period is adjusted in advance, and the temperature in the next heating period is not more than the corresponding threshold.
And the actual temperature is acquired for a plurality of times in the current heating period, namely the actual temperature is detected for a plurality of times in one heating period, so that the real-time performance of the actual temperature acquisition is ensured. The heating period is generally set to be an integer multiplier or an integer divisor of 10ms, when the heating period is less than 100ms, the temperature detection can be set to be carried out once every tenth of the heating period, and when the heating period is greater than or equal to 100ms, the temperature detection can be set to be carried out once every 10ms, so that the timeliness of the temperature detection is ensured, and the detection sensitivity is ensured.
In S12, the actual temperature in one heating period is generally in the same temperature range, so that, in the actual temperatures acquired multiple times in the current heating period, when the absolute value of the difference value between the actual temperature and the target temperature is smaller than the actual temperature of the preset difference value and not smaller than the first preset number of times, the temperature in the current heating period can be considered to meet the actual requirement, that is, the temperature approaches the target temperature, the duty ratio of the first PWM signal in the next period is not required to be changed to be adjusted, otherwise, the duty ratio of the first PWM signal in the next period is required to be adjusted to enable the actual temperature to approach the target temperature.
In S13 and S14, according to the difference between the actual temperature and the target temperature in the current heating period, the duty ratio of the first PWM signal in the next heating period is adjusted, so that the actual temperature is always and dynamically maintained within a range centered on the target temperature, that is, the temperature change within the range is tolerable (target temperature-preset difference value, target temperature+preset difference value), and once the temperature change exceeds the range, the temperature is adjusted to return to the range again, so that the actual temperature is not greatly deviated from the target temperature, and the control accuracy of the actual temperature and the user experience are improved.
In summary, the application provides a heating method, and the scheme is applied to the technical field of temperature control. The method comprises the steps of outputting a first PWM signal of a current heating period to control a first heating module to heat and obtain the actual temperature of the current heating period for a plurality of times, judging whether absolute values of differences between the actual temperature and target temperature which are not smaller than a first preset number of times are smaller than preset differences, if yes, keeping the duty ratio of the first PWM signal of a next heating period, and if not, adjusting the duty ratio of the first PWM signal of the next heating period to enable the absolute value of the differences between the actual temperature and the target temperature to be reduced. The actual temperature generated by the first heating module is dynamically changed within a certain temperature range taking the target temperature as the center by adjusting the duty ratio of the first PWM signal, so that the actual temperature is not greatly deviated from the target temperature, and the control accuracy of the actual temperature and the use experience of a user are improved.
Based on the above embodiments:
As a preferred embodiment, adjusting the duty cycle of the first PWM signal for the next heating cycle to reduce the absolute value of the difference between the actual temperature and the target temperature includes:
When the actual temperature which is not less than the second preset times is less than the critical threshold, increasing the duty ratio of the first PWM signal of the next heating period, and subtracting the preset difference value from the target temperature to be the critical threshold;
When the actual temperature which is not less than the third preset times is greater than or equal to the out-of-limit threshold and the actual temperature which is not less than the fourth preset times continuously is in a non-descending trend, the duty ratio of the first PWM signal of the next heating period is reduced, and the out-of-limit threshold minus the preset difference value is the target temperature;
When the actual temperature which is not smaller than the third preset times is larger than or equal to the out-of-limit threshold value and the actual temperature which is continuously not smaller than the fourth preset times is in a descending trend, the duty ratio of the first PWM signal of the next heating period is maintained.
In this embodiment, the target temperature minus the preset difference is set as a critical threshold, the threshold is exceeded, the preset difference is subtracted as the target temperature, the duty ratio of the first PWM signal of the next heating period is not adjusted within the range (critical threshold, threshold exceeded), and the adjustment is performed if the duty ratio exceeds the range.
Specifically, the adjusting process is divided into two cases, namely, when the actual temperature of most (i.e. not less than the second preset times) of the current heating period is smaller than the critical threshold value, the duty ratio of the first PWM signal of the next heating period is increased to increase the actual temperature, and when the actual temperature of most (i.e. not less than the third preset times) of the current heating period is larger than or equal to the out-of-limit threshold value, the duty ratio of the first PWM signal of the next heating period is decreased to decrease the actual temperature.
It should be noted that, in the second case, the second case is also divided into two cases, that is, when a part of the current heating period (i.e., not less than the fourth preset number of times, for example, 3 times) of continuous actual temperatures has a non-decreasing trend, it indicates that the actual temperatures are greater than the threshold value and still rise, the duty ratio of the first PWM signal in the next heating period needs to be continuously reduced until the actual temperatures decrease, and that when a part of the current heating period (i.e., not less than the fourth preset number of times, for example, 3 times) of continuous actual temperatures has a decreasing trend, it indicates that the actual temperatures are greater than the threshold value but have already begun to decrease, and the actual temperatures may continuously decrease without continuously reducing the duty ratio of the first PWM signal in the next heating period. The first and second cases may specifically be that, when the actual temperature is less than the critical threshold, the duty ratio of the first PWM signal of the next heating period is increased, the actual temperature rises to the range of the critical threshold and the out-of-limit threshold, and the duty ratio is kept unchanged at this time, but the actual temperature will continue to rise, when the actual temperature is greater than the out-of-limit threshold, the duty ratio of the first PWM signal of the next heating period needs to be reduced, and when the actual temperature does not show a decreasing trend, the duty ratio is continuously reduced until the decreasing trend appears, the decreasing duty ratio is stopped, and the actual temperature will gradually decrease to be less than the critical threshold.
And whether the duty ratio is continuously reduced can be determined according to whether the actual temperature shows a descending trend or whether the actual temperature rises to a critical threshold value or a range exceeding the critical threshold value, when the duty ratio is kept unchanged, a flag bit is made, then the duty ratio is controlled to be reduced only when the flag bit is set (the flag bit is marked), and when the actual temperature shows the descending trend, the flag bit is reset, the action of reducing the duty ratio is not executed any more, so that the duty ratio reduction is stopped.
In addition, the first preset number of times, the second preset number of times, the third preset number of times and the fourth preset number of times may be the same or different, and are not particularly limited herein.
In summary, according to the relation among the actual temperature, the critical threshold and the out-of-limit threshold, the duty ratio of the first PWM signal in the next heating period is adjusted respectively, so that the actual temperature is accurately controlled.
As a preferred embodiment, further comprising:
and controlling the fan to send the air heated by the first heating module to a preset position.
In this embodiment, after the air is heated by the first heating module, the heated air may be sent to a preset position by the fan to be heated.
Specifically, the fan can be controlled according to the related settings of the processor, and the fan can also interact with the user through an interaction interface, such as a display screen module, so as to receive the wind speed set by the user. The wind speed of the fan can be adjusted in three steps of low, medium and high, the fan is originally defaulted to be in high wind speed, the fan works in full power pulse width, when a user adjusts a wind speed button to reduce a wind speed gear, the display screen module sends data to the processor, the processor receives an instruction to control the reduction of the working pulse width of the fan to reduce the wind speed, and conversely, when the wind speed gear is increased, the processor controls the increase of the working pulse width of the fan to increase the wind speed, so that the wind speed is adjusted.
The method comprises the steps of starting a timer on programming, setting a certain timing period as a blowing period, designing a starting duty ratio of 40% as low-gear wind speed, a starting duty ratio of 70% as medium-gear wind speed, and a starting duty ratio of 100% as high wind speed, wherein when a user selects a corresponding wind speed gear, the processor controls to start a pulse width of the corresponding duty ratio to blow a fan.
Compared with the heating measures of an electric blanket, a hot water bag and the like adopted in the prior art, the heating measures of heating air and then blowing air avoid the risks of electric leakage of the electric blanket, scalding of the hot water bag and the like.
As a preferred embodiment, increasing the duty ratio of the first PWM signal for the next heating period when there is an actual temperature not less than the second preset number of times that is less than the critical threshold value, includes:
When the actual temperature which is not less than the second preset times is less than a fourth critical value, the duty ratio of the first PWM signal of the next heating period is increased by a fourth increment, wherein the fourth critical value < third critical value < second critical value < first critical value=critical threshold value < target temperature, and the fourth increment > third increment > second increment > first increment;
When the actual temperature which is not smaller than the second preset times is larger than or equal to a fourth critical value and smaller than a third critical value, the duty ratio of the first PWM signal of the next heating period is increased by a third increment;
When the actual temperature which is not smaller than the second preset times is larger than or equal to a third critical value and smaller than a second critical value, the duty ratio of the first PWM signal of the next heating period is increased by a second increment;
When the actual temperature which is not smaller than the second preset times is larger than or equal to the second critical value and smaller than the first critical value, the duty ratio of the first PWM signal of the next heating period is increased by a first increment.
In this embodiment, the increment of the specific increase of the duty ratio of the first PWM signal in the next heating period is determined according to the actual temperature, the increment of the increase is larger when the difference between the actual temperature and the target temperature is larger, and the increment of the increase is smaller when the difference between the actual temperature and the target temperature is smaller, that is, the closer the actual temperature is to the target temperature, the finer adjustment of the temperature is required, so that for example, the actual temperature after adjustment can be prevented from directly exceeding the target temperature.
Specifically, referring to fig. 2, the fourth critical value < the third critical value < the second critical value < the first critical value=the critical threshold value < the target temperature, each two values differ by 0.25, that is, the target temperature minus 0.25 degrees is the first critical value, the target temperature minus 0.5 degrees is the second critical value, the target temperature minus 0.75 degrees is the third critical value, the target temperature minus 1 degree is the fourth critical value, the fourth increment is 10%, the third increment is 5%, the second increment is 3%, and the first increment is 1%.
In summary, by defining 4 thresholds and corresponding increments, the closer the actual temperature is to the target temperature, the finer the temperature control.
As a preferred embodiment, when there is an actual temperature not less than the third preset number of times greater than or equal to the out-of-limit threshold and there is a non-falling trend of actual temperatures continuously not less than the fourth preset number of times, decreasing the duty ratio of the first PWM signal of the next heating period includes:
When the actual temperature which is not smaller than the third preset times is larger than or equal to the first out-of-limit value and smaller than the second out-of-limit value and the actual temperature which is continuously not smaller than the fourth preset times is in a non-descending trend, the duty ratio of the first PWM signal of the next heating period is reduced by a first increment, and the target temperature is less than the out-of-limit threshold value = the first out-of-limit value < the second out-of-limit value < the third out-of-limit value < the fourth out-of-limit value;
When the actual temperature which is not smaller than the third preset times is larger than or equal to the second out-of-limit value and smaller than the third out-of-limit value and the actual temperature which is continuously not smaller than the fourth preset times is in a non-descending trend, the duty ratio of the first PWM signal of the next heating period is reduced by a second increment;
And when the actual temperature which is not smaller than the third preset times is larger than or equal to a third out-of-limit value and smaller than a fourth out-of-limit value and the actual temperature which is continuously not smaller than the fourth preset times is in a non-descending trend, the duty ratio of the first PWM signal of the next heating period is reduced by a third increment.
In this embodiment, the duty ratio of the first PWM signal in the next heating period is specifically reduced by an increment, which is determined according to the actual temperature, and is reduced by a larger increment when the difference between the actual temperature and the target temperature is larger, and is reduced by a smaller increment when the difference between the actual temperature and the target temperature is smaller, that is, the closer the actual temperature is to the target temperature, the finer adjustment of the temperature is required, so that for example, the actual temperature after adjustment is prevented from being directly smaller than the target temperature.
Specifically, referring to fig. 2, the target temperature < threshold value=first threshold value < second threshold value < third threshold value < fourth threshold value, and each two values differ by 0.25, that is, the target temperature plus 0.25 degrees is the first threshold value, the target temperature plus 0.5 degrees is the second threshold value, the target temperature plus 0.75 degrees is the third threshold value, the target temperature plus 1 degree is the fourth threshold value, the fourth increment is 10%, the third increment is 5%, the second increment is 3%, and the first increment is 1%. In this case, referring to fig. 3, after the actual temperature is greater than the fourth out-of-limit value, the heating process of the first heating module may be alerted by the alert module.
It should be further noted that the comparisons shown in fig. 3 are all for judging whether the actual temperatures of the preset times satisfy the conditions, not the single actual temperature. And because the adjustment of the duty ratio is correspondingly the same after being smaller than the first critical value and after being larger than the first out-of-limit value, the actual temperature does not exceed the range from the fourth critical value to the fourth out-of-limit value after heating.
In summary, by defining 4 overruns and corresponding increments, the closer the actual temperature is to the target temperature, the finer the temperature control.
As a preferred embodiment, further comprising:
When the duty ratio of the first PWM signal is increased to 100%, and the absolute value of the difference value between the actual temperature which is not less than the first preset times and the target temperature is not less than the preset difference value, outputting a first PWM signal of the current heating period to control the first heating module to heat, and outputting a second PWM signal to control the second heating module to heat, and acquiring the actual temperature of the current heating period for a plurality of times, wherein the power of the second heating module is higher than that of the first heating module, and the first PWM signal and the second PWM signal are complementary;
judging whether absolute values of differences between the actual temperature and the target temperature which are not less than the first preset times are smaller than preset differences;
If yes, maintaining the duty ratio of the first PWM signal and the second PWM signal of the next heating period;
if not, the duty ratio of the first PWM signal and the second PWM signal of the next heating period is adjusted to reduce the absolute value of the difference between the actual temperature and the target temperature.
In this embodiment, the second heating module has been increased, through the cooperation of first heating module and second heating module use, realize gradually increasing first heating module's heating pulse width, according to different temperature ranges, at the step-by-step second heating module of opening, can satisfy quick, at uniform velocity heating, provide comfortable heating environment, also can satisfy the heating requirement of different scope.
Specifically, the power of the second heating module is higher than that of the first heating module, and when the control signal of the first heating module, that is, the duty ratio of the first PWM signal, reaches 100%, if the target temperature cannot still be reached, the second heating module is continuously turned on, so as to reach the target temperature.
When the temperature is regulated and controlled, namely the actual temperature obtained for a plurality of times in the current heating period, the number of times that the absolute value of the difference value between the actual temperature and the target temperature is smaller than the actual temperature of the preset difference value is not smaller than the first preset number of times, namely the temperature in the current heating period can be considered to be in accordance with the actual demand, namely the temperature is close to the target temperature, the duty ratio of the first PWM signal and the second PWM signal in the next period is not required to be changed for regulation, otherwise, the duty ratio of the first PWM signal and the second PWM signal in the next period is required to be regulated to enable the actual temperature to be close to the target temperature.
In conclusion, the first heating module and the second heating module are used for providing multi-stage temperatures, and when the target temperature cannot be reached, the second heating module is started in time.
In addition, the embodiment may further include a third heating module having a higher power than the second heating module. When the first heating module and the second heating module are heated in full power, the third heating module is started at the same time when the actual temperature does not reach the target temperature yet, and the three heating modules are heated in a combined mode.
As a preferred embodiment, adjusting the duty cycle of the first PWM signal and the second PWM signal for the next heating period such that the absolute value of the difference between the actual temperature and the target temperature is reduced comprises:
when the actual temperature which is not less than the second preset times is less than the critical threshold, increasing the duty ratio of the second PWM signal of the next heating period and reducing the duty ratio of the first PWM signal of the next heating period, wherein the target temperature minus the preset difference value is the critical threshold;
When the actual temperature which is not smaller than the third preset times is larger than or equal to the out-of-limit threshold value and the actual temperature which is not smaller than the fourth preset times continuously is in a non-descending trend, the duty ratio of the second PWM signal of the next heating period is reduced, the duty ratio of the first PWM signal of the next heating period is increased, and the out-of-limit threshold value minus the preset difference value is the target temperature;
and when the actual temperature which is not smaller than the third preset times is larger than or equal to the out-of-limit threshold value and the actual temperature which is continuously not smaller than the fourth preset times is in a descending trend, the duty ratio of the second PWM signal and the first PWM signal of the next heating period is maintained.
In this embodiment, the target temperature minus the preset difference is set as a critical threshold, the threshold is exceeded, the preset difference is subtracted as the target temperature, the duty ratio of the first PWM signal and the second PWM signal in the next heating period is not adjusted within the range (critical threshold, threshold exceeded), and the adjustment is performed if the duty ratio exceeds the range.
Specifically, when the first heating module and the second heating module are turned on at the same time, the two heating modules use the same heating period, and the two heating modules alternately heat, and the first PWM signal and the second PWM signal are complementary, that is, the positive pulse width duty ratio of the first PWM signal is equal to the negative pulse width duty ratio of the second PWM signal, and the negative pulse width duty ratio of the first PWM signal is equal to the positive pulse width duty ratio of the second PWM signal.
The adjusting process is divided into two cases, namely, when the actual temperature of most (i.e. not less than the second preset times) of the current heating period is smaller than the critical threshold value, the duty ratio of the second PWM signal of the next heating period is increased, the duty ratio of the first PWM signal is reduced, the heating proportion of the second heating module is increased, and the actual temperature is increased, and when the actual temperature of most (i.e. not less than the third preset times) of the current heating period is larger than or equal to the out-of-limit threshold value, the duty ratio of the second PWM signal of the next heating period is reduced, the duty ratio of the first PWM signal is increased, the heating proportion of the second heating module is reduced, and the actual temperature is reduced.
It should be noted that, in the second case, the first case is further divided into two cases, when a part of the current heating period (i.e., not less than the fourth preset number of times, for example, 3 times) has a tendency of non-decreasing, which indicates that the actual temperature is greater than the threshold and still increases, the duty ratio of the second PWM signal and the duty ratio of the first PWM signal need to be continuously decreased in the next heating period until the actual temperature decreases, and the second case is divided into two cases, when a part of the current heating period (i.e., not less than the fourth preset number of times, for example, 3 times) has a tendency of decreasing, which indicates that the actual temperature is greater than the threshold but has started to decrease, which does not need to continuously decrease the duty ratio of the second PWM signal and increase the duty ratio of the first PWM signal in the next heating period, which can continuously decrease the actual temperature.
The specific duty cycle adjustment may also use the same 4 threshold values, 4 overrun values and 4 increments, and may be analogous to the heating process of the first heating module, which is not described in detail herein, and is specifically shown in fig. 4.
In summary, according to the relation among the actual temperature, the critical threshold and the out-of-limit threshold, the duty ratio of the first PWM signal and the duty ratio of the second PWM signal in the next heating period are respectively adjusted, so that the accurate control of the actual temperature is realized.
As a preferred embodiment, before outputting the first PWM signal of the current heating period to control the first heating module to heat and obtain the actual temperature of the current heating period multiple times, the method further includes:
and when the duty ratio of the second PWM signal is increased to 100%, and the absolute values of the differences of the actual temperature and the target temperature which are not less than the first preset times are not smaller than the preset difference, maintaining the second PWM signal with the output duty ratio of 100% to control the second heating module to heat.
In this embodiment, when the duty ratio of the second PWM signal is increased to 100%, that is, the second heating module is operated at full power, the second heating module still cannot reach the preset range of the target temperature (i.e., the target temperature-preset difference, the target temperature+the preset difference), and at this time, the second heating module is kept to operate at full power, and the duty ratio of the first PWM signal of the first heating module is adjusted to determine whether the second heating module can reach the preset range.
And a third heating module with higher power than the second heating module can be further arranged, and under the control of the third PWM signal, when the duty ratio of the first PWM signal of the first heating module is increased to 100%, that is, when the first heating module and the second heating module are operated at full power, the third heating module can be started at the moment, the three heating modules are combined for heating, and the specific heating process is similar to the combined heating process of the two heating modules, and can refer to fig. 5. The three heating modules use the same heating period (the selected heating period can ensure that the temperature rise in each period is not more than 0.25 degrees when the three heating modules are heated at the standard temperature of 21-25 degrees by the full duty cycle pulse width), the first heating module and the second heating module use the same positive pulse width duty cycle, for example, the positive pulse width duty cycle of a fourth PWM signal, the fourth PWM signal is complementary to the third PWM signal, the positive pulse width duty cycle of the fourth PWM signal is equal to the negative pulse width duty cycle of the third PWM signal, and the negative pulse width duty cycle of the fourth PWM signal is equal to the positive pulse width duty cycle of the third PWM signal.
When the duty ratio of the third PWM signal is increased to 100%, that is, when the third heating module is operated at full power, the third heating module still cannot reach the preset range of the target temperature (i.e., the target temperature-preset difference, the target temperature+the preset difference), the third heating module is kept to operate at full power, and the duty ratio of the first PWM signal and the duty ratio of the second PWM signal are adjusted at the same time, referring to fig. 4, and when the second PWM signal is increased to 100%, that is, when the third heating module and the second heating module are both operated at full power, the third heating module still cannot reach the preset range of the target temperature, and the second heating module and the third heating module are kept to operate at full power at the same time, and the duty ratio of the first PWM signal is adjusted at the same time, referring to fig. 3.
In sum, can be through according to different actual temperatures, gradually open first heating module, second heating module and third heating module, can satisfy quick, at the uniform velocity heating, provide comfortable heating environment, also can satisfy the heating requirement of different scope, provide the multispeed regulation to temperature.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a heating system according to the present application, including:
a heating control unit 21, configured to output a first PWM signal of a current heating period to control the first heating module to heat and obtain an actual temperature of the current heating period multiple times;
a judging unit 22, configured to judge whether the absolute values of the differences between the actual temperature and the target temperature, which are not less than the first preset times, are all less than the preset difference, if yes, enter the holding unit, and if no, enter the adjusting unit;
a holding unit 23 for holding a duty ratio of the first PWM signal of the next heating period;
and an adjusting unit 24 for adjusting the duty ratio of the first PWM signal of the next heating period such that the absolute value of the difference between the actual temperature and the target temperature is reduced.
For an introduction of a heating system provided by the present application, please refer to the above embodiment, and the description of the present application is omitted here.
As a preferred embodiment, the adjusting unit 24 comprises:
A duty ratio increasing unit of the first PWM signal, configured to increase the duty ratio of the first PWM signal in the next heating period when there is an actual temperature not less than the second preset number of times that is less than the critical threshold, where the target temperature minus the preset difference is the critical threshold;
The duty ratio reducing unit of the first PWM signal is used for reducing the duty ratio of the first PWM signal of the next heating period when the actual temperature which is not less than the third preset times is greater than or equal to the out-of-limit threshold and the actual temperature which is continuously not less than the fourth preset times is in a non-descending trend, and the out-of-limit threshold minus the preset difference value is the target temperature;
and the duty ratio maintaining unit is used for maintaining the duty ratio of the first PWM signal of the next heating period when the actual temperature which is not smaller than the third preset times is larger than or equal to the out-of-limit threshold value and the actual temperature which is continuously not smaller than the fourth preset times is in a descending trend.
As a preferred embodiment, further comprising:
the fan control unit is used for controlling the fan to send the air heated by the first heating module to a preset position.
As a preferred embodiment, the duty ratio increasing unit of the first PWM signal includes:
a fourth increment increasing unit for increasing the duty ratio of the first PWM signal of the next heating period by a fourth increment when there is an actual temperature not less than the second preset number of times less than a fourth critical value, the fourth critical value < third critical value < second critical value < first critical value=critical threshold < target temperature, the fourth increment > third increment > second increment > first increment;
A third increment increasing unit for increasing the duty ratio of the first PWM signal of the next heating period by a third increment when there is an actual temperature not less than the second preset number of times greater than or equal to the fourth critical value and less than the third critical value;
A second increment increasing unit for increasing the duty ratio of the first PWM signal of the next heating period by a second increment when there is an actual temperature not less than the second preset number of times greater than or equal to the third critical value and less than the second critical value;
And the first increment increasing unit is used for increasing the duty ratio of the first PWM signal of the next heating period by a first increment when the actual temperature which is not less than the second preset times is more than or equal to the second critical value and less than the first critical value.
As a preferred embodiment, the duty ratio reducing unit of the first PWM signal includes:
A first increment reducing unit, configured to reduce, when there is an actual temperature that is not less than the third preset number of times that is greater than or equal to a first out-of-limit value and less than a second out-of-limit value and that is continuously not less than a fourth preset number of times that is in a non-decreasing trend, a duty cycle of a first PWM signal of a next heating period by a first increment, where the target temperature < out-of-limit threshold value = first out-of-limit value < second out-of-limit value < third out-of-limit value < fourth out-of-limit value;
A second increment reducing unit for reducing the duty ratio of the first PWM signal of the next heating period by a second increment when there is an actual temperature not less than the third preset number of times greater than or equal to the second threshold and less than the third threshold and there is a non-decreasing trend of the actual temperature continuously not less than the fourth preset number of times;
And the third increment reducing unit is used for reducing the duty ratio of the first PWM signal of the next heating period by a third increment when the actual temperature which is not smaller than the third preset times is larger than or equal to a third out-of-limit value and smaller than a fourth out-of-limit value and the actual temperature which is continuously not smaller than the fourth preset times is in a non-descending trend.
As a preferred embodiment, further comprising:
The first heating module and the second heating module control unit are used for outputting a first PWM signal of a current heating period to control the first heating module to heat when the duty ratio of the first PWM signal is increased to 100% and the absolute value of the difference value between the actual temperature and the target temperature which is not less than the first preset times is not less than the preset difference value, and outputting a second PWM signal to control the second heating module to heat at the same time, and acquiring the actual temperature of the current heating period for a plurality of times, wherein the power of the second heating module is higher than that of the first heating module, and the first PWM signal and the second PWM signal are complementary;
The actual temperature judging unit is used for judging whether the absolute value of the difference value between the actual temperature and the target temperature which is not less than the first preset times is smaller than the preset difference value, if yes, the duty ratio maintaining unit of the two PWM signals is entered, and if no, the duty ratio adjusting unit of the two PWM signals is entered;
A duty ratio holding unit of the two PWM signals for holding duty ratios of the first PWM signal and the second PWM signal of the next heating period;
and a duty ratio adjusting unit for adjusting the duty ratio of the first PWM signal and the second PWM signal of the next heating period so that the absolute value of the difference between the actual temperature and the target temperature is reduced.
As a preferred embodiment, the duty ratio adjusting unit of the two PWM signals includes:
A duty ratio decreasing unit of the first PWM signal and increasing the duty ratio of the second PWM signal, for increasing the duty ratio of the second PWM signal of the next heating period and decreasing the duty ratio of the first PWM signal of the next heating period when there is an actual temperature not less than the second preset number of times that is less than the critical threshold, the target temperature minus the preset difference being the critical threshold;
A duty ratio increasing unit of the second PWM signal, which is used for decreasing the duty ratio of the second PWM signal of the next heating period and increasing the duty ratio of the first PWM signal of the next heating period when the actual temperature which is not less than the third preset times is greater than or equal to the out-of-limit threshold and the actual temperature which is not less than the fourth preset times continuously is in a non-decreasing trend, wherein the out-of-limit threshold is subtracted by the preset difference value to be the target temperature;
and the duty ratio maintaining unit is used for maintaining the duty ratio of the second PWM signal and the first PWM signal in the next heating period when the actual temperature which is not less than the third preset times is greater than or equal to the out-of-limit threshold value and the actual temperature which is not less than the fourth preset times continuously is in a descending trend.
As a preferred embodiment, further comprising:
And a 100% duty ratio maintaining unit for maintaining the second PWM signal with an output duty ratio of 100% to control the second heating module to heat when the duty ratio of the second PWM signal is increased to 100% before the heating control unit 21, and there is no absolute value of the difference between the actual temperature and the target temperature, which is not less than the first preset number of times, is less than the preset difference.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a heating device according to the present application, including:
a memory 31 for storing a computer program;
a processor 32 for executing a computer program to carry out the steps of the heating method.
For an introduction of a heating device provided by the present application, please refer to the above embodiment, and the description of the present application is omitted here.
The heating device can be applied to a temperature controller or an air conditioner for heating, and the specific application scene is not particularly limited.
When the heating device is applied to a temperature controller, the heating device can be used as an embedded control module of the temperature controller. In a specific embodiment, the temperature controller mainly comprises an embedded control module, an air supply pipe and an inflatable heating blanket, and an operating system controlled by the embedded control module specifically further comprises a power supply module, a heating control module, a fan control module, a temperature detection module, a display screen module, an audible and visual alarm module and an alarm storage module. Referring to fig. 8, the relationship between the modules is that the embedded control module and the display screen module interact in real time, according to the temperature and the wind speed set by the user, the fan control module (for increasing the driving force) and the heating control module (for increasing the driving force) are opened to work, meanwhile, the temperature of the temperature sensor is collected in real time to regulate and control in real time, and the collected temperature and the heating time are displayed on the display screen module, so that an intelligent and visual medical temperature control system can be provided. The embedded control module comprises a preset air supply method and the heating method, and the heating control module respectively controls three heating modules with small power, medium power and high power, namely a first heating module, a second heating module and a third heating module. When heating is started, the fan pulse width duty ratio is controlled to start blowing according to the set wind speed, meanwhile, the low-power heating module (namely the first heating module) is started to enable, temperature sensor data are read to judge in real time, the heating pulse width of the low-power heating module is gradually increased, and the medium-power heating module and the high-power heating module are gradually started according to different temperature ranges. The heating device can meet the requirements of rapid and uniform heating, provide a comfortable heating environment and also meet the heating requirements of different ranges.
The temperature control instrument has the use flow that after the parameters such as wind speed, temperature and the like are set on the display screen module by a user, a starting button is clicked, the embedded control module can automatically read the set parameters, the fan is controlled to be opened for blowing, meanwhile, the heating block is started for heating air, meanwhile, the temperature sensor reads the heating temperature in real time and feeds the heating temperature back to the embedded control module for temperature real-time adjustment, one end of the air supply pipe is connected to the fan, the other end of the air supply pipe is connected to the air charging warming blanket, warm air blown out by the fan enters the air charging warming blanket through the air supply pipe, the air charging warming blanket is fully distributed with air discharging small holes, the required temperature can be uniformly provided for the body of a patient to be operated, and intelligent warming can be realized for raising and protecting the body temperature of the patient to be operated. Avoiding the dangers of electric leakage of the electric blanket, scalding of the hot water bag and the like caused by adopting the electric blanket, the hot water bag and the like to keep warm for patients.
Wherein, each specific module is as follows:
and the power supply module is used for supplying power to the three heating modules and the fan by adopting 220V and 50Hz commercial power, and simultaneously supplying power to the embedded control module, the temperature detection module, the audible and visual alarm module and the display screen module by converting the commercial power into a low-voltage direct-current power supply through voltage reduction.
The embedded control module comprises a singlechip minimum system and a peripheral control circuit, an analog IO acquisition circuit, a standard output IO and control circuit, an audible and visual alarm module, a fan control module, a heating control module, a communication interface, a storage module interface and a storage and reading module, wherein the analog IO acquisition circuit is used for acquiring temperature in real time through AD conversion, the standard output IO and control circuit can drive the audible and visual alarm module to alarm and prompt, the fan control module is driven to control the fan to blow, the heating control module is driven to control the heating module to heat, the communication interface can be used for communication interaction with the display screen module, and the storage module interface is used for storing and reading alarm data. The parameters preset by the display screen module can be read, the parameters comprise wind speed, temperature and the like, and then a control signal is generated to control the fan to start blowing, and the heating module is controlled to heat.
The display screen module mainly displays and sets related parameters, can set up for a touch screen, and can send data to the embedded control module for data synchronous update every time corresponding setting is carried out, and the embedded control module carries out real-time temperature acquisition and sends data to the display screen module for real-time temperature display. The display parameters of the display screen module mainly comprise heating time, air speed, temperature and the like, touch buttons such as air speed, temperature, room temperature monitoring, start-stop, calibration and the like are arranged on the display screen module, parameter adjustment can be performed by clicking the buttons such as the air speed, the temperature and the like, parameter updating can be performed by updating the buttons to the embedded control module, current indoor temperature monitoring can be performed by clicking the room temperature monitoring, heating is not started at the moment, and single blowing can be performed by clicking the start-stop buttons. The corresponding arrangement of the display screen module, and the relation among the power module, the display screen module and the embedded control module can be referred to fig. 9.
And the alarm storage module is used for carrying out abnormal alarm under the control of the embedded control module when the temperature controller is abnormal, such as the fan does not act, the temperature exceeds the limit (for example, is greater than or equal to a fourth exceeding the limit value) and the like, and storing corresponding error codes to the alarm storage module for checking and analyzing, for example, carrying out abnormal analysis in an abnormal code and analysis interface of the display screen module and giving error reporting codes and possible reasons for the abnormality.
And the audible and visual alarm module comprises a red LED lamp, a buzzer and the like and is used for alarming abnormality, when the abnormality occurs, the red LED lamp is on, and meanwhile, the buzzer sounds five sounds to prompt a user to process.
The temperature setting of each heating module is adjustable within the range of 32-42 degrees, a temperature adjusting button on the display screen module is clicked to adjust the temperature, each time the temperature is 1 degree, data is sent to the embedded control module after the setting, the embedded control module controls the heating module to heat through the heating control module, the embedded control module is provided with three heating modules with low power, medium power and high power, the embedded control module opens the heating module with corresponding power through the heating control module according to different set temperatures, the three heating modules open a timer period, and the heating pulse width in one period of the opened heating module is respectively adjusted, so that the temperature adjustment is carried out. Each heating module is fixed at the air inlet of the fan, the fan is opened for blowing, external air enters the fan through hot air generated by the heating module and is blown out from the outlet of the fan, so that the air can be rapidly heated, and the temperature is easier to control.
The temperature detection module is divided into two parts, one part is arranged at an air inlet of the air supply pipe, the other part is arranged at an air outlet of the air supply pipe, the two parts respectively detect corresponding temperatures in real time and feed back the corresponding temperatures to the embedded control module, the embedded control module detects the value of an IO port of the temperature sensor through the ADC and converts the value into the corresponding temperature, the temperature sensor of the air supply pipe is close to the heating module, the detected heating temperature (namely the actual temperature) of the heating module is compared with a set temperature value (namely the target temperature), and therefore pulse width adjustment is carried out on the heating module. The temperature sensor at the air outlet of the air supply pipe has three functions, namely ①, detecting the indoor temperature (when the heating module stops heating, namely, the room temperature is blown, the blown air is slightly lower than the room temperature at the moment, so that the heating module can be rapidly cooled), ②, performing temperature calibration (when the heating module stops heating, the temperature sensor is compared with the temperature measured value of an external fine sensor to realize calibration), ③, comparing the measured temperature with the temperature of the air inlet of the air supply pipe, and judging that the air is blown or heated when the difference is large.
At this time, referring to fig. 10, after the temperature controller is started, that is, after the device is powered on, related hardware devices (for example, display screen module, related IO of a singlechip, a system clock, a timer, a serial port and other peripherals) are initialized, after initialization is completed, a main program contained in the embedded control module is entered, and the main program interacts with the display screen module to control the display screen module to enter the main interface, select a wind speed and a heating temperature to be set, click a start button, and start blowing and heating.
The specific process of wind speed regulation comprises the steps of starting a timer in program design, timing a certain timing period to be a blowing period, designing a 40% on-duty ratio to be low wind speed, a 70% on-duty ratio to be medium wind speed, and a 100% on-duty ratio to be high wind speed, and controlling a pulse width of the on-duty ratio to be started to blow by a fan by an embedded control module when the corresponding wind speed is selected.
When the actual temperature exceeds the limit (namely, the fourth exceeding limit value), the audible and visual alarm module is used for alarming, and the alarm storage module is used for storing an abnormal alarm code for checking and analyzing.
When the actual temperature does not exceed the limit value (namely, the fourth exceeding limit value), the three heating modules with low power, medium power and high power are regulated by the pulse width regulating signal, and the three heating modules can be controlled to be jointly regulated by a preset program to heat so as to reach the target temperature. And meanwhile, the actual temperature is fed back in real time through a temperature sensor. The whole heating process is as follows:
When heating is started, a low-power first heating module is started, pulse width modulation is performed, and meanwhile temperature real-time detection is performed, and referring to fig. 3. When the target temperature is low, the first heating module with low power can be adopted for heating independently, and pulse width is regulated and controlled in stages after the target temperature reaches a corresponding critical value, so that the temperature is controlled within an error range.
When the first heating module with low power heats at 100% duty ratio and still cannot reach the target temperature, the first heating module and the second heating module with low power and medium power are controlled to be simultaneously started, pulse width modulation is performed, and the pulse width duty ratio of the two heating modules is regulated and controlled, so that the temperature is controlled within an error range and is close to the target temperature, and referring to fig. 4.
When the second heating module with middle power heats at 100% duty ratio and still cannot reach the target temperature, the second heating module with middle power heats at 100% duty ratio and performs pulse width modulation of the first heating module with low power, see fig. 3.
When the low-power and medium-power heating modules, namely the first heating module and the second heating module, are heated at the duty ratio of 100%, and still cannot reach the target temperature, the low-power, medium-power and high-power heating modules, namely the first heating module, the second heating module and the third heating module, are controlled to be simultaneously started, pulse width modulation is performed, and the pulse width duty ratios of the three heating modules are regulated and controlled at the same time, so that the temperature is controlled within an error range and is close to the target temperature, and the temperature control device is shown in fig. 5.
When the third heating module with high power heats at 100% duty ratio and still cannot reach the target temperature, the third heating module with high power heats at 100% duty ratio, controls to start the heating modules with low power and medium power at the same time, namely the first heating module and the second heating module, carries out pulse width modulation, and simultaneously regulates and controls the pulse width duty ratio of the two heating modules to control the temperature within an error range and to approach the target temperature, and referring to fig. 4.
When the target temperature cannot be reached, the middle-power and high-power heating modules, namely the second heating module and the third heating module, are heated at the duty ratio of 100%, and the middle-power and high-power heating blocks, namely the second heating module and the third heating module, are heated at the duty ratio of 100%, and meanwhile the low-power first heating module is controlled to be started and pulse width modulated, as shown in fig. 3.
If all three heating modules are heated at 100% duty cycle and still cannot reach the target temperature, the corresponding heating modules need to be changed or the heating modules need to be continuously added.
In conclusion, through the relevant hardware setting of the temperature controller and the program corresponding to the heating method running in the embedded control module of the temperature controller, the adjustment of multi-gear temperature and multi-gear wind speed is realized, different use environments and use requirements are met, high-precision temperature control is met, and the use comfort of a user is improved.
It should be noted that in this specification the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.