Temperature compensation method and device for thermostat
By using a dynamic temperature compensation method, multiple temperature sensors and preset formulas are used to correct the ambient temperature of the thermostat, solving the measurement error problem caused by internal heating, and improving the temperature measurement accuracy and stability of the thermostat. This method is suitable for color LCD screen thermostats.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HAILIN ENERGY TECH
- Filing Date
- 2022-11-07
- Publication Date
- 2026-04-28
AI Technical Summary
Existing temperature controllers cannot effectively compensate for temperature measurement errors caused by the heating of internal electronic components, especially in color LCD screen temperature controllers, which affects temperature measurement accuracy and normal operation.
A dynamic temperature compensation method is adopted. The actual indoor temperature is detected by the first temperature sensor and updated at preset time intervals. Combined with preset formulas and coefficients, the compensation temperature is calculated to correct the ambient temperature. Different compensation formulas are used for the transition and stable phases. Multiple temperature sensors are used to accurately measure the temperature changes of the internal heating components.
It improves the accuracy of the temperature controller in measuring ambient temperature, and the dynamic compensation is more in line with the temperature measurement law of the temperature controller, enhancing the temperature measurement accuracy and stability, and is suitable for the temperature measurement needs of color LCD screen temperature controllers.
Smart Images

Figure CN115712316B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of temperature compensation technology for thermostats, and in particular to a temperature compensation method and apparatus for thermostats. Background Technology
[0002] Modern thermostats are mostly composed of electronic circuits. During operation, these electronic components generate heat. In particular, the adoption of color LCD displays, a growing trend in thermostat development, causes this heat generation compared to older monochrome LCD displays and their associated circuitry. This heat significantly interferes with the thermostat's temperature measurement, leading to malfunctions.
[0003] The traditional solution is to subtract a fixed temperature value from the actual temperature measurement for correction. This method is only suitable for applications with low internal heat generation and low requirements for temperature measurement accuracy, such as black and white LCD screen thermostats. However, for color LCD screen thermostats with higher internal heat generation and higher temperature measurement accuracy requirements, the measurement error becomes significant, affecting the normal operation of the thermostat. In reality, the temperature measurement error caused by the heating of internal components of the thermostat is mainly related to the heat generation of the heating components, their installation location and distribution, the thermostat's structure, the thermal conductivity of the circuit board, and the ambient temperature. Therefore, the aforementioned temperature measurement error actually changes dynamically with the ambient temperature and other factors. The traditional method of compensating by subtracting a fixed value cannot offset the influence of the thermostat's internal heat generation on the temperature measurement results.
[0004] For regulating the indoor temperature of rooms in buildings with central air conditioning systems, accurate measurement of the indoor temperature is crucial. Temperature sensors are typically installed in thermostats to measure this temperature. However, the electronic components inside the thermostat generate heat during operation. This heat can interfere with the temperature sensor's measurement, causing the measured temperature to be higher than the actual ambient temperature. The greater the heat generated by the components, the greater the impact on the temperature measurement, potentially causing the thermostat to malfunction. To obtain accurate results, the thermostat needs to subtract the increased temperature value due to interference from the measured result, making the measurement closer to the actual ambient temperature. Traditional methods primarily involve measuring the error at a specific temperature point and subtracting this error from the measured value to obtain a corrected result. In reality, the impact of the heat generated by the thermostat's internal electronic components on temperature measurement is related to the heat generated by the internal components, their installation location and distribution, the thermostat's structure, the thermal conductivity of the circuit board, and the ambient temperature. In particular, the temperature measurement error dynamically changes with the ambient temperature, rather than being a constant. Furthermore, due to differences in structure and electronic circuitry among different products, it is difficult to derive empirical formulas through calculation. Therefore, temperature controllers using existing temperature compensation technology cannot improve the accuracy of ambient temperature measurement. Summary of the Invention
[0005] Based on this, and in response to the aforementioned technical problems, a temperature compensation method and device for a thermostat are provided, which can solve the problem of the low accuracy of existing thermostats in measuring ambient temperature.
[0006] In a first aspect, a temperature compensation method for a thermostat, the method comprising:
[0007] When the thermostat is turned on, the actual indoor temperature is detected by the first temperature sensor.
[0008] After the thermostat is turned on, the first temperature sensor detects and updates the first ambient temperature in the room at preset time intervals.
[0009] Compensation for the first ambient temperature includes:
[0010] When the thermostat is in the transition phase, the compensation temperature at each moment is determined according to the preset temperature compensation data and the preset time interval, and the actual indoor temperature is calculated and updated according to the compensation temperature at each moment and the first ambient temperature.
[0011] When the thermostat is in a stable phase, if the actual indoor temperature of the last update is greater than 15°C and less than or equal to 25°C, the compensation temperature is determined according to the first preset formula; if the actual indoor temperature of the last update is greater than 25°C and less than or equal to 35°C, the compensation temperature is determined according to the second preset formula.
[0012] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0013] The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ;
[0014] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0015] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant;
[0016] The compensated first ambient temperature is calculated by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0017] In the above scheme, optionally, the first temperature sensor is set at the first preset position of the thermostat, and the first ambient temperature is the indoor ambient temperature measured by the thermostat before temperature compensation.
[0018] In the above scheme, optionally, the method further includes:
[0019] The internal temperature of the thermostat is detected and updated by a second temperature sensor at preset time intervals; wherein, the preset time interval of the second temperature sensor is the time interval from zero to a stable temperature of the heating component inside the thermostat.
[0020] The second temperature sensor is positioned within a preset distance range from the heating element inside the temperature controller.
[0021] In the above scheme, optionally, the method further includes:
[0022] T 10 The T is the difference between the internal temperatures of the thermostat measured by the second temperature sensor in the first two measurements when the thermostat is turned on.10A The T value corresponds to the indoor temperature being greater than 15°C and less than or equal to 25°C when the thermostat is turned on. 10 The T 10A The T value corresponds to the indoor temperature being greater than 25°C but less than 35°C when the thermostat is turned on. 10 .
[0023] In the above scheme, optionally, the first coefficient k A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B Calculation methods include:
[0024] After the temperature controller is powered on, the first ambient temperature corresponding to the temperature controller at each moment and the T measured at each ambient temperature are obtained. 10 And by detecting the actual indoor temperature at each time point using a first temperature sensor, and then combining the first ambient temperature at each time point with the measured T value at each ambient temperature. 10 The actual indoor temperature at each time point is substituted into the first preset formula and the second preset formula to calculate the first coefficient k. A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B .
[0025] Secondly, a temperature compensation device for a thermostat, the device comprising:
[0026] The first temperature sensor is used to detect the actual indoor temperature when the thermostat is turned on; and to detect and update the first ambient indoor temperature at preset time intervals after the thermostat is turned on.
[0027] Compensation for the first ambient temperature includes:
[0028] The first determining module is used to determine the compensation temperature at each moment according to the preset temperature compensation data and the preset time interval when the thermostat is in the transition phase, and to calculate and update the actual indoor temperature according to the compensation temperature at each moment and the first ambient temperature.
[0029] The second determining module is used to determine the compensation temperature according to the first preset formula when the thermostat is in a stable phase and the previously updated actual indoor temperature is greater than 15°C and less than or equal to 25°C.
[0030] The third determining module is used to determine the compensation temperature according to the second preset formula when the actual indoor temperature in the last update is greater than 25° and less than or equal to 35°.
[0031] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0032] The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ;
[0033] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0034] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant;
[0035] Temperature compensation module: used to calculate the compensated first ambient temperature by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0036] In the above scheme, optionally, the first temperature sensor is set at the first preset position of the thermostat, and the first ambient temperature is the indoor ambient temperature measured by the thermostat before temperature compensation.
[0037] In the above scheme, optionally, the device further includes detecting and updating the internal temperature of the thermostat by means of a second temperature sensor at preset time intervals; wherein, the preset time interval of the second temperature sensor at preset time intervals is the time interval between the heating element inside the thermostat heating from zero to reaching a stable temperature.
[0038] The second temperature sensor is positioned within a preset distance range from the heating element inside the temperature controller.
[0039] Thirdly, a computer device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to perform the following steps:
[0040] When the thermostat is turned on, the actual indoor temperature is detected by the first temperature sensor.
[0041] After the thermostat is turned on, the first temperature sensor detects and updates the first ambient temperature in the room at preset time intervals.
[0042] Compensation for the first ambient temperature includes:
[0043] When the thermostat is in the transition phase, the compensation temperature at each moment is determined according to the preset temperature compensation data and the preset time interval, and the actual indoor temperature is calculated and updated according to the compensation temperature at each moment and the first ambient temperature.
[0044] When the thermostat is in a stable phase, if the actual indoor temperature of the last update is greater than 15°C and less than or equal to 25°C, the compensation temperature is determined according to the first preset formula; if the actual indoor temperature of the last update is greater than 25°C and less than or equal to 35°C, the compensation temperature is determined according to the second preset formula.
[0045] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0046] The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ;
[0047] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0048] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h...B T represents the third constant. 10B Represents the fourth constant;
[0049] The compensated first ambient temperature is calculated by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0050] Fourthly, a computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0051] When the thermostat is turned on, the actual indoor temperature is detected by the first temperature sensor.
[0052] After the thermostat is turned on, the first temperature sensor detects and updates the first ambient temperature in the room at preset time intervals.
[0053] Compensation for the first ambient temperature includes:
[0054] When the thermostat is in the transition phase, the compensation temperature at each moment is determined according to the preset temperature compensation data and the preset time interval, and the actual indoor temperature is calculated and updated according to the compensation temperature at each moment and the first ambient temperature.
[0055] When the thermostat is in a stable phase, if the actual indoor temperature of the last update is greater than 15°C and less than or equal to 25°C, the compensation temperature is determined according to the first preset formula; if the actual indoor temperature of the last update is greater than 25°C and less than or equal to 35°C, the compensation temperature is determined according to the second preset formula.
[0056] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0057] The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ;
[0058] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0059] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant;
[0060] The compensated first ambient temperature is calculated by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0061] The present invention has at least the following beneficial effects:
[0062] This invention, based on further analysis and research into the problems of existing technologies, recognizes that thermostats using existing temperature compensation technology cannot improve the accuracy of ambient temperature measurement. This invention detects the actual indoor temperature when the thermostat is turned on, and updates the first ambient temperature at preset time intervals. While compensating for the first ambient temperature and the thermostat is in a transition phase, the compensation temperature is determined at each preset time interval according to preset temperature compensation data. The actual indoor temperature is then calculated and updated based on the compensation temperature and the first ambient temperature at each moment. Finally, while compensating for the first ambient temperature and the thermostat is in a stable phase, the compensation temperature is determined according to a first preset formula or a second preset formula. The compensation temperature dynamically changes with the ambient temperature and the degree of self-heating of internal components. Compared with the currently commonly used method of fixed compensation parameters, it is more in line with the temperature measurement law of the thermostat. At the same time, it adopts a linear equation, which is easier to operate in engineering applications. In addition, this invention not only considers the temperature compensation problem of the thermostat under steady state, but also considers the temperature compensation problem under transient state, thus more comprehensively solving the temperature compensation problem in the temperature measurement of the thermostat and improving the accuracy of the thermostat in measuring ambient temperature. Attached Figure Description
[0063] Figure 1 A schematic flowchart illustrating a temperature compensation method for a thermostat provided in one embodiment of the present invention;
[0064] Figure 2 A schematic diagram of the temperature compensation method of a thermostat provided in an embodiment of the present invention;
[0065] Figure 3 T is a temperature compensation method for a thermostat provided in an embodiment of the present invention. 10 Fitting curve of actual ambient temperature T;
[0066] Figure 4 A fitting curve of the compensation temperature and the actual ambient temperature for a temperature compensation method of a thermostat provided in an embodiment of the present invention.
[0067] Figure 5 This is a preset temperature compensation data diagram in the temperature compensation method of a thermostat provided in one embodiment of the present invention;
[0068] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0069] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0070] In one embodiment, such as Figure 1 As shown, a temperature compensation method for a thermostat is provided, including the following steps:
[0071] When the thermostat is turned on, the actual indoor temperature is detected by the first temperature sensor.
[0072] After the thermostat is turned on, the first ambient temperature in the room is detected and updated by the first temperature sensor at preset time intervals; wherein, the preset time interval can be one minute.
[0073] Compensation for the first ambient temperature includes:
[0074] When the thermostat is in the transition phase, the compensation temperature at each moment is determined according to the preset temperature compensation data and the preset time interval, and the actual indoor temperature is calculated and updated according to the compensation temperature at each moment and the first ambient temperature; wherein, the transition phase can be 25 to 30 minutes, which is not limited here, and the thermostat generally reaches the stable phase after 25 to 30 minutes.
[0075] When the thermostat is in a stable phase, if the actual indoor temperature of the last update is greater than 15°C and less than or equal to 25°C, the compensation temperature is determined according to a first preset formula; if the actual indoor temperature of the last update is greater than 25°C and less than or equal to 35°C, the compensation temperature is determined according to a second preset formula; wherein, the stable phase is 25 to 30 minutes after power-on.
[0076] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0077] The second preset formula includes: ΔT = k B ×Tk1B ×T 10B -h B ;
[0078] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0079] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant;
[0080] The compensated first ambient temperature is calculated by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0081] In one embodiment, the first temperature sensor is disposed at a first preset position on the thermostat, and the first ambient temperature is the indoor ambient temperature measured before the thermostat performs temperature compensation. The first preset position may be the bottom of the thermostat.
[0082] In one embodiment, the method further includes: detecting and updating the internal temperature of the thermostat using a second temperature sensor at preset time intervals; wherein the preset time interval of the second temperature sensor is the time interval from zero to a stable temperature reached by the heating element inside the thermostat; wherein the preset time interval can be one minute.
[0083] The second temperature sensor is positioned within a preset distance range from the heating element inside the thermostat. This preset distance can be one centimeter, or it can be set according to the position of the heating element inside the thermostat; no limitation is made here.
[0084] In one embodiment, the method further includes: T 10 The T is the difference between the internal temperatures of the thermostat measured by the second temperature sensor in the first two measurements when the thermostat is turned on. 10A The T value corresponds to the indoor temperature being greater than 15°C and less than or equal to 25°C when the thermostat is turned on. 10 The T 10A The T value corresponds to the indoor temperature being greater than 25°C but less than 35°C when the thermostat is turned on. 10 .
[0085] In one embodiment, the first coefficient k A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B The calculation method includes: after the temperature controller is powered on, obtaining the first ambient temperature corresponding to the temperature controller at each moment, and the T measured at each ambient temperature. 10 And by detecting the actual indoor temperature at each time point using a first temperature sensor, and then combining the first ambient temperature at each time point with the measured T value at each ambient temperature. 10 The actual indoor temperature at each time point is substituted into the first preset formula and the second preset formula to calculate the first coefficient k. A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B .
[0086] The temperature compensation method for thermostats proposed in this embodiment dynamically changes with the external temperature and the degree of self-heating of internal components. Compared with the currently commonly used method of fixed compensation parameters, it is more in line with the temperature measurement law of thermostats. At the same time, it adopts a linear equation, which is easier to operate in engineering applications. In addition, by using experimental statistical data from two temperature sensors installed in different positions inside the thermostat, the final temperature compensation formula and parameters are determined, which can more accurately match the actual temperature characteristics of the thermostat. Furthermore, by increasing the number of temperature test points within the temperature compensation range, the accuracy of the temperature compensation parameters can be further improved, thereby improving the overall temperature measurement accuracy of the thermostat. Moreover, in addition to considering the temperature compensation problem under steady-state conditions, this invention also considers the temperature compensation problem under transient conditions, thus providing a more comprehensive solution to the temperature compensation problem in thermostat temperature measurement.
[0087] In one embodiment, such as Figure 2 The diagram shows a planar schematic of this embodiment. The rectangle represents the thermostat housing; h1, h2, and h3 are the internal heating elements of the thermostat; T1 is a temperature sensor used for measuring indoor temperature, typically placed at the bottom of the thermostat to ensure good contact with indoor air and to be as far away as possible from the internal heating elements; T2 is a temperature sensor used for measuring the internal temperature of the thermostat, typically placed in the area with the highest internal temperature; T represents the actual indoor temperature. The purpose of this invention is to use temperature compensation to ensure that the deviation between the final temperature measurement result of the thermostat and the actual room temperature meets accuracy requirements.
[0088] The calculation formula is as follows: T = T1 - DeltaT, where T1 is the actual value measured by the temperature sensor. Due to the influence of internal component heating, the actual measurement result will be higher than the actual indoor ambient temperature. DeltaT is the value that needs to be subtracted, i.e., the temperature compensation value. According to the formula, as long as the DeltaT value corresponding to the specified temperature range can be obtained, subtracting it from T1 will yield a temperature measurement value that meets the accuracy requirements, enabling the thermostat to control the room temperature normally.
[0089] In one embodiment, the temperature compensation method for a thermostat operating in a stable state includes: Since the measured value of T1 is affected by both room temperature and internal temperature, when the room temperature changes, the measurement result of T1 by the heating element inside the thermostat will also change. Therefore, the temperature compensation value DeltaT also exhibits a certain regularity in changing with the ambient temperature. One of the objectives of this invention is to find the pattern of change in DeltaT. Furthermore, due to differences in the components used inside different thermostats, the degree of heating in each thermostat varies, and these differences will also affect the measurement result of T1. Therefore, determining the compensation problem of DeltaT requires considering both the common problem of the temperature difference between the inside and outside of the thermostat and the individual problem of the different heating characteristics of each thermostat.
[0090] Taking into account the above factors and after experimental verification, the following formula for the temperature compensation coefficient under stable operating conditions of the thermostat is derived:
[0091] DeltaT = k*T + k1*T 10 +h; where: k, h, k1 are parameters to be determined, T is the ambient temperature, t0 and t1 are the measured values at two consecutive moments after the temperature sensor T2 is powered on, T 10 =t1-t0, which is also a variable that changes with the ambient and internal temperature. t0 can be taken from the first temperature T2 collected after power-on.
[0092] This embodiment uses temperature experimental data to fit the parameters in the formula, thereby obtaining the pattern of the temperature compensation parameters. When the thermostat is powered on, the ambient temperature measured by temperature sensor T1 at various times, and the measured values of t0 and t1 measured by temperature sensor T2, are obtained by measuring several thermostat samples. After analyzing and processing the obtained measurement data, the specific values of k, h, and k1 can be obtained by substituting them into the above ternary linear equation, thus obtaining the calculation formula of DeltaT. The following is an example of the calculation process based on the measured data of a certain model of thermostat.
[0093]
[0094] Table 1
[0095] Table 1 shows the measured ambient temperature T and the measured temperatures of the internal temperature sensors T1 and T2 of the sample thermostats 1# to 4# at 15℃, 25℃, and 35℃ over a continuous period of time. The difference Delta between T1 and T and the mean value were calculated. Note that the experimental data for 15°, 25°, and 35° in Table 1 were measured separately, not in a single experiment; the data were obtained by restarting the thermostat for each experiment.
[0096]
[0097] Table 2
[0098] Table 2 summarizes Table 1 and the T calculated from the measured t0 and t1. 10 Among them, T 10 It was obtained by measuring the experimental data of the first two sets of T2 after each experiment was turned on.
[0099] In one embodiment, such as Figure 3 As shown, from T 10 Compared with the data of ambient temperature T, T 10 It can be fitted using two straight lines, namely: T 10 = k2*T + h10, where: k2 is the slope of the line segment, and h10 is a constant value, according to Figure 2 After calculation, it can be determined. Let T... 10 Substituting into the formula, DeltaT = k*T + k1*T 10 +h, we get:
[0100] DeltaT = k*T + k1*(k2*T + h10) + h; or:
[0101] DeltaT=(k+k1*k2)*T+k1*h10+h; (1)
[0102] Where: k2, h10 are based on Figure 2 If the data in Table 2 is determined, k, k1, and h are constants and need to be calculated based on the data in Table 2. By substituting the data in Table 2 into formula (1), two equations can be obtained, and three unknowns need to be determined.
[0103] According to formula (1), h is a constant and has no effect on the shape of the curve. Its value will cause the curve to shift, and its value range is within a certain range. Therefore, based on the experimental data, the upper and lower boundaries of the value of h are selected to obtain hmax and hmin. By selecting h within the boundary, the corresponding values of k and k1 can be obtained, thus obtaining all the parameters in formula (1). This formula can be embedded in the temperature compensation program of the thermostat to participate in real-time temperature compensation calculation. In actual use, T in formula (1) is generally taken as the compensated ambient temperature value of the previous cycle, based on the principle or common sense that the indoor ambient temperature cannot jump in a very short time. Through analysis of the data in Table 2 and expression (1), DeltaT consists of two curves, denoted as A and B, as follows Figure 4 As shown, substituting into expression (1), we obtain expressions (2) and (3).
[0104] DeltaTA=(kA+k1A*k2A)*T+k1A*h10A+hA; (2)
[0105] DeltaTB=(kB+k1B*k2B)*T+k1B*h10B+hB; (3)
[0106] Following the above method, the mean value in the data in Table 2 was substituted into the formula, and appropriate parameters were selected and the effect was verified through subsequent experiments.
[0107] It should be noted that the DeltaT curve is affected by the heat generated by the internal components of the thermostat and changes in the external ambient temperature. Therefore, its characteristics are unlikely to be a monotonic curve; it will likely exhibit an inflection point at a certain temperature, resulting in two curves with different characteristics. Thus, within a defined temperature compensation range, at least three temperature measurement points should be selected. If further improvement in temperature measurement accuracy is required, more temperature measurement points can be added to obtain more temperature curves.
[0108] In addition, the above measurements and calculations are for the thermostat in a stable state. When the thermostat is working, there are multiple stable states, that is, when the internal heating components exhibit different characteristics, it is necessary to obtain temperature measurement data and temperature compensation calculation formulas under different operating conditions according to the above method.
[0109] Based on the above calculations and verifications, the formulas and parameter values for the two different temperature compensation curves were determined. Specifically, the following calculations were performed inside the temperature controller:
[0110] When the ambient temperature is 25℃ or below, the output temperature measurement result = T1 - DeltaTA = T1 - kA*T - k1A*T 10 -hA;
[0111] When the ambient temperature is above 25℃, the output temperature measurement result = T1 - DeltaTB = T1 - kB*T - k1B*T 10 -hB;
[0112] Where: kA, k1A, hA, kB, k1B, and hB are constants calculated and determined based on the test data;
[0113] T is the previous output of the ambient temperature measurement result;
[0114] T1 is the temperature value measured in real time by temperature sensor T1.
[0115] T 10 It is the difference between two consecutive temperature measurements taken when the thermostat is turned on, i.e., t1-t0.
[0116] In one embodiment, such as Figure 5 As shown, this describes a temperature compensation method for thermostats operating in transitional states. While thermostats mostly operate in a stable state, they also experience transitional states, such as when a thermostat transitions from a power-off state to a power-on state. During this process, the internal heating elements of the thermostat gradually heat up from room temperature for a period of time before reaching thermal equilibrium. Therefore, the variation of temperature compensation parameters becomes extremely complex during this process, making it impossible to represent with a general formula. In this case, a lookup table method can be used for temperature compensation, as detailed below:
[0117] Within a defined temperature compensation range, at least three temperature points are selected on average. Several temperature controller samples are placed in the test environment at a certain temperature point. After powering on, the instantaneous values of each temperature controller's temperature T1 and the ambient temperature T are simultaneously collected and recorded at defined sampling time intervals. The sampling time is also recorded until the temperature controller enters a stable working state. For the temperature compensation value DeltaT at each moment, assuming there are n temperature controller samples, numbered from 1 to n, the following formula is used:
[0118]
[0119] T1 i These are the measured values of the temperature sensors T1 on each temperature controller at the same time, where T is the ambient temperature value at the same time.
[0120] The calculation results of DeltaT are arranged in a table according to time sequence according to the formula. After the internal program of the temperature controller is initially powered on, the corresponding DeltaT is selected according to the time as the temperature compensation value at that moment. Figure 4 These are test data from the first 5 minutes of a certain model of thermostat.
[0121] It should be noted that the thermostat operates in a powered-on state for an extended period, so the initial power-on transition is not the norm. Therefore, the temperature measurement accuracy requirement for the thermostat during this period is lower than that in the steady state. This invention incorporates a lookup table-based temperature compensation method to avoid significant deviations in the thermostat's temperature measurement results during the power-on startup process, which could affect the indoor temperature control function during startup.
[0122] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.
[0123] The temperature compensation method for thermostats proposed in this embodiment dynamically changes with the external temperature and the degree of self-heating of internal components. Compared with the commonly used fixed compensation parameter method, it is more in line with the temperature measurement law of thermostats. At the same time, it adopts a linear equation, which is easier to operate in engineering applications. In addition, by using experimental statistical data from two temperature sensors installed in different positions inside the thermostat, the final temperature compensation formula and parameters are determined, which can more accurately match the actual temperature characteristics of the thermostat. Furthermore, by increasing the number of temperature test points within the temperature compensation range, the accuracy of the temperature compensation parameters can be further improved, thereby improving the overall temperature measurement accuracy of the thermostat. Moreover, this invention not only considers the temperature compensation problem under steady-state conditions but also the temperature compensation problem under transient conditions, thus providing a more comprehensive solution to the temperature compensation problem in thermostat temperature measurement.
[0124] In one embodiment, a temperature compensation device for a thermostat is provided, comprising:
[0125] The first temperature sensor is used to detect the actual indoor temperature when the thermostat is turned on; and to detect and update the first ambient indoor temperature at preset time intervals after the thermostat is turned on.
[0126] Compensation for the first ambient temperature includes:
[0127] The first determining module is used to determine the compensation temperature at each moment according to the preset temperature compensation data and the preset time interval when the thermostat is in the transition phase, and to calculate and update the actual indoor temperature according to the compensation temperature at each moment and the first ambient temperature.
[0128] The second determining module is used to determine the compensation temperature according to the first preset formula when the thermostat is in a stable phase and the previously updated actual indoor temperature is greater than 15°C and less than or equal to 25°C.
[0129] The third determining module is used to determine the compensation temperature according to the second preset formula when the actual indoor temperature in the last update is greater than 25° and less than or equal to 35°.
[0130] The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ;
[0131] The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ;
[0132] In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant;
[0133] In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant;
[0134] Temperature compensation module: used to calculate the compensated first ambient temperature by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
[0135] In one embodiment, the first temperature sensor is located at a first preset position of the thermostat, and the first ambient temperature is the indoor ambient temperature measured before the thermostat performs temperature compensation.
[0136] In one embodiment, the device further includes detecting and updating the internal temperature of the thermostat via a second temperature sensor at preset time intervals; wherein the preset time interval of the second temperature sensor is the time interval from zero to a stable temperature of the internal heating element of the thermostat.
[0137] The second temperature sensor is positioned within a preset distance range from the heating element inside the temperature controller.
[0138] Specific limitations regarding the temperature compensation device of the thermostat can be found in the above description of the temperature compensation method for the thermostat, and will not be repeated here. Each module in the temperature compensation device of the aforementioned thermostat can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the corresponding operations of each module.
[0139] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a temperature compensation method for a thermostat. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device casing, or an external keyboard, touchpad, or mouse.
[0140] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0141] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program relating to all or part of the processes in the methods of the above embodiments.
[0142] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon relating to all or part of the processes in the methods of the above embodiments.
[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0144] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0145] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A temperature compensation method for a thermostat, characterized in that, The method includes: When the thermostat is turned on, the actual indoor temperature is detected by the first temperature sensor. After the thermostat is turned on, the first temperature sensor detects and updates the first ambient temperature in the room at preset time intervals. Compensation for the first ambient temperature includes: When the thermostat is in the transition phase, the compensation temperature at each moment is determined according to the preset temperature compensation data and the preset time interval, and the actual indoor temperature is calculated and updated according to the compensation temperature at each moment and the first ambient temperature. When the thermostat is in a stable phase, if the actual indoor temperature of the last update is greater than 15°C and less than or equal to 25°C, the compensation temperature is determined according to the first preset formula; if the actual indoor temperature of the last update is greater than 25°C and less than or equal to 35°C, the compensation temperature is determined according to the second preset formula. The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ; The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ; In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant; In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant; The compensated first ambient temperature is calculated by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
2. The method according to claim 1, characterized in that, The first temperature sensor is set at the first preset position of the thermostat, and the first ambient temperature is the indoor ambient temperature measured before the thermostat performs temperature compensation.
3. The method according to claim 1, characterized in that, The method further includes: The internal temperature of the thermostat is detected and updated by a second temperature sensor at preset time intervals; wherein, the preset time interval of the second temperature sensor is the time interval from zero to a stable temperature of the heating component inside the thermostat. The second temperature sensor is positioned within a preset distance range from the heating element inside the temperature controller.
4. The method according to claim 3, characterized in that, The method further includes: T 10 The T is the difference between the internal temperatures of the thermostat measured by the second temperature sensor in the first two measurements when the thermostat is turned on. 10A The T value corresponds to the indoor temperature being greater than 15°C and less than or equal to 25°C when the thermostat is turned on. 10 The T 10A The T value corresponds to the indoor temperature being greater than 25°C but less than 35°C when the thermostat is turned on. 10 .
5. The method according to claim 1, characterized in that, The first coefficient k A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B Calculation methods include: After the temperature controller is powered on, the first ambient temperature corresponding to the temperature controller at each moment and the T measured at each ambient temperature are obtained. 10 And by detecting the actual indoor temperature at each time point using a first temperature sensor, and then combining the first ambient temperature at each time point with the measured T value at each ambient temperature. 10 The actual indoor temperature at each time point is substituted into the first preset formula and the second preset formula to calculate the first coefficient k. A The second coefficient k 1A The first constant h A The third coefficient k B The fourth coefficient k 1B and the third constant h B .
6. A temperature compensation device for a thermostat, characterized in that, The device includes: The first temperature sensor is used to detect the actual indoor temperature when the thermostat is turned on; and to detect and update the first ambient indoor temperature at preset time intervals after the thermostat is turned on. Compensation for the first ambient temperature includes: The first determining module is used to determine the compensation temperature at each moment according to the preset temperature compensation data and the preset time interval when the thermostat is in the transition phase, and to calculate and update the actual indoor temperature according to the compensation temperature at each moment and the first ambient temperature. The second determining module is used to determine the compensation temperature according to the first preset formula when the thermostat is in a stable phase and the previously updated actual indoor temperature is greater than 15°C and less than or equal to 25°C. The third determining module is used to determine the compensation temperature according to the second preset formula when the actual indoor temperature in the last update is greater than 25° and less than or equal to 35°. The first preset formula includes: ΔT = k A ×Tk 1A ×T 10A -h A ; The second preset formula includes: ΔT = k B ×Tk 1B ×T 10B -h B ; In the first preset formula, ΔT represents the compensation temperature, k A Denotes the first coefficient, k 1A This represents the second coefficient, where T represents the actual indoor temperature at the last update, and h... A T represents the first constant. 10A Indicates the second constant; In the second preset formula, ΔT represents the compensation temperature, k B Denotes the third coefficient, k 1B This represents the fourth coefficient, where T represents the actual indoor temperature at the last update, and h... B T represents the third constant. 10B Represents the fourth constant; Temperature compensation module: used to calculate the compensated first ambient temperature by subtracting the compensation temperature corresponding to the first ambient temperature from the first ambient temperature.
7. The apparatus according to claim 6, characterized in that, The first temperature sensor is set at the first preset position of the thermostat, and the first ambient temperature is the indoor ambient temperature measured before the thermostat performs temperature compensation.
8. The apparatus according to claim 6, characterized in that, The device further includes detecting and updating the internal temperature of the thermostat by means of a second temperature sensor at preset time intervals; wherein, the preset time interval of the second temperature sensor is the time interval from zero to a stable temperature of the heating component inside the thermostat. The second temperature sensor is positioned within a preset distance range from the heating element inside the temperature controller.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Temperature control device, temperature compensation method, temperature compensation device and terminal
CN106356915A
Temperature controller, a temperature control device, a drying system and a laundry processing device
CN108415478A