IMU Platform for Workshops

Similar documents
Available online at ScienceDirect. Procedia Engineering 96 (2014 )

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

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

Introducing the Quadrotor Flying Robot

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

Control System Design for Tricopter using Filters and PID controller

Extended Kalman Filtering

SELF BALANCING ROBOT. Article. 2 authors, including: Nabil Lathiff Microsoft

SELF-BALANCING MOBILE ROBOT TILTER

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

SELF STABILIZING PLATFORM

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

SMART SENSORS AND MEMS

AUTOPILOT CONTROL SYSTEM - IV

BW-VG525 Serials. High Precision CAN bus Dynamic Inclination Sensor. Technical Manual

INDOOR HEADING MEASUREMENT SYSTEM

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

Dynamically Adaptive Inverted Pendulum Platform

Training Schedule. Robotic System Design using Arduino Platform

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

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

3-Degrees of Freedom Robotic ARM Controller for Various Applications

Dynamically Adaptive Inverted Pendulum Platfom

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

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

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

Master Op-Doc/Test Plan

Attitude and Heading Reference Systems

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

Embedded Robust Control of Self-balancing Two-wheeled Robot

Optimization and Performance Evaluation of Single Axis Arduino Solar Tracker

GPS-Aided INS Datasheet Rev. 2.6

GPS-Aided INS Datasheet Rev. 2.3

Hardware in the Loop Simulation for Unmanned Aerial Vehicles

DC motor control using arduino

Osmium. Integration Guide Revision 1.2. Osmium Integration Guide

Picture 1 PC & USB Connection

Control System for a Segway

TigreSAT 2010 &2011 June Monthly Report

Based on the ARM and PID Control Free Pendulum Balance System

Design and Implementation of FPGA-Based Robotic Arm Manipulator

HAND GESTURE CONTROLLED ROBOT USING ARDUINO

Visual compass for the NIFTi robot

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

A Do-and-See Approach for Learning Mechatronics Concepts

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

MEASUREMENT of physical conditions in buildings

Design and Development of Novel Two Axis Servo Control Mechanism

Sensors and Sensing Motors, Encoders and Motor Control

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

Accident Sensor with Google Map Locator

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

GPS-Aided INS Datasheet Rev. 3.0

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

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

EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

Vibration Control of Mechanical Suspension System Using Active Force Control

Lab 1 Navigation using a 2-axis accelerometer

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

Automatic Control Motion control Advanced control techniques

Robotic Vehicle Design

Design and Implementation of Inertial Navigation System

CL Digital Control Kannan M. Moudgalya

Sensor system of a small biped entertainment robot

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

MEMS Accelerometer Specifications and Their Impact in Inertial Applications

Classical Control Based Autopilot Design Using PC/104

Simple Path Planning Algorithm for Two-Wheeled Differentially Driven (2WDD) Soccer Robots

GPS-Aided INS Datasheet Rev. 2.7

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

GPRS Inclinometer. Zigbee. CDMA Vibration-wire. SSI PWM Switch Analog. Features. Descriptions

High-level model of an acceleration sensor with feedback as part of an inertial navigation system

Design of stepper motor position control system based on DSP. Guan Fang Liu a, Hua Wei Li b

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

Sensors and Sensing Motors, Encoders and Motor Control

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

The control of the ball juggler

Robotic Vehicle Design

Embedded Control Project -Iterative learning control for

Mechatronic demonstrator for testing sensors to be used in mobile robotics functioning on the inverted pendulum concept

Measuring and Implementing Lower Limb Motion Using Inertial Measurement Unit

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

Sensor set stabilization system for miniature UAV

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Design of Joint Controller Circuit for PA10 Robot Arm

MICRO AERIAL VEHICLE PRELIMINARY FLIGHT CONTROL SYSTEM

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

I. INTRODUCTION MAIN BLOCKS OF ROBOT

The Next Generation Design of Autonomous MAV Flight Control System SmartAP

Robotic Swing Drive as Exploit of Stiffness Control Implementation

Project Final Report: Directional Remote Control

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

Automobile Prototype Servo Control

Wireless Health Monitoring System for Vibration Detection of Induction Motors

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

Utility of Sensor Fusion of GPS and Motion Sensor in Android Devices In GPS- Deprived Environment

ANN BASED ANGLE COMPUTATION UNIT FOR REDUCING THE POWER CONSUMPTION OF THE PARABOLIC ANTENNA CONTROLLER

Introduction to Digital Control

Structural Health Monitoring of bridges using accelerometers a case study at Apollo Bridge in Bratislava

Transcription:

IMU Platform for Workshops Lukáš Palkovič *, Jozef Rodina *, Peter Hubinský *3 * Institute of Control and Industrial Informatics Faculty of Electrical Engineering, Slovak University of Technology Ilkovičova 3, 8 9 Bratislava, Slovakia lukas.palkovic@stuba.sk jozef.rodina@stuba.sk 3 peter.hubinsky@stuba.sk Abstract This document describes a platform planned to use in our workshops on Robotics. It will help the students understand the way how accelerometers and gyroscopes are used for the inertial measurements. Students can train various methodologies of processing the signal coming from these sensors. Keywords MEMS, Inertial Measurement Unit, Accelerometer, Gyroscope, Sensor Fusion Fig. is a simplified sketch of the mechanical construction. There is a position servo motor mounted on a vertical wall with a drawn protractor. Shaft of the motor is oriented horizontally and holds a deck with the printed circuit boards. There are two boards. One of them contains the digital signal controller and the other one is the sensor board. Its advantage is the possibility to change the sensor board and test various sensors. I. INTRODUCTION MEMS components are widely used in the field of robotics. Their usage in some applications is quiet simple. However, more complicated applications such as inertial measurement units need more complex approach to the processing of their output. Inertial measuring unit measures inertial state variables of an object in space, for example orientation, velocity and gravitational forces. It can be aircraft, space satellite or ground robot (for example Segway ). Usually accelerometers and gyroscopes are used as their basic sensors. MEMS versions of these sensors are nowadays gaining more and more importance. MEMS sensors have several drawbacks. So combinations of more sensor types are often used to compensate the drawbacks of each other and ensure much better properties of the whole system. There are many ways [4] how to combine signal from these sensors. It is called sensor data fusion. For example complementary or Kalman filters can be used. Since it is more interesting to work with real devices than just with simulations and our workshops on service robotics are practically oriented a modular platform with a sensor unit was created to implement these techniques and investigate the properties of the sensors. II. MECHANICAL DESIGN To avoid pure simulation and make the work for students more practical and interesting the design of the platform had to deal with real hardware. It consists of a mechanical part providing some pre-defined movements and an electronic part with sensors and signal processing hardware. Fig. Mechanical construction of the stand The angle between the horizontal plane and the plane of the sensor board is indicated by an arrow and it can be easily visually measured on the protractor. When moving the motor this angle changes and the measuring unit consisting of the sensors and the controller should be able to measure this angle and the angular rate of the rotation just from the information based on sensed gravity projection and the gyroscopic moment. If an additional mechanical arm is used, the sensor board can be located further from the ax of the rotation and the signal can be more influenced by centrifugal forces. The goal of this application is to let students process the signal from the sensors, compare the results with the precise angle and develop a method obtaining the best results.

III. ELECTRONICS The block diagram of the schematic is shown in Fig.. The most important parts of the circuit are the MEMS sensors located on the sensor board. Our sensor board contains 3-axis analog output accelerometer MMA736 by Freescale, dual gyroscopes LPY530AL for measuring in X and Y axis and LPR530A by ST Microelectronics. The signal from the sensors is then converted and processed by a 6 bit digital signal controller dspic33fj64gp306a by Microchip. It is programmed and debugged via ICSP connector and PICKIT microcontroller. The servo motor HexTronik HXT500 is controlled by standard PWM signal with frequency 50Hz and impulse duration.5ms. The motor was modified in order to obtain its internal position feedback, which is usually not available. The position is measured by an internal potentiometer. The signal from it is also measured by the digital signal controller and used as the real value of the angle and is compared to the angle obtained by the inertial sensors. The controller is connected to a PC via serial port. USB/Serial port adapter is used. Sensor board Gyro XY Gyro Z Acc XYZ USB/Serial Microcontroller (DSP) Servo Motor PC PWM Fig. Block diagram of the circuitry of the platform IV. SOFTWARE ICSP There is a pre-prepared application for the digital signal controller. It is programmed in C language and MPLAB IDE is used for programming and debugging during the workshops. The pre-prepared application has all the basic functionality prepared to work with the signal from the sensors and to drive the servo motor. Things such as interrupts analog/digital conversion, serial port reception and transmit are ready to work with. The assistant will show students how to access the peripherals and they can work on their own modifications. User interface is very simple and it is based on serial port communication. There are some basic commands implemented, for example: go to vertical position go to horizontal position Output is also solved this way. Measured data are sent to the serial port and shown in the following format. The values are Tab-separated. Period of the data is 0ms. Lines are separated by carriage return character. The values are printed in this order (the meaning is explained in section V): Time [ms] Angle from potentiometer [degree] Angle from filtered gyroscope [degree] Angle from filtered accelerometer [degree] Angle directly from gyroscope [degree] Angle directly from accelerometer [degree] Angle from complementary filter [degree] Since the transfer is in text format, it is easy to use a terminal program to communicate with the stand. Received data can be logged into a file and evaluated in another program. The students can feel free to modify the output according to their requirements. We are considering writing a special program or integrate the system to Matlab Simulink too. It might move the complexity of the algorithms from C in controller to sophisticated environment in PC. V. ALGORITHMS A. MEMS Accelerometer and Gyroscope Properties MEMS accelerometers are good sensor especially for static measurements as an inclinometer in cell phones etc. Their output contains high frequency noise and it is sensitive to centrifugal acceleration which can negatively affect the inertial measurement. In the other hand, MEMS gyroscopes measure angular rate naturally. Hence they have good high frequency response, while integrating of little deviations in steady state modes causes a drift in the output. It would be useful to find a way how to use just good properties of both types of sensor. B. Complementary Filter Complementary filter is a technique used to combine noisy signals. These noises have complementary spectral characteristics. Assume two measurements y and y of the signal x where μ is high frequency noise and μ are low frequency disturbances. y y x x Assume two complementary transfer functions F (s) and F (s) which create our complementary filter. () F s) () (

Fig. 3 Block schematic of complementary filter potentiometer of the servo. It can be seen that the signal from accelerometer has an oscillating response with a noticeable overshoot. Its steady state value corresponds with the real angle. Hence, the properties for low frequencies are much better than the properties for higher frequencies. Integrated signal from gyroscope is shown in Fig. 5. The transient response corresponds with the real value but the steady state value is rising in time. Signal with such drift cannot be used directly for angle measurement. In this case, the advantage of gyroscope is its function on higher frequencies and its drawback is at lower frequency range. Fig. 6 shows filtered signals from accelerometer and gyroscope. A low pass filter is used for accelerometer and a high pass filter for gyroscopes. Fig. 6 shows also their sum which is compared to real angle in Fig. 7. F (s) is a transfer function of low pass filter and F (s) is a transfer function of high pass filter. It implies that our complementary filter passes whole frequency range; therefore whole frequency range of the signal x. Low pass filter F (s) is designed to suppress the noise μ and filter F (s) should filter the slowly changing disturbance μ. Xˆ F Y F Y( s) (3) X Fig. 3 shows a block schematic of complementary filter used at our platform. C. Kalman Filter Kalman filter is a widely used state estimator. Like other methods, it takes into account model of the controlled system. Unlike the classical approaches, it takes into account also the properties of the measurement (noise, other disturbances). Kalman filter requires the state space model of the system and is usually applied in its discrete version. Principle of Kalman filter is more difficult to understand than complementary filter and it is also more computationally complex (matrix inversion, transposition and multiplication) what used to be a problem but nowadays it is possible to easily implement them in modern digital signal controllers. More information on Kalman filter can be found in []. We would like the students to work also on this method. Fig. 4 Comparison of angle directly obtained from accelerometer and real angle VI. EXAMPLE To show the properties of the signal from the sensors and its processing, the following experiment with complementary filter was done. A step input of angle from horizontal to vertical position (90 degrees) was provided. Fig. 4 shows the signal obtained by the accelerometer and the signal measured directly by Fig. 5 Comparison of Angle obtained by integrating gyroscope signal and real angle

potentiometer. Students can implement aforementioned algorithms. Complementary filter will be obligatory. Depending on time reserved for this platform Kalman filter or quaternions can be also applied. It is preferable to implement the algorithms in the digital signal controller; however, it is possible to do it in more complex software in personal computer. Fig. 6 Comparison of filtered signal from gyroscope and accelerometer and their sum VIII. CONCLUSIONS A new platform equipped by modern MEMS sensors and digital signal controller was introduced. The platform contains also a plane rotating on the motor shaft. The angle of this plane is measured by processing the signal from the sensors. The purpose of the platform is to train students on implementation of various algorithms for the estimation of the angle and its derivation. A description of the mechanical and electrical part was provided together with a simple algorithm based on complementary filter. This algorithm was verified and its results are shown in this paper. A picture of the platform is shown in Fig. 8. Fig. 7 Comparison of filtered angle and the real angle VII. WORKSHOPS There are several issues which the students can deal with. First they should get familiar with the platform by modifying the output of the digital signal controller. This requires some knowledge of embedded system programming in C language. They can control the PWM output of the controller, so they are able to control the motor position. More commands or more sophisticated interface can be implemented for motor control than mentioned in chapter [IV]. Either desired trajectory can be provided from an external source via serial port or some trajectory can be preprogrammed in the flash memory. The signal processing is the most important part. Students learn how to obtain the information from the sensors and try to compute the state (angle and angular rate) from it. They can compare it with the real trajectory obtained from the Fig. 8 Picture of the platform ACKNOWLEDGMENT This work was supported by Grant Agency of Ministry of Education and Academy of Science of Slovak Republic VEGA under Grant No. /0690/09. The authors are pleased to acknowledge this support.

REFERENCES [] S. Fux, Inertial Measurement Unit for UAVs and MAVs, M. Eng. thesis, Swiss Federal Institute of Technology, Zurich, Switzerland, 008 [] G.C. Goodwin, S. F. Graebe and M. E. Salgado, Control System Design; Upper Saddle River, USA: Prentice Hall, 00 [3] G. Baldwin, R. Mahony, J Trumpf, T. Hamel and T. Cheviron, Complementary Filter Design on the Special Euclidean Group SE, in European Control Conference, Kos, Greece, 007 [4] J. L. Marins, X. Yun, E. R. Bachmann, R. B. McGhee and M. J. Zyda, An Extended Kalman Filter for Quaternion-Based Orientation Estimation Using MARG Sensors, in Proc. International Conference on Intelligent Robots and Systems, Maui, Hawaii, USA, 0, p. 003-0 [5] dspic33fj64gp306a data sheet, Microchip, USA, http://ww.microchip.com/downloads/en/devicedoc/70593c.pdf [6] LPY530AL data sheet, ST Microelectronic, http://www.sparkfun.com/datasheets/sensors/imu/lpy530al.pdf [7] LPR530A data sheet, ST Microelectronic http://www.sparkfun.com/datasheets/sensors/imu/lpr530al.pdf [8] MMA736 data sheet, Freescale, USA http://www.freescale.com/files/sensors/doc/data_sheet/mma736l.pd f