CN108732380A - A kind of trigonometric function temperature-compensation method - Google Patents
A kind of trigonometric function temperature-compensation method Download PDFInfo
- Publication number
- CN108732380A CN108732380A CN201810560713.1A CN201810560713A CN108732380A CN 108732380 A CN108732380 A CN 108732380A CN 201810560713 A CN201810560713 A CN 201810560713A CN 108732380 A CN108732380 A CN 108732380A
- Authority
- CN
- China
- Prior art keywords
- trigonometric function
- temperature
- fitting
- data
- coefficient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P15/00—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
- G01P15/02—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration by making use of inertia forces using solid seismic masses
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
- G06F7/548—Trigonometric functions; Co-ordinate transformations
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
Abstract
The invention discloses a kind of trigonometric function temperature-compensation method, the method includes:To needing the system of temperature-compensating to carry out warm circulation experiment in incubator;Experimental data is pre-processed, N groups wait for fitting data;Fitting data point, which is fitted, to be waited for N groups with trigonometric function, obtains trigonometric function expression formula:Initial data is compensated using trigonometric function expression formula and is compensated result;The fitting of a polynomial effect of high exponent number can be reached by realizing, and also can overcome the disadvantages that double-exponential function to complex curve fitting effect poor, while the technique effect that calculation amount is small.
Description
Technical field
The present invention relates to temperature-compensation method fields, and in particular, to a kind of trigonometric function temperature-compensation method.
Background technology
With the development of MEMS technology, inertial sensor becomes most widely used MEMS in the past few years
One of device, wherein micro-acceleration gauge have become the inertial device for being widely used in measuring object acceleration.But environment temperature
The variation of degree is one of the most important reason that mems accelerometer generates error, and it causes the performance of mems accelerometer big
The reduction of amplitude.
Existing temperature compensation software method is to use polynomial function mostly:
Such as y=a0+a1×x+a2×x2+a3×x3..., since polynomial function calculates simply, may be used linearly most
Therefore small square law fitting is widely used.However there is also certain limitations for polynomial function, since temperature curve has
Nonlinear feature needs to use higher order when in face of more complicated temperature curve.Therefore parameter is more, calculates
Amount increases.Neural network and Kalman filtering scheduling algorithm can also effectively compensate temperature curve, but algorithm comparison
Complexity is only limitted to theoretical research, it is difficult to be integrated into sensor chip.
Invention content
The present invention provides a kind of trigonometric function temperature-compensation methods, solve existing temperature-compensation method calculation amount
Greatly, complicated technical problem is calculated, the fitting of a polynomial effect that can reach high exponent number is realized, also can overcome the disadvantages that double-exponential function
To complex curve fitting effect poor, while the technique effect that calculation amount is small.
For achieving the above object, this application provides a kind of trigonometric function temperature-compensation method, the method includes:
To needing the system of temperature-compensating to carry out warm circulation experiment in incubator;
Experimental data is pre-processed, N groups wait for fitting data;
Fitting data point, which is fitted, to be waited for N groups with trigonometric function, obtains trigonometric function expression formula:
Y=a0+a1×sin(x)+a2×cos(x);Wherein, N is the positive integer more than or equal to 2, a0For linear coefficient;a1For
Sinusoidal coefficients;a2For cosine coefficient;X is function argument, that is, corresponding temperature value;
Initial data is compensated using trigonometric function expression formula and is compensated result.
Further, this method waits for that fitting data point is fitted using trigonometric function least square method to N groups, specific to wrap
It includes:
Initial data is pre-processed, scatter plot (X is obtainedi Yi), XiFor temperature voltage value, YiFor output voltage values;
Determine fitting function expression formula:Y=a0+a1×sin(x)+a2×cos(x);
Using linear least square design factor;
1. needing to construct one group of coefficient now, it is set to meet minimum with the extent of deviation of raw data points, i.e.,
2. a pair function is replaced, as follows
3. I be coefficient a0,a1,...,anThe function of many variables, so the above problem, which can be converted to, solves function of many variables I
The problem of extreme value.The necessary condition that extreme value is solved according to the function of many variables, seeks partial derivative, making it equal to 0 can obtain to each coefficient
4. normal equation system can be obtained after abbreviation
By data (Xi Yi) bring normal equation system into, normal equation system is solved, coefficient and function expression are obtained.
Further, carrying out pretreatment to data includes:Using wavelet analysis carry out noise reduction process, smoothing processing, etc. between
Every sampling abnormal value elimination.
One or more technical solution provided by the present application, has at least the following technical effects or advantages:
The Taylor expansion of trigonometric function in the application has infinite exponent number, when coping with nonlinear temperature curve,
The fitting of a polynomial effect that high exponent number can be reached also can overcome the disadvantages that double-exponential function to complex curve fitting effect poor.
Expression formula coefficient ratio in this method is less, only a0, a1, a2Three coefficients, are counted using least square method
It calculates, calculation amount is smaller.
The compensation circuit easy of integration in mems accelerometer is designed if necessary, can use cordic algorithm or is looked into
Look for the methods of table design compensation circuit module, it is only necessary to which addition and subtraction iteration can calculate trigonometric function, and hardware resource is few.
Description of the drawings
Attached drawing described herein is used for providing further understanding the embodiment of the present invention, constitutes one of the application
Point, do not constitute the restriction to the embodiment of the present invention;
Fig. 1 is the application intermediate cam function temperature-compensation method block schematic illustration;
Fig. 2 is the application intermediate cam function least square method flow diagram;
Fig. 3 is the application intermediate cam Function Fitting effect diagram;
Fig. 4 is effect temperature compensation schematic diagram in the application.
Specific implementation mode
The present invention provides a kind of trigonometric function temperature-compensation methods, solve existing temperature-compensation method calculation amount
Greatly, complicated technical problem is calculated, the fitting of a polynomial effect that can reach high exponent number is realized, also can overcome the disadvantages that double-exponential function
To complex curve fitting effect poor, while the technique effect that calculation amount is small.
To better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting mutually, the application's
Feature in embodiment and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
Implemented with being different from the other modes being described herein in range using other, therefore, protection scope of the present invention is not by under
The limitation of specific embodiment disclosed in face.
A kind of trigonometric function temperature-compensation method, flow diagram is as shown in Figure 1, detailed process is as follows:
To needing the system of temperature-compensating to carry out warm circulation experiment in incubator;
Experimental data is pre-processed, including the use of wavelet analysis, smoothing processing, equal interval sampling;
N group data points are fitted with trigonometric function, obtain trigonometric function expression formula;
Initial data is compensated using trigonometric function expression formula and is compensated result.
Trigonometric function fitting algorithm flow chart is as shown in Figure 2.
Algorithm includes trigonometric function model y=a0+a1×sin(x)+a2×cos(x)。
Fitting coefficient is a0, a1, a2。
Backoff algorithm mainly uses least square method, obtains pretreated N groups first and waits for fitting data (Xi, Yi) (i=
1,2,3,4 ... N);Secondly fitting function expression formula, that is, y=a is determined0+a1×sin(x)+a2×cos(x);Next it calculates
To the system of linear equations about coefficient, i.e. normal equation system;Finally bring N groups data (Xi, Yi) (i=1,2,3,4 ... N) into method
Equation group solves coefficient and obtains function expression.
A kind of compensation system realization may be used in specific embodiment:
MEMS sensor containing temperature sensor is subjected to warm circulation experiment, obtains the temperature in certain temperature range
Degree-output data.
Data are used into MATLAB processing, and is obtained sampling at equal intervals and obtains the data point for needing to be fitted.
It determines trigonometric function and is fitted using least square method, obtain fitting coefficient.
A compensation circuit being integrated into MEMS sensor is designed, cordic algorithm or lookup may be used in trigonometric function
The methods of table is realized, rom packing coefficients are used in compensation circuit, are directly compensated to output.
The present invention is used and is compensated to the temperature curve of mems accelerometer using the function feature of trigonometric function, due to
Final compensation result (following Fig. 3, shown in 4), fitting precision reaches RSME=4.7024E-05, Rsquare=0.9947, compensation
Temperature curve peak-to-peak value reduces an order of magnitude or more afterwards.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (3)
1. a kind of trigonometric function temperature-compensation method, which is characterized in that the method includes:
To needing the system of temperature-compensating to carry out warm circulation experiment in incubator;
Experimental data is pre-processed, N groups wait for fitting data;
Fitting data point, which is fitted, to be waited for N groups with trigonometric function, obtains trigonometric function expression formula:
Y=a0+a1×sin(x)+a2×cos(x);Wherein, N is the positive integer more than or equal to 2, a0For linear coefficient;a1For sine
Coefficient;a2For cosine coefficient;X is function argument, that is, corresponding temperature value;
Initial data is compensated using trigonometric function expression formula and is compensated result.
2. trigonometric function temperature-compensation method according to claim 1, which is characterized in that this method uses trigonometric function most
Small square law waits for that fitting data point is fitted to N groups, specifically includes:
Initial data is pre-processed, scatter plot (X is obtainedi Yi), XiFor temperature voltage value, YiFor output voltage values;
Determine fitting function expression formula:Y=a0+a1×sin(x)+a2×cos(x);
The system of linear equations about coefficient is calculated;
By data (Xi Yi) bring system of linear equations into, system of linear equations is solved, coefficient and function expression are obtained.
3. trigonometric function temperature-compensation method according to claim 1 or 2, which is characterized in that pre-processed to data
Including:Utilize wavelet analysis, smoothing processing, equal interval sampling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810560713.1A CN108732380A (en) | 2018-05-25 | 2018-05-25 | A kind of trigonometric function temperature-compensation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810560713.1A CN108732380A (en) | 2018-05-25 | 2018-05-25 | A kind of trigonometric function temperature-compensation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108732380A true CN108732380A (en) | 2018-11-02 |
Family
ID=63931545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810560713.1A Pending CN108732380A (en) | 2018-05-25 | 2018-05-25 | A kind of trigonometric function temperature-compensation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108732380A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111271810A (en) * | 2020-01-08 | 2020-06-12 | 宁波奥克斯电气股份有限公司 | Air conditioner control method, control system, air conditioner and computer storage medium |
CN113063964A (en) * | 2021-03-23 | 2021-07-02 | 西安微电子技术研究所 | Temperature compensation type quartz flexible accelerometer servo circuit and quartz flexible accelerometer |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135723A (en) * | 2007-07-26 | 2008-03-05 | 北京航空航天大学 | Universal electric power mutual-inductor verify device |
CN101142049A (en) * | 2005-02-15 | 2008-03-12 | 电子科学工业公司 | Method for correcting systematic errors in a laser processing system |
CN101718584A (en) * | 2008-10-10 | 2010-06-02 | 电子科技大学 | Method for calculating linearity and conversion efficiency of all-optimal sampling based on polynomial fitting |
CN101980453A (en) * | 2010-10-16 | 2011-02-23 | 中国科学院上海微***与信息技术研究所 | Method and system for estimating and compensating Doppler frequency |
CN102519471A (en) * | 2011-12-08 | 2012-06-27 | 北京控制工程研究所 | Imaging type earth sensor earth oblateness compensation method based on trigonometric function fitting |
CN103453898A (en) * | 2013-09-09 | 2013-12-18 | 无锡慧联信息科技有限公司 | Method for improving north-seeking precision of fiber-optic gyroscope in severe environment |
CN104467816A (en) * | 2014-12-29 | 2015-03-25 | 电子科技大学 | Temperature compensation system of crystal oscillator |
CN104535091A (en) * | 2014-12-29 | 2015-04-22 | 华中科技大学 | Optical fiber sensing unit and application thereof for simultaneously measuring refractive index and temperature |
CN105868475A (en) * | 2016-03-30 | 2016-08-17 | 中国科学院国家天文台 | Quasi real-time assistant control method and system of telescope reflecting surface |
CN106406830A (en) * | 2015-07-29 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Quasi-periodic signal prediction method and device |
CN106603068A (en) * | 2016-12-09 | 2017-04-26 | 电子科技大学 | Temperature compensating system of temperature compensated crystal oscillator |
-
2018
- 2018-05-25 CN CN201810560713.1A patent/CN108732380A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101142049A (en) * | 2005-02-15 | 2008-03-12 | 电子科学工业公司 | Method for correcting systematic errors in a laser processing system |
CN101135723A (en) * | 2007-07-26 | 2008-03-05 | 北京航空航天大学 | Universal electric power mutual-inductor verify device |
CN101718584A (en) * | 2008-10-10 | 2010-06-02 | 电子科技大学 | Method for calculating linearity and conversion efficiency of all-optimal sampling based on polynomial fitting |
CN101980453A (en) * | 2010-10-16 | 2011-02-23 | 中国科学院上海微***与信息技术研究所 | Method and system for estimating and compensating Doppler frequency |
CN102519471A (en) * | 2011-12-08 | 2012-06-27 | 北京控制工程研究所 | Imaging type earth sensor earth oblateness compensation method based on trigonometric function fitting |
CN103453898A (en) * | 2013-09-09 | 2013-12-18 | 无锡慧联信息科技有限公司 | Method for improving north-seeking precision of fiber-optic gyroscope in severe environment |
CN104467816A (en) * | 2014-12-29 | 2015-03-25 | 电子科技大学 | Temperature compensation system of crystal oscillator |
CN104535091A (en) * | 2014-12-29 | 2015-04-22 | 华中科技大学 | Optical fiber sensing unit and application thereof for simultaneously measuring refractive index and temperature |
CN106406830A (en) * | 2015-07-29 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Quasi-periodic signal prediction method and device |
CN105868475A (en) * | 2016-03-30 | 2016-08-17 | 中国科学院国家天文台 | Quasi real-time assistant control method and system of telescope reflecting surface |
CN106603068A (en) * | 2016-12-09 | 2017-04-26 | 电子科技大学 | Temperature compensating system of temperature compensated crystal oscillator |
Non-Patent Citations (3)
Title |
---|
冯林 等: ""标准击实试验的曲线拟合方法"", 《路基工程》 * |
刘一兵 等: ""一种基于传感器温度补偿的双指数函数拟合算法"", 《电子应用技术》 * |
朱冬冬 等: ""基于硬件算法库的三角函数二次拟合查表法"", 《中国仪器仪表》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111271810A (en) * | 2020-01-08 | 2020-06-12 | 宁波奥克斯电气股份有限公司 | Air conditioner control method, control system, air conditioner and computer storage medium |
CN113063964A (en) * | 2021-03-23 | 2021-07-02 | 西安微电子技术研究所 | Temperature compensation type quartz flexible accelerometer servo circuit and quartz flexible accelerometer |
CN113063964B (en) * | 2021-03-23 | 2023-07-14 | 西安微电子技术研究所 | Temperature compensation type quartz flexible accelerometer servo circuit and quartz flexible accelerometer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108732380A (en) | A kind of trigonometric function temperature-compensation method | |
CN108051018A (en) | Distributed fiber grating transducing signal peak-seeking control system based on FPGA | |
Barczy et al. | Explicit formulas for Laplace transforms of certain functionals of some time inhomogeneous diffusions | |
CN107645493B (en) | IP group similarity calculation method | |
CN109001489A (en) | A kind of double-exponential function temperature-compensation method | |
CN105357335B (en) | A kind of DNS authority log information excavation processing method | |
CN106840202B (en) | Gyro vibration signal extraction and compensation method | |
CN115060306B (en) | Analog quantity calibration method and device and analog quantity acquisition equipment | |
CN106768260B (en) | It can inhibit the vibration signal maximum power frequency component real time detection algorithm of direct current disturbance | |
Tan et al. | Gaussian recursive filter for nonlinear systems with finite-step correlated noises and packet dropout compensations | |
Jayakumar | Generalized Simpson-Newton's Method for Solving Nonlinear Equations with Cubic Convergence | |
CN110596425B (en) | Noise elimination method for MEMS acceleration sensor of unmanned aerial vehicle | |
Xu et al. | Fpga implementation of a best-precision fixed-point digital pid controller | |
CN114254487A (en) | Optical fiber gyroscope temperature drift modeling and real-time compensation method | |
Agarwal et al. | Boundary Value Problems | |
CN106777834B (en) | A kind of high-precision transmission function method of sampling | |
Hao et al. | Adaptive weighted data fusion of muti-sensor based on fuzzy preference relations | |
CN108875142A (en) | A kind of unlimited order easily realizes temperature compensation system | |
Li et al. | Uniform convergence analysis for singularly perturbed elliptic problems with parabolic layers | |
Li et al. | Block-centered finite difference methods for non-Fickian flow in porous media | |
CN110083891A (en) | A kind of calculation method of the plesiochronous linear correction factor of DFT amplitude | |
Xu et al. | Frequency detection of self-adaption control based on chaotic theory | |
Geng et al. | Analytical approximation to solutions of singularly perturbed boundary value problems. | |
CN113687345B (en) | Doppler radar water flow velocity measurement method and device | |
CN113358926B (en) | Signal frequency measuring method and device suitable for chip relay protection |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181102 |
|
RJ01 | Rejection of invention patent application after publication |