Open source IMU and AHRS algorithms


Posted on July 31st, 2012 by x-io Technologies

In 2009 Sebastian Madgwick developed an IMU and AHRS sensor fusion algorithm as part of his Ph.D research at the University of Bristol. The algorithm was posted on Google Code with IMU, AHRS and camera stabilisation application demo videos on YouTube. The algorithm received thousands of downloads but the code project was never maintained or updated. All resources are now provided and maintained here. The algorithm source code is available in C, C# and MATLAB. The source code also includes Madgwick’s implementation of Robert Mayhony’s ‘DCM filter‘ in quaternion form.


Resources

 

Open-source resources available on this website are provided under the GNU General Public Licence unless an alternative licence is provided in source.

Original internal report (.pdf)
IEEE conference paper (IEEE Explore)
MATLAB code (Includes example data and script)
C# code (x-IMU Example project used to create this video)
C code (Header and source files)

User contributions

LabVIEW library by Roger Isaksson (Google Code)




RECENT
XYZ Stickers
XYZ Stickers

I’ve been working with inertial sensors for several year now and it seems I am endlessly marking XYZ axis on objects to keep track...

FAUST informatik sponsorship
FAUST informatik sponsorship

I am pleased to announce that x-io Technologies is now sponsoring FAUST Informatik at the Hamburg University of Applied Sciences in Germany. A few...

Serial oscilloscope
Serial oscilloscope

Printing data to a serial terminal is a useful debugging tool when developing embedded systems but often the data of interest is a continuous...

DAQ32 – 32 channel oscilloscope & data logger
DAQ32 – 32 channel oscilloscope & data logger

During my Ph.D I developed sensor fusion algorithms for kinematically redundant accelerometer arrays. Empirical investigations required data from ten separate triple-axis accelerometers to be...

Dummy micro SD card
Dummy micro SD card

Dummy SD cards are often used as place holders to protect the electrical contacts and mechanical mechanism of a card socket. During the development...

Microsoft Digits uses x-IMU
Microsoft Digits uses x-IMU

A Microsoft research team has created a prototype device that enables hand to control any device in their home using intuitive hand gestures.  Digits...

Imogen Heap’s musical gloves on BBC2
Imogen Heap’s musical gloves on BBC2

Seb Madgwick has been working with Imogen Heap and the gloves team for over a year now and the last night saw the glove’s...

New look
New look

When x-io Technologies was founded in 2009 by Seb Madgwick and Balazs Janko, the company only had one product and a very basic website...