MAG3110 can't be calibrated

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MAG3110 can't be calibrated

Jump to solution
1,643 Views
zhangjive
Contributor I

Hi, I'm using the sensor fusion library 7.0 with FRDM-KL25, but the MAG3110 can't be calibrated. And besides, I tested my mag3110 module with sensor fusion library v5.0,  it works well. 

In order to make the mag3110 works well,  is there any parameter need to be modifid? My code is attached below. 

Thanks a lot!

Labels (1)
0 Kudos
1 Solution
930 Views
michaelestanley
NXP Employee
NXP Employee

The question is why is the field strength so high?  Is the board of your own design, or an NXP board?  If the former, I suggest you review my posting on magnetometer placement (http://blog.nxp.com/sensors/magnetometer-placement-where-and-why?fsrch=1&sr=1&pageNum=1) to see if you've inadvertently introduced hard/soft iron interference sources near your sensor.  Do you have another board that can be used to independently measure the field strength for comparison purposes?  And did you check the other posting I refered you to?  You should definitely make that code change if you are having problems.

Mike

View solution in original post

0 Kudos
5 Replies
930 Views
michaelestanley
NXP Employee
NXP Employee

Have you reviewed the fix in this posting? https://community.nxp.com/ideas/1675

0 Kudos
930 Views
zhangjive
Contributor I

Hi, Mike. I found that the ftrB value (ftrB > 300) is larger than MAXBFITUT in my board , so the MAG3110 can't be calibrated.  

 If the ftrB value is too large,  is there any method to fix this with sensor fusion library v7.0, or should I design a new MAG3110 module?

0 Kudos
931 Views
michaelestanley
NXP Employee
NXP Employee

The question is why is the field strength so high?  Is the board of your own design, or an NXP board?  If the former, I suggest you review my posting on magnetometer placement (http://blog.nxp.com/sensors/magnetometer-placement-where-and-why?fsrch=1&sr=1&pageNum=1) to see if you've inadvertently introduced hard/soft iron interference sources near your sensor.  Do you have another board that can be used to independently measure the field strength for comparison purposes?  And did you check the other posting I refered you to?  You should definitely make that code change if you are having problems.

Mike

0 Kudos
930 Views
zhangjive
Contributor I

I redesign the PCB, and the problem has been solved. Thanks a lot!

0 Kudos
930 Views
michaelestanley
NXP Employee
NXP Employee

Glad to hear you are progressing.

Regards,

Mike

0 Kudos