CN115712316A - Temperature compensation method and device of temperature controller - Google Patents

Temperature compensation method and device of temperature controller Download PDF

Info

Publication number
CN115712316A
CN115712316A CN202211384450.6A CN202211384450A CN115712316A CN 115712316 A CN115712316 A CN 115712316A CN 202211384450 A CN202211384450 A CN 202211384450A CN 115712316 A CN115712316 A CN 115712316A
Authority
CN
China
Prior art keywords
temperature
compensation
controller
temperature controller
indoor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211384450.6A
Other languages
Chinese (zh)
Inventor
林星原
王斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hailin Automatic Control Technology Co ltd
Original Assignee
Beijing Hailin Automatic Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hailin Automatic Control Technology Co ltd filed Critical Beijing Hailin Automatic Control Technology Co ltd
Priority to CN202211384450.6A priority Critical patent/CN115712316A/en
Publication of CN115712316A publication Critical patent/CN115712316A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a temperature compensation method of a temperature controller, which detects the actual indoor temperature when the temperature controller is started, and detects and updates the first indoor environment temperature according to the preset time interval. And under the condition that the first environmental temperature is compensated and the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and a preset time interval, calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environmental temperature, and under the condition that the first environmental temperature is compensated and the temperature controller is in a stable stage, determining the compensation temperature according to a first preset formula or a second preset formula. Compared with the method for fixing the compensation parameters which is commonly used at present, the method is more in line with the rule of temperature measurement of the temperature controller, adopts a linear equation, is easier to operate in application, solves the problem of temperature compensation in temperature measurement of the temperature controller, and further improves the measurement accuracy of the temperature controller on the ambient temperature.

Description

Temperature compensation method and device of temperature controller
Technical Field
The present application relates to the field of temperature compensation technology for temperature controllers, and more particularly, to a temperature compensation method and apparatus for a temperature controller.
Background
The temperature controller of present widely used all comprises electronic circuit, and in operation, electronic components can send some heats, and especially, current temperature controller begins to adopt the colored screen to show to the trend that has become this type of product development. The color LCD screen display mode and the auxiliary circuit emit more heat than the previous black and white LCD screen display mode and the auxiliary circuit, so that the temperature measurement result of the temperature controller is seriously interfered, and the temperature controller cannot work normally.
The conventional solution is to fixedly subtract a fixed temperature value from the actual temperature measurement value, and perform correction. The method is only suitable for the application with low self-heating value inside and low requirement on temperature measurement precision, such as a black-and-white liquid crystal screen temperature controller, but for the temperature controller with a color liquid crystal screen with high internal heating value and high requirement on temperature measurement precision, the temperature measurement error becomes large, so that the normal work of the temperature controller is influenced. In fact, the temperature measurement error generated by the heating of the internal components of the temperature controller is mainly related to the heating amount, the installation position, the distribution of the heating components, the structure of the temperature controller, the heat conduction characteristic of the circuit board, the ambient temperature and other factors, so that the temperature measurement error is dynamically changed along with the ambient temperature and other factors, and the influence of the internal heating of the temperature controller on the temperature measurement result cannot be counteracted by subtracting a fixed numerical value for compensation in the conventional method.
For the regulation of the environmental temperature inside a building room provided with a central air conditioning system, the temperature of the indoor environment needs to be accurately measured, a temperature sensor is usually arranged on a temperature controller and used for measuring the indoor environmental temperature, however, because electronic components inside the temperature controller can generate certain heat when in work, the heat can interfere with the measurement result of the temperature sensor, the temperature value of the measurement result is higher than the actual environmental temperature, the larger the calorific value of the components is, the larger the influence on the temperature measurement result is, and the temperature controller can not work normally. In order to obtain an accurate result, the temperature controller needs to subtract the temperature value increased due to the interference from the measurement result so that the measurement result approaches the actual ambient temperature value. The conventional method mainly measures the error of a certain temperature point, and subtracts the error value from the measured value, thereby obtaining a corrected measurement result. In fact, the influence of heat generated by the electronic components inside the temperature controller on the temperature measurement is related to the heat generation amount, the installation position, the distribution of the internal components, the structure of the temperature controller, the heat conduction characteristic of the circuit board, and the ambient temperature, and particularly, the temperature measurement error is dynamically changed along with the ambient temperature, and is not a constant, and because of the difference of different products in the aspects of structure, electronic circuit, and the like, an empirical formula is difficult to be obtained through calculation. Therefore, the temperature controller adopting the existing temperature compensation technology cannot improve the measurement accuracy of the ambient temperature.
Disclosure of Invention
Based on this, to the above technical problem, a temperature compensation method and device for a temperature controller are provided, which can solve the problem that the accuracy of the existing temperature controller for measuring the ambient temperature is too low.
In a first aspect, a method for temperature compensation of a thermostat, the method comprising:
when the temperature controller is started, detecting the actual indoor temperature of the temperature controller when the temperature controller is started through a first temperature sensor;
after the temperature controller is started, detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval;
compensating for the first ambient temperature comprises:
under the condition that the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and a preset time interval, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
under the condition that the temperature controller is in a stable stage, when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees, determining the compensation temperature according to a first preset formula; when the last updated indoor actual temperature is more than 25 degrees and less than or equal to 35 degrees, determining the compensation temperature according to a second preset formula;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes a first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Represents a third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
and subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and calculating to obtain the compensated first environment temperature.
In the above scheme, optionally, the first temperature sensor is disposed at a first preset position of the temperature controller, and the first ambient temperature is an indoor ambient temperature measured before the temperature compensation of the temperature controller.
In the foregoing scheme, further optionally, the method further includes:
detecting and updating the internal temperature of the temperature controller by a second temperature sensor according to a preset time interval; the second temperature sensor is a time interval from zero heating to stable heating of a heating component in the temperature controller according to a preset time interval in a preset time interval;
the second temperature sensor is arranged in a range which is less than a preset distance from the heating component in the temperature controller.
In the foregoing scheme, further optionally, the method further includes:
T 10 the difference of the internal temperatures of the two temperature controllers measured by the second temperature sensor when the temperature controller is started, T 10A T is correspondingly obtained when the actual indoor temperature is more than 15 degrees and less than or equal to 25 degrees when the temperature controller is started 10 Said T is 10A Is the temperature controller is startedT correspondingly obtained when the actual indoor temperature is more than 25 degrees and less than 35 degrees 10
In the foregoing solution, it is further optional that the first coefficient k A A second coefficient k 1A A first constant h A A third coefficient k B The fourth coefficient k 1B And a third constant h B The calculation mode comprises the following steps:
after the temperature controller is electrified, acquiring first ambient temperatures corresponding to the temperature controller at all times and T measured at all ambient temperatures 10 Detecting the indoor actual temperature corresponding to each moment through a first temperature sensor, and measuring the first environmental temperature corresponding to each moment and the T measured at each environmental temperature 10 And substituting the indoor actual temperature corresponding to each moment into the first preset formula and the second preset formula, and calculating to obtain a first coefficient k A A second coefficient k 1A A first constant h A A third coefficient k B A fourth coefficient k 1B And a third constant h B
In a second aspect, a temperature compensation device of a thermostat, the device comprising:
the first temperature sensor is used for detecting the actual indoor temperature of the temperature controller when the temperature controller is started through the first temperature sensor; the temperature controller is used for detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval after the temperature controller is started;
compensating for the first ambient temperature comprises:
the first determining module is used for determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals under the condition that the temperature controller is in a transition stage, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
the second determining module is used for determining the compensation temperature according to a first preset formula when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees under the condition that the temperature controller is in a stable stage;
the third determining module is used for determining the compensation temperature according to a second preset formula when the indoor actual temperature updated last time is more than 25 degrees and less than or equal to 35 degrees;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes the first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Denotes the third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
a temperature compensation module: and the compensation temperature is used for subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and the compensated first environment temperature is obtained through calculation.
In the above scheme, optionally, the first temperature sensor is disposed at a first preset position of the temperature controller, and the first ambient temperature is an indoor ambient temperature measured before the temperature compensation of the temperature controller.
In the foregoing scheme, further optionally, the apparatus further includes a second temperature sensor for detecting and updating the internal temperature of the temperature controller at preset time intervals; the second temperature sensor is a time interval from zero heating to stable heating of a heating component in the temperature controller according to a preset time interval in a preset time interval;
the second temperature sensor is arranged in a range smaller than a preset distance from a heating component in the temperature controller.
In a third aspect, a computer device comprises a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
when the temperature controller is started, detecting the actual indoor temperature of the temperature controller when the temperature controller is started through a first temperature sensor;
after the temperature controller is started, detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval;
compensating for the first ambient temperature comprises:
under the condition that the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
under the condition that the temperature controller is in a stable stage, when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees, determining the compensation temperature according to a first preset formula; when the last updated indoor actual temperature is more than 25 degrees and less than or equal to 35 degrees, determining the compensation temperature according to a second preset formula;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes a first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Denotes the third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
and subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and calculating to obtain the compensated first environment temperature.
In a fourth aspect, a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of:
when the temperature controller is started, detecting the actual indoor temperature of the temperature controller when the temperature controller is started through a first temperature sensor;
after the temperature controller is started, detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval;
compensating for the first ambient temperature comprises:
under the condition that the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and a preset time interval, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
under the condition that the temperature controller is in a stable stage, when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees, determining the compensation temperature according to a first preset formula; when the last updated indoor actual temperature is more than 25 degrees and less than or equal to 35 degrees, determining the compensation temperature according to a second preset formula;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes the first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Represents a third coefficient, k 1B Which represents the fourth coefficient of the coefficient,t represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
and subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and calculating to obtain the compensated first environment temperature.
The invention has at least the following beneficial effects:
based on further analysis and research on the problems in the prior art, the temperature controller adopting the prior temperature compensation technology can not improve the measurement accuracy of the ambient temperature. According to the invention, when the temperature controller is started, the indoor actual temperature is detected when the temperature controller is started, and the indoor first ambient temperature is detected and updated according to the preset time interval. And under the condition that the first environmental temperature is compensated and the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and a preset time interval, calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environmental temperature, and under the condition that the first environmental temperature is compensated and the temperature controller is in a stable stage, determining the compensation temperature according to a first preset formula or a second preset formula. The compensation temperature is dynamically changed along with the self-heating degree of the external temperature and the internal components, and compared with the conventional method for fixing the compensation parameters, the method is more consistent with the rule of temperature measurement of the temperature controller, and simultaneously adopts a linear equation of one time, so that the method is easier to operate in engineering application.
Drawings
Fig. 1 is a schematic flow chart illustrating a temperature compensation method of a thermostat according to an embodiment of the present invention;
fig. 2 is a schematic plan view illustrating a temperature compensation method of a thermostat according to an embodiment of the present invention;
fig. 3 is a temperature compensation method of a temperature controller according to an embodiment of the present inventionMethod T 10 Fitting a curve graph with the actual ambient temperature T;
fig. 4 is a fitting curve diagram of the compensation temperature and the actual ambient temperature of the temperature compensation method for the temperature controller according to an embodiment of the present invention;
fig. 5 is a preset temperature compensation data diagram in the temperature compensation method of the temperature controller according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a temperature compensation method of a thermostat, including the steps of:
when the temperature controller is started, detecting the actual indoor temperature of the temperature controller when the temperature controller is started through a first temperature sensor;
after the temperature controller is started, detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval; wherein the preset time interval may be one minute.
Compensating for the first ambient temperature comprises:
under the condition that the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature; the transition period may be twenty-five to thirty minutes, which is not limited herein, and the general thermostat reaches the stable period after twenty-five to thirty minutes.
Under the condition that the temperature controller is in a stable stage, when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees, determining the compensation temperature according to a first preset formula; when the last updated indoor actual temperature is more than 25 degrees and less than or equal to 35 degrees, determining the compensation temperature according to a second preset formula; wherein the stable phase is twenty-five to thirty minutes after startup.
Wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes a first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second predetermined formula, Δ T represents the compensation temperature, k B Denotes the third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
and subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and calculating to obtain the compensated first environment temperature.
In one embodiment, the first temperature sensor is disposed at a first predetermined position of the thermostat, and the first ambient temperature is an indoor ambient temperature measured by the thermostat before temperature compensation. Wherein, the first preset position can be the bottom of the temperature controller.
In one embodiment, the method further comprises: detecting and updating the internal temperature of the temperature controller through a second temperature sensor according to a preset time interval; the second temperature sensor is a time interval from zero heating to stable heating of a heating component in the temperature controller according to a preset time interval in a preset time interval; wherein the preset time interval may be one minute.
The second temperature sensor is arranged in a range which is less than a preset distance from the heating component in the temperature controller. The preset distance may be one centimeter, or may be set according to the position of a heat generating component inside the temperature controller, which is not limited herein.
In one embodiment, the method further comprises: t is a unit of 10 The difference of the internal temperatures of the two temperature controllers measured by the second temperature sensor when the temperature controller is started, T 10A T is correspondingly obtained when the actual indoor temperature is more than 15 degrees and less than or equal to 25 degrees when the temperature controller is started 10 Said T is 10A T is correspondingly obtained when the actual indoor temperature is more than 25 degrees and less than 35 degrees when the temperature controller is started 10
In one embodiment, the first coefficient k A A second coefficient k 1A A first constant h A A third coefficient k B The fourth coefficient k 1B And a third constant h B The calculation method comprises the following steps: after the temperature controller is electrified, acquiring first environment temperatures corresponding to the temperature controller at various moments and T measured at various environment temperatures 10 Detecting the indoor actual temperature corresponding to each moment through a first temperature sensor, and measuring the first environmental temperature corresponding to each moment and the T measured at each environmental temperature 10 And substituting the indoor actual temperature corresponding to each moment into the first preset formula and the second preset formula, and calculating to obtain a first coefficient k A A second coefficient k 1A A first constant h A A third coefficient k B A fourth coefficient k 1B And a third constant h B
The temperature compensation method of the temperature controller provided by the embodiment is dynamically changed along with the external temperature and the self-heating degree of internal components, and more conforms to the temperature measurement rule of the temperature controller compared with the commonly used method for fixing the compensation parameters at present, and simultaneously adopts a linear equation, so that the operation is easier in engineering application; in addition, the temperature compensation problem of the temperature controller in a steady state and the temperature compensation problem of the temperature controller in a transition state are considered, so that the temperature compensation problem in temperature measurement of the temperature controller is more comprehensively solved.
In an embodiment, as shown in fig. 2, a schematic plan view of the embodiment is provided, in which a rectangle is a thermostat housing, and h1, h2, and h3 are heat generating components inside the thermostat; t1 is a temperature sensor which is used for measuring indoor temperature and is usually arranged at the bottom of the temperature controller, so that the temperature sensor can be in better contact with indoor air structurally and is far away from a heating component in the temperature controller as far as possible; t2 is a temperature sensor which is used for measuring the temperature inside the temperature controller and is usually placed in the area with the highest internal temperature; t is the actual temperature of the indoor environment. The invention aims to make the deviation between the final temperature measurement result of the temperature controller and the actual room temperature by a temperature compensation method, and meet the precision requirement.
The calculation formula is as follows: t = T1-DeltaT, formula: t1 is the actual value measured by the temperature sensor, the actual measurement result is higher than the indoor actual environment temperature value due to the influence of the heat generated by the internal components, and DeltaT is the value to be subtracted, namely the temperature compensation value. According to the formula, if the numerical value of DeltaT corresponding to the specified temperature range can be obtained and is subtracted by T1, the temperature measurement value meeting the precision requirement can be obtained, and the temperature controller can normally control the room temperature.
In one embodiment, the temperature compensation method for the thermostat to work in a steady state comprises the following steps: because the measured value of T1 is influenced by the room temperature and the internal temperature together, when the room temperature changes, the measuring result of T1 by the internal heating component of the temperature controller also changes, therefore, the temperature compensation value DeltaT also shows a certain regular change along with the ambient temperature. In addition, due to the difference of the used components in different thermostats, the heating degree of each thermostat is different, and the difference also affects the measurement result of T1. Therefore, the compensation problem of the DeltaT is determined, not only the common problem of the temperature difference between the inside and the outside of the temperature controller is considered, but also the individual problem of different heating characteristics of each temperature controller is considered.
After the factors are comprehensively considered and verified by experiments, the following temperature compensation coefficient formula of the temperature controller in a stable working state is obtained:
DeltaT=k*T+k1*T 10 + h; wherein: k, h, k1 are parameters to be determined, T is an ambient temperature value, T0 and T1 are measured values of the temperature sensor T2 at two consecutive moments after being electrified, T 10 And = T1-T0, which is also a variable varying with the ambient and internal temperature, and T0 can be taken from the first acquired value of the T2 temperature after the start-up.
In this embodiment, the parameters in the equation are fitted by using experimental temperature data, so as to obtain the rule of the temperature compensation parameters. When the temperature controller is electrified, the environment temperature measured by the temperature sensor T1 at each moment and the measured values of T0 and T1 measured by the temperature sensor T2 of a plurality of temperature controller samples can be obtained through measurement, the obtained measured value data are analyzed and processed and then substituted into the ternary linear equation, and the specific numerical values of k, h and k1 can be obtained, so that the calculation formula of DeltaT is obtained, and the following is the example of the actual measurement data and the calculation process of the temperature controller according to a certain model.
Figure BDA0003930113720000111
TABLE 1
Table 1 shows the measured value T of the measured ambient temperature and the measured values of the internal temperature sensors T1 and T2 of the sample temperature controllers 1# to 4# at 15 ℃, 25 ℃ and 35 ℃ respectively, and the difference Delta and the average value between T1 and T are calculated. In the table I, three groups of experimental data of 15 degrees, 25 degrees and 35 degrees are respectively measured, are not obtained in one experiment, and are measured by turning on the temperature controller again in each experiment.
Figure BDA0003930113720000121
TABLE 2
Table 2 shows T calculated from summary Table 1 and actual measurement of T0 and T1 10 . Wherein, T 10 The experimental data obtained by measuring the first two groups of T2 after the start of each experiment are obtained.
In one embodiment, as shown in FIG. 3, from T 10 From the data of the ambient temperature T, T 10 Two straight lines can be fitted, namely: t is 10 K2 × T + h10, wherein: k2 is the slope of the line segment and h10 is a constant value, which can be determined after calculation according to fig. 2. Will T 10 Substitution equation DeltaT = k T + k 1T 10 + h, yielding:
DeltaT = k T + k1 (k 2T + h 10) + h; or:
DeltaT=(k+k1*k2)*T+k1*h10+h;(1)
wherein: k2 and h10 are determined according to data in FIG. 2 or Table 2, k1 and h are constants, calculation is needed according to data in Table 2, 2 equations and three unknowns needed to be determined can be obtained by substituting data in Table 2 into equation (1).
According to the formula (1), h is a constant, the shape of the curve is not affected, the numerical value of h can cause curve translation, and the value range has a certain interval. Therefore, according to experimental data, selecting a value upper boundary and a value lower boundary of h to obtain hmax and hmin, and selecting one h in the boundary to obtain corresponding values of k and k1, so as to obtain all parameters in the formula (1), wherein the formula can be implanted into a temperature compensation program of the temperature controller to participate in real-time temperature compensation calculation. In practical use, T in equation (1) is generally a compensated ambient temperature value in a previous cycle, and is based on the principle or common sense of life that a jump is unlikely to occur in a very short time due to the indoor ambient temperature. By analyzing the data in table 2 and expression (1), deltaT is composed of two curves, set as A and B, and is substituted into expression (1) as shown in FIG. 4 to obtain expressions (2) and (3)
DeltaTA=(kA+k1A*k2A)*T+k1A*h10A+hA;(2)
DeltaTB=(kB+k1B*k2B)*T+k1B*h10B+hB;(3)
According to the method, the mean values in the data in the table 2 are substituted into a formula, and appropriate parameters and verification effects are selected through subsequent experiments.
It should be noted that the DeltaT curve is influenced by the heat generation of the internal components of the temperature controller and the change of the external environment temperature, and the characteristic probability is not a monotonous curve, and an inflection point appears at a certain temperature point, and the curve becomes two curves with different characteristics, so that at least three temperature measurement points are selected within a certain temperature compensation range. If the temperature measurement precision needs to be further improved, temperature measurement points can be increased, and more temperature curves can be obtained.
In addition, the above measurement and calculation are performed for the stable state of the temperature controller, and when the temperature controller is in operation and 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.
Through the calculation and verification, the formulas and parameter values of two different temperature compensation curves are determined, and the following calculation is specifically carried out in the temperature controller:
outputting a temperature measurement = T1-DeltaTA = T1-kA T-k1A T at an ambient temperature of 25 ℃ and below 10 -hA;
Outputting a temperature measurement = T1-DeltaTB = T1-kB T-k1B T when the ambient temperature is above 25 DEG C 10 -hB;
Wherein: kA. k1A, hA, kB, k1B and hB are constants calculated and determined according to test data;
t is the last output ambient temperature measurement;
t1 is a temperature value measured by the temperature sensor T1 in real time;
T 10 the difference between the two continuous measured temperature values when the temperature controller is started is t1-t0.
In one embodiment, as shown in fig. 5, the temperature compensation method of the thermostat operating in the transient state, the thermostat operating in the steady state most of the time, but there are some transient states, such as: the temperature controller enters a power-on state from a power-off state, and in the process, a heating component in the temperature controller is gradually heated for a period of time from room temperature to reach a thermal equilibrium state, so that the change rule of the temperature compensation parameter becomes extremely complex in the process, and the change rule cannot be expressed by a general formula. In this process, a table lookup method may be used to perform temperature compensation, and the specific method is as follows:
in the definite temperature compensation scope, on average select not less than three temperature point, get a plurality of temperature controller samples and put the test environment of a certain temperature point, after circular telegram, according to definite sampling time interval, gather simultaneously and record each temperature controller T1 and ambient temperature T's instantaneous numerical value, the time value of record sampling simultaneously, until the temperature controller enters into stable operating condition, to the temperature compensation value DeltaT at each moment, it has n samples to establish the temperature controller, the serial number is from 1 to n, adopt following formula:
Figure BDA0003930113720000141
wherein T1 i At the same time, the measured values of the temperature sensors of the temperature controllers T1 are measured, and T is the ambient temperature value at the same time.
And arranging the calculation results of the DeltaT into a table according to a formula and a time sequence, and selecting the corresponding DeltaT according to time as a temperature compensation value at the moment after an internal program of the temperature controller is initially electrified. Fig. 4 shows the test data of a certain model of temperature controller in the first 5 minutes.
It should be noted that, the temperature controller works in the power-on state for a long time, so the initial power-on transition process is not normal, and therefore, the requirement on the temperature measurement accuracy of the temperature controller in this period is lower than that in the steady state. The invention adds a temperature compensation method of table lookup at the position, and aims to avoid the problem that the temperature measurement result of the temperature controller generates larger deviation in the power-on starting process, thereby influencing the indoor temperature control function in the starting process.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The temperature compensation method of the temperature controller provided by the embodiment is dynamically changed along with the external temperature and the self-heating degree of internal components, and better conforms to the temperature measurement rule of the temperature controller compared with the conventional common method for fixing compensation parameters, and meanwhile, the temperature compensation method of the temperature controller adopts a linear equation of once, so that the temperature compensation method is easier to operate in engineering application; in addition, the final temperature compensation formula and parameters are determined through experimental statistical data of two temperature sensors with different installation positions in the temperature controller, the temperature compensation formula and the parameters can be more accurately matched with the temperature characteristics of the actual temperature controller, and meanwhile, the precision of the temperature compensation parameters can be further improved by increasing the number of temperature test points in the temperature compensation range, so that the overall temperature measurement precision of the temperature controller is improved; in addition, the temperature compensation problem under the steady state and the transition state of the temperature controller are considered, so that the temperature compensation problem in the temperature measurement of the temperature controller is more comprehensively solved.
In one embodiment, there is provided a temperature compensation device of a thermostat, including:
the first temperature sensor is used for detecting the actual indoor temperature when the temperature controller is started through the first temperature sensor when the temperature controller is started; the temperature controller is used for detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval after the temperature controller is started;
compensating for the first ambient temperature comprises:
the first determining module is used for determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals under the condition that the temperature controller is in a transition stage, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
the second determining module is used for determining the compensation temperature according to a first preset formula when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees under the condition that the temperature controller is in a stable stage;
the third determining module is used for determining the compensation temperature according to a second preset formula when the indoor actual temperature updated last time is more than 25 degrees and less than or equal to 35 degrees;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first preset formula, Δ T represents the compensation temperature, k A Denotes a first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second predetermined formula, Δ T represents the compensation temperature, k B Denotes the third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
a temperature compensation module: and the compensation temperature corresponding to the first environment temperature is subtracted from the first environment temperature, and the compensated first environment temperature is calculated.
In one embodiment, the first temperature sensor is disposed at a first predetermined position of the thermostat, and the first ambient temperature is an indoor ambient temperature measured by the thermostat before temperature compensation.
In one embodiment, the apparatus further comprises a second temperature sensor for detecting and updating the internal temperature of the thermostat at preset time intervals; the second temperature sensor is used for setting a time interval from zero heating of a heating component in the temperature controller to stabilization according to a preset time interval in a preset time interval;
the second temperature sensor is arranged in a range smaller than a preset distance from a heating component in the temperature controller.
For the specific definition of the temperature compensation device of the thermostat, reference may be made to the above definition of the temperature compensation method of the thermostat, and details are not described herein again. All or part of each module in the temperature compensation device of the temperature controller can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of temperature compensation of a thermostat. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and all or part of the procedures in the method of the above embodiment are involved.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, relating to all or part of the flow in the method of the above embodiment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for compensating temperature of a thermostat, the method comprising:
when the temperature controller is started, detecting the actual indoor temperature of the temperature controller when the temperature controller is started through a first temperature sensor;
after the temperature controller is started, detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval;
compensating for the first ambient temperature comprises:
under the condition that the temperature controller is in a transition stage, determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
under the condition that the temperature controller is in a stable stage, when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees, determining the compensation temperature according to a first preset formula; when the last updated indoor actual temperature is more than 25 degrees and less than or equal to 35 degrees, determining the compensation temperature according to a second preset formula;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first predetermined formula, Δ T represents the compensation temperature, k A Representing the first coefficient,k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Represents a third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
and subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and calculating to obtain the compensated first environment temperature.
2. The method of claim 1, wherein the first temperature sensor is disposed at a first predetermined position of the thermostat, and the first ambient temperature is an indoor ambient temperature measured before the thermostat is temperature compensated.
3. The method of claim 1, further comprising:
detecting and updating the internal temperature of the temperature controller through a second temperature sensor according to a preset time interval; the second temperature sensor is a time interval from zero heating to stable heating of a heating component in the temperature controller according to a preset time interval in a preset time interval;
the second temperature sensor is arranged in a range smaller than a preset distance from a heating component in the temperature controller.
4. The method of claim 3, further comprising:
T 10 the difference of the internal temperatures of the temperature controllers measured by the second temperature sensor in the first two times when the temperature controller is started, T 10A T is correspondingly obtained when the actual indoor temperature is more than 15 degrees and less than or equal to 25 degrees when the temperature controller is started 10 Said T is 10A T is correspondingly obtained when the actual indoor temperature is more than 25 degrees and less than 35 degrees when the temperature controller is started 10
5. The method of claim 1, wherein the first coefficient k is A A second coefficient k 1A A first constant h A A third coefficient k B The fourth coefficient k 1B And a third constant h B The calculation method comprises the following steps:
after the temperature controller is electrified, acquiring first ambient temperatures corresponding to the temperature controller at all times and T measured at all ambient temperatures 10 Detecting the indoor actual temperature corresponding to each moment through a first temperature sensor, and measuring the first environmental temperature corresponding to each moment and the T measured at each environmental temperature 10 And substituting the indoor actual temperature corresponding to each moment into the first preset formula and the second preset formula, and calculating to obtain a first coefficient k A A second coefficient k 1A A first constant h A A third coefficient k B The fourth coefficient k 1B And a third constant h B
6. A temperature compensation device of a thermostat, characterized in that the device comprises:
the first temperature sensor is used for detecting the actual indoor temperature when the temperature controller is started through the first temperature sensor when the temperature controller is started; the temperature controller is used for detecting and updating indoor first ambient temperature through a first temperature sensor according to a preset time interval after the temperature controller is started;
compensating for the first ambient temperature comprises:
the first determining module is used for determining the compensation temperature at each moment according to preset temperature compensation data and preset time intervals under the condition that the temperature controller is in a transition stage, and calculating and updating the indoor actual temperature according to the compensation temperature at each moment and the first environment temperature;
the second determining module is used for determining the compensation temperature according to a first preset formula when the last updated indoor actual temperature is more than 15 degrees and less than or equal to 25 degrees under the condition that the temperature controller is in a stable stage;
the third determining module is used for determining the compensation temperature according to a second preset formula when the indoor actual temperature updated last time is more than 25 degrees and less than or equal to 35 degrees;
wherein the first preset formula comprises: Δ T = k A ×T-k 1A ×T 10A -h A
The second preset formula includes: Δ T = k B ×T-k 1B ×T 10B -h B
In the first predetermined formula, Δ T represents the compensation temperature, k A Denotes a first coefficient, k 1A Represents the second coefficient, T represents the last updated indoor actual temperature, h A Denotes a first constant, T 10A Represents a second constant;
in the second preset formula, Δ T represents the compensation temperature, k B Denotes the third coefficient, k 1B Represents the fourth coefficient, T represents the last updated indoor actual temperature, h B Denotes a third constant, T 10B Represents a fourth constant;
a temperature compensation module: and the compensation temperature is used for subtracting the compensation temperature corresponding to the first environment temperature from the first environment temperature, and the compensated first environment temperature is obtained through calculation.
7. The apparatus of claim 6, wherein the first temperature sensor is disposed at a first predetermined position of the thermostat, and the first ambient temperature is an indoor ambient temperature measured before the thermostat is temperature compensated.
8. The apparatus of claim 6, further comprising detecting and updating an internal temperature of the thermostat at preset time intervals by means of a second temperature sensor; the second temperature sensor is a time interval from zero heating to stable heating of a heating component in the temperature controller according to a preset time interval in a preset time interval;
the second temperature sensor is arranged in a range which is less than a preset distance from the heating component in the temperature controller.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202211384450.6A 2022-11-07 2022-11-07 Temperature compensation method and device of temperature controller Pending CN115712316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211384450.6A CN115712316A (en) 2022-11-07 2022-11-07 Temperature compensation method and device of temperature controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211384450.6A CN115712316A (en) 2022-11-07 2022-11-07 Temperature compensation method and device of temperature controller

Publications (1)

Publication Number Publication Date
CN115712316A true CN115712316A (en) 2023-02-24

Family

ID=85232371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211384450.6A Pending CN115712316A (en) 2022-11-07 2022-11-07 Temperature compensation method and device of temperature controller

Country Status (1)

Country Link
CN (1) CN115712316A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117332621A (en) * 2023-12-01 2024-01-02 杭州万高科技股份有限公司 Calibration method for environmental temperature measurement by temperature controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117332621A (en) * 2023-12-01 2024-01-02 杭州万高科技股份有限公司 Calibration method for environmental temperature measurement by temperature controller
CN117332621B (en) * 2023-12-01 2024-03-08 杭州万高科技股份有限公司 Calibration method for environmental temperature measurement by temperature controller

Similar Documents

Publication Publication Date Title
CN105094168B (en) Calibrate the method and apparatus that the temperature of the calibration volume of the device of temperature sensor is adjusted to comparison expression
US4911357A (en) Humidity controller utilizing absolute humidity
CN109060899B (en) Method, device and equipment for compensating measurement result of electrochemical sensor
JP5075701B2 (en) Control device and power estimation method
CN109556943B (en) Temperature correction method and device for constant temperature system, analysis instrument, and storage medium
CN115712316A (en) Temperature compensation method and device of temperature controller
CN111459212A (en) Constant-temperature water bath control method based on feedforward feedback fuzzy self-tuning PID control algorithm
JP2014149252A (en) Creation method of calibration data of thermometer, storage device storing calibration data, and thermometer employing the method
US9442025B2 (en) System and method for calibrating temperatures sensor for integrated circuits
EP2995937A1 (en) Integrated chemical sensor chip
JP2012093818A (en) Heat treatment control unit and heat treatment control method
WO2024140492A1 (en) Temperature control method and apparatus, and electronic device
WO2022120563A1 (en) Temperature prediction method and apparatus, and storage medium
CN111938420B (en) Humidity control system, control method and steam cooking device
CN115653884B (en) Method and device for controlling rotation speed of automobile compressor, computer equipment and storage medium
JP6269678B2 (en) Fuzzy control device and fuzzy control method
CN103293505A (en) Electronic calibration component and temperature compensation method for broadening operating temperature range thereof
JP5464326B2 (en) Physical quantity control device, physical quantity control method, and physical quantity control program
CN111780894B (en) Real-time tracking measurement method for stable thermal power of radioactive sample
CN110277181B (en) Method and device for monitoring water level of pressure vessel of nuclear power station
JP6564299B2 (en) Characteristic model identification method, characteristic model identification device, and intelligent sensor
CN112748752B (en) Cooling system temperature adjusting method and device, computer equipment and storage medium
CN117742414A (en) Temperature control method and control device and intelligent furniture
US11698206B2 (en) Controller for air conditioner
KR102687634B1 (en) Method for Automatic Temperature Correcting of Temperature Controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination