Page 1 of 1

MAG3110 readings

Posted: Thu Dec 28, 2017 2:07 am
by tourg.st
Hello! I have recently bought a MAG3110 magnetometer. I connected it to an Arduino DUE and used the Sparkfun library and examples.

The readings are something like this
X:64860 Y:546 Z:1875

I don't really understand these readings... Is it a calibration problem?

Re: MAG3110 readings

Posted: Tue Feb 06, 2018 7:54 am
by Squatch
I see no one has answered you yet!
I just started working with the MAG3110 breakout board myself but I have figured out a few things so far.
Download this document it will help a lot: http://cache.freescale.com/files/sensor ... 10FAQS.pdf

As for the question you posted, the answer is raw numbers. You have to calibrate the unit to get anything out that resembles degrees of heading or magnetic field strengths. If I rotate my unit 180 degrees the numbers rise and fall by about 420 digits.
May I ask what you are using to interface with the chip? I have a Raspberry Pi 3 using Python.
The "Simple Manual Magnetometer Calibration" document I found on the "Instructables" site - http://www.instructables.com/id/Simple- ... libration/ is helpful as well as the XLoBorg site mentioned there.

Squatch

Re: MAG3110 readings

Posted: Wed Feb 07, 2018 6:36 am
by tourg.st
Thank you for the advice!

I use an arduino due. For calibration, I used this guide
https://diydrones.com/profiles/blogs/ad ... or-dummies
I will try with a Raspberry Pi 3 to see if i get better results.