Вы находитесь на странице: 1из 7

Design and Prototype of Heading

Reference System
Piotr Kaniewski, Military University of Technology, Warsaw, Poland
Jakub Kazubek, Military University of Technology, Warsaw, Poland

BIOGRAPHY an unprecedented decrease of all the above


mentioned factors, making inertial navigation
Piotr Kaniewski had been studying Radiotechnical suitable for a wider set of applications. However,
Systems of Aircraft at The Military University of the dead-reckoning method is still a preferred choice
Technology in Warsaw, Poland. He was graduated in low-cost land navigation systems.
and received his MSc degree in 1994. He has held
his PhD degree in radionavigation from The Dead reckoning allows to determine the current
Military University of Technology since 1998. Dr position of a vehicle using heading and velocity
Kaniewski has been employed at The Faculty of measurements. One of the data streams needed for
Electronics of The Military University of DR can be provided by a Heading Reference System
Technology as an Engineer, Assistant, and finally (HRS). HRS provides heading estimates, which
Assistant Professor. His research interests include allow DR to calculate the direction of a vehicle
Kalman filtering, non-linear filtering and integration displacement and, along with velocity information,
of positioning systems to predict the current position of the vehicle.

Jakub Kazubek is a fifth year student of The The paper presents a project and a prototype of HRS
Warsaw Military University of Technology. He is system, utilizing an electronic compass with tilt
studying Radioelectronic Systems in the Institute of sensors and MEMS gyro. These additional sensors
Radioelectronics at the Faculty of Electronics. He are used to correct the compass measurements. The
was an individual student with a specialty of main task of the developed system is to determine
Integrated Navigation Systems. His research the current heading on the almost continuous basis
interests include inertial navigation systems, their and with as high accuracy as possible.
integration with other navigation devices and
practical development of integrated systems. MAGETIC AZIMUTH CALCULATIOS

ITRODUCTIO The main subsystem of the designed HRS is an


electronic compass module. This part of the system
Common radio-technical navigation systems like allows heading estimation, based on the Earth’s
Global Navigation Satellite Systems (GNSS), magnetic field measurements. Since the Earth’s
LORAN, TACAN and others do not provide magnetic and geographic poles do not coincide, the
navigation data on continuous basis. In harsh azimuth calculated on the basis of the magnetic field
environment or in case of intentional or measurements is the magnetic azimuth. To
unintentional jamming, their data may be determine geographical azimuth, the magnetic
unavailable even for long periods. declination has to be subtracted from the magnetic
azimuth.
Whenever there is a need for continuous navigation,
radio-technical systems are usually integrated with To determine the magnetic heading, the components
inertial navigation systems (INS) or dead-reckoning of Earth’s magnetic field have to be measured in
systems (DR). Due to large dimensions and power two, parallel to the Earth’s surface, orthogonal
consumption, as well as high prices, INS systems directions. The three dimensional Earth’s magnetic
have been traditionally applied in high-end or field vector and its relationship to the magnetic
military applications. The last years have witnessed azimuth is shown in Fig. 1 [2, 5].
techniques have to be used for measuring the offset
which results in additional circuitry.

Magnetoresistive sensors make use of the


magnetoresistive effect which causes a change in the
resistance of the sensor under the influence of an
external magnetic field. The internal structure and
the idea of operation of the MR sensor have been
shown in Fig. 2 [1].

Fig. 1 Earth’s magnetic field and magnetic azimuth

Earth’s magnetic field vector can be decomposed


into vertical component Hz and horizontal
component Hxy. The direction of the Hxy vector is
parallel to the magnetic North-South direction.
Next, the horizontal component vector Hxy can be
shown as a sum of two vector components: Hx,
which is parallel to the movement direction and Hy, Fig. 2 Internal structure of MR sensor
which is perpendicular to the movement direction. It
has been assumed that the positive values of these MR sensors have got internal magnetization which
components correspond with the forward sense of can be shown as Hint vector. Its direction is
the Hx vector and the right sense of Hy vector. perpendicular to the sensitivity axis of the sensor.
When external magnetic field Hext is applied along
As can be seen from Fig. 1, the magnetic azimuth the sensitivity axis, the direction of resultant vector
can be calculated as follows [2, 5]: Hres rotates with an angle of β which causes
a change in the resistance of the sensor.
 Ηy 
ψ M = 2π − atan  (1) To achieve best performance, MR sensors are
 Hx  connected in a bridge circuit. Linear characteristic
and high sensitivity to weak magnetic fields is
To calculate the azimuth with use of the above gained by applying barber pole structure to the
equation, it is sufficient to measure only two sensing elements.
horizontal components of the Earth’s magnetic field
Hx and Hy. As it is crucial to measure the horizontal In the designed HRS system, Philips KMZ51 [9]
components, the magnetic sensors in the compass MR sensors have been applied. Their internal
module should be gimballed mechanically or structure is shown in Fig. 3.
electronically.

MAGETIC FIELD SESORS

Among many different types of magnetic field


sensors available nowadays magnetoresistive (MR)
sensors are an interesting choice for using in low-
cost electronic compasses. Their main advantages,
besides their cost are high sensitivity and a large
scale of integration, which allows reduction of their
dimensions in comparison to formerly widely used Fig. 3 Internal structure of KMZ51 sensor
fluxgate sensors.
KMZ51 sensors have got differential output and
The main disadvantage of MR sensors is their offset integrated flip and compensation coils. The
voltage which adds to measurements. Special compensation coil generates magnetic field of
direction parallel to the sensitivity axis, allowing The flip coil of the sensor is constantly pulsed with
using compensation techniques. This coil is not used bidirectional current IF which causes permanent
in the project. The flip coil allows changing internal changes to the sense of the internal magnetization of
magnetization sense thus it can be used to change the sensor and thus switches the characteristics
the characteristic of the sensor. The flip coil is used between positive and negative one. By measuring
to measure the offset voltage of the sensor. Typical output voltages on the both characteristics (Vp and
characteristics of sensors are shown in Fig. 4 [9]. Vn) the offset voltage can be calculated using the
following formulae [2]:

Voffset =
1
(V p + Vn ) (2)
2

The offset voltage has to be subtracted from each


measurement.

TILT COMPESATIO

When the compass module is tilted, the measured


Fig. 4 Typical characteristics of KMZ51 sensor components do not equal horizontal components of
the Earth’s magnetic field [5, 6]. Because of that,
As it is shown in the above figure, KMZ51 sensors the angle determined with the use of the equation
have got two characteristics: positive (a) and (1) is sensitive to the tilt of the compass.
negative (b). The flip coil allows to switch between
them by applying to this coil bidirectional current The relationship between the tilt and the azimuth
pulses of an amplitude c.a. ±1 A. error is shown in Fig. 6 [2].
The offset voltage is also shown in Fig. 4. Assuming
typical values of the supply voltage, temperature
and Earth’s magnetic field, the offset voltage can be
even seven times bigger than the voltage change due
to the sensor rotation in the Earth’s magnetic field.
The offset voltage is independent on the type of the
characteristic (a) or (b), which allows its calculation
with a special measurement procedure called
flipping [1, 2, 3]. The idea of measuring the offset
voltage is shown in Fig. 5 [2].

Fig. 6 Relationship between tilt and azimuth error

In the above figure, two cases have been shown. In


the case (a), there is no tilt, thus there is no azimuth
error ε. The angle δ is the magnetic inclination
angle. In the case (b), it is assumed that the tilt τ
exists around the Y axis, which is parallel to the
magnetic North-South direction. The azimuth error ε
can be calculated using the following equation [2]:
Fig. 5 Offset voltage measurement
ε = atan (tan δ ⋅ sinτ ) (3)
The influence of the tilt angle and the inclination X E = X C cos θ − YC sin θ sin φ − Z C sin θ cos φ (4)
angle on the azimuth are shown in Fig. 7.

YE = YC cos φ + Z C sin φ (5)


80
δ = 80°
70

60 The values of magnetic field horizontal components


Azimuth error ε [°]

50
in OXEYE plane can be calculated using the
δ = 60° following equations:
40

30
H x′ = H x cosθ − H y sinθ sinφ − H z sinθ cosφ (6)
20
δ = 30°
10
δ = 10°
0 H ′y = H y cos φ + H z sin φ (7)
0 10 20 30 40 50 60
Tilt τ [°]

To evaluate the above equations the vertical


Fig. 7 Influence of tilt and inclination on azimuth component of the Earth’s magnetic field as well as
pitch and roll angles of the module have to be
As can be seen in Fig. 7, the azimuth error can measured. The vertical component is measured with
achieve large values, up to 40°, even for relatively a third MR sensor and tilt angles are measured with
small tilt angles, such as 10°. The ε error grows fast the use of a 3-axis accelerometer. The method of
for small tilt angles and its maximum value depends calculating these angles will be discussed in the next
on the inclination angle δ. section of this paper.
Such high error values are not allowable and have to ′ ′
Having calculated Hx and Hy magnetic field
be compensated. In the designed HRS, electronic tilt
components, tilt compensated azimuth can be
compensation has been applied to reduce this error.
determined as follows:
Fig. 8 shows pitch and roll angles of the electronic
compass module [2, 4].
 Η ′y 
ψ M = 2π − atan  (8)
 Η x′ 

TILT AGLES CALCULATIOS

In the designed HRS, tilt angles are calculated with


use of measurements of Earth’s gravity acceleration.
The idea is shown in Fig. 9 [2, 4]:

Fig. 8 Compass module orientation

Coordinate frame defined by the XC, YC and ZC axes


is aligned with the compass module. The other
coordinate frame defined by the axes XE, YE and ZE
has its OXEYE plane perpendicular to the local
gravity vector. Tilt angle measured between XC axis
and the plane E is the pitch angle θ and the angle Fig. 9 Gravity components in tilted compass frame
measured between YC axis and E plane is the roll
angle φ. Tilt angles can be calculated using the following
equations [2, 4]:
To compensate tilt effects, the measurements of
magnetic field components in XCYCZC frame should
 
θ = atan 
be converted to the XEYEZE frame. The general ax
(9)
transformation equations from XCYCZC to XEYEZE  a 2y + a z2 
are as follows [4-7]:  
 ay 
φ = atan   (10)
 a2 + a2 
 x z 

Accelerations ax, ay and az are measured with


a 3-axis Freescale MMA7260 MEMS accelerometer
[10]. The accelerometer has integrated temperature
compensation and circuitry providing three
analogue voltage outputs.

The measurement range used in the designed system


is ±1.5 g. The output voltage for 0 g equals half of Fig. 10 Integration algorithm
the supply voltage. Offset voltages and sensitivities
for each output are measured during the process of The compass heading ψc is used by the Kalman
HRS calibration implemented in the prototype. filter only if it has been previously properly
compensated for tilt effects. As this compensation is
GYROSCOPE CORRECTIO not possible when the HRS user accelerates,
a manoeuvre detector has been applied. If the total
The designed Heading Reference System has got acceleration differs from 1 by more than a threshold
a one axis gyroscope sensor. The sensor provides λ, the Kalman filter switches to the prediction mode
information about angular rate and the change of the and does not perform the measurement update.
total angle. Its sensitivity axis is aligned with the ZC
axis of the compass module. The algorithm also checks if there exists the consent
between the change of the gyroscope heading ∆ψg
In the design, Analog Devices ADIS16251 and the change of compass heading ∆ψc. If there is
integrated digital MEMS gyroscope has been used a discrepancy between the two values, the algorithm
[11]. It has a digital serial peripheral interface (SPI) assumes that there is a magnetic field disturbance,
which is used for communication with the chip. The and switches the Kalman filter to the prediction
main advantage of this sensor is its high short term mode. This allows eliminating invalid compass data
accuracy. from the filter input.

To determine the gyroscope heading ψg, angular rate The measurement vector of the Kalman filter is
measurements ωg from gyro have to be integrated. formed as a difference between the compass heading
Unfortunately, the integration leads to accumulation and the gyro heading. As they both are composed of
of errors with the rate depending on the drift of the true heading and respective errors, the difference
sensor. between gyro and compass headings consists of
a combination of errors. The Kalman filter estimates
Moreover heading calculated on the basis of residual gyroscope heading errors and provides
gyroscope measurements has to be initialized. In the them to the input of the error updater. The error
prototype, the initialization is performed during the updater accumulates them and calculates the total
start-up procedure of the device and ψg is set to the estimated heading error δψ̂ g , which is subsequently
initial compass azimuth ψc(0).
subtracted from the gyro heading ψg, providing
ITEGRATIO ALGORITHM estimated heading ψ̂ .

The designed Heading Reference System uses the HRS PROTOTYPE


gyroscope data and the compass data to determine
current heading [6]. The designed prototype utilizes In the frames of this project, a prototype of the
a Kalman filter [7, 8] to integrate the measurement described Heading Reference System has been
data and estimate gyroscope errors. The results of developed. The main task of the system is to
estimation are subsequently used to calculate the determine the current heading on the almost
estimated heading ψ̂ . continuous basis and with possibly high accuracy. It
was assumed that the system should consist of low
cost elements, having possibly high accuracy, small
A block diagram of the implemented integration
dimensions, and battery supply. The block diagram
algorithm is shown in Fig. 10.
of the prototype is shown in Fig. 11.
The design uses Freescale 3-axis MMA7260 MEMS
accelerometer for determining tilt angles [10]. The
accelerometer has got three analogue outputs which
drive three low pass filters. The filter outputs are
connected to three single ended inputs of the 10-bit
analogue to digital converter, being a part of the
microcontroller. The conversion results are available
in appropriate registers of the microcontroller.

The gyroscope used in the designed HRS prototype


is an Analog Devices ADIS16251 integrated angular
rate sensor [11]. The device is controlled by the SPI
interface using a set of internal registers. The sensor
has got an internal integration algorithm and its
measurement results are available in its internal
registers.

The estimated heading is displayed on a graphical


LCD module with additional information such as
pitch and roll angles, current mode of filter
operation (only prediction or normal work) and
information about detected magnetic field
Fig. 11 Block diagram of the designed prototype disturbances and manoeuvres.

The HRS is controlled by an Atmel AVR series The circuit is powered by a 3.6 V / 600 mAh NiMH
ATMega644P microcontroller with an internal accumulator. The microcontroller is powered
8 MHz oscillator. The microcontroller executes directly from the accumulator, just as the digital part
a programme which conducts initialization routines, of the A/D converter. Since the gyroscope requires
measurement routines and errors estimation. 5 V of power supply an Analog devices step-up
switching regulator ADP1111-5 has been used. The
The electronic compass module consists of three output voltage from the step-up regulator is filtered
magnetic field KMZ51 sensors with their axes in low pass filters. Filtered 5 V power supply is
oriented orthogonally. Z axis sensor is mounted on provided to the gyroscope, LCD, re-magnetizing
a separate PCB. The outputs of the sensors are circuits, magnetic field sensors and analogue part of
connected to three differential input channels of the the external A/D converter.
analogue to digital converter.
Figs. 12 and 13 show the prototype of the designed
The project uses an Analog Devices AD7799 24-bit Heading Reference System.
delta-sigma A/D converter [12]. It contains an
integrated amplifier with programmable gain and
a programmable filter. Reference voltage is
generated by a LM385-2.5 circuit. The A/D
converter is controlled by the microcontroller
through serial peripheral interface. The conversion
results are located in appropriate internal registers of
AD7799 converter and are read by the
microcontroller through the SPI interface.

The re-magnetizing circuit provides short pulses of


bi-directional current to the flip coils of the three
magnetic field sensors [3]. The circuit consists of
four MOSFET IRF7317 transistors. MOSFETs are
connected in a full H-bridge and drive three parallel
flip coils through a capacitor. The bridge is powered
through a low pass filter which separates the power
supply from high current pulses. Fig. 12 GUI of designed HRS
Table 1 Statistics of heading errors

Compass HRS
Standard
0.328 0.101
deviation [deg]
Angle error
1.830 0.460
range [deg]

As can be seen in Figs. 14-15, the gyro heading


tends to almost linearly increase because of gyro
errors. The compass heading has long term stability,
but is noisy. The integration algorithm enables
estimation of heading, holding the advantages of
short term gyro accuracy and long term compass
Fig. 13 Main part of HRS under LCD module stability. Due to use of gyro, fast response of the
system has been preserved and noises of the
MEASUREMET RESULTS compass heading have been significantly reduced.
During the evaluation of HRS performance, the gyro ACKOWLEDGEMETS
heading, compass heading and estimated heading
outputs have been observed. Measurement results This work was supported by the Polish Ministry of
were sent to a PC through a UART communication Science and Higher Education from sources for
port. In Fig. 14 measurement results for HRS, science in the years 2007-2010 under
constantly pointing 45° azimuth have been shown. Commissioned Research Project PBZ-MNiSW-
The results from Fig. 15 have been obtained for DBO-04/I/2007.
HRS pointing 290° through first 60 s and after that
time rotated to 320°. REFERECES
55
1. General Magnetoresistive Sensors for Magnetic
Compass heading Field Measurement, Philips Semiconductors,
Gyro heading 2000.
Estimated heading
2. Electronic Compass Design using KMZ51 and
Heading [°]

50 KMZ52, Application Note AN00022, Philips


Semiconductors, 2000.
3. Set/Reset Function for Magnetic Sensors,
Application Note AN213, Honeywell, 2002.
4. Electronic Tilt Compensation, Application
45
0 10 20 30 40 50 60 70 Note AN-00MM-004, Memsic, 2008.
Time [s]
5. Caruso M.J.: Applications of Magnetic Sensors
Fig. 14 Headings from gyro, compass and HRS
for Low Cost Compass Systems, PLANS 2000,
350 pp. 177-184, 2000.
6. Ladetto Q., Gabaglio V., Merminod B.:
340 Compass heading
Gyro heading
Combining Gyroscopes, Magnetic Compass
330 Estimated heading and GPS for Pedestrian Navigation, KIS, Banff,
Canada, pp. 205-212, 2001.
Heading [°]

320
7. Farrell J.A.: Aided Navigation GPS with High
310
Rate Sensors, McGraw-Hill, USA, 2008.
300 8. Haykin S. (ed.): Kalman Filtering and Neural
Networks, Wiley, USA, 2001.
290
9. KMZ51 Magnetic Field Sensor, Data Sheet,
280
0 10 20 30 40 50 60 70 80
Philips Semiconductors, 2000.
Time [s] 10. Micromachined accelerometer MMA7260QT,
Fig. 15 Headings from gyro, compass and HRS Freescale Technical Data, 2008.
11. Programmable Low Power Gyroscope
Simple statistics for the stationary period of time for ADIS16251, Datasheet, Analog Devices, 2007.
the second testing scenario (Fig. 15) have been 12. 3-Channel ADC AD7799, Datasheet, Analog
shown in Table 1. Devices, 2005.

Вам также может понравиться