}w!"#$%&'()+,-./012345<ya

Similar documents
Basic Principles of Inertial Navigation. Seminar on inertial navigation systems Tampere University of Technology

Robot Perception Continued

Information regarding the Lockheed F-104 Starfighter F-104 LN-3. An article published in the Zipper Magazine #48. December Theo N.M.M.

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

The accelerometer designed and realized so far is intended for an. aerospace application. Detailed testing and analysis needs to be

Frequently Asked Questions (FAQs)

An inertial haptic interface for robotic applications

Technical Report. An introduction to inertial navigation. Oliver J. Woodman. Number 696. August Computer Laboratory

Hand Gestures Remote Controlled Robotic Arm

Sensors and Cellphones

An internal gyroscope minimizes the influence of dynamic linear acceleration on slope sensor readings.

Rotation: Moment of Inertia and Torque

K.Prasanna NIT Rourkela,India Summer Internship NUS

Onboard electronics of UAVs

Magnetometer Realignment: Theory and Implementation

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Active Vibration Isolation of an Unbalanced Machine Spindle

MXD7202G/H/M/N. Low Cost, Low Noise ±2 g Dual Axis Accelerometer with Digital Outputs

E190Q Lecture 5 Autonomous Robot Navigation

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Applications of Magnetic Sensors for Low Cost Compass Systems

PRODUCT DATASHEET. J1939 Vehicle Inertia Monitor. Advanced Vehicle Inertial Measurement and Vibration Monitoring Device. fleet-genius.

Chapter 27 Magnetic Field and Magnetic Forces

How To Control Gimbal

If you want to use an inertial measurement system...

2.0 Command and Data Handling Subsystem

Sensor Fusion Mobile Platform Challenges and Future Directions Jim Steele VP of Engineering, Sensor Platforms, Inc.

State Newton's second law of motion for a particle, defining carefully each term used.

Engineers from Geodetics select KVH for versatile high-performance inertial sensors. White Paper. kvh.com

Force on Moving Charges in a Magnetic Field

Micro Power Generators. Sung Park Kelvin Yuk ECS 203

Building a simple seismometer

Sample Questions for the AP Physics 1 Exam

MicroMag3 3-Axis Magnetic Sensor Module

Calculation of Azimuth, Elevation and Polarization for non-horizontal aligned Antennas

State Newton's second law of motion for a particle, defining carefully each term used.

Performance Test Results of an Integrated GPS/MEMS Inertial Navigation Package

MoTeC USA GPS. Part # M GPS BL Available in 10 Hz or 20 Hz. USER MANUAL Version 1.4

E. K. A. ADVANCED PHYSICS LABORATORY PHYSICS 3081, 4051 NUCLEAR MAGNETIC RESONANCE

Quest- 1 Satellite Functional Description

Enhancing the SNR of the Fiber Optic Rotation Sensor using the LMS Algorithm

Implementing a Tilt-Compensated ecompass using Accelerometer and Magnetometer Sensors by: Talat Ozyagcilar Applications Engineer

Physics 221 Experiment 5: Magnetic Fields

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

Post Processing Service

Synthetic Sensing: Proximity / Distance Sensors

Robot Sensors. Outline. The Robot Structure. Robots and Sensors. Henrik I Christensen

Orbital Mechanics. Angular Momentum

Mounting instructions. Acceleration Transducer B12. B 26.B12.10 en

1. The diagram below represents magnetic lines of force within a region of space.

Contents. Preface. xiii. Part I 1

Vehicle and Object Tracking Based on GPS and GSM

Impedance Matching and Matching Networks. Valentin Todorow, December, 2009

Tutorial for MPLAB Starter Kit for PIC18F

AP Series Autopilot System. AP-202 Data Sheet. March,2015. Chengdu Jouav Automation Tech Co.,L.t.d

Survey Sensors Hydrofest Ross Leitch Project Surveyor

Indoor Positioning using Sensor-fusion in Android Devices

Zigbee-Based Wireless Distance Measuring Sensor System

Application Note 58 Crystal Considerations with Dallas Real Time Clocks

THERMAL ANEMOMETRY ELECTRONICS, SOFTWARE AND ACCESSORIES

Lecture L30-3D Rigid Body Dynamics: Tops and Gyroscopes

AP PHYSICS C Mechanics - SUMMER ASSIGNMENT FOR

ix3m Dive Computer Installable Apps Manual ver. 1.1

Using angular speed measurement with Hall effect sensors to observe grinding operation with flexible robot.

The quadrature signals and the index pulse are accessed through five inch square pins located on 0.1 inch centers.

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

Prof. Ludovico Biagi. Satellite Navigation and Monitoring

Application Note IMU Visualization Software

Motion Sensing with mcube igyro Delivering New Experiences for Motion Gaming and Augmented Reality for Android Mobile Devices

SIX DEGREE-OF-FREEDOM MODELING OF AN UNINHABITED AERIAL VEHICLE. A thesis presented to. the faculty of

Midterm Solutions. mvr = ω f (I wheel + I bullet ) = ω f 2 MR2 + mr 2 ) ω f = v R. 1 + M 2m

SYNCHRONOUS MACHINES

CASE HISTORY #2. APPLICATION: Piping Movement Survey using Permalign Laser Measurement System

Vibration measurements on future supports of mirrors M3 and M4 (ver. 1.0)

HP TouchPad Sensor Setup for Android

Experiment 5: Magnetic Fields of a Bar Magnet and of the Earth

The Design and Implementation of a Quadrotor Flight Controller Using the QUEST Algorithm

Using Xbee in Serial Communication

A More Efficient Way to De-shelve 137 Ba +

ix3m Dive Computer Installable Apps Manual ver. 1.0

SURVEYING WITH GPS. GPS has become a standard surveying technique in most surveying practices

How to measure absolute pressure using piezoresistive sensing elements

Application Note 58 Crystal Considerations for Dallas Real-Time Clocks

State of Stress at Point

1. Units of a magnetic field might be: A. C m/s B. C s/m C. C/kg D. kg/c s E. N/C m ans: D

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Let s first see how precession works in quantitative detail. The system is illustrated below: ...

T-SERIES INDUSTRIAL INCLINOMETER ANALOG INTERFACE

1 213 Ref: Compass, Boxing, Heading C A vessel heading ENE is on a course of. A C B D

Eðlisfræði 2, vor 2007

Small, Low Power, 3-Axis ±3 g Accelerometer ADXL335

MSAN-001 X-Band Microwave Motion Sensor Module Application Note

Physics 1A Lecture 10C

Sensors. Marco Ronchetti Università degli Studi di Trento

Electron Charge to Mass Ratio Matthew Norton, Chris Bush, Brian Atinaja, Becker Steven. Norton 0

Tire pressure monitoring

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Reflection and Refraction

Transcription:

MASARYK UNIVERSITY FACULTY OF INFORMATICS }w!"#$%&'()+,-./012345<ya Positioning system for small devices using principles of inertial navigation system MASTER S THESIS Martin Veškrna Brno, 2013

Declaration Hereby I declare, that this paper is my original authorial work, which I have worked out by my own. All sources, references and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Advisor: RNDr. Zdeněk Matěj iii

Abstract Inertial navigation is a technology which is able to track the position without the communication with any external systems. Its disadvantage is increasing inaccuracy with time of operation. This work integrates the inertial navigation and GPS to trace the device not only in an open space where the GPS signal is available. The GPS is used to track the device position in an open space and when the GPS signal is lost, the inertial navigation continues computing the position based on the force applied to the device. Keywords: INS, inertial navigation, GPS, MEMS, accelerometer, gyroscope, magnetometer v

Contents 1 Introduction........................................ 1 2 Navigation Principles.................................. 3 2.1 GNSS (Global Navigation Satellite Systems)................... 3 2.1.1 GPS (Global Positioning System)..................... 3 2.2 Inertial Navigation System............................. 4 2.2.1 Reference Frames.............................. 5 2.2.2 Inertial System Configurations...................... 5 2.2.2.1 Stable Platform System..................... 5 2.2.2.2 Strapdown System........................ 6 2.2.3 Strapdown Attitude Representation................... 7 2.2.3.1 Euler Angles........................... 7 2.2.3.2 Direction Cosine Matrixes................... 7 2.2.3.3 Quaternions........................... 8 2.2.3.4 Gimbal Lock........................... 8 2.2.3.5 Attitude Computing Based on Gyroscope Output...... 9 2.2.3.6 Tilt Computing Using Accelerometer............. 9 2.2.4 Error Propagation............................. 9 3 Components for INS Construction........................... 11 3.1 Gyroscopes...................................... 11 3.1.1 Conventional Sensors........................... 11 3.1.2 Other Types of Gyroscopes........................ 11 3.2 Accelerometers................................... 11 3.3 MEMS Technology................................. 12 3.3.1 MEMS Gyroscopes............................. 13 3.3.2 MEMS Accelerometers........................... 14 4 Calibration......................................... 15 4.1 Compass Calibration................................ 15 4.1.1 Hard Iron Material............................. 15 4.1.2 Soft Iron Material.............................. 16 4.1.3 Calibration Process............................. 16 4.1.4 Tilt Compensated Electronic Compass.................. 18 4.1.5 Align the Axis................................ 18 4.2 Accelerometer and Gyroscope Calibration.................... 19 4.2.1 Bias...................................... 19 4.2.2 Scale Factor................................. 20 4.2.3 Axis Misalignment and Cross-Axis Sensitivity............. 20 4.2.4 Accelerometer Calibration......................... 20 4.2.5 Gyroscope Calibration........................... 21 5 Requirements for equipment and Component Selection.............. 23 5.1 Requirements.................................... 23 vii

5.1.1 Price..................................... 23 5.1.2 Size...................................... 23 5.1.3 Power Consumption............................ 23 5.1.4 Temperature Range............................. 23 5.1.5 Calibration.................................. 23 5.1.6 INS Data Accurate Computing...................... 24 5.1.7 Position Obtained Using INS - Usable Time............... 24 5.2 Component Selection................................ 24 5.2.1 Accelerometer................................ 24 5.2.2 Gyroscope.................................. 24 5.2.3 Electronic Compass............................. 25 5.2.4 Voltage Regulator.............................. 25 5.2.5 GPS Module................................. 25 5.2.6 UART/USB Transceiver.......................... 26 5.2.7 Microcontroller............................... 26 5.2.7.1 Communication Interfaces................... 26 5.2.7.2 Debugging............................ 27 5.2.7.3 Power Consumption...................... 27 5.2.7.4 Selected Microcontroller.................... 27 5.2.8 Summary Table............................... 27 6 Device for Data Acquiring............................... 29 6.1 Device Construction................................ 29 6.2 Firmware....................................... 30 6.2.1 Detection of New Sample......................... 30 6.2.2 Data Acquiring from Sensors Using I 2 C................. 31 6.2.3 GPS Serving................................. 32 6.2.4 Data Transferee to Computer....................... 32 6.2.5 Statistics................................... 33 6.3 Testing and Capturing Application........................ 33 6.3.1 Data Capturing and Internal Storing................... 34 6.3.2 Data Visualization............................. 34 6.3.2.1 Gyroscope Data Visualization................. 34 6.3.2.2 Accelerometer Data Visualization............... 34 6.3.2.3 Magnetometer Data Visualization............... 35 6.3.3 Statistics................................... 35 6.3.4 Calibration Assistance........................... 35 6.3.5 Data Saving................................. 36 7 Signal Processing..................................... 37 7.1 Basic Schema of Data Processing......................... 37 7.2 File Loading..................................... 37 7.3 Raw Data Calibration................................ 39 7.4 Tilt Computing (Roll and Pitch Angle)...................... 39 7.4.1 Fusion Algorithm.............................. 41 7.5 Yaw Computing................................... 42 7.6 Position Computing................................ 43 7.7 Fusing GPS and Inertial Navigation System................... 43 7.8 On-line Calibration................................. 44 viii

7.8.1 Gyroscope Calibration........................... 45 7.8.2 Accelerometer Calibration......................... 45 8 Testing and Results.................................... 47 8.1 Results........................................ 47 8.1.1 Gyroscope Calibration........................... 47 8.1.2 Accelerometer Calibration......................... 48 8.1.3 INS Error.................................. 48 8.2 Comparing to Other Existing Devices...................... 49 9 Possible Future Improvement............................. 51 9.1 Sending Data via GSM............................... 51 9.2 Kalman Filtering.................................. 52 9.3 INS/eCompass Fusing Algorithm........................ 52 9.4 Attitude Restriction and Representation..................... 52 10 Summary.......................................... 53 Bibliography.......................................... 54 A The Device......................................... 57 B Testing and Capturing Application.......................... 59 C Included Materials.................................... 61 ix

Chapter 1 Introduction Imagine the situation in which the small expensive device is situated at the place, where it is very complicated to protect it against the robbery. It is possible to track the device using the GPS, but when the robber walks into the building, the GPS signal will lose. The inertial navigation system (INS) is the technology which is able to track the device without communication with outer systems like GPS. It measures the force acting on the device and then computes the position. The position can be sent to the user via mobile phone (GSM). The first aim of this work is construct the prototype of device which includes GPS and inertial navigation system to track the position also in places where the GPS signal is not available. While the GPS signal is available, it will be used to position obtaining. At the moment when the GPS signal lost, the position will be computed using inertial navigation. The second aim is discussion about the way how to send the signal from sensors over the large distance and therefore make the device autonomous (chapter 9.1). The inertial navigation system consists of gyroscopes and accelerometers. Gyroscopes measure the attitude of the device (tilt and heading). The accelerometers measure the force acting on the device. Based on the attitude obtained using gyroscopes, this force is projected into the global coordinate system and then double integrated to compute the position of the device. Because of there are three consecutive integration (the first is when the attitude is computed from the gyroscope signal) the error in the result is propagated to the third power (chapter 2). The basic requirements for the device are low price, small size, low power consumption and wide temperature range. Therefore the INS sensors based on MEMS technology (Micro-Machined Electromechanical System) were selected. This technology satisfies all requirements, but the accuracy is the worst of all technologies. The calibration process used in this work do not use any external equipment. (chapter 3, 4 and 5.1). The signal from sensors is transmitted using the microcontroller into the computer where the off-line algorithm is implemented to compute the position. The communication protocol from the microcontroller to the computer is designated to easy change the communication through GSM to the computer (chapter 6). The off-line position algorithm consists of several steps. The first is attitude computing where the fusing of gyroscope, accelerometer and electronic compass signal is used to eliminate the gyroscope error propagation. Secondly, the initial position and velocity is determined using GPS. Then the acceleration applied to the device is double integrated to track the position (chapter 7). Two calibration procedures are used to eliminate the sensor errors. The first is provided during manufacturing the device and it does not need any tool or do any precious maneuvers. The second one is on-line calibration provided during the position computing. It is necessary because of the aging the sensors and temperature changing (chapter 7.8). 1

1. INTRODUCTION The last chapter of this work describes the possible expansions. There are described sending signal from sensors through GSM, Kalman filtering, better attitude representation and better INS / ecompass fusing algorithm (chapter 9). 2

Chapter 2 Navigation Principles They [13] describe five types of navigations: 1. Pilotage. It is based on landmark recognizing to know where you are and how you are oriented. The animals use this type of navigation, it is older than humankind. 2. Dead reckoning. The starting point is known and the next position is estimated based on the heading information (azimuth) and estimate of speed. 3. Celestian navigation. It uses time and the angle between the local vertical and the known celestian objects (moon, sun, stars, etc.). Then the longitude and latitude are computed. 4. Radio navigation. It relies on some radiofrequency sources with known positions. Then the time to receive signal is measured and the position is computed. This type of navigation includes Global Navigation Satellite Systems (GNSS) too. 5. Inertial navigation. The initial position, speed and attitude (tilt and heading) are known. Then the attitude change and acceleration is measured. It is the only form of navigation that does not rely on external references. This work is based on the fourth and the fifth principles which will be described in the next chapters. 2.1 GNSS (Global Navigation Satellite Systems) It is based on radio navigation and uses satellites on orbit, control station and user receivers. Today (year 2013) there are four GNSS. The first Global Position System (GPS) was built by the U.S. Department of Defense. The second was Global Orbiting Navigation Satellite System (GLONASS), placed in orbit by the former Soviet Union. The Galileo (being built by European Union and European Space Agency) and Compass (Chinese satellite navigation system) are currently under construction. The principles of operation of all systems are similar, and then the most used GPS system will be described. 2.1.1 GPS (Global Positioning System) The space segment consists of 24 to 32 satellites which contains atomic clock to very accurate time measurement. The radio communication is realized on frequencies which are low influenced by meteorological phenomena. Satellites communicate between themselves, with users and the control segment. There are from 6 to 12 visible satellites above the Czech Republic. 3

2. NAVIGATION PRINCIPLES The control and monitoring system consist of stations whose positions are accurately known. It computes satellites position and synchronize atomic clock. In case the ground stations will be destroyed, the space segment could work up to 6 month independently. The user segment uses receivers that compute a position based on received values from the space segment. Users are divided into 2 basic groups. Authorized users (mainly from the army) have guaranteed higher accuracy to the unit centimeters. Unauthorized users (public) use a precision of unit meters. The user receives the information from each satellite that includes the sending time and the position of the satellite. Ideally values from three satellites is necessary, but the clock in the receiver is not as accuracy as in satellites. Then values from four satellites are used to compute the user position. R = (X r X s ) 2 + (Y r Y s ) 2 + (Z r Z s ) 2 + c δ r (2.1) R - the distance between receiver antena and satellite X s, Y s, Z s - satellite position X r, Y r, Z r - receiver antena position δ r - receiver clock skew c - velocity of light The accuracy of GPS is affected by atmosphere phenomena, clock accuracy in receiver, number of visible satellites and many others. To predict the atmosphere influence (specifically the ionosphere) to radio signal, the almanac is provided by satellites. To receive radio signal from satellites and compute the user position, the GPS modules are made. They communicate with user using NMEA protocol, see [21]. It defines a few sentences including actual position, speed, time, accuracy of position, number of visible satellites and information about them. 2.2 Inertial Navigation System There are a lot of situations where it is not possible to communicate with satellite navigation system or recognize landmarks to determine the position. The inertial navigation system (INS) is a self-contained navigation technique in which the measurement of force acting on the device is used to track its position. Let r(t) is the position vector of the tracked device. I except the three dimensional coordinate system which is fixed, non-rotating and non-accelerating. Then the device velocity v(t) and acceleration a(t) can be computed as: v(t) = d (r(t)) (2.2) dt a(t) = d2 (r(t)) (2.3) dt2 Acceleration can be measured by triad of orthogonally oriented accelerometers. The accelerometers output vector consists of force vector f acting to the device and gravity vector g. d 2 (r(t)) = f + g (2.4) dt2 4

2. NAVIGATION PRINCIPLES 2.2.1 Reference Frames These equipments 2.2, 2.3 and 2.4 expect that the coordinate system of accelerometers (body frame or b-frame) is the same as the global frame (or n-frame, navigaional, reference frame) where axis are aligned with of directions of north, east and down. Due to the rotation of the device the alignment of accelerometer body frame is not same as the global frame. Then the attitude of the device is necessary to measure and then convert coordinate systems. It is possible to use a gyroscopes. The Earth rotates around its axis, then the global frame is rotated and then there is a Coriolis force. Sensors used in this work are not capable to measure this force. Therefore I expect non-rotating and fixed global frame. 2.2.2 Inertial System Configurations Nearly all the Inertial Measurement Units (IMU, consist of accelerometers and gyroscopes) can be divided into two basic categories. The difference is reference frame in which the gyroscopes and accelerometers work. 2.2.2.1 Stable Platform System The accelerometers are mounted on platform which is isolated from all external rotational motions. It means the platform is aligned witch global reference frame. It is achieved using gimbals which allow platform freedom in all three axes. The platform mounted gyroscopes detect rotation movement and the signal is propagated to the torque motors which rotate the platform to keep it aligned witch the global frame. Figure 2.1: Stable platform system, taken from [26] The device orientation can be read by the angle pich-off. To calculate the position of the device the signal from accelerometers are double integrated. Note the acceleration due 5

2. NAVIGATION PRINCIPLES to gravity is necessary subtract from the vertical channel before integrating. Figure 2.2: Schema of stable platform system, taken from [24] 2.2.2.2 Strapdown System In strapdown systems the inertial sensors are rigidly mounted onto the device and therefore the accelerometer output is measured in the body reference frame. The gyroscopes provide the actual orientation of the platform and the accelerometer output is converted from body to global reference frame using microcontroller. Then the signal processing is same as in case of the stable platform. The advantage of strapdown system is reducting mechanical complexity and then tends to be physically smaller than the stable platform. Figure 2.3: Schema of strapdown platform system, taken from [24] 6

2. NAVIGATION PRINCIPLES 2.2.3 Strapdown Attitude Representation The device is free to rotate about all directions. There are three basic types of rotation representations, the Euler angles, direction cosine matrixes and quaternions. It is possible to convert these representations from one to another, but there can be same numerical instability, see [24]. 2.2.3.1 Euler Angles The coordinate system is orthogonal and right-handled axis set. The positive rotation along each axes are taken to be in a clockwise direction looking along the axis from the origin as illustrate Figure 2.4. The change or attitude of the device body is not only the function of the angle through which it rotates about each axes, but the order in which the rotation occurs. See chapter 3.6 in [24]. Therefore the sequences of rotations are defined. To rotate the device from global reference frame to body reference frame is the sequence Oxyz (first roll angle, then pitch angle and last yaw angle). The reverse rotation from body reference frame to global frame is defined sequence Ozyx. Figure 2.4: Euler angles, taken from [24] 2.2.3.2 Direction Cosine Matrixes A transformation from one reference frame to another can be carried out as three successive rotations about different axis. One Euler angle corresponds to each axis and the order of rotation is Oxyz or Ozyx. The first one is used to transferee coordinates from global to body frame and the second one to opposite direction. These three rotations can be expressed as matrixes cos ψ sin ψ 0 C 1 = sin ψ cos ψ 0 (2.5) 0 0 1 cos θ 0 sin θ C 2 = 0 1 0 (2.6) sin θ 0 cos θ 7

2. NAVIGATION PRINCIPLES C 1 - rotation ψ about z-axis C 2 - rotation θ about y-axis C 3 - rotation φ about x-axis 1 0 0 C 3 = 0 cos φ sin φ (2.7) 0 sin φ cos φ And these separate transformations may be expressed together. The transformation from global to body frame is C b n = C 3 C 2 C 1 (2.8) And the transformation from body to global reference frame is 2.2.3.3 Quaternions C n b = CT 3 C T 2 C T 1 (2.9) The quaternion representation is based on four parameters. The idea is that the transformation from one reference frame to another can be effected by one rotation about vector m. This vector m is defined with respect to the global reference frame. The quaternion is a four parameter vector µ x, µ y, µ z - the components of angle vector µ - the magnitude of m a cos(µ/2) q = b c = (µ x /2) sin(µ/2) (µ y /2) sin(µ/2) (2.10) d (µ z /2) sin(µ/2) The quaternion with components a, b, c, d can be expressed as a complex number with real part a and imaginary components b, c and d. Vector r b = (x, y, z) in body frame can be expressed as And then converted to global frame using q = a + ib + jc + kd (2.11) q = 0 + ix + jy + kz (2.12) Where q = (a ib jc kd) is the complex conjugate of q. 2.2.3.4 Gimbal Lock r n = qr b q (2.13) It is the lost of one degree of freedom in three-dimensional space. It occurs when two axes are driven into a parallel configuration. Then only a two-dimensional rotation is possible. If the rotation is expressed using Euler angles, gimbal lock occurs when the pitch angle is 90 or -90 degrees. If the quaternions are used, gimbal lock does not occur. 8

2. NAVIGATION PRINCIPLES 2.2.3.5 Attitude Computing Based on Gyroscope Output Strapdown gyroscope output signal is angular speed, not the attitude of the device. Therefore it is necessary to compute attitude using integration of angular speed with knowing the initial attitude. Note the gyroscope output is measured in body reference frame, but the attitude of the device is in global frame. The second-order numerical integration algorithm uses a quaternion to attitude representation and the next state is related to the previous state. 0 σ x σ y σ z Σ = σ x 0 σ z σ y σ y σ z 0 σ x (2.14) σ z σ y σ x 0 q k+1 = e (Σ/2) q k (2.15) σ x, σ y, σ z - angular velocity in body reference frame (output signal from strapdown mounted gyroscopes) 2.2.3.6 Tilt Computing Using Accelerometer When the device do not move, only the gravity is measured by the accelerometer. Then the angle roll and pitch can be computed using [20] tan φ = G y G z (2.16) tan θ = G x G 2 y + G 2 z (2.17) G x, G y, G z - accelerometer output φ - roll angle θ - pitch angle These equations are based on direction cosine matrixes and the numerical instability occurs if the G z is near zero. 2.2.4 Error Propagation The angular speed obtained from the gyroscope is integrated to get the attitude of the device. Then it is used to project the acceleration to the global reference frame, and then double integrated to compute the position. Errors in angular velocity cause a drift in attitude computing. An error in orientation causes an incorrect projection of the acceleration into the global reference frame. It causes two problems. Firstly, the acceleration is integrated in wrong direction and secondly, the gravity is not correctly removed from the vertical component of acceleration. Assume the ideal alignment of accelerometer body frame to global reference frame. Let the accelerometer measurement is a + ε, where the a is acceleration and ε is the error. When the device initially do not move, the position s in time t is s = (a + ε)t 2. (2.18) 9

2. NAVIGATION PRINCIPLES Assume the accelerometer which measurement range is ± 2 g and and the calibration is done with error 0.1%. It means the measurement is provided with error ε = ±(0.001 2 9.81)m s 2 = ±0.01962m s 2 where g = 9.81m s 2 is gravity constant. Figure 2.5: Accelerometer error propagation, ε = 0.01962m s 2 (author) 10

Chapter 3 Components for INS Construction The INS needs two types of sensors. The first are gyroscopes which measure the angular velocity and then the attitude of device can be computed. The second sensors are accelerometers which measure the linear acceleration acting on the device. 3.1 Gyroscopes Gyroscopes are used to sense angular turn or angular rate about some axis. There will be described some principles used to gyroscope construct. 3.1.1 Conventional Sensors These types of gyroscopes make use of the inertial properties of a wheel spinning at high speed. The spinning wheel tends to maintain the direction of its spin axis in space and defines the referent direction. Gyroscopic inertia is fundamental to the operation of all springing mass gyroscopes. It defines the fixed direction in space that remains fixed in the inertial reference frame. The practical construction may be designated by having the rotor supported in a set of frames or gimbals which are free to rotate. The orientation of the case with respect to the direction of spin axis may be measured with angle pick-off devices mounted on gimbals. One of the possible construction of convenctional gyroscope is illustrated in figure 3.1. 3.1.2 Other Types of Gyroscopes Vibratory gyroscopes use a vibration motion of the part of the instrument. It creates an oscillatory linear velocity. If the sensor is rotated about an axis orthogonal to this velocity, Coriolis acceleration is included. This acceleration changes the motion of the vibration element. Optical gyroscopes use an interferometer to sense angular motion. Optical gyroscopes rely upon the detection of difference between two counter-propagations beams of light in a closed path. 3.2 Accelerometers The basic principle of construction of accelerometer uses a proof mass and spring. The proof mass is situated in the case and confined only by the spring. The spring maintains the proof mass in a zero position. Then the acceleration is applied to the case, the proof mass is deflected from the zero position and the resultant spring force provides the necessary acceleration to move the proof mass in the case. For single axis accelerometer the displacement of the proof mass is proportional to force applied along the sensitive axis. 11

3. COMPONENTS FOR INS CONSTRUCTION Figure 3.1: Schematic diagram of 2-axis conventional gyroscope using spining wheel, taken from [24] This principle of accelerometer construction using a spring is named open-loop (figure 3.2). With a close-loop accelerometers, the spring is replaced by an electromagnetic device that produce a force on the proof mass to maintain it in its zero position. These types of accelerometers are more accurate than open-loop types. Vibratory accelerometers use a quartz technology. There are two crystals vibrating on the same frequency. When the acceleration is applied along the sensitive axis, the vibratory frequency changes and the different is measured. Other types of accelerometers technology are base on surface acoustic wave, silicon, fiber optics. 3.3 MEMS Technology Conventional inertial sensors focus on high precision, accurate, stable outputs and grate possibility of calibration. Then the price increase. MEMS (Micro-Machined Electromechanical System) uses a silicon as a base material and the manufacturing technology is the same as in the case of manufacturing of electronic integrated circuit. The most advantageous are low price, small size, rugged construction, short start-up time, low power consumption and low weight. 12

3. COMPONENTS FOR INS CONSTRUCTION Figure 3.2: Schematic diagram of simple one axis open-loop accelerometer, taken from [24] The MEMS integrates the mechanical sensor and the control logic into one chip. This approach simplifies and makes cheaper the development of a target application. However the size reduction gives rise in decreases sensitivity / scale factor and increasing in noise. 3.3.1 MEMS Gyroscopes MEMS gyroscopes operate on a very similar principle as vibratory gyroscopes. It means there are no any rotating parts and the Coriolis acceleration is used to detect angular rate. There is a vibrating proof mass which is the subject of linear motion. In case of the rotating axis is perpendicular to the linear vibratory motion, the Coriolis force arises (figure 3.3). This is perpendicular to both the linear vibratory motion and rotation axis. Figure 3.3: The coriolis force, taken from [24] One of the types of MEMS gyroscopes are tuning fork MEMS gyroscopes. It consists of a silicone structure above the glass substrate. There are two vibrating proof masses made from silicon anchored to the substrate at specific points. These masses are made to oscillate by outer comb motor drivers and his phase is 180. When the angular rate is applied to the sensitive axis, which is perpendicular to the velocity of the vibrating proof mass, gives rise to Coriolis force. It acts on the mass and the resulting movement is measured by air capacitor (figure 3.4). The device is made from a single crystal of silicon. The size of vibrating proof mass is 13

3. COMPONENTS FOR INS CONSTRUCTION around 1000 µm x 1000 µm x 20 µm, the operating frequency is around 12 khz and the amplitude of the motion of the proof mass is around 10 µm. Figure 3.4: Schematic diagram of MEMS gyroscope, taken from [24] 3.3.2 MEMS Accelerometers It can be divided into two main classes, reflecting the manner of acceleration application to the sensing element. Pendulous MEMS accelerometers use mechanical spring. When the acceleration is applied to the case, the displacement of the proof mass is supported by a flexure of the spring. Motion is detected by the change of the gap capacitance between the proof mass and the substrate using electrodes on a substrate. Resonant MEMS accelerometers using the change in the resonant frequency of beam oscillators under inertial loading of a proof mass, rather of the measurement of the displacement. Figure 3.5: Schematic diagram of MEMS accelerometer. Left part: gap capacitor, right part: proof mass. Picture is taken from [24]. 14

Chapter 4 Calibration There are various types of errors affecting on sensor output. Some of these are static and can be eliminated by calibration. These errors occur during manufacturing process or soldering. In case of magnetometer there are outer disturbing magnetic fields. 4.1 Compass Calibration There are two outside interference which change the magnetometer output; the first is named hard iron and is caused by permanently magnetized materials; and the second interference is caused by non-magnetized materials and is named soft iron. Only the output from magnetometer is not sufficient to compass making. There is necessary tilt compensation; it means use the accelerometer and the magnetometer output to implement the electronic compass. Magnetometer, accelerometer and gyroscope are independent components. It is very difficult during soldering it on PCB (printed circuit board) to align their axes. Therefore calibration process has to finds coefficients to align sensors axes. 4.1.1 Hard Iron Material Hard iron material makes a additional magnetic field. It can be permanent magnets, electromagnets etc. Figure 4.1: Material creating magnetic field. On the left side, it is not placed in outside magnetic field. On the right side, it is placed in homogenous magnetic field, taken from [15] Let B p is sensor output and V is interference caused by hard iron materials. Then it 15

4. CALIBRATION can be removed using B = B p V (4.1) B is calibrated output and it is a vector containing three components - value in axis x, y and z. 4.1.2 Soft Iron Material B x B = B y (4.2) B z This material does not create a magnetic field, but it changes the field which in are presented. This is normally unmagnetized ferromagnetic material and in presence of outside magnetic field, it is temporary magnetized and change the global magnetic field. Figure 4.2: Disturbance of a homogeneous magnetic field caused by soft iron material, taken from [15] Picture 4.2 illustrates distortion of a homogeneous magnetic field caused by soft iron material. On the left side, there are three bars made from ferromagnetic material. On the right side, there are the same three bars in the presence of a homogenous magnetic field. The bars become magnetized by external magnetic field and steer it along their axes. Soft iron disturbance can be modeled as a six-component symmetric matrix W 1. B = W 1 (B p V) (4.3) 4.1.3 Calibration Process The algorithm which will be described, removes both hard and soft iron together. His output is W 1 matrix and V vector. The first step is data collection in many different orientation of the magnetometer. It is not important to measure data in precise rotations. In case of the magnetometer is not presented in any hard or soft iron disturbance, the measured data lies on a sphere and the radius is the size of the magnetic induction. Because there is hard and soft iron disturbance, the measured data lies on an ellipsoid. 16

4. CALIBRATION The ellipsoid is centered at the hard iron offset V. The shape of the ellipsoid is determined by the soft iron. Figure 4.3: Calibrated (blue) and raw data from sensor (red), taken from [15] If we modify the equation 4.3 into B 2 = (B p V) T (W 1 ) T W 1 (B p V) (4.4) And then the equation 4.5 is the standard ellipsoid equation. const = (R R 0 ) T A(R R 0 ) (4.5) R - measured data R 0 = V - hard iron disturbance A = (W 1 ) T W 1 - determine the shape of ellipsoid The calibration process is finding parameters V and A such that the equation 4.5 is constant for all measured data. Then the matrix W 1 is W 1 = A 1/2 (4.6) For more information about calibration process, see [15] and [17]. 17

4. CALIBRATION 4.1.4 Tilt Compensated Electronic Compass The accelerometer provides roll and pitch angle (tilt) which are used to correct the magnetometer output. It allows accurate computation of compass heading (yaw angle) when the magnetometer is not head flat [16]. This equation rotates the vector using direction cosine matrixes. B p = R x (φ)r y (θ)r z (ψ)b (4.7) B - the vector of magnetic field in the presence of magnetometer (global coordinate system) R x (φ), R y (θ) and R z (ψ) - direction cosine matrixes and φ, θ and ψ are Euler angles. B p - vector of magnetic field measured by magnetometer. We know that the roll and pitch angles are provided by the accelerometer. Then the B p vector can be de-rotated by φ and θ to compensate tilt. R z (ψ)b = R y ( θ)r x ( φ)b p (4.8) Equation 4.8 can be rewritten using Eqn. 2.6 and 2.7 to cos ψb cos δ cos θ 0 sin θ 1 0 0 B px B fx sin ψb cos δ = 0 1 0 0 cos φ sin φ B py = B fy (4.9) B sin δ sin θ 0 cos θ 0 sin φ cos φ B pz B fz B f - represents the magnetometer measurement after de-rotating to the flat plane where φ = θ = 0. cos δ - value of inclination of magnetic field. Then the compass heading can be computed as cos ψb cos δ = B fx (4.10) sin ψb cos δ = B fy (4.11) tan ψ = B fy B fx = B pz sin φ B py cosφ B px cos θ + B py sin θ sin φ + B pz sin θ cos φ (4.12) 4.1.5 Align the Axis The hard and soft iron are eliminated and the compass is tilt-compensated. During the magnetometer and accelerometer soldering to PCB (printed circuit board), it is not guaranteed that their axes will be aligned. Then the tilt-compensation is not precise. If the compass heading is measured at the same place, the value of inclination will be still the same. If the accelerometer and magnetometer axes are misalignment, the inclination will be different in different rotation of compass. There is an algorithm which find direction cosine matrix to remove the axes misalignment. The first step is data acquisition. The compass lies on the flat plane and only the heading is changed by 10 degrees. The vector from magnetometer B i and accelerometer G i are acquired at each position. It means we have 36 twins of vectors. 18

4. CALIBRATION Then finding such matrix E where for all B i and G i the product EB i G i = cos α = const (4.13) is constant. Then the accelerometer and magnetometer axes are aligned. E - a symmetrical direction cosine matrix is a symbol for scalar product α - value of inclination 4.2 Accelerometer and Gyroscope Calibration For low-cost inertial sensors, it is not economical to build or buy expensive calibration equipment. These calibration equipments use precise movement or positioning to calibrate sensors. Because I do not have these expensive equipments, I need some calibration technique based on differential principles. I use a technique described in paper [25]. This paper presents method to compensate and calibrate bias, scale factor, axis misalignment and cross axis sensitivity of both tri-axis accelerometer and gyroscope. This method is based on Earth s gravity as a stable calibration method. The first step is accelerometer calibration using positioning into several prescribed positions. After the accelerometer is calibrated, it is used to gyroscope calibration. It is based on the comparison of the accelerometer measurement before and after the rotation based on the gyroscope data. 4.2.1 Bias Figure 4.4: Sensor error - bias, taken from [14] If there is no force acting on accelerometer or no rotation on gyroscope, the sensor output should be zero. The bias is the sensor output in this case. It can be split into static part called bias offset, a random part called bias drift and temperature varying part. [14] In case of the accelerometer, the effect of bias drift is very small but in case of the gyroscope the random part of bias is very significant. It is necessary to use special technique to eliminate the bias drift during the gyroscope operation. 19

4. CALIBRATION 4.2.2 Scale Factor Figure 4.5: Sensor error - scale, taken from [14] Scale factor is a ratio of the change of the output o to the input i. As in the case of bias it can be split into three parts, static, random and temperature varying parts. Both in case of the accelerometer and the gyroscope, the effect of random scale is insignificant. 4.2.3 Axis Misalignment and Cross-Axis Sensitivity Misalignment is caused by imperfect sensor mounting on the printed circuit board. As a result, each axis is affected by measurements of other two axes in body frame. The influence of axis misalignment can be reduced using components including accelerometer and gyroscope into one component. 4.2.4 Accelerometer Calibration This technique is based on the property the magnitude of the static acceleration measured must be equal that of the gravity [25]. This is an orthogonal constraint where values measured by each axis are independent. There is a sensor error model used in this technique. a P,k = E(a S,k b a ) (4.14) e 00 e 01 e 02 E = e 10 e 11 e 12 (4.15) e 20 e 21 e 22 e 00, a 11 and e 22 - represents scale and other coefficients describe misalignment and cross-axis sensitivity b a - bias offset a S,k - noncalibrated accelerometer output a P,k - calibrated accelerometer output 20

4. CALIBRATION The model parameters in matrix E and vectorb a is collected in θ a to define the function h(a S,k, θ a ) = E(a S,k b a ) = a P,k (4.16) Assuming that the gravity force is the unity, the cost function for K sets of measurements is K 1 L(θ a ) = (1 h(as,k, θ a ) 2 ) 2 (4.17) k=0 Then several measurements are made in different position. There is important not to move during the measurement. Otherwise other force than gravity should acts on the accelerometer. 4.2.5 Gyroscope Calibration The most significant source of error for gyroscopic system is bias drift (random error). It can be easily measured by averaging static gyroscope signal; it means the gyroscope is not moved. However the bias drift is random over time; therefore it is not possible to predict it. There will be described the technique to calibrate the scale, misalignment and cross-axis sensitivity. The gyroscope error model is e 00 e 01 e 02 E = e 10 e 11 e 12 (4.18) e 20 e 21 e 22 The parameter s meaning is the same as the accelerometer. The calibration technique is based on property the gravity vector measured using a static tri-axial accelerometer must equal the gravity vector computed using the IMU orientation integration algorithm, which in turn uses the angular velocities measured using the gyroscopes. [25]. The first step is measuring the gravity vector u 0. Then the IMU (accelerometer and gyroscope) is rotated by prescribed angle. Finally the gravity vector u a is measured. Gyroscope output is angular velocity; then the second-order numerical integration algorithm (chapter 2.2.3.5) is used to compute a quaternion representing the rotation. Then the quaternion is transformed to direction cosine matrix R. u a = Ru 0. (4.19) Then nine elements from matrix E is collected in form θ g. The cost function can be proposed as L(θ g ) = K 1 k=0 ua u g 2 (4.20) There is 18 prescribed movement of IMU. Then the minimum of this cost function is found. 21

Chapter 5 Requirements for equipment and Component Selection 5.1 Requirements This work describes the prototype of equipment which could be constructible and salable. It is necessary to specify requirements based on real basis. 5.1.1 Price Assume that the smallest price of equipment which is profitable to observe is 500 EUR (approximately 12000 CZK). If we want to observe and find the device it is necessary to add some components. But the buyer is interested in the main equipment, not in added equipment. Then the price of added components enables observing and finding lost device should be in the order of magnitude smaller than the main device price. Then the price is approximately the same and equipment efficiency grows: it is approximately between 50 and 100 EUR (1000 and 2500 CZK). 5.1.2 Size The device we want to observe can be smaller than a mobile phone. If the size of the additional system will be like the size of a credit card, it would be possible to observe and find devices like expensive camera, meteorological sensors, etc. 5.1.3 Power Consumption Assume the standalone meteorological sensor placed in a field. In the case of robbery, the time to the police start finding stolen device can be several days. The device has to send his position all the time. 5.1.4 Temperature Range In case of outdoor application, all the components have to be able to work at a low temperature (-40 C) and high temperature (80 C). It means all components have to operate in industrial temperature range, including batteries. 5.1.5 Calibration Due to temperature changes and aging, the calibration coefficients are changing. Because the device will work on standalone mode, the self-calibration method has to be implemented. In case of immobile application, there are limited possibilities to calibrate the device. 23

5. REQUIREMENTS FOR EQUIPMENT AND COMPONENT SELECTION 5.1.6 INS Data Accurate Computing The position obtained from INS during the time lost accuracy. It is because of INS integrating the mechanical power acting on the device. The position is relevant information only if we know his accuracy. The system should compute the accuracy and display it to the user. 5.1.7 Position Obtained Using INS - Usable Time Position computing based on INS lost his accuracy in time. After some time an error is too big that the position information is not relevant. The device described in [26] has an error of 150 meters after 60 seconds sensing pedestrian movement. If the electronic compass is added and fusion algorithm used, the error decreases to 5 meters. 5.2 Component Selection The criteria listed in chapter 5.1 was used. Additional criterion is making the construction as easy as possible. It means use sensors with digital interface (accelerometer, gyroscope, compass) and difficult subsystems use as one module (GPS, GSM). 5.2.1 Accelerometer The main criterion is price - then only accelerometers made by MEMS technology are acceptable. This type of accelerometer is used in mobile phone etc. The main parameters determining signal quality are measurement range and sensitivity. Measurement range is selected during manufacturing process by spring stiffens and mass weight. It is usual that accelerometers have more than one measurement range, typically three or four. Changing is provided by control registers. The typical sensed movement will be a walk. Signal on axis z (perpendicular to the ground) can look like on figure 5.1. The maximum signal is around 1.5 g. If the measurement range of accelerometer is from -2 g to 2 g, the sensitivity will be the highest possible. Wide measurement ranges are necessary too, for example for running sensing. In case of digital sensor, the sensitivity is determined by the number of bits of builtin analog-digital converter - existing accelerometers with 8, 10 and 12 bits AD converter. Another parameter influencing the sensitivity is noise. Other parameter determining signal quality is the zero-g level offset accuracy. It describes the deviation from ideal output signal if no acceleration is presented [22]. Consideration all parameters, chosen accelerometer is LIS331DLH made by ST Microelectronics. For more details see [22]. 5.2.2 Gyroscope The main selection criterion is price, as in the case of the accelerometer. MEMS technology is chosen. Figure 5.2 shows signal on gyroscope when pedestrian movement is captured. The range of this signal is approximately from -100 dps (degrees per second) to 100 dps. Therefore the minimal range should be ± 200 dps. It is typical that the gyroscope has more than one measurement range, like an accelerometer. 24

5. REQUIREMENTS FOR EQUIPMENT AND COMPONENT SELECTION Figure 5.1: Signal from accelerometer while pedestrian movement sensign on axix z which is perpendicular to the ground (author) Selected gyroscope is L3G4200D made by ST Microelectronics. For more details see [23]. 5.2.3 Electronic Compass Besides the price, the measurement range and sensitivity are the main selection criterion. They [7] show the total magnetic field intensity in the world. It is from 23µT (micro Tesla) to 66µT or from 0.23 Ga (Gauss) to 0.66 Ga. Magnetic sensor HMC5883L made by Honeywell has the lowest measurement range ± 0.88 Ga and therefore sensitivity is 1370 bits per Gauss. They [8] claims that it is possible to construct electronic compass with a 1 to 2 heading accuracy. 5.2.4 Voltage Regulator Accelerometer, compass and gyroscope are sensitive to the input voltage changing. Operational power supply is wide, for example from 2.16 V to 3.16 V in case of accelerometer [22]. But the output signal is changed with the change of power supply. Therefore accuracy of output voltage of the voltage regulator should be the highest. Accuracy of voltage regulator TLV700xx is ±2% in the whole operational temperature range (-40 to 125 C). For more information see datasheet [9]. 5.2.5 GPS Module Because the GPS is very complicated and a wide used system, there are modules processing GPS signal and providing GPS information like a position, speed, accuracy, etc. It is not necessary to compute this information from RAW GPS signal. It is expected that this constructed equipment will stay for a long time in the same place and GPS will be off. It is due to power saving. Typical cold start (the time from power on to 25

5. REQUIREMENTS FOR EQUIPMENT AND COMPONENT SELECTION Figure 5.2: Signal from gyroscope while pedestrian movement sensign (author) getting useable position information) of GPS module is 30 seconds. The method providing the decrease this time is named assisted GPS. Initial information about satellites (named almanac) are loaded from the internet into GPS module. For more information see [1]. GPS module L10 made by Quectel is used; it supports assisted GPS and active antenna [19]. 5.2.6 UART/USB Transceiver The easier way haw to communicate with PC is UART/USB transceiver. UART (Universal asynchronous receiver/transmitter) is usually the available microcontroller interface. The module PU232F made by Pandatron is used [18]. 5.2.7 Microcontroller 5.2.7.1 Communication Interfaces The communication interface of compass is I 2 C. Accelerometer and gyroscope support both I 2 C and SPI. Baud rate of SPI is higher than I 2 C. SPI supports higher clock frequency. In case of accelerometer and gyroscope, it is 10 MHz [22], [23]. I 2 C clock frequency is supported at 100 khz (standard mode) and 400 khz (fast mode). The maximum sample rate of accelerometer is 1000 Hz, gyroscope is 800 Hz and compass is 80 Hz. In all cases, there are 3 axes. 16 bits is used per one axis. Then baud rate is (1000 + 800 + 80) 16 3 = 90240 bps. (5.1) It is the baud rate without addressing and other overhead. Assume using maximum sample rate of accelerometer, gyroscope and compass: then the microcontroller has to support I 2 C fast mode or both I 2 C and SPI interfaces. 26

5. REQUIREMENTS FOR EQUIPMENT AND COMPONENT SELECTION The GPS module supports only the UART interface. Because there is an USB/UART transceiver, two UART ports are necessary in microcontroller. 5.2.7.2 Debugging One of the techniques how to decrease development time of the device is in-circuit debugging. The microcontroller is placed in the final application and communication with the computer is provided using interface named debugger. MPLAB ICD 3 In-Circuit Debugger [12] made by Microchip is available to me; therefore the microcontroller made by Microchip will be used. 5.2.7.3 Power Consumption Most of the time the device will be run in sleep mode. It means that there is no data transmission, no computing, only waiting for device movement. Accelerometer supports generating interrupt signal when some movement is presented [22]. This interruption can be used for waking-up of the processor. To minimize the power consumption, it is important to microcontroller support any advanced power management mode. In case of Microchip, it is named nanowatt XLP [10]. 5.2.7.4 Selected Microcontroller Summarize all requirements, the PIC18F26J11 [11] was selected. It is a cheap 8bit microcontroller and it supports I 2 C, SPI, UART, nanowatt and has 28 pins. 5.2.8 Summary Table This table contains the most important components. The table does not contain GSM module (not implemented) - 785 CZK and other components like resistors, LEDs, printed circuit boards etc. Microcontroller PIC18F26J11 Accelerometer LIS331DLH Gyroscope L3G4200D Compass HMC5883L GPS module Quectel L10 Power consumption Standby mode Normal mode Price * Interfeace 100 na 23 ma 81 CZK UART, I 2 C, (deep sleep mode) (maximum SPI frequency) 1 µa 250 µa 152 CZK I 2 C, SPI 5 µa 6 ma 265 CZK I 2 C, SPI 2 µa 100 µa 152 CZK I 2 C 0 ma (not used in standby) 43 ma 520 CZK UART Total 8.1 µa 72 ma 1170 CZK * april 2013, cz.farnell.com, retail price 27