CN111238667B - Temperature compensation method, printed circuit board, compressor and vehicle - Google Patents

Temperature compensation method, printed circuit board, compressor and vehicle Download PDF

Info

Publication number
CN111238667B
CN111238667B CN201811449130.8A CN201811449130A CN111238667B CN 111238667 B CN111238667 B CN 111238667B CN 201811449130 A CN201811449130 A CN 201811449130A CN 111238667 B CN111238667 B CN 111238667B
Authority
CN
China
Prior art keywords
temperature
data
voltage
temperature compensation
packets
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.)
Active
Application number
CN201811449130.8A
Other languages
Chinese (zh)
Other versions
CN111238667A (en
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.)
Anqing Weiling Auto Parts Co ltd
Guangdong Welling Auto Parts Co Ltd
Anhui Welling Auto Parts Co Ltd
Original Assignee
Guangdong Welling Auto Parts 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 Guangdong Welling Auto Parts Co Ltd filed Critical Guangdong Welling Auto Parts Co Ltd
Priority to CN201811449130.8A priority Critical patent/CN111238667B/en
Publication of CN111238667A publication Critical patent/CN111238667A/en
Application granted granted Critical
Publication of CN111238667B publication Critical patent/CN111238667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K1/00Details of thermometers not specially adapted for particular types of thermometer
    • G01K1/20Compensating for effects of temperature changes other than those to be measured, e.g. changes in ambient temperature
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
    • G01K7/02Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using thermoelectric elements, e.g. thermocouples
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
    • G01K7/16Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements
    • G01K7/22Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements the element being a non-linear resistance, e.g. thermistor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Measuring Temperature Or Quantity Of Heat (AREA)

Abstract

The invention provides a temperature compensation method, a printed circuit board, a compressor and a vehicle, wherein the temperature compensation method comprises the following steps: acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage and measured temperature, and the measured temperature is calculated by a voltage and voltage temperature relational expression; performing clustering calculation on the data packet to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group; fitting a voltage-temperature curve by the central data pair group; and generating a temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature. The temperature compensation method provided by the invention collects the digital signal of the NTC temperature-sensitive resistor, analyzes the data by applying a signal processing method, and finally establishes a temperature compensation model for monitoring the temperature in real time to compensate the measured temperature, so that the detection precision of the temperature can be improved, and the printed circuit board can be more effectively protected.

Description

Temperature compensation method, printed circuit board, compressor and vehicle
Technical Field
The invention relates to the field of electric automobile compressor control, in particular to a temperature compensation method, computer equipment, a computer readable storage medium, a printed circuit board, a compressor and a vehicle.
Background
A commonly used NTC (negative temperature coefficient) temperature sensitive resistor is a temperature sensitive resistor with a negative temperature coefficient, and changes with a change in temperature. The temperature measuring principle is that the corresponding resistance value is derived by collecting the voltage change at the two ends of the resistor, and the temperature corresponding to the resistance value is found out by using a table look-up method. In practical applications, such a temperature protection strategy may have a large error because the resistance of the resistor may deviate from a calibration amount, and the variation in practical conditions is related to many factors and should be adjusted according to practical conditions.
The automotive electronic compressor has a high requirement on the working temperature, and thus monitoring of the temperature of an electronic control PCB (printed circuit board) is particularly important. If the detection error of the temperature is large, the service life of the components and the PCB and the reliability of the whole compressor are greatly influenced.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
To this end, a first aspect of the invention provides a temperature compensation method.
A second aspect of the present invention is to provide a computer device.
A third aspect of the present invention is to provide a computer-readable storage medium.
A fourth aspect of the present invention is to provide a printed circuit board.
A fifth aspect of the present invention is to provide a compressor.
A sixth aspect of the invention is to provide a vehicle.
In view of this, according to a first aspect of the present invention, there is provided a temperature compensation method comprising: acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage and measured temperature, and the measured temperature is calculated by a voltage and voltage temperature relational expression; performing clustering calculation on the data packet to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group; fitting a voltage-temperature curve by the central data pair group; and generating a temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature.
According to the temperature compensation method provided by the invention, through a large number of semi-physical simulation tests, digital signals (namely voltages) of the NTC temperature-sensitive resistor are collected, data are analyzed by a signal processing method, specifically a clustering method, and finally a temperature compensation model for temperature real-time monitoring is established to compensate the measured temperature, so that the detection precision of the temperature can be improved, and the printed circuit board can be protected more effectively.
In addition, according to the temperature compensation method in the above technical solution provided by the present invention, the following additional technical features may also be provided:
in the foregoing technical solution, preferably, before the operation of performing cluster calculation on the data packet, the method further includes: dividing the data packet into at least two data sub-packets including a modeling data sub-packet and a verification data sub-packet; the operation of performing cluster computation on the data packet comprises the following steps: performing clustering calculation on the modeling data sub-packets; after the operation of generating the temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, the method further comprises the following steps: calculating the error of the temperature compensation model by using the verification data sub-packets; and selecting or rejecting the temperature compensation model based on the condition that the error meets the preset error condition.
In the technical scheme, the data cross validation is adopted, the data packet is divided into at least two data sub-packets, at least one data sub-packet is used for modeling, at least one other data sub-packet is used for validation, the temperature compensation model is used only after the validation is passed, and the accuracy of the temperature compensation model is improved.
In any of the above technical solutions, preferably, the number of the at least two data sub-packets is at least three, and the at least two data sub-packets include at least two modeling data sub-packets and at least one verification data sub-packet; performing cluster calculation on the data packet to obtain a plurality of central data pairs, wherein the step of forming a central data pair group by the plurality of central data pairs comprises the following steps: respectively carrying out clustering calculation on at least two modeling data sub-packets to obtain at least two central data pair groups; the step of calculating the error of the temperature compensation model using the verification data sub-packets includes: and calculating errors of the corresponding temperature compensation models of the at least two central data pairs by using the at least one verification data sub-packet.
In the technical scheme, the number of the data sub-packets is specifically limited to be at least three, wherein the data sub-packets comprise at least two modeling data sub-packets and at least one verification data sub-packet, so that at least two corresponding temperature compensation models can be calculated, and one temperature compensation model is selected for subsequent real-time compensation of the measured temperature.
In any of the above solutions, preferably, the number of at least two data sub-packets is obtained according to the relative precision, the confidence level constant and the weight coefficient.
In the technical solution, parameters affecting the number of data sub-packets are specifically defined. The relative precision is determined by the precision of the NTC resistor, and for the convenience of detection, a fixed value resistor is connected in series with the NTC resistor, and the voltage of the fixed value resistor is collected, so the relative precision is determined by the precision of the NTC resistor and the fixed value resistor; reasonable test data size (i.e., number of data pairs) can be obtained in combination with the confidence level constant; on the basis, the number of the data sub-packets can be obtained by combining the weight coefficients, so that the data sub-packets can be divided reasonably, and the reliability of the generated temperature compensation model is improved.
In any of the above technical solutions, preferably, each data pair further includes a reference temperature, and before the operation of performing cluster calculation on the data packet, the method further includes: and deleting the data pair corresponding to the measured temperature based on the condition that the absolute value of the difference between the reference temperature and the measured temperature is greater than the preset value.
In the technical scheme, the data pair further comprises data of an analog temperature signal read by the thermocouple, namely reference temperature, and the reading of the thermocouple is relatively accurate and is used as reference, the measured temperature derived from voltage is compared with the reference temperature, and the data pair with overlarge difference with the reference temperature is filtered out, so that the accuracy of a temperature compensation model is improved, the detection precision of the temperature is improved, and the printed circuit board is protected more effectively.
In any of the above technical solutions, preferably, the method further includes: based on the condition that the update condition is satisfied, the temperature compensation model is updated.
In the technical scheme, along with the temperature detection, the number of the collected data pairs is gradually accumulated and increased, so that the reference data is increased, the temperature compensation model can be recalculated at a proper time to continuously improve and maintain the detection accuracy, and the printed circuit board is effectively protected.
According to a second aspect of the present invention, there is provided a computer apparatus comprising: a memory configured to store executable instructions; the processor is configured to execute the executable instructions to implement the steps of the method according to any of the above technical solutions, so as to have all technical effects of the temperature compensation method, which will not be described herein again.
According to a third aspect of the present invention, there is provided a computer-readable storage medium, having stored thereon executable instructions, which when executed by a processor, implement the steps of the method according to any of the above technical solutions, thereby achieving all the technical effects of the temperature compensation method, and the details of which are not repeated herein.
According to a fourth aspect of the present invention, there is provided a printed circuit board comprising: a memory configured to store executable instructions; the processor is configured to execute the executable instructions to implement the steps of the method according to any of the above technical solutions, so as to have all technical effects of the temperature compensation method, which will not be described herein again.
In the above technical solution, preferably, the temperature compensation device further includes an NTC resistor and a constant value resistor connected in series, and the voltage in the temperature compensation method is a voltage across the constant value resistor.
In the technical scheme, temperature measurement hardware of the printed circuit board is specifically introduced. An NTC resistor and a fixed value resistor (the precision is determined according to actual requirements) are connected in series on a 5V power supply to form an NTC signal acquisition circuit, wherein the NTC resistor is a temperature-sensitive resistor, the resistance value of the NTC resistor changes along with the temperature change, so that the change of the resistance value of the NTC resistor is reflected by outputting the voltage at two ends of the fixed value resistor, and the change of the resistance value of the NTC resistor reflects the change of the temperature, so that the temperature can be deduced by acquiring a voltage signal.
According to a fifth aspect of the present invention, there is provided a compressor, comprising the computer device according to the above technical solution, or the computer readable storage medium according to the above technical solution, or the printed circuit board according to any one of the above technical solutions, so as to have all the technical effects of the computer device, the computer readable storage medium, or the printed circuit board, which are not described herein again.
According to a sixth aspect of the present invention, there is provided a vehicle, comprising the computer device according to the above technical solution, or the computer-readable storage medium according to the above technical solution, or the printed circuit board according to any one of the above technical solutions, or the compressor according to the above technical solution, so as to have all the technical effects of the computer device, the computer-readable storage medium, the printed circuit board, or the compressor, which are not described herein again.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a schematic flow diagram of a temperature compensation method of one embodiment of the present invention;
FIG. 2 shows a schematic flow diagram of a temperature compensation method of another embodiment of the invention;
FIG. 3 shows a schematic flow diagram of a temperature compensation method of yet another embodiment of the present invention;
FIG. 4 shows a schematic flow diagram of a temperature compensation method of yet another embodiment of the invention;
FIG. 5 shows a schematic flow diagram of a temperature compensation method of yet another embodiment of the present invention;
FIG. 6 shows a schematic block diagram of a computer device of one embodiment of the present invention;
fig. 7 shows a circuit diagram of an NTC signal acquisition circuit arranged on a printed circuit board of one embodiment of the present invention;
fig. 8 illustrates a resistance value of an NTC resistor according to an embodiment of the present invention as a function of temperature;
fig. 9 shows a graph of the output voltage Uo of the NTC signal acquisition circuit according to an embodiment of the present invention as a function of temperature.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Embodiments of the first aspect of the invention provide a method of temperature compensation.
FIG. 1 shows a schematic flow diagram of a temperature compensation method of one embodiment of the present invention. As shown in fig. 1, the method includes:
s102, acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage and measured temperature, and the measured temperature is calculated by a voltage and voltage temperature relational expression;
s104, performing clustering calculation on the data packet to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group;
s106, fitting a voltage-temperature curve by the central data pair group;
and S108, generating a temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature.
According to the temperature compensation method provided by the invention, through a large number of semi-physical simulation tests, digital signals (namely voltages) of the NTC temperature-sensitive resistor are collected, data are analyzed by a signal processing method, specifically a clustering method, and finally a temperature compensation model for temperature real-time monitoring is established to compensate the measured temperature, so that the detection precision of the temperature can be improved, and the printed circuit board can be protected more effectively. Specifically, the temperature measurement hardware of the printed circuit board is shown in fig. 7, and comprises an NTC resistor R1 and a constant resistor R2 connected in series to output voltage
Figure BDA0001884091970000061
The calibrated voltage signal is read from the I/O of the printed circuit board, and the temperature signal, i.e. the measured temperature, is derived through the above calculation formula and the change-preventing performance of the NTC resistor R1 (as shown in fig. 8). Wherein the calibration process refers to calibrating the voltage to a constant, for example, for a voltage of 0 to 5V, corresponding to 0 to 4096, and the digital voltage signal is obtainedAnd amplifying to a numerical value between 0 and 4096 according to a linear relation to obtain an intermediate standard quantity without units and with increased numerical value, so that the calculation is convenient. When signal processing is carried out, one data pair comprises associated voltage and measured temperature, the voltage and the measured temperature are taken as a data point and are drawn in a two-dimensional coordinate system, a series of discrete points can be drawn by a data packet, a plurality of central points (namely, central data pairs) in the discrete points are found in a clustering mode to form a group of central data pair groups, and a voltage and temperature curve can be fitted. Optionally, K-mean clustering is employed, formulated as
Figure BDA0001884091970000062
Wherein x isn、μkRespectively representing the data pair and the central data pair, calculating mukFirstly, the initial value is substituted into the right side of equal sign to obtain correspondent L, and the mu is modifiedkDifferent L can be obtained, and the minimum value of L can be obtained to obtain muk. Determining mukThen, the voltage and temperature curve is fitted and compared with the theoretical voltage and temperature curve, so as to compensate the error, and obtain the corresponding mathematical expression, for example, for the same voltage, the temperature corresponding to the voltage and temperature curve is smaller than the temperature corresponding to the theoretical voltage and temperature curve by a certain amount, then the measured temperature derived by pushing down the voltage is reduced by the certain amount as compensation, and the mathematical expression forms the temperature compensation model.
Further, if necessary, a mapping relationship between voltage and temperature can be established according to the obtained temperature compensation model, for example, a data table with 255 elements is formed, and when the temperature compensation model is used for temperature compensation, the data table is searched by using a table lookup method only when a new voltage signal comes in, so as to obtain the corresponding temperature.
Fig. 2 shows a schematic flow diagram of a temperature compensation method according to another embodiment of the invention. As shown in fig. 2, the method includes:
s202, acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage and measured temperature, and the measured temperature is calculated by a voltage and voltage temperature relational expression;
s204, dividing the data packet into at least two data sub-packets including a modeling data sub-packet and a verification data sub-packet;
s206, performing clustering calculation on the modeling data sub-packets to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group;
s208, fitting a voltage-temperature curve by the central data pair group;
s210, generating a temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature;
s212, calculating the error of the temperature compensation model by using the verification data sub-packets;
and S214, selecting or rejecting the temperature compensation model based on the condition that the error meets the preset error condition.
In the embodiment, the data cross validation is adopted, the data packet is divided into at least two data sub-packets, at least one data sub-packet is used for modeling, the other at least one data sub-packet is used for validation, and the temperature compensation model is used only after the validation is passed, so that the accuracy of the temperature compensation model is improved. Further, when the verification is not passed, the modeling data sub-packet and the verification data sub-packet are exchanged, that is, the modeling is performed by using the verification data sub-packet, and then the verification is performed by using the modeling data sub-packet, so that it can be understood that the naming of the modeling data sub-packet and the verification data sub-packet is only used for distinguishing the functional distinction of different data sub-packets in a single calculation, and the specific data sub-packet is not limited. Further, if the verification is still failed, the data sub-packet may be re-divided to repeat these steps until a verified temperature compensation model is obtained.
Fig. 3 shows a schematic flow diagram of a temperature compensation method according to a further embodiment of the invention. As shown in fig. 3, the method includes:
s302, acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage and measured temperature, and the measured temperature is calculated by a voltage and voltage temperature relational expression;
s304, dividing the data packet into at least three data sub-packets, including at least two modeling data sub-packets and at least one verification data sub-packet;
s306, performing cluster calculation on at least two modeling data sub-packets respectively to obtain at least two central data pair groups, wherein each central data pair group comprises a plurality of central data pairs;
s308, fitting at least two corresponding voltage temperature curves by at least two central data pairs;
s310, generating at least two corresponding temperature compensation models according to the at least two voltage temperature curves and the theoretical voltage temperature curve;
s312, calculating errors of the at least two temperature compensation models by utilizing at least one verification data sub-packet;
s314, selecting the temperature compensation model with the minimum error for compensating the measured temperature.
In this embodiment, the number of the data sub-packets is specifically limited to at least three, wherein the data sub-packets include at least two modeling data sub-packets and at least one verification data sub-packet, so that at least two corresponding temperature compensation models can be calculated, and one of the models is selected for subsequent real-time compensation of the measured temperature. Optionally, the preset error condition is that the error in this embodiment is the minimum, that is, the temperature compensation model with the minimum error is found as the final model. Of course, other preset error conditions may also be adopted, for example, a corresponding temperature compensation model with the smallest error smaller than a preset value is selected, or a voltage temperature curve with the smallest error and the whole or most of temperature values higher than the theoretical voltage temperature curve is selected to ensure that the temperature of the printed circuit board is not too high, so that the measured temperature is increased when the measured temperature is compensated, and the timeliness of cooling is ensured. The above schemes are all the design concepts of the present invention, and therefore all the schemes are within the protection scope of the present invention.
In one embodiment of the present invention, preferably, the number of the at least two data sub-packets is derived from a relative precision, which is related to the NTC resistance and the fixed-value resistance, a confidence level constant and a weight coefficient.
In this embodiment, a parameter affecting the number M of data sub-packets is specifically defined. The relative precision is determined by the precision of the NTC resistor and the fixed value resistor, reasonable test data size (namely the number of data pairs) can be obtained by combining a confidence level constant, and on the basis, the number M of the data sub-packets can be obtained by combining a weight coefficient, so that the data sub-packets can be reasonably divided, and the reliability of the generated temperature compensation model is improved. Specifically, the test data size n satisfies:
Figure BDA0001884091970000081
wherein r ispIs the relative accuracy, THcIs a confidence level constant, a statistical parameter, associated with a confidence level. The number M of the data sub-packets satisfies:
Figure BDA0001884091970000082
wherein alpha is a weight coefficient and belongs to an empirical value. In other words, the number of data sub-packets M during cross-validation depends on a combination of the test data size, confidence level, and Thompson formula.
Fig. 4 shows a schematic flow diagram of a temperature compensation method according to a further embodiment of the invention. As shown in fig. 4, the method includes:
s402, acquiring a data packet, wherein the data packet comprises a plurality of data pairs, each data pair comprises associated voltage, measured temperature and reference temperature, the measured temperature is calculated by a voltage and voltage temperature relational expression, and the reference temperature is measured by a thermocouple;
s404, deleting a data pair corresponding to the measured temperature based on the condition that the absolute value of the difference between the reference temperature and the measured temperature is greater than a preset value;
s406, performing clustering calculation on the data packet to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group;
s408, fitting a voltage-temperature curve by the central data pair group;
and S410, generating a temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature.
In this embodiment, the data pair further includes data of an analog temperature signal read by the thermocouple, that is, a reference temperature, and since the reading of the thermocouple is relatively accurate, the data pair is used as a reference, the measured temperature derived from the voltage is compared with the reference temperature, and the data pair with an excessively large difference from the reference temperature is filtered out, which is helpful for improving the accuracy of the temperature compensation model, and further improving the detection precision of the temperature, so that the printed circuit board is protected more effectively.
In one embodiment of the present invention, preferably, the method further includes: based on the condition that the update condition is satisfied, the temperature compensation model is updated.
In this embodiment, as the temperature detection is performed, the number of the collected data pairs is gradually increased, so that the reference data is increased, and the temperature compensation model can be calculated again at an appropriate time to continuously improve and maintain the detection accuracy, so that the printed circuit board is more effectively protected. Alternatively, the update may be performed periodically or when the number of data pairs reaches a preset number.
In summary, as shown in fig. 5, in the temperature compensation method provided by the present invention, a large number of semi-physical simulation tests are performed to collect data of a digital signal (i.e., voltage) fed back by the NTC temperature-sensitive resistor and an analog signal (i.e., reference temperature) read by the thermocouple, the data is analyzed by using a signal processing method, a mapping relationship between the digital signal and the analog signal is established, and finally a temperature compensation model for real-time temperature monitoring is established to compensate the measured temperature, so that the detection accuracy of the temperature can be improved, and the printed circuit board can be protected more effectively.
As shown in fig. 6, an embodiment of the second aspect of the present invention provides a computer apparatus 10, including: a memory 102 configured to store executable instructions; the processor 104 is configured to execute the executable instructions to implement the steps of the method according to any of the above embodiments, so as to achieve all the technical effects of the temperature compensation method, which will not be described herein again. It should be noted that the main subject of the present embodiment is the computer device 10, in other words, the temperature compensation model is obtained by offline calculation of the computer device 10, and then the calculated temperature compensation model is downloaded to the chip of the printed circuit board, and when the temperature compensation model needs to be updated, the temperature compensation model is also recalculated by the computer device 10 and then downloaded to the chip of the printed circuit board.
In particular, the memory 102 may include mass storage for data or instructions. By way of example, and not limitation, memory 102 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 102 may include removable or non-removable (or fixed) media, where appropriate. The memory 102 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 102 is a non-volatile solid-state memory. In particular embodiments, memory 102 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 104 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
An embodiment of the third aspect of the present invention provides a computer-readable storage medium, on which executable instructions are stored, and when the executable instructions are executed by a processor, the steps of the method according to any of the above embodiments are implemented, so that the method has all technical effects of the temperature compensation method, and details are not repeated herein.
Computer readable storage media may include any medium that can store or transfer information. Examples of computer readable storage media include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
An embodiment of a fourth aspect of the present invention provides a printed circuit board including: a memory configured to store executable instructions; the processor is configured to execute the executable instructions to implement the steps of the method according to any of the above embodiments, so as to achieve all the technical effects of the temperature compensation method, which will not be described herein again. It should be noted that the main body of the present embodiment is the printed circuit board, in other words, the temperature compensation model is calculated on line by the printed circuit board directly using the detected data, and when the temperature compensation model needs to be updated, the printed circuit board is also updated on line by using the newly detected data.
As shown in fig. 7, in one embodiment of the present invention, the printed circuit board preferably further includes an NTC resistor R1 and a fixed resistor R2 connected in series, and the voltage in the temperature compensation method is a voltage across the fixed resistor.
In this embodiment, the temperature measurement hardware of the printed circuit board is specifically described. As shown in FIG. 7, an NTC resistor R1 and a constant resistor R2 (the accuracy is determined according to actual requirements) are connected in series to a 5V VCC power supply to form an NTC signal acquisition circuit, and modeling is performed according to the circuit diagram to obtain an output voltage
Figure BDA0001884091970000111
The NTC resistor R1 is a temperature-sensitive resistor, and its resistance changes with temperature (as shown in fig. 8, given by a data table), so that the change of the resistance of the NTC resistor R1 is reflected by the voltage Uo, the change of the resistance of the NTC resistor R1 reflects the change of temperature, a voltage signal is collected, and the chip calibrates the collected signal as the input of the signal. Specifically, the fixed resistance R2 is 10K Ω.
And then, carrying out theoretical temperature drift analysis on the circuit, carrying out dynamic simulation by adopting a Monte Carlo simulation method based on the fact that the deviation of the influence of the temperature on the resistance value of the NTC resistor R1 is in normal distribution, and determining the influence of the resistance value change of the NTC resistor R1 on the output voltage UOAnd ringing, thereby quantifying the temperature drift effect. Suppose that the NTC resistor R1 and the constant resistor R2 have deviations, and the deviations are normally distributed in N (0, sigma) to (0)2) The value of σ is related to the accuracy of the resistance, here 3%, and the temperature interval is 5 ℃ as given in the data sheet. Monte Carlo simulation is adopted for analysis to obtain a graph 9, wherein a continuous curve is an interference-free theoretical curve, namely Uo corresponding to different temperatures under the interference-free theoretical condition, and a discrete vertical line with a certain height is a simulation curve of normal distribution noise, namely the value range of the Uo corresponding to different temperatures under the influence of the normal distribution noise. As can be seen from fig. 9, as the temperature increases, the error of the Uo is gradually enlarged, for example, 80 ℃ corresponds to a plurality of hash points, and values of the Uo corresponding to the temperature intervals of 5 ℃ above and below overlap, so that the accuracy of temperature measurement is reduced. In addition, a clustering mode, such as K-mean clustering based on normal distribution, may be adopted only for the temperature in fig. 9 where the values of Uo overlap at the temperature interval to generate a temperature compensation model and perform temperature compensation, which is helpful to reduce the amount of computation.
In summary, the printed circuit board involves the NTC signal acquisition circuit, the establishment of a temperature compensation model (numerical calculation), the input and output of a temperature signal stream, and software and hardware for detecting the temperature in real time when performing temperature compensation.
An embodiment of the fifth aspect of the present invention provides a compressor, which includes the computer device 10 according to the foregoing embodiment, or the computer readable storage medium according to the foregoing embodiment, or the printed circuit board according to any of the foregoing embodiments, so as to have all technical effects of the computer device 10, the computer readable storage medium, or the printed circuit board, which are not described herein again.
An embodiment of a sixth aspect of the present invention provides a vehicle, including the computer device 10 according to the above-mentioned embodiment, or the computer-readable storage medium according to the above-mentioned embodiment, or the printed circuit board according to any of the above-mentioned embodiments, or the compressor according to the above-mentioned embodiments, so as to have all the technical effects of the computer device 10, or the computer-readable storage medium, or the printed circuit board, or the compressor, which are not described herein again.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of temperature compensation, comprising:
obtaining a data packet comprising a plurality of data pairs, each data pair comprising an associated voltage and a measured temperature, the measured temperature being calculated from the voltage and voltage temperature relationship;
performing clustering calculation on the data packet to obtain a plurality of central data pairs, wherein the plurality of central data pairs form a central data pair group;
fitting a voltage temperature curve to the pair group by the central data;
generating a temperature compensation model according to the voltage temperature curve and a theoretical voltage temperature curve, wherein the temperature compensation model is used for compensating the measured temperature;
each of the data pairs further includes a reference temperature, and prior to the operation of performing a cluster calculation on the data packets, further includes:
and deleting the data pair corresponding to the measured temperature based on the condition that the absolute value of the difference between the reference temperature and the measured temperature is greater than a preset value.
2. The temperature compensation method of claim 1,
before the operation of performing cluster calculation on the data packet, the method further comprises:
dividing the data packet into at least two data sub-packets including a modeling data sub-packet and a verification data sub-packet;
the operation of performing cluster computation on the data packet comprises:
performing clustering calculation on the modeling data sub-packets;
after the operation of generating the temperature compensation model according to the voltage temperature curve and the theoretical voltage temperature curve, the method further comprises the following steps:
calculating an error of the temperature compensation model by using the verification data sub-packets;
and selecting or rejecting the temperature compensation model based on the condition that the error meets a preset error condition.
3. The method of claim 2, wherein the number of the at least two data sub-packets is at least three, including at least two of the modeling data sub-packets and at least one of the verification data sub-packets;
the step of performing cluster calculation on the data packet to obtain a plurality of central data pairs, where the plurality of central data pairs form a central data pair group, includes:
respectively carrying out clustering calculation on at least two modeling data sub-packets to obtain at least two central data pair groups;
the step of calculating the error of the temperature compensation model using the verification data sub-packets comprises:
calculating the error of the temperature compensation model corresponding to the at least two pairs of center data using at least one of the verification data sub-packets.
4. The temperature compensation method of claim 2,
the number of the at least two data sub-packets is obtained from the relative accuracy, the confidence level constant and the weight coefficient.
5. The temperature compensation method of any one of claims 1 to 4, further comprising:
updating the temperature compensation model based on a condition that an update condition is satisfied.
6. A computer device, comprising:
a memory configured to store executable instructions;
a processor configured to execute the executable instructions to implement the steps of the method of any one of claims 1 to 5.
7. A computer-readable storage medium having stored thereon executable instructions, which when executed by a processor, implement the steps of the method according to any one of claims 1 to 5.
8. A printed circuit board, comprising:
a memory configured to store executable instructions;
a processor configured to execute the executable instructions to implement the steps of the method of any one of claims 1 to 5.
9. The printed circuit board of claim 8, further comprising an NTC resistor and a fixed resistor connected in series, wherein the voltage is a voltage across the fixed resistor.
10. A compressor, comprising:
the computer device of claim 6; or
The computer-readable storage medium of claim 7; or
A printed circuit board according to claim 8 or 9.
11. A vehicle, characterized by comprising:
the computer device of claim 6; or
The computer-readable storage medium of claim 7; or
A printed circuit board according to claim 8 or 9; or
The compressor of claim 10.
CN201811449130.8A 2018-11-28 2018-11-28 Temperature compensation method, printed circuit board, compressor and vehicle Active CN111238667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811449130.8A CN111238667B (en) 2018-11-28 2018-11-28 Temperature compensation method, printed circuit board, compressor and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811449130.8A CN111238667B (en) 2018-11-28 2018-11-28 Temperature compensation method, printed circuit board, compressor and vehicle

Publications (2)

Publication Number Publication Date
CN111238667A CN111238667A (en) 2020-06-05
CN111238667B true CN111238667B (en) 2021-10-08

Family

ID=70871282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811449130.8A Active CN111238667B (en) 2018-11-28 2018-11-28 Temperature compensation method, printed circuit board, compressor and vehicle

Country Status (1)

Country Link
CN (1) CN111238667B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111998235B (en) * 2020-08-12 2022-08-30 深圳市祥为测控技术有限公司 Temperature compensation method and device for leakage positioning and computer storage medium
CN112284556B (en) * 2020-10-23 2023-04-18 深圳市新威尔电子有限公司 Calibration system and method with temperature compensation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176627A (en) * 2011-02-10 2011-09-07 张佳宾 Adaptive measurement and control system for charge-discharge process of integrated storage battery
CN102799707A (en) * 2012-06-08 2012-11-28 上海交通大学 Method and device for controlling sensors during dynamic heat management of micro processor
CN104236009A (en) * 2013-06-20 2014-12-24 广东美的制冷设备有限公司 Conditioner signal acquisition compensating device and method
CN106597852A (en) * 2016-12-27 2017-04-26 中国船舶重工集团公司第七0五研究所 MEMS gyroscope temperature compensation method based on RBF neural network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7968473B2 (en) * 2006-11-03 2011-06-28 Applied Materials, Inc. Low temperature process for depositing a high extinction coefficient non-peeling optical absorber for a scanning laser surface anneal of implanted dopants

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176627A (en) * 2011-02-10 2011-09-07 张佳宾 Adaptive measurement and control system for charge-discharge process of integrated storage battery
CN102799707A (en) * 2012-06-08 2012-11-28 上海交通大学 Method and device for controlling sensors during dynamic heat management of micro processor
CN104236009A (en) * 2013-06-20 2014-12-24 广东美的制冷设备有限公司 Conditioner signal acquisition compensating device and method
CN106597852A (en) * 2016-12-27 2017-04-26 中国船舶重工集团公司第七0五研究所 MEMS gyroscope temperature compensation method based on RBF neural network

Also Published As

Publication number Publication date
CN111238667A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN111238667B (en) Temperature compensation method, printed circuit board, compressor and vehicle
CN108761281B (en) Method and system for monitoring state and positioning partial discharge of gas insulated transmission line
CN103961066B (en) A kind of temp measuring method and temperature measuring equipment
CN109799473B (en) Measurement data calibration method and device for power system
KR20200131831A (en) Sensor calibration
CN114216938B (en) Gas concentration detection compensation method and device
CN108779995B (en) Sensor for detecting an environmental parameter and method for calibrating such a sensor
CN105092095A (en) Temperature calibrating method and device
JP4495141B2 (en) Battery state determination method, battery state determination device, and battery power supply system
US20140298097A1 (en) System and method for correcting operational data
CN112731815B (en) Method for improving analog quantity acquisition precision
CN117332205B (en) High-precision automatic optimization method and device for temperature compensation resistance of piezoresistor
CN110866347A (en) Method and apparatus for estimating lifetime of display device, and storage medium
CN112067166B (en) Thermal resistor checking method
KR100909660B1 (en) Error compensator of sensor measurement circuit and its method
CN110530544A (en) A kind of temperature correction method and system
CN108761161A (en) A kind of power meter temperature influences error compensating method and device
JP2019039764A (en) Impedance estimating device
CN109405884B (en) System and method for realizing humidity calibration function based on temperature and humidity sensor
CN108919063B (en) Electric field telemetry system and method based on capacitance correction principle
CN101446503A (en) Method for indicating values of corrector and device thereof
CN116295528A (en) Nonlinear piecewise temperature compensation method for MEMS gyroscope
CN113959511B (en) Flow metering method, equipment, medium and product based on jet flow water meter
CN116047340A (en) Fuel cell stack impedance measurement correction method and device and electronic equipment
CN115372885A (en) Metering terminal precision correction method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220729

Address after: 246008 floor 3, building B1, Binjiang New Area incubation center phase I, Chuangye Road, Anqing Economic and Technological Development Zone, Anhui Province

Patentee after: Anqing Weiling Auto Parts Co.,Ltd.

Patentee after: Anhui Weiling Auto Parts Co.,Ltd.

Patentee after: GUANGDONG WELLING AUTO PARTS Co.,Ltd.

Address before: 528311 Building No. 21 Gangqian Road, Industrial Park, Beijiao Town, Shunde District, Foshan City, Guangdong Province

Patentee before: GUANGDONG WELLING AUTO PARTS Co.,Ltd.

TR01 Transfer of patent right