1. Introduction
Strapdown inertial navigation systems (SINS) are often employed to solve a problem of estimating movement and orientation of a mobile robot (MR). These systems include accelerometers, gyroscopes, and magnetometers, if needed. Gyroscopes are utilized to determine the MR orientation angles, which are relative to an inertial frame of reference. Accelerometers measure the object acceleration along the axes of the Cartesian coordinate system. Therefore, the MR rotation relative to the vertical axis is determined applying the gyroscope, the speed and distance traveled are determined by the results of integrating the measured values of acceleration [
1,
2].
Installed in the MR board gyroscopes and accelerometers must have an adjusted accuracy in a wide range of angular velocities and accelerations and operate under conditions of vibrations and hits. The number of sensors should be sufficient to obtain information about the imaginary acceleration vectors and the absolute angular velocity of the MR.
Application of a gyroscope system provides all three angles (roll, pitch, and yaw). For a terrestrial MR, the most interesting is the angle of rotation about a vertical axis, is the yaw. However, a practical implementation faces some nuances of using gyroscopes in MRs [
3,
4].
Firstly, it is impractical to install mechanical gyroscopes in MRs because of their large size. Therefore, miniature gyroscopes in a form of microelectromechanical systems (MEMS) are employed, their informative parameter being an angular velocity.
In this case, integration or simple summation (for analog or discrete output) are performed. Therefore, the estimate of rotation about an axis is approximate and depends on a signal sampling frequency [
5,
6]:
Secondly, gyroscopes are characterized by zero drift, leading to changes in angle even in a static position. The drift magnitude depends on a type of the gyroscope [
7]. Error ranges for different types of sensors are given in [
8].
Thirdly, integration and processing of inertial sensor data with a frequency required for the sufficient accuracy creates a high computational load that might need a separate microcontroller.
Accelerometers in the inertial system provide determining values of linear accelerations for the MR. Numerical integration of acceleration allows passing to speed, and repeated integration allows passing to movement during any time interval [
9]. However, integration leads to the accumulation of error [
10]. Moreover, accelerometers are sensitive to intense high-frequency interferences, which eliminated by various types of filters (the Kalman filter, alpha-beta filter, etc.). However, such filters are difficult to implement, they require selection or calculation of coefficients and need considerable resources to be implemented on microcontrollers.
While analyzing the SINS accuracy characteristics caused by the gyroscope errors, attention is paid to zero instability (offset) and residual systematic errors. This paper focuses on the instability of gyroscope’s zeros, which typically represent a sum of systematic
(Systematic Error) and random
(Random Error) components [
11]:
The cause of the input signal shift in the gyroscope is parasitic moments effecting moving parts of the sensor and electronic components unbalance in systems of information reading and processing.
Problem statement. The article is aimed to:
Analyze the components of the gyroscope random error due to the influence of various destabilizing factors.
Study the MEMS gyroscopes in order to determine a value of their random error components for each axis of Allan deviation curves.
2. Methods of Analyzing Random Errors in Gyroscopes
Frequency analysis methods considering power spectral density (PSD) [
11] and temporal analysis techniques considering the Allan variance (AVAR) [
12,
13,
14,
15] are applied to examine the gyroscope random errors.
The power spectral density
is defined as the bilateral Fourier transform of a correlation function
. The Allan variance is a method of time sequences analysis for determining noise characteristics as a function of average time and can be found by results of recording and output signal
from the gyroscope, based on a stationary platform. The gyroscope’s output signal recording consists of
N samples with duration
. The total length the recording is
. This method was originally developed to evaluate standard frequency errors. Later, it was actively used for estimating parameters of inertial sensitive elements (recommendations to use this method of analysis are given in the IEEE standards [
12,
13].
According to this method, an initial array of
N measurements of an angular velocity
is received after the test measurements. Then the array is divided into
K = N/M groups, where
M is a size of the sequential measurements group. The angle accumulated by integrating results of a gyroscope angular velocity
at an interval of
M samples is determined for each group.
To calculate the Allan variance, one has to determine a dispersion of differences of the accumulated angles
for two neighboring groups having a time shift at correlation time
, where
is a sampling frequency of gyroscope output signals:
However, in practice it is often not the Allan variance
to be determined, but the Allan deviation (AD)
. Then, a curve of the Allan deviation against the average time is plotted. Different sections of the curve are analyzed. Finally, conclusions are drawn about the presence of various components of the gyroscope error (
Figure 1) [
16].
The gyroscope zero offset systematic error
from Equation (2) is the sum of the basic
and additional
systematic errors. Typically, the basic systematic error of a gyroscope will be different from the basic systematic error of another gyroscope of the same type. That is because a group of similar gyroscopes the main systematic error is considered as a random error, but constant in the operating cycle [
11,
17,
18].
Additional errors of gyroscopes are related to their sensitivity to changes of external factors; they are:
the sensitivity to acceleration , where is the coefficient of gyroscope sensitivity to acceleration against the respective axis ((rad∙s)/m) or ((rad/s)/g); is the acceleration;
the sensitivity to temperature changes , where is the coefficient of gyroscope sensitivity to temperature changes, (rad/(s∙°C); is the temperature deviation from its norm;
the sensitivity to vibration , where is the gyroscope sensitivity coefficient to a vibration frequency ((rad/s)/Hz) or (rad); is the vibration frequency;
sensitivity variations that are not a function of the measured orientation angles, for example, those depending on climatic factors (temperature
T, relative humidity
W, and ambient air pressure
P), which differ from their nominal values when measuring motion of objects
T0 = 20 °C,
W0 = 65%, and
P0 = 99.992 kPa (750 mm. mer. col.) (climate drift is
), depending only on temperature (temperature drift is
), or as a result of other factors during the time interval
(time drift is
):
3. Analysis of the Gyroscope Random Error Components
A generalized equation of gyroscope errors obtained in [
11,
19] is
where
is the diagonal matrix of relative errors of gyroscope conversion coefficients [%];
is the skew-symmetric matrix corresponding to the matrix of directional cosines
;
is the gyroscope zero offset vector with dimension of this gyroscope output signal.
The first summand in ratio (8) describes the effect of conversion coefficient errors, the second one shows malfunctioning installation of gyroscope measuring axes, the third is the gyroscope zero offsets determined by ratio (2).
The random error components of gyroscopes, which are inertial sensors, are defined by the presence of noise and noisy processes of various kinds [
11,
20]:
where
is the random error component caused by white noise (
WN);
is the bias instability (
BI);
is the random rate walk (
RRW);
is the of the random error component caused by the exponential correlated (Markov) noise (
MN).
Various disturbances influence the gyroscope output signal. If the gyroscope signal is taken at discrete time points of the sampling period
, the gyroscope noise can be described as white sequence (discrete white noise)
,
with the zero average
and the limited variance value
. The error variance determining the rotation angle is
[
11,
21]. Here, the standard deviation (SD) of the error accumulation from the rotation angle determination was caused by the presence of white noise in the gyroscope output signal. Moreover, it increases proportional to the square root of the time:
where
is the angle random walk (
ARW) with dimension
or
[
22,
23].
The criterion for the presence of white noise in the gyroscope output signal is the presence of a rectilinear section with inclination −0.5 on the Allan deviation curve (
Figure 1); thus, the ARW is the Allan deviation at
τ = 1 s. Moreover, accuracy of the random process parameter determination depends on the record length.
Bias instability (
BI) is caused by noises in the electronic components of gyroscope systems of information reading and processing. It is relative to
Flicker noise or
noise having the following spectral density
where
is the cutoff frequency, and
is the coefficient of bias instability. The flicker noise is a universal type of fluctuations and exists almost in all materials and elements used in electronics. In the model of zero instability formation, the fractional integration of which the white noise spectrum is used, which is the half-order integral from the white noise
. If white noise passes through a filter with the transfer function
, fluctuations at the filter output will have the
–spectrum. Such hypothetical filter acts as an integrator of fractional order [
11].
The gyroscope BI coefficient [
24] is determined by a section of the Allan deviation curve with inclination 0 (at the minimum value of the AD curve) (
Figure 2a) [
16,
25]:
The random rate walk (RRW)
is described by the Wiener random process (random walk) and leads to the presence of a straight section with inclination +0.5 on the Allan deviation curve (
Figure 1). In order to determine the spectral density of white noise
passed through the integrator to form the random walk, one has to find the AVAR at
The standard deviation of the RRW is accumulated over time similar to (8):
where
is the SD of a generating white noise
.
In order to determine the correlation time
(or an attenuation coefficient of correlation function
[s
−1]) and the dispersion
(or SD
) of Markov noise the Allan variance method is applied. According to it, the Allan deviation curve (
Figure 1) is used to determine the local maximum coordinates
and
between asymptotes with inclinations +0.5 and −0.5 (
Figure 2b) [
16], and the required Markov noise parameters are specified as follows [
11]:
This method provides accuracy enhancement for the Markov noise parameters determination by increasing the noise recording length [
26].
4. Experimental Examination of Noise Parameters of the InvenSense MPU-6050 Gyroscope
Electrical characteristics (gyroscope and accelerometer specifications) of the InvenSense MPU-6050 are presented in
Table 1 [
27].
Experimental examination of noise characteristics for each axis of the MEMS gyroscope inertial measurement unit (IMU) type InvenSense MPU-6050 was performed with application of the Allan variation method for 1 h at temperature (22 ± 3) °C. Data from the gyroscope were taken at a frequency of 70 Hz and the module was stationary. The read data was written to a text file and imported into MatLab, where the Allan deviation was calculated.
The graphical dependences of the Allan deviation against the correlation time for gyroscope each axis are shown in
Figure 3. As it was expected, at small values
, there is an inclination −0.5 of the Allan deviation curves, this corresponds to white noise in the gyroscope output signals. The angle random walk
is determined at
. The Allan deviation curves have a minimum on the zero-slope section corresponding to the bias instability in the area
. Increase of the averaging time was not analyzed, so a positive inclination +0.5 was not detected, indicating that there is no random rate walk in the gyroscope outputs. A local maximum between the asymptotes with inclinations +0.5 and −0.5 is also not observed on the Allan deviation curves, this indicates the absence of Markov noise in the gyroscope output signals.
The angle random walk
and the coefficient of bias instability
B for each axis of the gyroscope IMU were determined by graphs of the Allan deviation against the correlation time (
Figure 3).
Analysis of results of the gyroscope noise parameters measurement shows that the X and Z axes have the twice bigger bias instability coefficient than the Y axis. According to preliminary conclusions, this was caused by measurement errors of gyroscope scale factors. However, in similar repeated experiments, it was found that the gyroscopes scale factors were correctly calculated, their axes are aligned horizontally, with the same results as in
Figure 3. Therefore, it was concluded that for the investigated gyroscopic samples the X and Z axes are noisier than the Y axis [
11]. The examinations results show that MEMS sensors of the IMU "InvenSense MPU-6050 type" are not highly accurate. So, this module can be used as the primary means for determining movement and orientation parameters when high precision conditions are not posed.
5. Calibration of the Gyroscope InvenSense MPU-6050
A calibration procedure is required to improve the accuracy of determining the motion and orientation parameters with inertial sensors. Experimental equipment used for calibration consists of a uniaxial mini-centrifuge with an exemplary rotary device and the IMU “MPU-6050” 1 breadboard, connected to a power source “PSM-6003” 2 (accuracy (programming) is 0.05% + 5 mV offset, stability is 0.02% + 1 mV offset, temperature coefficient per °C is 0.01% + 3 mV offset), which sets supply voltage in the range 2.4–3.4 V, a frequency meter “METEX MXC-260” 3 (short-term stability is ±3 × 10
−9/s, long-term stability is ±2 × 10
−5/month, temperature coefficient is ±5 × 10
−6 in a range of (0–+40) °C), an electronic unit 4 and a computer 5 (
Figure 4). The step of rotation angle change is 10° in the range from 0° to 360° (error of angle setting is 0.08%), and the mini-centrifuge allows setting different values of the angular velocity in the range from 0 to 240°/min. in both rotation directions with relative error up to 0.1%.
An ideal output signal from the gyroscope should be proportional to the projection of the absolute rotation angular velocity
ω on the corresponding axis (for example
):
where
is the total transmission coefficient (scale factor), which depends on the gyroscope transmission ratio, as well as on the transmission ratio of the amplifier and other transducers of the measuring circuit.
In fact, each gyroscope has its own scale factor, bias instability, cross-links and other parameters, so we will use the following model of a gyroscope output signal:
where
are the cross-sensitivity coefficients;
is the gyroscope zero offset;
is the measurement noise.
Angular velocity sensors can be constructed by different principles, so the output signal model (15) is specified with additional components. Thus, all electromechanical gyroscopes, including MEMS, are characterized by a significant sensitivity of the zero offset to a linear acceleration. Therefore, for them, the of the output signal model is specified by adding components proportional to the projections
of apparent acceleration on the gyroscope sensitivity axis:
where
are coefficients of the gyroscope zero signal sensitivity to accelerations (so called "drift from g").
The task of calibrating the gyroscope means determining parameters of its output signal model (16) on order to consider them when calculating the true value of the measured angular velocity.
To obtain data for calibration, the gyroscope is set on the optical dividing head (ODH) according to provisions given in [
3], considering that the vector
is pointed vertically down. Data is read during a minute when the sensor rotates about an axis with 90° step. The orientation system outputs a 100 Hz signal, which is a one-dimensional array of 10 elements. The first three elements of the array are data from a triple axis accelerometer. During the reading process, the data is written to a text file as a spreadsheet to be later imported into mathematical packets and calculated. To reduce the effects of measurement noise
the output signal of the gyroscope is averaged over the measurement time (1 min), so it is not taken into account during calibration.
According to model (16), the gyroscope output signal depends on the angular velocity projections and accelerations . That is why for the calibration the test values of angular velocity ω and acceleration a have to be set. Therefore, the gyroscope calibration is divided into two stages. On the first stage the angular rotation velocity is specified, on the second stage the fixed gyroscope is set in different positions relative to the gravity acceleration vector , as with a calibration of accelerometers. Thus, on the first stage coefficients are determined and on the second stage coefficients are determined.
On the first calibration stage, the angular velocities of gyroscope rotation are set without changing its position relative to the gravity acceleration vector
. Therefore, the gyroscope output signal model at this stage looks like
where
is the total gyroscope zero offset.
When the gyroscope is calibrated only through a direct measurement channel (relative to the
Z axis), the model of its output signal is
. To calculate parameters
and
, two angular velocity values
are specified and two linear equations are obtained, their solving yields the following results:
According to the results of calculations in MatLab, on the first stage the following values of the coefficients received are: and
The gyroscope zero signal sensitivity to acceleration (“drift from
g”) is
According to the results of calculations in MatLab, on the second stage the following values of the coefficients received are: and
Let us calculate calibrated values of the gyroscope output signal
and determine measurement errors of the gyroscope angular velocity
. For simplicity, we assume that the rotation of the gyroscope is given only around one axis Z (
). At the same time for each value
of the rotary stand we determine the calibrated values of the gyroscope output signal:
The absolute measurement error for the angular velocity of the gyroscope during calibration is determined by the ratio
. Results of the calculations are presented in
Table 2.
6. Analysis of Output Signals of InvenSense MPU-6050
To estimate noise of accelerometer and gyroscope output signals, the MatLab application was used. The calibrated values of the sensor were being read during 10 min, after this time all the results were imported into a one-dimensional array. To calculate the standard deviation of the array elements in MathLab a default function
std() was used [
28,
29]. The noisy output signals of the calibrated accelerometer and gyroscope for each axis are shown in
Figure 5.
Analyzing the dependencies (
Figure 5), we conclude that the output signals for most axes of the sensor are offset relative to zero. Such offset should be taken into account in following calculations by introducing constant correction coefficients.
Data were read from registers of the MPU-6050 sensor at a frequency 10 Hz [
30]. The gyroscope readings are integrated by a microcontroller to determine the angular velocities relative to the three axes (results are shown in
Figure 6). In
Figure 5c shows how the error is being accumulated while integrating readings. This is so-called zero drift, with the sensor being fixed and the angle value increasing at almost constant speed). In
Figure 6a it can be seen that the accelerometer readings are noisy with high frequency interference, which leads to errors in calculation of deflection angles.
Analysis of the dependence (
Figure 5) shows that the output signals of most sensor’s axes are significantly offset from zero and noisy by high frequency interference. Such offset should be taken into account in calculations by introducing constant correction coefficients. When the angular velocity is integrated, the angle is determined wrongly (
Figure 6) due to the error accumulation (low-frequency noise) and accelerometer’s making a high-frequency interference. Therefore, to reduce the effects of noise, the sensor data (accelerometer and gyroscope) must be processed with an alpha-beta filter or the Kalman filter [
31,
32,
33].
7. Conclusions
We analyzed in this paper the gyroscope random error components such as bias instability and random rate walk, as well as those cause by the presence of white and exponentially correlated (Markov) noise. The MEMS gyroscopes of InvenSense MPU-6050 type were investigated at each axis with a sampling frequency 70 Hz, as a result, the Allan deviation curves were plotted. The Allan deviation curves allowed determining the values of the instability coefficient for zero (the minimum value for the
Y-axis is B
Y = 0.001277°/s; the maximum value for the
Z-axis is B
Z = 0.002449°/s) and angle random walk (the minimum value for the
X-axis is θ
ARW.X = 0.009145°/s/√Hz; the maximum value for the
Y-axis is θ
ARW.Y = 0.009997°/s/√Hz) for each axis, and finding out that the output signals of the gyroscopes have no Markov noise (there is no local maximum between asymptotes with inclinations +0.5 and −0.5 in
Figure 3) and random rate walks (there are no asymptotes with inclinations +0.5 in
Figure 3, because increase of the averaging time was not analyzed). Similar studies were performed, the accuracy of determining the scale factors of gyroscopes was checked, and X and Z axes were concluded to be are noisier than Y axis.
During the process of IMU calibration, the correction coefficients were calculated. At the first stage of calibration, a scale factor of the gyroscope and coefficients of cross sensitivity were determined at given values of the rotation angular velocity. At the second stage of calibration, the gyroscope zero was offset and the sensitivity coefficients of the gyroscope zero signal to acceleration sensitivity were determined for different positions of the gyroscope relative to the gravitational acceleration vector. Correction coefficients provide partial compensation of the influence of destabilizing factors. Moreover, they provide determination of inaccuracy of the perpendicularity of the sensitivity axes, the conversion coefficients for each axis, transform the sensor output codes into units of measured value and also the zero offset for each axis. The output signals of the calibrated gyroscope were read in 10 min and imported into MatLab to calculate the standard deviation of the array elements. These signals are noisy and there is an offset from zero on all axes. Z-axes of the gyroscope and accelerometer have the maximum values of zero offset and standard deviation of noise, while y-axes have the minimum ones. Data of the accelerometer and gyroscope should be processed by the alpha-beta or Kalman filter to reduce noise.
The determined parameters of the output signal model of the IMU gyroscope may be employed for integrating into a program code based on modern microcontrollers of the AVR family. This will increase accuracy of algorithms based on the Kalman or Madgwick digital filters with relatively high sampling frequencies about 100 Hz. Further studies will focus on determining the optimal averaging time when calculating the Allan variance considering the processing of inertial sensor information at long runs. This is important for calibrating inertial sensors and will increase efficiency of noise structure identification in channels of measuring equipment.