Awesome Arduino compass library with hard iron autocalibration

Another great post from Hackaday. This is very similar to the technique we now use in ArduPlane/ArduCopter. 

We don’t have much personal experience with DOF hardware, but this Arduino library which reads and compensates for three-axis magnetometer and accelerometer...looks very impressive. It should work for existing hardware, but there’s also a demo design using a Honeywell HMC5883L compass and a Freescale MMA8453Q accelerometer which you can build yourself. 

What’s so special about this library? Watch the video above (use 720p in fullscreen to get the full effect) and you’ll see three different scatter plots of the output data. The image above is a capture of the third example, which is using the hard iron offset and accelerometer compensation. That is to say, metal on and around the board is accounted for, as well as the physical orientation of the device. Even if you have no prior experience with this type of hardware it’s easy to see the usefulness of this kind of software compensation.

Views: 1298

Comment by Jan Detlefsen on April 10, 2012 at 9:58pm

is there something similar to Sensor Fusion for the arduino/ardupilot or is that just too processing intense?

http://www.youtube.com/watch?v=C7JQ7Rpwn2k&lr=1


3D Robotics
Comment by Chris Anderson on April 10, 2012 at 10:05pm

Jan: Yes, that's what the Direction Cosine Matrix algorithm does on APM.

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service