Thursday, February 22, 2024

Soft Magnetic Error Compensation Method of Electronic Compass

 


1. Analysis of soft magnetic error of electronic compass

There is another ferromagnetic substance in the working environment of the electronic compass sensor, which, unlike hard ferromagnetic materials, is easily magnetized in a weak magnetic field. When the external magnetic field changes, its induced magnetism will also undergo a related change. The size and direction of the induced magnetic field will also change with the attitude and position of the carrier.
Because of its special properties, this material is called soft iron material. This soft iron material magnetizes itself due to the size of the external magnetic field it receives to produce a magnetic field that resists changes in magnetic flux, which can vary over a wide range. If the magnetic field in the space where the electronic compass sensor is located is known, the magnetic field actually measured by the electronic compass sensor is equal to the superposition of the geomagnetic field and the magnetic field generated by the soft iron interference. The soft iron error is equivalent to a time-varying error superimposed on the output of the electronic compass sensor. Because of the different properties of soft magnetic interference error and hard magnetic interference error, the least square method is no longer applicable when compensating soft magnetic interference error. Soft magnetic interference will lead to the deviation of the measurement Angle of the electronic compass. In an ideal environment, the Angle rotated by the measurement of the electronic compass is controllable, but the existence of soft magnetic interference error will lead to the deviation and uncontrollable Angle of the measurement process of the electronic compass. In the application of navigation system, a small Angle difference will lead to a large route error. The modern electronic compass has strong anti-interference and can suppress most of the Angle deviation, but the compensation of soft magnetic error is still worth studying and discussing.

2. Soft magnetic interference error compensation method
In the actual use of electronic compass, the noise errors caused by soft magnetic interference are mostly random noise errors. At present, there are many algorithms that can be used to compensate random noise and most of them are relatively mature, but considering the characteristics of electronic compass requiring real-time and rapid processing of large amounts of data. Three very mature random noise compensation algorithms, namely Kalman filter, improved Sage adaptive Kalman filter and particle filter, are selected as soft magnetic interference compensation algorithms. These three algorithms are easy to implement and can handle dense data.

2.1 Kalman filter
Kalman filtering algorithm can estimate the linear system with Gaussian white noise, which is the most widely used filtering method at present, and has been well applied in the fields of communication, navigation, guidance and control. The basic idea is that the minimum mean square error criterion is the best estimation criterion, and the future state quantity of the system is estimated by recursion theory, so that the estimated value is as close as possible to the real value.

2.2 Adaptive Kalman filtering
Traditional Kalman filter requires that the mean of dynamic noise and observed noise of the system be zero, and the statistical characteristics are known white noise, but these conditions may not be satisfied in practice, so there are modeling errors. Due to the limitation of objective conditions such as computing tools, the filtering algorithm is easy to produce error accumulation when running on the computer. This results in the loss of positivity or symmetry of error covariance matrix and the instability of numerical calculation.

2.3 Particle filter algorithm
The particle filter algorithm originated from the research of Poor Man's Monte Carlo problem in the 1950s, but the first applied particle filter algorithm was proposed by Gordon et al in 1993. The particle filter is based on the Monte Carlo method, which uses sets of particles to represent probabilities and can be used for any form of state-space model. Particle filter can accurately express the posterior probability distribution based on the observed and controlled quantities, and is a sequential important sampling method. Bayesian inference and importance sampling are the basis of understanding particle filtering.

3. Allan variance simulation experiment 
The Allan analysis of variance is used to simulate the original data of random sequence, the data compensated by Kalman filter algorithm, the data compensated by particle filter algorithm, and the four groups of data compensated by adaptive Kalman filter algorithm. Verify the feasibility of Allan variance analysis algorithm. The Allan standard deviation curve of each data is drawn according to the analysis results. The Allan standard deviation curves of the four groups of data are shown in FIG. 14-17 respectively.

Fig 14 Allen variance curve of raw data

The compensated Allen variance curve

4 Summary
From FIG. 14 to FIG. 17, it can be seen that the Allan variance program of the paper can effectively analyze the experimental data.
Several sets of experimental data show that the program is effective.

Different algorithm compensation results

After analyzing the data before and after compensation, it can be seen that the quantization noise and zero bias instability noise of the data after compensation by Kalman filter algorithm are reduced by 64% and 66.4% respectively. The quantization noise and zero bias instability noise of the compensated particle filter data are reduced by 70% and 72.1% respectively. The quantization noise and zero bias instability noise of the data compensated by adaptive Kalman filter are reduced by 91.5% and 75.7% respectively. All the algorithms we mentioned can have a better compensation effect for the original data noise.
It can be seen from the compensation effect that compared with traditional Kalman filter and particle filter, adaptive Kalman filter can better remove the noise in the original data, and filter the noise of ER-EC-385ER-EC-365B and other types of electronic compass. The random data in the simulation experiment is based on the simulation of the noise caused by soft magnetic interference. The simulation results show that the filtering algorithm can compensate the noise of soft magnetic interference.  

IMU denoising method based on wavelet and long short-term memory

 https://www.ericcointernational.com/application/imu-denoising-method-based-on-wavelet-and-long-short-term-memory.html

Tuesday, February 20, 2024

How to Improve Accuracy of Tilt Sensors

 


1. Methods to improve the accuracy of tilt sensor

As a very important physical quantity, Angle has a very important position in various fields such as industry, military and aviation, so its measurement is extremely important, and Angle measurement is an important part of metrology science. Tilt sensor is a device to measure the inclination Angle, it is an important link to realize the inclination measurement and automatic control, and its accurate and high-precision measurement becomes the most important thing, so it is necessary to study the algorithm to improve the measurement accuracy.
The research and implementation of the algorithm to improve the accuracy of the tilt sensor are obtained on the basis of practice. The method is based on the arcsine Angle output principle of the tilt sensor. Through repeated data processing and comparison of the old and new error values in the test, the appropriate correlation coefficient is finally obtained, so as to improve the accuracy.

2. Measurement preparation
Measuring the accuracy of biaxial tilt sensor is mainly divided into several steps: making test circuit board, compiling program, building test platform, data acquisition, data analysis and calculation. First of all, it is necessary to make a test circuit board, which is mainly made of dual-axis tilt sensor, single-chip microcomputer, analog-digital converter, MAX232 and other related components.
When the test circuit board is made, it is necessary to use the burner and related software to burn the test program in the single chip microcomputer, as shown in Figure 1. The test circuit board with sensor is fixed on the three-axis turntable, and the circuit board is connected to the computer that collects data, so as to form a complete test device, as shown in Figure 2.

tilt sensor complete test device structure diagram

tilt sensor output value acquisition tool

3. Measurement process
After the preparation work is completed, the measurement begins. Along with the rotation of the central axis and the internal axis of the three-axis turntable, the two-axis tilt sensor has the corresponding output value. We collect the data and save it on the computer. After that, the output value is processed, and the output value after data processing is compared with the rotation Angle of the turntable to calculate the accuracy of the sensor. Because the data processing of the central axis and the internal axis is the same, the central axis is introduced here as an example. After many calculations and measurements, the most suitable coefficient is selected to meet the requirements of high precision.
Since the measurement range of the biaxial tilt sensor we selected is between -30℃ and +30℃, here we set the minimum Angle of rotation of the turntable to 5°. Rotation Angle are respectively - 30 °, 25 °, and 20 °, 15 °, and 10 °, 5 °, 0 °, + 5 °, + 10 °, + 15 °, + 20 °, 25 °, 30 ° +, will these values are expressed in Ai. Each time the turntable is rotated, the output value of the sensor is recorded by relevant software, as shown in Figure 3. Among the many output values each time, the minimum and maximum values are recorded, and the data is saved to the computer, as shown in Table 1.

Table 1 Sensor output values

Taking the data at 0° as the benchmark, the output values Ci, Di, Ei and the difference between each output value and the set value Ai Cj, Dj, Ej were calculated using the corresponding formulas

Output value of each formula

The calculated data table is shown in Table 2.

Output value and difference after calculation

Curve fitting was performed on Cj, Dj and Ej, as shown in Figure 4.

Fitting diagram of error curve

According to the value 1026 corresponding to 0°, the output value is converted into an Angle, the evaluation test and multiple measurements are carried out. Finally, the optimal values 1028 and 1639 are selected, and the output values Ci, Di, Ei and the difference between each output value and the set value Ai Cj, Dj, Ej are calculated by using the corresponding formulas.

The formula value after many measurements

The calculated data table is shown in Table 3. Curve fitting was performed on Cj, Dj and Ej, as shown in Figure 5.

Table 3 Output value and difference after calculation

4 Summary
Through measurement and data processing, the requirements for improved accuracy are finally met. As can be seen from Figure 5, the measurement error of the biaxial inclinometer sensor has reached (-0.15~+0.17). To meet higher requirements, the algorithm needs to be further improved.

Figure 5. Error curve fitting diagram

For our biaxial inclinometer sensors, such as ER-TS-4250VO and ER-TS-4258CU, we can obtain the appropriate correlation coefficient by repeated data processing and comparing the old and new error values in the test through the above algorithm, so as to improve the measurement accuracy of the sensor. 

Sunday, February 18, 2024

Electronic Compass Hard Magnetic Error Compensation

 


1. Electronic compass error classification

Electronic compass plays an important role in the navigation application of modern society, because electronic compass is based on the particularity of geomagnetic navigation, digital compass is prone to geomagnetic interference and magnetic material interference in actual use, resulting in measurement errors, according to the source of magnetic interference, can be divided into hard magnetic interference error and soft magnetic interference error. Among them, the hard magnetic interference will cause the zero deviation of the compass measurement value, which will lead to the inaccurate positioning of GPS in the navigation system. It will cause immeasurable impact on activities such as maritime navigation positioning and disaster rescue positioning. Moreover, compensation of hard magnetic interference error is a prerequisite for compensation of soft magnetic interference error. Therefore, before compensation of soft magnetic interference for electronic compass, it is necessary to ensure that the hard magnetic interference error has been compensated, so as to achieve a complete digital compass error compensation process.

2. Hard magnetic error analysis
In the actual working environment of electronic compass sensors, there are inevitably ferromagnetic materials, and one of these ferromagnetic materials is called hard magnetic materials. Because the hard magnetic material has the characteristics of high coercivity, it will be magnetized only in the external magnetic field with sufficient magnetic field strength. Although it is not easy to magnetize hard magnetic materials, the remanent magnetism after it is magnetized will be retained for a long time and is not easy to remove. The magnitude and direction of the magnetic field vector of hard iron in the carrier fixed coordinate system are fixed, and do not change with the course and position of the carrier.

Therefore, the error caused by hard magnetic interference is constant in the short term, which can be considered as a constant additional error output during calibration. At the same time, hard magnetic interference can be used to characterize all time-invariant perturbations of digital compass sensors without losing generality. In the actual measurement and use, the hard magnetic interference will cause the measurement value of the electronic compass to appear obvious deviation, that is, zero drift. In the ideal case of no hard magnetic interference, the electronic compass in the static state, rotating measurement one week, can draw a circle with the center at zero. The hard magnetic error causes the center of the circle to shift, which is called zero drift. Because of the particularity of the hard magnetic error, it can not be avoided and processed by simple physical means, but can only compensate the data collected by the compass to remove the hard magnetic interference error.

3. Hard magnetic interference error compensation method
3.1 Least square method
Generally, the constant error of the sensor is relatively stable, and the corresponding parameters can be obtained by calibration method, and the parameters are introduced into the error calibration equation. To eliminate the constant error of the sensor. Therefore, the error compensation method based on least square method can be adopted. As a kind of mathematical optimization technique, least square method can obtain the best matching function of the optimized object by minimizing the square of the error. Using least squares method can make it easier to obtain unknown data and minimize the sum of squares of error between the obtained data and the actual data. Least squares can also be used for curve fitting. The least square method is the most widely used method in system identification, which can be applied not only to dynamic systems, but also to static systems. It can be used to estimate linear and nonlinear systems as well as offline systems, and the online estimation of systems often uses least square method. In the random environment, when the least square method is used, the observation data does not need to provide its probability and statistics information, but the estimated results have quite good statistical characteristics. The least square method is easy to understand and master, and the recognition algorithm developed based on the least square principle is relatively simple to implement. When other parameter identification methods encounter difficulties, least square method can provide corresponding solutions. The most likely value of unknown model parameters is at the minimum of the sum of repeated error squares between the actual observed value and the calculated value, and the obtained model output can be closest to the output of the actual system, which is the principle of least square.

3.2 Algorithm simulation experiment
The Matlab editor produces a set of standard circle tracks whose center is not at the zero point of the coordinates. The center of the first standard circle is located at the coordinates (2,5) with a radius of 5, as shown in Figure 2. The center of the second standard circle is located at coordinates (114, -304), and the radius is also 5, as shown in Figure 3. It is assumed that the two standard circular trajectories are the actual trajectories measured by the digital compass under hard magnetic interference. Simulation experiments are carried out with the data to verify the feasibility of the algorithm.

Fig.2 Before removing the zero offsetFig.3 Before removing the zero offset

The experimental results are shown in FIG. 4 and 5 respectively. After zero deviation compensation, the zero drift of the standard circle is effectively compensated, and the center coordinates of the circle are located at (0,0) after compensation, and the trajectory does not deform. Moreover, good improvement is achieved in both large and small drifts. The simulation results show that the algorithm based on least square method is feasible.

Fig.4,5 After removing the zero offset

4 Summary
We analyze the source of the hard magnetic error of the electronic compass, select the least square method as the error compensation method according to the error properties, and carry out the program design and simulation experiment based on the least square algorithm to verify the feasibility of the algorithm program. The feasibility and correctness of the algorithm in theory are verified, which lays a foundation for the actual measurement experiment. Ericco's E-compass products such as ER-EC-360AER-EC-365A and ER-EC-385CAN have hard magnetic, soft magnetic and inclination compensation functions, so we can use the least square method to compensate its hard magnetic interference error, so that the zero drift can be effectively compensated. 

Research on MEMS IMU error modeling and temperature compensation technology


IMU is a sensor combination used to measure the motion state of an object, mainly composed of a gyroscope and an accelerometer. IMU is usually used in navigation, attitude control, motion tracking and other fields. By measuring the angular velocity and acceleration of an object in three axes, it can calculate the object's attitude, position, speed and other information. The error of MEMS-IMU often requires calibration, which is also important. Then its error can be divided into systematic error and random error. Systematic errors can be eliminated through sensor calibration, while random errors can be understood as the degree of fluctuation and drift of the zero bias. It is usually assumed that the zero bias noise of low-cost MEMS-IMUs obeys a Gaussian distribution. The modeling and compensation of systematic errors and random errors is now an important research direction.

System errors can be eliminated through hardware calibration and software compensation. Hardware calibration usually uses professional calibration equipment to calibrate the IMU, measure the output of each sensor and establish a calibration curve, so that the output can be corrected based on the calibration curve in subsequent use. Software compensation uses algorithms to correct the sensor output, such as using a Kalman filter to perform state estimation and error compensation on the IMU output.

For random errors, temperature compensation technology can be used to reduce them. Since the performance of MEMS sensors is affected by temperature, studying the effect of temperature on sensor output and compensating it is an important technology. Currently, common temperature compensation technologies include neural network compensation, support vector machine compensation, and polynomial fitting compensation. These technologies collect sensor output data at different temperatures, establish a mathematical model of temperature and sensor output, and compensate the sensor output in real time to reduce the impact of temperature on sensor performance.

In addition, in order to further improve the performance of MEMS-IMU, the error transfer function method can also be used to model and compensate the IMU error. This method analyzes the error transfer function of the IMU, establishes a mathematical model of the error transfer function, and compensates the IMU output according to the model. This method can more comprehensively consider the impact of various factors on IMU performance, thereby more accurately estimating the IMU's output and making compensation. This article will talk about MEMS IMU error modeling and MEMS IMU temperature compensation technology.

1.MEMS IMU error modeling

The error modeling of MEMS IMU (Inertial Measurement Unit) mainly focuses on the quantitative description of various error sources in the IMU. These error sources mainly include scale factor error, cross-coupling error, zero bias instability, etc.

The scale factor error and cross-coupling error can be expressed in matrix form and are related to the noise spectrum of the gyroscope and accelerometer. These errors average to zero over time, but any asymmetry or nonlinearity in the scale factor and cross-coupling error will form part of the vibration error and will not cancel each other out over time.

In addition, random errors are also an important source of MEMS IMU errors, mainly including quantization noise, angle (velocity) random walk, bias instability, angular rate (acceleration) random walk and rate ramp, etc. Among them, angle (velocity) random walk and zero-bias instability are the main manifestations of MEMS IMU.

In order to reduce these errors, various compensation methods can be used. For example, system errors are eliminated through hardware calibration and software compensation, and the impact of random errors is reduced through temperature compensation technology. Temperature compensation technology can collect sensor output data at different temperatures, establish a mathematical model of temperature and sensor output, and compensate the sensor output in real time based on the model.

In addition, the error transfer function method can also be used for error modeling of MEMS IMU. By analyzing the error transfer function of the IMU, a mathematical model of the error transfer function is established, and the output of the IMU is compensated based on the model. This method can more comprehensively consider the impact of various factors on IMU performance, thereby more accurately estimating the IMU's output and making compensation.

In general, error modeling of MEMS IMU is a complex process that requires comprehensive consideration of multiple factors and methods. Through in-depth understanding and research of sensor performance, continuous optimization of compensation algorithms and improvement of manufacturing processes, the performance and reliability of MEMS IMU can be improved, providing important technical support for the development and application of navigation, positioning, attitude control and other fields.

2.MEMS IMU temperature compensation technology

The temperature compensation technology of MEMS IMU mainly studies the impact of temperature on sensor performance and takes corresponding methods to reduce this impact. The following are several common temperature compensation methods:

2.1 Hardware Calibration and Compensation: By calibrating the IMU during the manufacturing process, the output of each sensor is measured and a calibration curve is established. In actual use, the output of the IMU is corrected according to the calibration curve to reduce the impact of temperature on sensor performance.

2.2 Establish a mathematical model: By collecting the output data of the sensor at different temperatures, establish a mathematical model of temperature and sensor output. This model is used to compensate the sensor output in real time to reduce the impact of temperature on sensor performance. Common mathematical models include polynomial fitting, linear regression, and neural networks.

2.3 Error transfer function: By analyzing the error transfer function of the IMU, a mathematical model of the error transfer function is established. Compensating the output of the IMU based on this model can more comprehensively consider the impact of various factors on the performance of the IMU, thereby more accurately estimating the output of the IMU and performing compensation.

2.4 Dynamic adjustment: In some cases, the impact of temperature on sensor performance can be reduced by dynamically adjusting the operating parameters of the IMU. For example, by adjusting parameters such as sampling frequency and gain, the performance of the IMU at different temperatures can be made more stable.

In summary, temperature compensation technology for MEMS IMUs requires selecting an appropriate method based on the specific situation. Through in-depth understanding and research of sensor performance, continuous optimization of compensation algorithms and improvement of manufacturing processes, the performance and reliability of MEMS IMU can be improved, providing important technical support for the development and application of navigation, positioning, attitude control and other fields.

Summarize

In general, research on IMU error modeling and temperature compensation technology based on MEMS is an important research direction. By in-depth study of the error sources and characteristics of MEMS-IMU, and using appropriate calibration and compensation methods to reduce the impact of errors, the performance and reliability of MEMS-IMU can be improved, providing information for the development and application of navigation, positioning, attitude control and other fields. Important technical support. As a company that independently researches inertial systems, ERICCO has conducted in-depth research on MEMS IMUs. For example, the navigation-grade ER-MIMU-01 and ER-MIMU-02 can independently seek north, and the built-in gyroscopes and accelerometers are also highly accurate. If you are interested in our IMU, please click on the article link below to learn more.

High-precision IMU is coming to help in the fields of land, sea and air

  High-precision IMU is now widely used in many fields of sea, land and air. It can provide real-time and accurate information on the carrie...