A collaborative compensation method for MEMS accelerometer
Temperature and nonlinear compensation are performed through the least squares fitting method, which solves the accuracy problem of MEMS accelerometers under the influence of temperature and processing technology, improves accuracy and reduces R&D costs, and simplifies the process of coefficient calibration.
Patent Information
- Application Number
- CN202410954129.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-17
Smart Images

Figure CN118503617B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inertial navigation technology, and in particular to a collaborative compensation method for a MEMS accelerometer. Background Art
[0002] In recent years, the demand for MEMS accelerometers has exploded. MEMS accelerometers have gradually expanded from past aerospace applications to all walks of life, placing higher demands on industrial efficiency. However, in engineering practice, the zero bias and scale factor of MEMS accelerometers are easily affected by temperature and processing technology, thus affecting accuracy. Therefore, it is necessary to establish a temperature and nonlinear compensation model for the accelerometer based on its error characteristics.
[0003] At present, there have been many studies on temperature compensation and nonlinear compensation of MEMS accelerometers, such as the classic least squares fitting method, as well as the double exponential fitting method, neural network algorithm and AI prediction algorithm. At present, the mainstream technology research and development direction is often to conduct in-depth research on complex compensation algorithms, the result of which is that the single compensation has high accuracy, but the research and development is difficult, and the compensation coefficient calibration process is complicated, while less attention is paid to the accuracy improvement brought by the synergistic effect of the two compensation methods. Summary of the invention
[0004] Based on the above technical problems, the present invention proposes a collaborative compensation method for MEMS accelerometers. Through the classic least squares fitting method, temperature compensation and nonlinear compensation are simultaneously realized, the efficiency of research and development and coefficient calibration is improved, and the accuracy requirements of MEMS accelerometers in mass production are met. The specific technical solution is as follows.
[0005] A collaborative compensation method for a MEMS accelerometer comprises the following steps:
[0006] Step S1: within the operating temperature range of the MEMS accelerometer and in a zero position state, performing a preset number of interval sampling on the acceleration output and temperature output at each temperature point;
[0007] Step S2: After the sampling in step S1 is completed, the zero bias data is fitted using the least square method, and the temperature compensation coefficient is calibrated after fitting;
[0008] Step S3: Write the temperature compensation coefficient, sample the acceleration of the MEMS accelerometer at a preset number of intervals within the full range, and after sampling, perform the least squares fitting of the calibration factor, and complete the calibration of the nonlinear compensation coefficient after fitting; the calculation formula is:
[0009] ;
[0010] in, That is, the zero bias factor about temperature; is the output of the MEMS accelerometer; is the acceleration after zero bias temperature compensation; is the acceleration after nonlinear compensation of the scale factor, , , ,..., is the zero bias temperature compensation coefficient; , ,..., is the nonlinear compensation coefficient of the scale factor; are the polynomial coefficients.
[0011] Specifically, when the MEMS accelerometer is sampled in step S1, the MEMS accelerometer is placed in a high and low temperature incubator, and samples are collected at different temperature points in a zero state; when the temperature is collected, the zero output and temperature output of the MEMS accelerometer can be collected after the high and low temperature incubator reaches the set temperature point.
[0012] Specifically, when the step S2 uses the least square method to fit the zero bias data, it specifically includes: selecting n discontinuous temperature points, collecting the zero position output and temperature output of the MEMS accelerometer for fitting.
[0013] Specifically, the step S2 fits the zero bias data and completes the calibration of the temperature compensation coefficient after fitting, including the following sub-steps:
[0014] Step S21: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, is the fitting curve about temperature, , ,..., is the residual at each point, and we get:
[0015] ;
[0016] ;
[0017] …;
[0018] ;
[0019] Step S22: construct a residual mean square sum model based on the residual to obtain the temperature compensated residual mean square sum The expression is:
[0020] ;
[0021] After substitution we get:
[0022] ;
[0023] Step S23: Fitting the temperature curve Substituting for a high-order polynomial, the loss function calculation formula is:
[0024] ;
[0025] in, , , ,..., is the zero bias temperature compensation coefficient; is the expected value after fitting at any point;
[0026] Step S24: Calculate the partial derivatives of each coefficient according to the loss function calculation formula, which are:
[0027] , ,..., ;
[0028] Among them, ∂ represents differential operation; after solving, the coefficients of each fitting term of temperature compensation are obtained.
[0029] Specifically, the step S3 of writing the temperature compensation coefficient also includes: after obtaining the coefficients of each fitting item of temperature compensation, writing the coefficients into the storage unit of the MEMS accelerometer, collecting data from low temperature to high temperature again, and verifying the temperature compensation.
[0030] Specifically, the interval sampling in step S3 includes:
[0031] After confirming that the temperature compensation is correct, the entire MEMS accelerometer is placed in a high-precision, large-range centrifuge. With the temperature compensation turned on, m finite number of interval samples are taken for each acceleration point within the range.
[0032] Collect the full-scale acceleration voltage values in the positive direction and the full-scale acceleration voltage values in the negative direction, and calculate the average value of their absolute values. The calculation formula is:
[0033] ;
[0034] in, is the full-scale acceleration voltage value used for linear curve fitting; is the full-scale acceleration voltage value in the positive direction; is the full-scale acceleration voltage value in the negative direction;
[0035] The ideal value of acceleration at the corresponding target point is obtained through proportional calculation and used as the target linear fitting function.
[0036] Specifically, the calibration of the nonlinear compensation coefficient in step S3 includes the following sub-steps:
[0037] Step S31: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, , ,..., is the residual at each point;
[0038] Step S32: construct a residual mean square sum model based on the residual to obtain the nonlinear compensation residual mean square sum The expression is:
[0039] ;
[0040] Step S33: Collected acceleration data , ,..., The least squares method is used to fit the target linear function, and the loss function calculation formula is:
[0041] ;
[0042] in, , ,..., is the nonlinear compensation coefficient of the scale factor, is the expected value after fitting at any point, is the collected acceleration data;
[0043] Step S34: Find the partial derivatives of each coefficient of the loss function, which are:
[0044] , ,..., ;
[0045] After solving, the coefficients of each fitting term of nonlinear compensation are obtained.
[0046] Specifically, the step S3 further includes: after obtaining the coefficients of each fitting item of the nonlinear compensation, sampling each acceleration point within the range again with the temperature compensation turned on, and recalculating the nonlinearity to verify the correctness of the nonlinear compensation.
[0047] Beneficial effects of the invention: The invention proposes a collaborative compensation method for a MEMS accelerometer, which utilizes the classic least squares fitting method to solve the performance error of the accelerometer caused by temperature drift and nonlinearity of the scale factor by first performing temperature compensation and then performing nonlinear compensation. When the accelerometer is in use, the performance error can be corrected in real time while reducing the R&D cost problem caused by complex algorithms. When calibrating the accelerometer coefficients, large-scale batch operations can be performed with low operating difficulty. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flow chart of the collaborative compensation method of the MEMS accelerometer in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described with reference to the accompanying drawings.
[0050] In order to improve the efficiency of R&D and coefficient calibration and meet the accuracy requirements of MEMS accelerometers in mass production, the present invention proposes a collaborative compensation method for MEMS accelerometers, the process of which is as follows: Figure 1 As shown, the following steps are included:
[0051] Step S1: within the operating temperature range of the MEMS accelerometer and in a zero position state, performing a preset number of interval sampling on the acceleration output and temperature output at each temperature point;
[0052] Step S2: After the sampling in step S1 is completed, the zero bias data is fitted using the least square method, and the temperature compensation coefficient is calibrated after fitting;
[0053] Step S3: Write the temperature compensation coefficient, sample the acceleration of the MEMS accelerometer at a preset number of intervals within the full range, and after sampling, perform the least squares fitting of the calibration factor, and complete the calibration of the nonlinear compensation coefficient after fitting; the calculation formula is:
[0054] ;
[0055] in, That is, the zero bias factor about temperature; is the output of the MEMS accelerometer; is the acceleration after zero bias temperature compensation; is the acceleration after nonlinear compensation of the scale factor, , , ,..., is the zero bias temperature compensation coefficient; , ,..., is the nonlinear compensation coefficient of the scale factor; are the polynomial coefficients.
[0056] In this embodiment, when sampling the MEMS accelerometer in step S1, the MEMS accelerometer is placed in a high and low temperature incubator, and samples are collected at different temperature points in a zero position state; when collecting temperature, after the high and low temperature incubator reaches the set temperature point, the zero position output and temperature output of the MEMS accelerometer can be collected.
[0057] In this embodiment, when the least square method is used to fit the zero bias data in step S2, it specifically includes: selecting n discontinuous temperature points, collecting the zero position output and temperature output of the MEMS accelerometer for fitting.
[0058] In this embodiment, step S2 fits the zero bias data, and completes the calibration of the temperature compensation coefficient after fitting, including the following sub-steps:
[0059] Step S21: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, is the fitting curve about temperature, , ,..., is the residual at each point, and we get:
[0060] ;
[0061] ;
[0062] …;
[0063] ;
[0064] Step S22: construct a residual mean square sum model based on the residual to obtain the temperature compensated residual mean square sum The expression is:
[0065] ;
[0066] After substitution we get:
[0067] ;
[0068] Step S23: Fitting the temperature curve Substituting for a high-order polynomial, the loss function calculation formula is:
[0069] ;
[0070] in, , , ,..., is the zero bias temperature compensation coefficient; is the expected value after fitting at any point;
[0071] Step S24: Calculate the partial derivatives of each coefficient according to the loss function calculation formula, which are:
[0072] , ,..., ;
[0073] Among them, ∂ represents differential operation; after solving, the coefficients of each fitting term of temperature compensation are obtained.
[0074] In this embodiment, step S3 of writing the temperature compensation coefficient also includes: after obtaining the coefficients of each fitting item of temperature compensation, writing the coefficients into the storage unit of the MEMS accelerometer, and again collecting data from low temperature to high temperature to verify the temperature compensation.
[0075] In this embodiment, step S3 of interval sampling includes:
[0076] After confirming that the temperature compensation is correct, the entire MEMS accelerometer is placed in a high-precision, large-range centrifuge. With the temperature compensation turned on, m finite number of interval samples are taken for each acceleration point within the range.
[0077] Collect the full-scale acceleration voltage values in the positive direction and the full-scale acceleration voltage values in the negative direction, and calculate the average value of their absolute values. The calculation formula is:
[0078] ;
[0079] in, is the full-scale acceleration voltage value used for linear curve fitting; is the full-scale acceleration voltage value in the positive direction; is the full-scale acceleration voltage value in the negative direction;
[0080] The ideal value of acceleration at the corresponding target point is obtained through proportional calculation and used as the target linear fitting function.
[0081] In this embodiment, the calibration of the nonlinear compensation coefficient in step S3 includes the following sub-steps:
[0082] Step S31: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, , ,..., is the residual at each point;
[0083] Step S32: construct a residual mean square sum model based on the residual to obtain the nonlinear compensation residual mean square sum The expression is:
[0084] ;
[0085] Step S33: Collected acceleration data , ,..., The least squares method is used to fit the target linear function, and the loss function calculation formula is:
[0086] ;
[0087] in, , ,..., is the nonlinear compensation coefficient of the scale factor, is the expected value after fitting at any point, is the collected acceleration data;
[0088] Step S34: Find the partial derivatives of each coefficient of the loss function, which are:
[0089] , ,..., ;
[0090] After solving, the coefficients of each fitting term of nonlinear compensation are obtained.
[0091] In this embodiment, step S3 also includes: after obtaining the coefficients of each fitting item of nonlinear compensation, sampling each acceleration point within the range again with temperature compensation turned on, and recalculating the nonlinearity to verify the correctness of the nonlinear compensation.
[0092] In one embodiment, the implementation of this patent is illustrated by taking an acceleration range of ±40g, a temperature range of -50°C to 70°C, third-order temperature compensation, and third-order nonlinear compensation as examples.
[0093] When calibrating the temperature zero bias factor, the MEMS accelerometer is placed in a high and low temperature chamber in a zero position state.
[0094] In the range of -50℃ to 70℃, a sampling point is selected every 5℃ to collect the zero output and temperature output of the MEMS accelerometer for fitting.
[0095] When collecting temperature, first lower the temperature of the high and low temperature incubator to -50°C. After keeping it warm for a period of time, start heating the high and low temperature incubator. When the high and low temperature incubator reaches the set temperature point, the zero output of the MEMS accelerometer can be collected. There is no need to confirm whether the temperature output of the MEMS accelerometer reaches the set value of the high and low temperature incubator.
[0096] Based on the collected data, , ,..., is the zero position output at each temperature point collected, is the fitting curve about temperature, , ,..., is the residual at each point.
[0097] So we have:
[0098] ;
[0099] ;
[0100] …;
[0101] ;
[0102] According to the residual error, the residual mean square sum model is constructed, then,
[0103]
[0104] After substitution:
[0105]
[0106] Based on this, replace f(x) with a high-order polynomial, and then we have the loss function
[0107]
[0108] Then find the partial derivatives of each coefficient of the loss function:
[0109] , ,..., ;
[0110] After solving, the coefficients of each fitting item of temperature compensation can be obtained.
[0111] When selecting the temperature compensation order, the polynomial order should be minimized while meeting the target accuracy.
[0112] After the polynomial coefficients are obtained, the coefficients are written into the storage unit of the accelerometer, and data collection is performed again from low temperature to high temperature to verify the correctness of temperature compensation.
[0113] After confirming that the temperature compensation is correct, the MEMS accelerometer is placed in a high-precision, large-range centrifuge.
[0114] When temperature compensation is turned on, a sampling point is selected every 1g within the measuring range to collect the zero position output of the MEMS accelerometer.
[0115] In addition, full-scale acceleration voltage values in the positive direction and full-scale acceleration voltage values in the negative direction are collected, and the average value of their absolute values is calculated.
[0116]
[0117] In the formula, is the full-scale acceleration voltage value used for linear curve fitting;
[0118] is the full-scale acceleration voltage value in the positive direction;
[0119] is the full-scale acceleration voltage value in the negative direction;
[0120] The ideal value of acceleration at the corresponding target point is obtained through proportional calculation and used as the target linear function.
[0121] In this embodiment, the full-scale voltage value collected is 0.95v, so the target linear function is:
[0122]
[0123] Based on the collected data, , ,..., is the zero position output at each temperature point collected, , ,..., is the residual at each point.
[0124] According to the residuals, the residual mean square sum model is constructed, then,
[0125]
[0126] The collected acceleration data , ,..., Perform a least squares fit to the target linear function.
[0127] So we have:
[0128]
[0129] Then find the partial derivatives of each coefficient of the loss function:
[0130] , ,..., ;
[0131] After solving, the coefficients of each fitting item of nonlinear compensation can be obtained.
[0132] When selecting the nonlinear order, the nonlinearity should be calculated after fitting, and the polynomial order should be minimized while satisfying the nonlinearity.
[0133] After the polynomial coefficients are obtained, each acceleration point within the measuring range is sampled again with the temperature compensation turned on, and the nonlinearity is recalculated to verify the correctness of the nonlinear compensation.
[0134] In summary, the collaborative compensation method provided by the present invention can solve the performance error of the accelerometer caused by temperature drift and nonlinearity of the scale factor, while reducing the R&D cost problem caused by complex algorithms. When calibrating the accelerometer coefficients, large-scale batch operations can be carried out with low operating difficulty.
[0135] The present invention has shown and described the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A collaborative compensation method for a MEMS accelerometer, characterized in that: The following steps are involved: Step S1: within the operating temperature range of the MEMS accelerometer and in a zero position state, performing a preset number of interval sampling on the acceleration output and temperature output at each temperature point; Step S2: After the sampling in step S1 is completed, the zero bias data is fitted using the least square method, and the temperature compensation coefficient is calibrated after fitting; Step S3: writing the temperature compensation coefficient, sampling the acceleration of the MEMS accelerometer at a preset number of intervals within the full scale, and after the sampling is completed, performing the least squares fitting of the calibration factor, and completing the calibration of the nonlinear compensation coefficient after fitting; The calculation formula is: ; in, That is, the zero bias factor about temperature; is the output of the MEMS accelerometer; is the acceleration after zero bias temperature compensation; is the acceleration after nonlinear compensation of the scale factor, , , ,..., is the zero bias temperature compensation coefficient; , ,..., is the nonlinear compensation coefficient of the scale factor; are the polynomial coefficients.
2. The collaborative compensation method of a MEMS accelerometer according to claim 1, characterized in that: When the MEMS accelerometer is sampled in step S1, the MEMS accelerometer is placed in a high and low temperature incubator, and samples are collected at different temperature points in a zero position state; when the temperature is collected, the zero position output and temperature output of the MEMS accelerometer can be collected after the high and low temperature incubator reaches the set temperature point.
3. The collaborative compensation method of a MEMS accelerometer according to claim 1, characterized in that: When the step S2 uses the least square method to fit the zero bias data, it specifically includes: selecting n discontinuous temperature points, collecting the zero position output and temperature output of the MEMS accelerometer for fitting.
4. The collaborative compensation method of a MEMS accelerometer according to claim 3, characterized in that: The step S2 is to fit the zero bias data and complete the calibration of the temperature compensation coefficient after fitting, and includes the following sub-steps: Step S21: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, is the fitting curve about temperature, , ,..., is the residual at each point, and we get: ; ; …; ; Step S22: construct a residual mean square sum model based on the residual to obtain the temperature compensated residual mean square sum The expression is: ; After substitution, we get: ; Step S23: Fitting the temperature curve Substituting for a high-order polynomial, the loss function calculation formula is: ; in, , , ,..., is the zero bias temperature compensation coefficient; is the expected value after fitting at any point; Step S24: Calculate the partial derivatives of each coefficient according to the loss function calculation formula, which are: , ,..., ; Among them, ∂ represents differential operation; after solving, the coefficients of each fitting term of temperature compensation are obtained.
5. The collaborative compensation method of a MEMS accelerometer according to claim 1, characterized in that: The step S3 of writing the temperature compensation coefficient also includes: after obtaining the coefficients of each fitting item of the temperature compensation, writing the coefficients into the storage unit of the MEMS accelerometer, and again collecting data from low temperature to high temperature to verify the temperature compensation.
6. The cooperative compensation method of a MEMS accelerometer according to claim 5, characterized in that: The step S3 of interval sampling comprises: After confirming that the temperature compensation is correct, the entire MEMS accelerometer is placed in a high-precision, large-range centrifuge. With the temperature compensation turned on, m finite number of interval samples are taken for each acceleration point within the range. Collect the full-scale acceleration voltage values in the positive direction and the full-scale acceleration voltage values in the negative direction, and calculate the average value of their absolute values. The calculation formula is: ; in, is the full-scale acceleration voltage value used for linear curve fitting; is the full-scale acceleration voltage value in the positive direction; is the full-scale acceleration voltage value in the negative direction; The ideal value of acceleration at the corresponding target point is obtained through proportional calculation and used as the target linear fitting function.
7. The cooperative compensation method of a MEMS accelerometer according to claim 1, characterized in that: The calibration of the nonlinear compensation coefficient in step S3 includes the following sub-steps: Step S31: Based on the collected data, set , ,..., is the zero position output at each temperature point collected, , ,..., is the residual at each point; Step S32: construct a residual mean square sum model based on the residual to obtain the nonlinear compensation residual mean square sum The expression is: ; Step S33: Collected acceleration data , ,..., The least squares method is used to fit the target linear function, and the loss function calculation formula is: ; in, , ,..., is the nonlinear compensation coefficient of the scale factor, is the expected value after fitting at any point, is the collected acceleration data; Step S34: Find the partial derivatives of each coefficient of the loss function, which are: , ,..., ; After solving, the coefficients of each fitting term of nonlinear compensation are obtained.
8. The cooperative compensation method of a MEMS accelerometer according to claim 7, characterized in that: The step S3 also includes: after obtaining the coefficients of each fitting item of the nonlinear compensation, sampling each acceleration point within the range again with the temperature compensation turned on, and recalculating the nonlinearity to verify the correctness of the nonlinear compensation.
