CN107271081B - Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting - Google Patents
Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting Download PDFInfo
- Publication number
- CN107271081B CN107271081B CN201710302488.7A CN201710302488A CN107271081B CN 107271081 B CN107271081 B CN 107271081B CN 201710302488 A CN201710302488 A CN 201710302488A CN 107271081 B CN107271081 B CN 107271081B
- Authority
- CN
- China
- Prior art keywords
- value
- temperature
- stage
- pressure
- temperature compensation
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L1/00—Measuring force or stress, in general
- G01L1/18—Measuring force or stress, in general using properties of piezo-resistive materials, i.e. materials of which the ohmic resistance varies according to changes in magnitude or direction of force applied to the material
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L19/00—Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
- G01L19/04—Means for compensating for effects of changes of temperature, i.e. other than electric compensation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L9/00—Measuring steady of quasi-steady pressure of fluid or fluent solid material by electric or magnetic pressure-sensitive elements; Transmitting or indicating the displacement of mechanical pressure-sensitive elements, used to measure the steady or quasi-steady pressure of a fluid or fluent solid material, by electric or magnetic means
- G01L9/02—Measuring steady of quasi-steady pressure of fluid or fluent solid material by electric or magnetic pressure-sensitive elements; Transmitting or indicating the displacement of mechanical pressure-sensitive elements, used to measure the steady or quasi-steady pressure of a fluid or fluent solid material, by electric or magnetic means by making use of variations in ohmic resistance, e.g. of potentiometers, electric circuits therefor, e.g. bridges, amplifiers or signal conditioning
- G01L9/06—Measuring steady of quasi-steady pressure of fluid or fluent solid material by electric or magnetic pressure-sensitive elements; Transmitting or indicating the displacement of mechanical pressure-sensitive elements, used to measure the steady or quasi-steady pressure of a fluid or fluent solid material, by electric or magnetic means by making use of variations in ohmic resistance, e.g. of potentiometers, electric circuits therefor, e.g. bridges, amplifiers or signal conditioning of piezo-resistive devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Algebra (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Measuring Fluid Pressure (AREA)
Abstract
The invention belongs to the technical field of pressure transmitters, and particularly relates to a silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting. The invention relates to a silicon piezoresistive pressure transmitter temperature compensation method based on two-stage least square fitting, which comprises the following steps: modeling a temperature compensation model by a two-stage least square method; storing the coefficient matrix of the temperature compensation model into an EPROM of a pressure transmitter; and calculating the pressure value after the output temperature compensation according to the input pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model. The temperature compensation method can improve the measurement accuracy of the pressure transmitter, reduce the memory consumption of the pressure transmitter, and improve the operation efficiency of the temperature compensation program.
Description
Technical Field
The invention belongs to the technical field of pressure transmitters, and particularly relates to a silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting.
Background
In the manufacturing process of the monocrystalline silicon piezoresistive pressure sensor, the factors such as temperature coefficient difference of resistivity, mismatching of temperature expansion coefficients among packaging materials, temperature influence on the performance of electronic elements and the like are caused by incomplete consistency of ion implantation concentration, so that the change of the ambient temperature can cause zero point offset and sensitivity drift of the sensor, and meanwhile, the output linearity of the sensor is influenced, so that a final measurement result is inaccurate, and therefore, the problem of temperature compensation is not ignored as a key link for improving the overall performance of the sensor.
The current temperature compensation method mainly comprises hardware compensation and software compensation. The hardware compensation carries out optimal configuration on the measurement circuit by changing circuit parameters, but the compensation method has the defects of inconvenient debugging, limited precision, weak process flexibility, increased cost and the like, is unfavorable for production popularization, and the software compensation gradually becomes a focus because the defects can be avoided. The most commonly used software compensation algorithm is a piecewise linear interpolation method, and the method carries out temperature compensation by storing calibration data obtained through experiments into a pressure sensor memory (EPROM) as interpolation points, and has the following main defects: 1. when interpolation points are not more, nonlinear characteristics of the output of the pressure sensor cannot be fully reflected, and measurement accuracy is affected; 2. the data which is needed to be stored in the pressure sensor memory (EPROM) is more, and the hardware cost is increased; 3. when the required compensation accuracy is improved, the compensation calculation operation efficiency is low.
Disclosure of Invention
One of the objectives of the present invention is to overcome the above drawbacks and provide a method for improving the measurement accuracy of a pressure transmitter, reducing the memory consumption of the pressure transmitter, and improving the operating efficiency of a temperature compensation program.
In order to solve the technical problems, the invention provides a silicon piezoresistive pressure transmitter temperature compensation method based on two-stage least squares fitting, which comprises the following steps:
modeling a temperature compensation model by a two-stage least square method;
storing the coefficient matrix of the temperature compensation model into an EPROM of a pressure transmitter;
and calculating the pressure value after the output temperature compensation according to the input pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model.
Further, the two-stage least square fitting-based silicon piezoresistive pressure transmitter temperature compensation method is characterized in that the temperature compensation model is as follows:wherein P is a compensation pressure value, and the units Pa and U AD For pressure measurement AD value, C fit Coefficient matrix for temperature compensation model, T AD AD values were measured for temperature.
Further, the "modeling of the temperature compensation model by the two-stage least square method" specifically includes:
respectively collecting pressure measurement AD values under n standard pressure input values under m specified temperature values to obtain m x n pressure measurement AD values;
for each appointed temperature value, carrying out least square fitting with the fitting times of k on n standard pressure input values and n pressure measurement AD values to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
and carrying out least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with the length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and the coefficient matrix of the temperature compensation model.
Further, the polynomial function mapping relationship between the standard pressure input value and the pressure measurement AD value at the specified temperature value is:
the polynomial function coefficient matrix of the standard pressure input value and the pressure measurement AD value under the specified temperature value is as follows: />Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the number of first stage fits.
Further, the polynomial function mapping relationship between the temperature AD value and the first-stage coefficient row vector is as follows:the coefficient matrix of the temperature compensation model is as follows: />Wherein C is k ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting number, and l is the second stage fitting number.
Correspondingly, the invention also provides a silicon piezoresistive pressure transmitter temperature compensation device based on two-stage least square fitting, which comprises:
the first processing module is used for modeling a temperature compensation model through a two-stage least square method;
the second processing module is used for storing the coefficient matrix of the temperature compensation model into an EPROM of the pressure transmitter;
and the third processing module is used for calculating the pressure value after the output temperature compensation according to the input pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model.
Further, the temperature compensation model is:wherein P is a compensation pressure value, and the units Pa and U AD For pressure measurement AD value, C fit Coefficient matrix for temperature compensation model, T AD AD values were measured for temperature.
Further, the first processing module includes:
the first processing unit is used for respectively collecting pressure measurement AD values under n standard pressure input values under m appointed temperature values to obtain m x n pressure measurement AD values;
the second processing unit is used for carrying out least square fitting with the fitting times k on n standard pressure input values and n pressure measurement AD values for each appointed temperature value to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
and the third processing unit is used for carrying out least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with the length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and a coefficient matrix of the temperature compensation model.
Further, the polynomial function mapping relationship between the standard pressure input value and the pressure measurement AD value at the specified temperature value is:
the polynomial function coefficient matrix of the standard pressure input value and the pressure measurement AD value under the specified temperature value is as follows: />Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the number of first stage fits.
Further, the polynomial function mapping relationship between the temperature AD value and the first-stage coefficient row vector is as follows:the coefficient matrix of the temperature compensation model is as follows: />Wherein C is k ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting number, and l is the second stage fitting number.
The technical scheme of the invention has the beneficial effects that:
1. the measurement accuracy of the pressure transmitter can be improved.
The technical scheme of the invention considers the nonlinear characteristics of the output of the pressure transmitter, and ensures that all interpolation points reach the lower limit of compensation precision in the whole by introducing a least square method, namely the maximum compensation error can be controlled, thereby solving the problems that the traditional piecewise linear interpolation method cannot embody the nonlinear characteristics of the output of the pressure sensor and cannot ensure higher compensation precision beyond the interpolation points.
2. Memory consumption of the pressure transmitter is reduced.
According to the technical scheme, only the coefficient matrix of the temperature compensation model is needed to be stored in the memory of the pressure transmitter, and all sampling interpolation data are not needed to be stored in the memory like a piecewise linear interpolation method, so that the needed memory space is greatly reduced, and the hardware cost can be reduced.
3. The operating efficiency of the temperature compensation program can be improved.
According to the technical scheme, the pressure value after temperature compensation can be calculated and output once only by inputting the pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model, a linear section where a measured working point is located is obtained without carrying out lookup for a plurality of times like a piecewise linear interpolation algorithm, and measured data is substituted as input into the linear section to calculate corresponding pressure output.
Drawings
FIG. 1 is a flow chart of the steps of a method for temperature compensation of a silicon piezoresistive pressure transmitter based on a two-stage least squares fit.
FIG. 2 is a flow chart of a temperature compensation model modeling step by a two-stage least squares method of the present invention.
FIG. 3 is a block diagram of a temperature compensation device for a silicon piezoresistive pressure transmitter based on a two-stage least squares fit according to the present invention.
Fig. 4 is a block diagram of a first process module according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In electronic components, under the condition that other conditions are unchanged, the output signals drift along with the change of temperature, in order to reduce the phenomenon, a certain algorithm is generally adopted to correct the output results, the purpose of eliminating the influence of the temperature change on the output signals of the components in a certain range is achieved, and the processing mode is called temperature compensation of the electronic components.
The silicon piezoresistive pressure transmitter is a pressure sensor manufactured according to the piezoresistive effect principle of monocrystalline silicon, and receives external pressure and converts the external pressure into a standard output signal in proportion, and the signal output by the silicon piezoresistive pressure transmitter is also affected by the ambient temperature, so that the temperature compensation problem is not ignored as a key link for improving the overall performance of the sensor.
FIG. 1 is a flow chart of the steps of a method for temperature compensation of a silicon piezoresistive pressure transmitter based on two-stage least squares fitting according to the present invention, comprising the steps of:
step 1, modeling a temperature compensation model by a two-stage least square method;
when the ambient temperature remains unchanged, the pressure AD value measured by the silicon piezoresistive pressure transmitter and the pressure value input by the silicon piezoresistive pressure transmitter are not necessarily the same due to the disturbance of some manufacturing processes, and a certain nonlinear mapping relation which can be expressed as a polynomial function exists between the pressure AD value and the pressure AD value. Along with the change of the environmental temperature, the temperature can be considered to actually influence each coefficient of the polynomial function in the nonlinear mapping, so that different nonlinear mapping relations under different temperature conditions are formed.
Based on the principle, the temperature compensation model adopted by the technical scheme of the invention is as follows:wherein P is the compensated pressure value, i.e. taking into account the current ambient temperaturePressure value after element correction, unit Pa, U AD For pressure measurement of AD value, i.e. pressure value not taking into account ambient temperature factors, C fit Coefficient matrix for temperature compensation model, T AD For temperature measurement AD values, the AD values of the invention refer to digital signals output after analog-to-digital conversion.
Therefore, the key point of the technical scheme of the invention is how to calculate the coefficient matrix C of the temperature compensation model fit FIG. 2 is a flow chart of a temperature compensation model modeling step by a two-stage least squares method according to the present invention, comprising the steps of:
in order to calculate the coefficient matrix of the temperature compensation model, data needs to be sampled first, for example, pressure values of 1000, 0 and 1000 (unit, pa) are respectively input at the ambient temperatures of 20, 0 and 20 (unit, celsius), and the pressure AD value measured by the silicon piezoresistive pressure transmitter is read out to obtain 9 sampling values in total. The ambient temperature and the input pressure values mentioned here must be within the permissible operating range of a silicon piezoresistive pressure transmitter.
102, for each appointed temperature value, carrying out least square fitting with the fitting times of k on n standard pressure input values and n pressure measurement AD values to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
at any given temperature value, consider the functional relationship between the pressure input value and the pressure measurement AD value as:
the polynomial function mapping relationship between the standard pressure input value and the pressure measurement AD value at the m specified temperature values is: />
Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the number of first stage fits. At this time, a polynomial function coefficient matrix of the standard pressure input value and the pressure measurement AD value at the specified temperature value can be calculated by using a least squares fitting function in MATLAB, where the polynomial function coefficient matrix is:
and 103, carrying out least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with the length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and a coefficient matrix of the temperature compensation model.
If the coefficients of order Guan Nige in the first-stage coefficient matrix are expressed in vector form, the coefficient matrix may also be expressed in vector form as c= [ C (k), C (k-1), …, C (1), C (0)]Wherein vector C (k) = [ C 1,k ,…C i,k ,…,C m,k ] T Representing the coefficient before the kth term when the temperature level is m.
Since each coefficient vector C (k) has m elements and the temperature calibration points are also m, the least square fitting can be used again to establish the polynomial relationship of degree l (l.ltoreq.m) between the first-stage coefficient row vector and the temperature AD value:wherein C is k ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting frequency, l is the second stage fitting frequency, and then the coefficient matrix of the temperature compensation model is calculated by adopting the least square fitting function in MATLAB, wherein the coefficient matrix is as follows: />
and step 3, calculating the pressure value after the output temperature compensation according to the AD value measured by the input pressure, the AD value measured by the ambient temperature and the coefficient matrix of the temperature compensation model.
In the actual measurement process of the silicon piezoresistive pressure transmitter, firstly, the AD value of the ambient temperature and the AD value of the pressure (the pressure value which is not influenced by the ambient temperature factor) are measured, and then the coefficient matrix of the temperature compensation model in the EPROM is read, and the method comprises the following steps ofAnd calculating and outputting the corrected pressure value.
The following describes the steps of the temperature compensation method of the silicon piezoresistive pressure transmitter based on the two-stage least squares fitting according to a specific embodiment:
step 1, modeling a temperature compensation model of a monocrystalline silicon piezoresistive pressure transmitter with a measurement range of-40 KPa-40KPa and a working temperature range of-20 ℃ to 70 ℃, wherein the method comprises the following steps:
and step 3, calculating the pressure value after the output temperature compensation according to the AD value measured by the input pressure, the AD value measured by the ambient temperature and the coefficient matrix of the temperature compensation model.
In the actual measurement process of the silicon piezoresistive pressure transmitter, firstly, the AD value of the ambient temperature and the AD value of the pressure (the pressure value which is not influenced by the ambient temperature factor) are measured, and then the coefficient matrix of the temperature compensation model in the EPROM is read, and the method comprises the following steps ofAnd calculating and outputting the corrected pressure value.
The technical scheme of the invention considers the nonlinear characteristics of the output of the pressure transmitter, and ensures that all interpolation points reach the lower limit of compensation precision in the whole by introducing a least square method, namely the maximum compensation error can be controlled, thereby solving the problems that the traditional piecewise linear interpolation method cannot embody the nonlinear characteristics of the output of the pressure sensor and cannot ensure higher compensation precision beyond the interpolation points.
In the above embodiment, if the piecewise linear interpolation method is adopted, 85 sets of values are formed by corresponding outputs (U) measured at 5 temperature points (T) and 17 pressure points (P) through experiments, and the values of each set of values are stored in the memory, where P, T are inputs and U is an output. Each data is stored in the memory as 16-ary single precision floating point numbers, each single precision data occupies 4 bytes, and a total of 4×3×85=1020 bytes are required. The technical scheme of the invention only needs to store 12 coefficient values related to the memory polynomial, each coefficient is represented by a double-precision 16-system number, each double-precision data occupies 8 bytes, the total occupied memory size is 8 x 12 = 96 bytes, and the memory occupation is greatly reduced.
The compensation precision of the existing piecewise linear interpolation algorithm is in a direct proportion relation with the obtained interpolation point, when the compensation precision requirement is high, a large number of calibration experiments are needed, and the calibration cost is too high. The interpolation method essentially carries out table lookup, when the accuracy is improved after compensation, table lookup calculation is carried out many times, the straight line section where the working point of actual measurement is located is obtained after table lookup is completed, and the measured data is substituted as input into the pressure output corresponding to the straight line calculation of the section, so that compensation can be completed. The technical scheme of the invention can calculate the pressure value after temperature compensation once only by inputting the pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model, thereby greatly improving the temperature compensation calculation efficiency.
FIG. 3 is a block diagram of a temperature compensation device for a silicon piezoresistive pressure transmitter based on two-stage least squares fitting according to the present invention, comprising:
the first processing module is used for modeling a temperature compensation model through a two-stage least square method;
wherein, the temperature compensation model is:wherein P is a compensation pressure value, and the units Pa and U AD For pressure measurement AD value, C fit Coefficient matrix for temperature compensation model, T AD AD values were measured for temperature.
The second processing module is used for storing the coefficient matrix of the temperature compensation model into an EPROM of the pressure transmitter;
and the third processing module is used for calculating the pressure value after the output temperature compensation according to the input pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model.
Fig. 4 is a block diagram of a first processing module according to the present invention, including:
the first processing unit is used for respectively collecting pressure measurement AD values under n standard pressure input values under m appointed temperature values to obtain m x n pressure measurement AD values; the present processing unit is used to collect sample data in order to calculate a coefficient matrix of the temperature compensation model.
The second processing unit is used for carrying out least square fitting with the fitting times k on n standard pressure input values and n pressure measurement AD values for each appointed temperature value to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
when the ambient temperature remains unchanged, the pressure AD value measured by the silicon piezoresistive pressure transmitter and the pressure AD value input by the silicon piezoresistive pressure transmitter are not necessarily the same due to the disturbance of some manufacturing processes, and a certain nonlinear mapping relation which can be expressed as a polynomial function exists between the pressure AD value measured by the silicon piezoresistive pressure transmitter and the pressure AD value, and the functional relation between the pressure AD value and the pressure AD value is considered as follows:the polynomial function mapping relationship between the standard pressure input value and the pressure measurement AD value at the m specified temperature values is: />Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the number of first stage fits. At this time, a polynomial function coefficient matrix of the standard pressure input value and the pressure measurement AD value at the specified temperature value can be calculated by using a least squares fitting function in a MATLAB mathematical calculation library, and is as follows: />
And the third processing unit is used for carrying out least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with the length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and a coefficient matrix of the temperature compensation model.
If the Guan Nige order coefficients in the first-stage coefficient matrix are expressed in vector form, the first-stage coefficient matrix may also be expressed in vector form as c= [ C (k), C (k-1), …, C (1), C (0)]Wherein vector C (k) = [ C 1,k ,…C i,k ,…,C m,k ] T Representing the coefficient before the kth term when the temperature level is m.
Again establishing the polynomial relation of degree l (l.ltoreq.m) between the first-stage coefficient row vector and the temperature AD value:wherein C is k ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting frequency, l is the second stage fitting frequency, and then the coefficient matrix of the temperature compensation model is calculated by adopting the least square fitting function in MATLAB, wherein the coefficient matrix is as follows: />
The foregoing detailed description will be given for the purpose of illustration only, and the invention is not limited to the above-described embodiments, but is to be construed as merely illustrative of the principles of the invention, as long as they are within the scope of the invention.
Claims (7)
1. The temperature compensation method of the silicon piezoresistive pressure transmitter based on the two-stage least square fitting is characterized by comprising the following steps:
modeling a temperature compensation model by a two-stage least square method; respectively collecting pressure measurement AD values under n standard pressure input values under m specified temperature values to obtain m x n pressure measurement AD values;
for each appointed temperature value, carrying out least square fitting with the fitting times of k on n standard pressure input values and n pressure measurement AD values to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
performing least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and a coefficient matrix of the temperature compensation model;
storing the coefficient matrix of the temperature compensation model into an EPROM of a pressure transmitter;
calculating a pressure value after output temperature compensation according to an input pressure measurement AD value, an ambient temperature measurement AD value and a coefficient matrix of the temperature compensation model;
the polynomial function mapping relation between the standard pressure input value and the pressure measurement AD value under the specified temperature value is as follows:
the polynomial function coefficient matrix of the standard pressure input value and the pressure measurement AD value under the specified temperature value is as follows: />Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the first stage fitting number;
the polynomial function mapping relation between the temperature AD value and the first-stage coefficient row vector is as follows:the coefficient matrix of the temperature compensation model is as follows: />Wherein C is k ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting number, and l is the second stage fitting number.
2. The method for temperature compensation of a silicon piezoresistive pressure transmitter based on two-stage least squares fitting according to claim 1, wherein the temperature compensation model is:wherein P is a compensation pressure value, and the units Pa and U AD For pressure measurement AD value, C fit Coefficient matrix for temperature compensation model, T AD AD values were measured for temperature.
3. A silicon piezoresistive pressure transmitter temperature compensation device based on two-stage least squares fitting, adopting the silicon piezoresistive pressure transmitter temperature compensation method based on two-stage least squares fitting as set forth in any one of claims 1-2, comprising:
the first processing module is used for modeling a temperature compensation model through a two-stage least square method;
the second processing module is used for storing the coefficient matrix of the temperature compensation model into an EPROM of the pressure transmitter;
and the third processing module is used for calculating the pressure value after the output temperature compensation according to the input pressure measurement AD value, the ambient temperature measurement AD value and the coefficient matrix of the temperature compensation model.
4. The two-stage least squares fitting based silicon piezoresistive pressure transmitter temperature of claim 3The temperature compensation device is characterized in that the temperature compensation model is as follows:wherein P is a compensation pressure value, and the units Pa and U AD For pressure measurement AD value, C fit Coefficient matrix for temperature compensation model, T AD AD values were measured for temperature.
5. The two-stage least squares fitting based silicon piezoresistive pressure transmitter temperature compensation device according to claim 3, wherein the first processing module comprises:
the first processing unit is used for respectively collecting pressure measurement AD values under n standard pressure input values under m appointed temperature values to obtain m x n pressure measurement AD values;
the second processing unit is used for carrying out least square fitting with the fitting times k on n standard pressure input values and n pressure measurement AD values for each appointed temperature value to obtain a polynomial function mapping relation between the standard pressure input values and the pressure measurement AD values under the appointed temperature values and a first-stage coefficient matrix;
and the third processing unit is used for carrying out least square fitting with fitting times of l on m appointed temperature AD values and coefficient row vectors with the length of m in the first-stage coefficient matrix to obtain a polynomial function mapping relation between the temperature AD values and the first-stage coefficient row vectors and a coefficient matrix of the temperature compensation model.
6. The device of claim 5, wherein the polynomial function mapping between the standard pressure input value and the pressure measurement AD value at the specified temperature value is:
standard pressure input value and pressure measurement AD value at the specified temperature valueThe polynomial function coefficient matrix is: />Wherein P is an input standard pressure value, and the unit Pa; u (U) AD For pressure measurement AD value, C i,k For the fitting coefficients, i=1, 2, …, m, k is the number of first stage fits.
7. The two-stage least squares fitting based temperature compensation device of a silicon piezoresistive pressure transmitter according to claim 5, wherein the polynomial function mapping relationship of the temperature AD value and the first stage coefficient row vector is:the coefficient matrix of the temperature compensation model is as follows: />Wherein C is K ,C k-1 ,…,C 1 ,C 0 Fitting coefficients for the first stage, C 0,0 ~C k,l For the temperature compensation coefficient, T AD For the temperature AD value, k is the first stage fitting number, and l is the second stage fitting number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710302488.7A CN107271081B (en) | 2017-05-02 | 2017-05-02 | Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710302488.7A CN107271081B (en) | 2017-05-02 | 2017-05-02 | Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107271081A CN107271081A (en) | 2017-10-20 |
CN107271081B true CN107271081B (en) | 2023-06-30 |
Family
ID=60074321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710302488.7A Active CN107271081B (en) | 2017-05-02 | 2017-05-02 | Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107271081B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108562306A (en) * | 2018-03-02 | 2018-09-21 | 无锡凌思科技有限公司 | A kind of comprehensive compensation method of MEMS gyroscope temperature-compensating |
CN111130542A (en) * | 2018-11-01 | 2020-05-08 | 北京自动化控制设备研究所 | Analog signal temperature compensation method |
CN112345127B (en) * | 2020-09-30 | 2022-07-15 | 北京自动化控制设备研究所 | Data fusion method for double-core composite silicon piezoresistive pressure sensor |
CN113884909B (en) * | 2021-09-30 | 2024-06-21 | 国网江苏省电力有限公司电力科学研究院 | Lithium battery circuit parameter and drift current identification method and device |
CN115993204A (en) * | 2021-10-20 | 2023-04-21 | 精量电子(深圳)有限公司 | Temperature compensation method and detection device for pressure sensor |
CN113984252B (en) * | 2021-10-27 | 2024-03-12 | 山东佰测传感科技股份有限公司 | Digital fitting temperature compensation system of resistance type differential pressure transmitter |
CN114279310B (en) * | 2021-12-24 | 2024-02-02 | 江苏希太芯科技有限公司 | Wafer thickness measurement dual-capacitance sensor calibration algorithm with temperature compensation |
CN116296047B (en) * | 2023-04-03 | 2023-09-29 | 淮阴工学院 | Temperature compensation improvement method of monocrystalline silicon pressure transmitter |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004170375A (en) * | 2002-11-22 | 2004-06-17 | Horiba Ltd | Thermopile array sensor |
CN101089574A (en) * | 2006-06-14 | 2007-12-19 | 昆山双桥传感器测控技术有限公司 | Error correcting method for pressure sensor |
CN101706346A (en) * | 2009-11-13 | 2010-05-12 | 中国航天科技集团公司第四研究院第四十四研究所 | Method for compensating for nonlinear temperature drift of measurement of intelligent force sensor |
CN104122031A (en) * | 2014-07-31 | 2014-10-29 | 西安交通大学 | Silicon pressure sensor temperature compensation method based on extreme learning machine |
CN104374514A (en) * | 2014-11-17 | 2015-02-25 | 中环天仪股份有限公司 | Temperature compensation method of silicon piezoresistive pressure transmitter |
KR20150025100A (en) * | 2013-08-28 | 2015-03-10 | 청주대학교 산학협력단 | A Scintillation Detector with Temperature Compensation Funtion and Control Method thereof |
-
2017
- 2017-05-02 CN CN201710302488.7A patent/CN107271081B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004170375A (en) * | 2002-11-22 | 2004-06-17 | Horiba Ltd | Thermopile array sensor |
CN101089574A (en) * | 2006-06-14 | 2007-12-19 | 昆山双桥传感器测控技术有限公司 | Error correcting method for pressure sensor |
CN101706346A (en) * | 2009-11-13 | 2010-05-12 | 中国航天科技集团公司第四研究院第四十四研究所 | Method for compensating for nonlinear temperature drift of measurement of intelligent force sensor |
KR20150025100A (en) * | 2013-08-28 | 2015-03-10 | 청주대학교 산학협력단 | A Scintillation Detector with Temperature Compensation Funtion and Control Method thereof |
CN104122031A (en) * | 2014-07-31 | 2014-10-29 | 西安交通大学 | Silicon pressure sensor temperature compensation method based on extreme learning machine |
CN104374514A (en) * | 2014-11-17 | 2015-02-25 | 中环天仪股份有限公司 | Temperature compensation method of silicon piezoresistive pressure transmitter |
Non-Patent Citations (1)
Title |
---|
扩散硅压力变送器的温度补偿方法;孟丹丹等;《仪器仪表用户》;20160408(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN107271081A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107271081B (en) | Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting | |
CN115950557B (en) | Intelligent temperature compensation method based on pressure transmitter | |
CN1519566A (en) | Sensor device, measuring system and calibrating method | |
CN101089574A (en) | Error correcting method for pressure sensor | |
WO2023061309A1 (en) | Method, apparatus and system for calibrating offset voltage of operational amplifier circuit | |
CN116243048B (en) | Voltage detection method, circuit, equipment and storage medium | |
CN113951859B (en) | Intracranial pressure sensor signal conditioning method | |
CN112946554B (en) | Calibration method of current sensor | |
CN112946560A (en) | Electric energy meter calibration method and device, electric energy meter and electric energy meter system | |
CN102096057A (en) | Calibration method and device of capacitance measurement circuit | |
CN111060197A (en) | Photoelectric detector and calibration and test method thereof | |
CN112415458A (en) | Current sensor linearity testing system and calibration method | |
CN115373372A (en) | Calibration method of analog quantity measurement module | |
CN110519356B (en) | Method and device for calibrating reporting success rate of gas meter | |
CN110617889B (en) | High-stability testing method applied to synthetic aperture microwave radiometer | |
CN112345813A (en) | Dynamic compensation method for dynamic measurement precision | |
CN212253981U (en) | Temperature test and compensation system of strain sensor | |
CN113687289B (en) | Measurement and self-calibration method and system of non-contact miniature voltage sensor | |
CN114235275B (en) | Calibration method and device of pressure sensor and electronic equipment | |
CN115597771A (en) | Sensor calibration method and high-precision calibration system device | |
CN107561355A (en) | A kind of temperature compensation system and method for peak power probe | |
CN113960256A (en) | Temperature compensation method for water content instrument | |
CN112782425A (en) | Acceleration measurement channel temperature compensation method and system of laser strapdown inertial measurement unit | |
CN106227150B (en) | A kind of method and apparatus based on software stated accuracy | |
CN116380339B (en) | Film gauge vacuum gauge calibration method and related equipment |
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 |