Implementation of PIC Based Vehicle s Attitude Estimation System Using MEMS Inertial Sensors and Kalman Filter

Similar documents
Satellite and Inertial Attitude. A presentation by Dan Monroe and Luke Pfister Advised by Drs. In Soo Ahn and Yufeng Lu

Application of an Inertial Navigation System to the Quad-rotor UAV using MEMS Sensors

IMU Platform for Workshops

Design and Simulation of High Power Amplifier Used in Satellite Uplink Model

SELF-BALANCING MOBILE ROBOT TILTER

Extended Kalman Filtering

302 VIBROENGINEERING. JOURNAL OF VIBROENGINEERING. MARCH VOLUME 15, ISSUE 1. ISSN

FLCS V2.1. AHRS, Autopilot, Gyro Stabilized Gimbals Control, Ground Control Station

Wavelet Denoising Technique for Improvement of the Low Cost MEMS-GPS Integrated System

Evaluation of a Low-cost MEMS Accelerometer for Distance Measurement

Vehicle Speed Estimation Using GPS/RISS (Reduced Inertial Sensor System)

Practical Approach to Rudder Control System for UAV using Low Cost MEMS Sensors

Implementation and Performance Evaluation of a Fast Relocation Method in a GPS/SINS/CSAC Integrated Navigation System Hardware Prototype

GPS-Aided INS Datasheet Rev. 3.0

Design of Accurate Navigation System by Integrating INS and GPS using Extended Kalman Filter

GPS-Aided INS Datasheet Rev. 2.6

Autonomous Stair Climbing Algorithm for a Small Four-Tracked Robot

ANNUAL OF NAVIGATION 16/2010

OS3D-FG MINIATURE ATTITUDE & HEADING REFERENCE SYSTEM MINIATURE 3D ORIENTATION SENSOR OS3D-P. Datasheet Rev OS3D-FG Datasheet rev. 2.

Design and Implementation of Inertial Navigation System

Sensor Data Fusion Using Kalman Filter

GPS-Aided INS Datasheet Rev. 2.7

High Performance Advanced MEMS Industrial & Tactical Grade Inertial Measurement Units

Defense Technical Information Center Compilation Part Notice

Accelerometer Products

SENLUTION Miniature Angular & Heading Reference System The World s Smallest Mini-AHRS

ARDUINO BASED CALIBRATION OF AN INERTIAL SENSOR IN VIEW OF A GNSS/IMU INTEGRATION

The Next Generation Design of Autonomous MAV Flight Control System SmartAP

BW-IMU200 Serials. Low-cost Inertial Measurement Unit. Technical Manual

Control System Design for Tricopter using Filters and PID controller

Hardware in the Loop Simulation for Unmanned Aerial Vehicles

Auto-Balancing Two Wheeled Inverted Pendulum Robot

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

3DM -CV5-10 LORD DATASHEET. Inertial Measurement Unit (IMU) Product Highlights. Features and Benefits. Applications. Best in Class Performance

SERIES VECTORNAV TACTICAL SERIES VN-110 IMU/AHRS VN-210 GNSS/INS VN-310 DUAL GNSS/INS

GPS-Aided INS Datasheet Rev. 2.3

Design and simulation of MEMS piezoelectric gyroscope

Dynamic Angle Estimation

INDOOR HEADING MEASUREMENT SYSTEM

HIGH-ACCURACY GYROCOMPASS

Sensor set stabilization system for miniature UAV

PHINS, An All-In-One Sensor for DP Applications

Inertial Sensors. Ellipse 2 Series MINIATURE HIGH PERFORMANCE. Navigation, Motion & Heave Sensing IMU AHRS MRU INS VG

Inertial Sensors. Ellipse 2 Series MINIATURE HIGH PERFORMANCE. Navigation, Motion & Heave Sensing IMU AHRS MRU INS VG

Quartz Accelerometer AI-Q-710 Datasheet

MTi 100-series The most accurate and complete MEMS AHRS and GPS/INS

Sensor system of a small biped entertainment robot

Inertial Sensors. Ellipse Series MINIATURE HIGH PERFORMANCE. Navigation, Motion & Heave Sensing IMU AHRS MRU INS VG

TACTICAL SERIES VECTORNAV INDUSTRIAL SERIES. Key Benefits Miniaturized surface mount & Rugged packaging. < 30 grams. Embedded Navigation Solutions

Keywords. DECCA, OMEGA, VOR, INS, Integrated systems

QUADROTOR ROLL AND PITCH STABILIZATION USING SYSTEM IDENTIFICATION BASED REDESIGN OF EMPIRICAL CONTROLLERS

SERIES VECTORNAV INDUSTRIAL SERIES VN-100 IMU/AHRS VN-200 GPS/INS VN-300 DUAL GNSS/INS

Control System for a Segway

VECTOR QUANTIZATION-BASED SPEECH RECOGNITION SYSTEM FOR HOME APPLIANCES

of an Efficient Electric

CENG 5931 HW 5 Mobile Robotics Due March 5. Sensors for Mobile Robots

AUTOPILOT CONTROL SYSTEM - IV

ADMA. Automotive Dynamic Motion Analyzer with 1000 Hz. ADMA Applications. State of the art: ADMA GPS/Inertial System for vehicle dynamics testing

3DM-GX4-45 LORD DATASHEET. GPS-Aided Inertial Navigation System (GPS/INS) Product Highlights. Features and Benefits. Applications

INERTIAL LABS SUBMINIATURE 3D ORIENTATION SENSOR OS3DM

HG4930 INERTIAL MEASUREMENT UNIT (IMU) Performance and Environmental Information

OughtToPilot. Project Report of Submission PC128 to 2008 Propeller Design Contest. Jason Edelberg

Integrated Navigation System

Introducing the Quadrotor Flying Robot

Revisions Revision Date By Changes A 11 Feb 2013 MHA Initial release , Xsens Technologies B.V. All rights reserved. Information in this docum

3DM-GX3-45 Theory of Operation

Motion Capture for Runners

Design of double loop-locked system for brush-less DC motor based on DSP

ASC IMU 7.X.Y. Inertial Measurement Unit (IMU) Description.

Flapping Wing Micro Air Vehicle (FW-MAV) State Estimation and Control with Heading and Altitude Hold

PID CONTROL FOR TWO-WHEELED INVERTED PENDULUM (WIP) SYSTEM

Design and Implementation of Shift Frequency Measurement System for Metal Detector

Sensors Fundamentals. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

Inertial Sensors. Ellipse Series MINIATURE HIGH PERFORMANCE. Navigation, Motion & Heave Sensing IMU AHRS MRU INS VG

ability design, selected proven components directory, finite element analysis (thermal reliability analysis,

MEMS-FABRICATED ACCELEROMETERS WITH FEEDBACK COMPENSATION

Design and Implementation of an Inertial Navigation Unit using MEMS sensors

Reference Diagram IDG-300. Coriolis Sense. Low-Pass Sensor. Coriolis Sense. Demodulator Y-RATE OUT YAGC R LPY C LPy ±10% EEPROM TRIM.

Methodology for Software-in-the-Loop Testing of Low-Cost Attitude Determination Systems

INTRODUCTION TO VEHICLE NAVIGATION SYSTEM LECTURE 5.1 SGU 4823 SATELLITE NAVIGATION

ENHANCEMENTS IN UAV FLIGHT CONTROL AND SENSOR ORIENTATION

Lab 1 Navigation using a 2-axis accelerometer

Technical Manual. CruizCore R1350N Rev Copyright Microinfinity Co., Ltd.

MTi 100-series The most accurate and complete MEMS AHRS and GPS/INS

Microcontroller Based Tilt Measurement

Hybrid Positioning through Extended Kalman Filter with Inertial Data Fusion

Design of a Drift Assist Control System Applied to Remote Control Car Sheng-Tse Wu, Wu-Sung Yao

Data Integration from GPS and Inertial Navigation Systems for Pedestrians in Urban Area

Applying Multisensor Information Fusion Technology to Develop an UAV Aircraft with Collision Avoidance Model

Design of Attitude Control System for Quadrotor

Inertial Doppler Radio Locator (IDRL) for DoD Test Range Applications

NovAtel SPAN and Waypoint GNSS + INS Technology

Dynamically Adaptive Inverted Pendulum Platfom

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE

COVENANT UNIVERSITY NIGERIA TUTORIAL KIT OMEGA SEMESTER PROGRAMME: MECHANICAL ENGINEERING

Dynamically Adaptive Inverted Pendulum Platform

IMU60 Inertial Measurement Unit

Integration of GNSS and INS

Gesture Identification Using Sensors Future of Interaction with Smart Phones Mr. Pratik Parmar 1 1 Department of Computer engineering, CTIDS

Teleoperation of a Tail-Sitter VTOL UAV

Transcription:

Implementation of PIC Based Vehicle s Attitude Estimation System Using MEMS Inertial Sensors and Kalman Filter Htoo Maung Maung Department of Electronic Engineering, Mandalay Technological University Mandalay, Myanmar hmaungmaung@gmail.com Zaw Min Naing Technological University (Maubin) Maubin, Myanmar zawminnaing@pmail.ntu.edu.sg Hla Myo Tun Department of Electronic Engineering, Mandalay Technological University Mandalay, Myanmar hlamyotun.mtu@gmail.com Abstract- In this paper, one dimensional drift free attitude estimation system using accelerometer and gyroscope was studied. The proposed system fuses data from accelerometers and gyroscopes by means of a Kalman filter. A PIC microcontroller is used for estimating the angle value in the proposed system. Moreover, this controller does all data acquisition and interfacing tasks. The experimental results are given to verify the proposed microcontroller based estimation system. Keywords- accelerometer, gyroscope, Kalman filter, microcontroller, sensor data fusion, tilt angle estimation I. INTRODUCTION The estimation of the tilt of vehicles has been of much interest, especially in the areas such as aerospace [5] or control system [3],[6]. For instance, controlling autonomous flight vehicle is the practical issue related with tilt estimation. They have been utilized in applications such as forest fire perimeter tracking, military tactical reconnaissance, and rural search and rescue where rapid area searches are desired. Guidance and navigation are the key technologies for the autonomous flight vehicle wherein the attitude information is indispensable. Inertial sensors fabricated by micro electromechanical system (MEMS) technology offer revolutionary improvements in cost, size, and ruggedness relative to fiber optic and spinning mass technologies. MEMS gyroscopes and accelerometers are ideal as components of a compact and affordable attitude determination system. Gyroscopes measure the body s angular velocity and, by integrating this angular velocity, they can calculate the attitude angle. Accelerometers measure the body s translational acceleration. If they measure only the acceleration of gravity, they provide the body s absolute attitude in the navigational frame of reference. One drawback of the accelerometer is that its sensitiveness to vibration of bodies; vibration contains a lot of acceleration components. To reduce high frequency vibration noises, a low pass filter is required. This limits the bandwidth of the accelerometer and a phase delay is introduced in the filtered result. However, The First International Conference on Interdisciplinary Research and Development, 31 May - 1 June 2011, Thailand 70.1

Htoo Maung Maung, Zaw Min Naing, and Hla Myo Tun calculating the attitude angle using the integrating gyroscope s output causes divergence in the attitude s error. In this paper, a microcontroller based attitude estimation system is implemented by using MEMS inertial sensors and Kalman filter. The proposed circuit diagram is shown in Fig.1. III. ATTITUDE ESTIMATION ALGORITHM The Kalman filter is a good tool that estimates the state of the system including measurement noise. It is useful to combine two sensor data containing measurement noise. Designing a Kalman filter requires a linear dynamic system model [1],[2],[4]-[6], like equation (1). For a microcontroller based one dimensional system, the state variable is defined as where, θ is the tilt angle and b is the gyroscope bias. The first derivative of the system with respect to time is shown in equation (3). Fig. 1 Proposed circuit diagram of PIC based attitude estimation system II. INTRODUCTION TO MEMS INERTIAL SENSORS In this paper, two low-costs MEMS inertial sensors, ADXL202 and ENC-03J, are used. ADXL202 is a dual axis accelerometer from Analog Device. It produces two PWM signals for each axis and the user can define the frequency of these PWM signals by selecting the value of R set. In this paper, this frequency is chosen as 600Hz. ENC-03J is a gyroscope from Murata. The bandwidth of the gyroscope operation can be defined by varying the cutoff frequency of lowpass and highpass filter. These filters are used at the output of the sensor. The matrix A is the Jacobian matrix of the state derivative as shown in equation (4). The matrix C is the Jacobian matrix of the measurement value as shown in equation (5). The estimated tilt angle can be computed by using Kalman equations. These equations are shown in equation (6)-(10). Special Issue of the International Journal of the Computer, the Internet and Management, Vol. 19 No. SP1, June, 2011 70.2

Implementation of PIC Based Vehicle s Attitude Estimation System Using MEMS Inertial Sensors and Kalman Filter where, P is the error covariance matrix, Q is the process noise covariance matrix and R is the measurement noise covariance matrix. Angle error is obtained by subtraction the measured angle value of gyroscope from that of accelerometer. The software flow chart of the main program of PIC is described in Fig 2. Accelerometer outputs are measured by using timer 0 of the PIC. But measuring gyroscope s output required analog to digital conversion. The PIC16F877A has a built-in analog to digital convertor which has 10 bits resolution. Timer 1 interrupt of PIC is used to define the sampling period of the system that is whenever the timer 1 interrupt occurs the PIC does all measuring and estimating tasks. Firstly, the PIC reads data from MEMS inertial sensors and stores these data in its internal memory for further computations. Fig. 2 Flow chart of the main program of PIC microcontroller The PIC measures x-axis duty cycle value (T1x), y-axis duty cycle value (T1y), and the period (T2) from accelerometer duty cycle output. Then it computes angle information by using following equations [11]: The First International Conference on Interdisciplinary Research and Development, 31 May - 1 June 2011, Thailand 70.3

Htoo Maung Maung, Zaw Min Naing, and Hla Myo Tun Next, the PIC computes the angular velocity information by using gyroscope output [12]. angle values of accelerometer measurement and gyroscope measurement. The Kalman filter equations are applied to get estimated angle value. This value is then sent to the computer via serial communication for further processing. All these calculations are carried out in the Conversion subroutine. The angular velocity information is then used to predict the current angle value. This is done by using Time update subroutine. The software flow chart of time update routine is described in Fig.3. In this routine, gact is the actual angular velocity, gmeas is the measured value of angular velocity, gbias is the gyroscope constant bias, and gangle is the computed angle value. The angle value is obtained by multiplying the actual angular velocity with sampling period (dt). Fig. 4 Flow chart of measurement update routine IV. EXPERIMENTS Fig. 3 Flow chart of time update routine The flow chart of measurement update routine is also described in Fig.4. This routine produces estimation value of tilt angle at the present time by updating previous estimation value with the help of accelerometer measurement value. In this routine, acc_angle is the computed angle value by using accelerometer. Angle error is obtained by subtracting the two different Fig. 5 (a). Implemented system (b). Testing equipment By using low-cost MEMS sensors in section II and Kalman filter algorithm in section III, tilt angle estimation system hardware is implemented as shown in Fig.5.The constructed system and its testing equipment are shown in Fig 5. The sampling frequency of this system is 100Hz and a PIC16F877A microcontroller is used as kernel for this system. Special Issue of the International Journal of the Computer, the Internet and Management, Vol. 19 No. SP1, June, 2011 70.4

Implementation of PIC Based Vehicle s Attitude Estimation System Using MEMS Inertial Sensors and Kalman Filter Fig. 6 Results of tilt angle measurement using accelerometer The results of tilt angle measurements by using ADXL202, ENC-03J and Kalman filter are shown in Fig 6, Fig 7, and Fig 8 respectively. From the values of the results, the Kalman filter can reduce the drift effect of the gyroscope as well as it can also reduce the vibration effect. In order to verify the performance of the constructed system, a comparative study between a commercial IMU of MTi-G from XSENS and the proposed system is carried out. When the same input is applied to both systems, the output of the proposed system is very close to the output of the MTi-G in the range from -50 degree to +50 degree. Fig. 7 Result of angular velocity measurement by using gyroscope V. CONCLUSIONS In this paper, a PIC microcontroller based attitude estimation system is described. Two low-costs inertial sensors and a microcontroller are used in the system. According to the results of testing, the constructed system outputs reliable tilt angle information during the range from -50deg to +50deg and the angular velocity less than ±90deg/s. This range is adequate for the stability control system of an aircraft. Fig. 8 Result of estimated angles by using Kalman filter ACKNOWLEDGMENT The author respectfully thank to Dr. Zaw Min Naing, Pro-Rector, Technological University (Maubin) and Dr. Hla Myo Tun for their valuable suggestions and guidance. The author gratefully acknowledges many colleagues at Mandalay Technological University who have contributed to the development of this paper. The author would like to express his special thanks to Ko Thae Maung Maung from MAEU for his kindly help in measuring performance of the proposed system. In particular, the author would wish to thank his parents for their complete support. Fig. 9 Performance comparison between proposed system and MTi-G from XSENS The First International Conference on Interdisciplinary Research and Development, 31 May - 1 June 2011, Thailand 70.5

Htoo Maung Maung, Zaw Min Naing, and Hla Myo Tun REFERENCES [1] B. D. O. Anderson and J. B. Moore, Optimal Filtering, Englewood Cliffs, NJ, Prentice-Hall, Inc. 1979. [2] M. S. Grewal and A. P. Andrews, Kalman Filtering: Theory and Practice Using MATLAB, 2nd ed., John Wiley & Sons, Inc. 2001. [3] H.Rehbinder and X.Hu, Drift-free attitude estimation for accelerated rigid bodies, in Proc.IEEE, 2001. International Conference on Robotics & Automation, Seoul, Korea, pp 4244-4249. [4] Y. S. Suh, Attitude Estimation Using Low Cost Accelerometer and Gyroscope, in Proc. IEEE, 2003, Korea-Russia International Symposium, pp 423-427. [5] J. Yun, C.K. Ryoo and T.L. Song, Strapdown Sensors and Seeker Based Guidance Filter Design, in Proc. IEEE, 2008, International Conference on Control, Automation and Systems, COEX, Seoul, Korea, pp 468-472. [6] J.K. Hall, N.B. Knoebel and T.W. McLain, Quaternion Attitude Estimation for Miniature Air Vehicles Using a Multiplicative Extended Kalman Filter, in Proc. IEEE, 2008, Position, Location and Navigation Symposium, pp 1230-1237. [7] X. Liang, Y. Weizheng, C Honglong and J. Chengyu, MEMS-based Multi-sensor Integrated Attitude Estimation Technology for MAV Applications, in Proc. IEEE, 2009, International Conference on Nano/Micro Engineered and Molecular Systems, Shenzhen, China, pp 1031-1035. [8] O. C. Heo and K. Park, Estimating Accelerated Body s Attitude Using an Inertial Sensor, in Proc. IEEE, 2009, ICROS-SICE International Joint Conference, Fukuoka International Congress Center, Japan, pp 5474-5478. [9] Z. Zhen, Z.Wang and Y. Hu, Multi-Sensor Information Fusion for Aircraft Attitude Determination System, in Proc. IEEE, 2009, World Congress on Computer Science and Information Engineering, pp 474-478. [10] M. Romanovas, L. Klingbeil, M. Trachtler and Y. Manoli, Efficient Orientation Estimation Algorithm for Low Cost Inertial and Magnetic Sensor Systems, in Proc. IEEE, 2009, 15 th Workshop on Statistical Signal Processing, pp586-589. [11] Analog Devices, Using the ADXL202 Duty Cycle Output. [12] Murata, Operation Manual of Gyrostar. Special Issue of the International Journal of the Computer, the Internet and Management, Vol. 19 No. SP1, June, 2011 70.6