MAG3110 readings

Have questions about a SparkFun product or board? This is the place to be.

Moderators: phalanx, TS-Tim

Post Reply
tourg.st
Posts: 2
Joined: Tue Dec 26, 2017 5:49 am

MAG3110 readings

Post by tourg.st » Thu Dec 28, 2017 2:07 am

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?

Squatch
Posts: 1
Joined: Tue Feb 06, 2018 7:30 am

Re: MAG3110 readings

Post by Squatch » Tue Feb 06, 2018 7:54 am

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

tourg.st
Posts: 2
Joined: Tue Dec 26, 2017 5:49 am

Re: MAG3110 readings

Post by tourg.st » Wed Feb 07, 2018 6:36 am

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.

Post Reply