MAG 3110 Auto Calibration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MAG 3110 Auto Calibration

3,011 次查看
pramodk_g_
Contributor III

Hi All,

We are using MAG 3110 in our project. Is there any option to automatically calibrate MAG 3110, if so please share the algorithm and thoughts on this?

Currently we are doing a normal fixed time 360 degree rotation calibration with compass pointing North for the offset.

Is there any option to know that user rotated the device 360 degree so that i can exit from the 360 degree calibration process other than using fixed time calibration?

Thanks

Pramod

标记 (2)
0 项奖励
回复
2 回复数

1,749 次查看
reyes
NXP TechSupport
NXP TechSupport

Hi PRAMOD K. G.

You can download a very complete source code that includes the magnetic calibration from www.freescale.com/sensorfusion

In this source code we provide full optimized MCU software with full source code including 10 element magnetic calibration models just click on the “download” button on the left of the page next to “sensor Fusion Library for Kinetis MCUs”

Once downloaded you can find specifically the 10 element code can be found in the file magnetic.c in the Codewarrior projects.

Or, can also find it in the Freescale communities, specifically in the downloadable folder “Build_422_PreRelease.zip” from the following link: https://community.freescale.com/docs/DOC-102732

For further support about this code I would recommend you to check content on the following link: https://community.freescale.com/community/sensors/sensorfusion


Have a great day,
Jose Reyes

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,749 次查看
pramodk_g_
Contributor III

Hi Jose Reyes,

We are Following mag3110 magnetometer calibration method.


We are recording the x and y magnetometer readings for 20 second. From these recorded data, minimum and maximum x- and y- values are calculated .Then averaging the minimum and maximum values of x and y ,corresponding offset values are obtained and written to Magnetometer registers.

To ensure the minimum and maximum values of x- and y- recorded , we are rotating it 360 degree for 20 second on x-y plane.

Is there any procedure to find the maximum and min values of x and y are reached while rotating,so that we can exit before 20 second?

0 项奖励
回复