<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MAG Cilibration in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489404#M2963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the manual calibration and saved the calibration data(10 element). After power on, I start using the saved data and works fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, after running a short time(20M), I can see the heading is off and I checked that it is using 4 element real-time data now.&lt;/P&gt;&lt;P&gt;After running a long time(around 1 hour), I can see the heading is back to normal. Now using 10 element again.&lt;/P&gt;&lt;P&gt;It there anyway to control when I want to use the new calibrated data? The real-time calibration should be running the same way as now...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 22:16:29 GMT</pubDate>
    <dc:creator>a8Chcx</dc:creator>
    <dc:date>2026-02-03T22:16:29Z</dc:date>
    <item>
      <title>MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489404#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the manual calibration and saved the calibration data(10 element). After power on, I start using the saved data and works fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, after running a short time(20M), I can see the heading is off and I checked that it is using 4 element real-time data now.&lt;/P&gt;&lt;P&gt;After running a long time(around 1 hour), I can see the heading is back to normal. Now using 10 element again.&lt;/P&gt;&lt;P&gt;It there anyway to control when I want to use the new calibrated data? The real-time calibration should be running the same way as now...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 22:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489404#M2963</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2026-02-03T22:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489405#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to do it?&lt;/P&gt;&lt;P&gt;Another question: If I stop running the calibration routine, the compass reading will be based on last calibrated data. If I am using saved calibration and do not run the calibration routine, it will always use the saved calibration data to calculate the heading?&lt;/P&gt;&lt;P&gt;I checked the MAG spec, there is no big difference on zero offset and temperature drifting, it will not cause more than 10 degree difference if I use it in the same environment and calibrated data, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my application, there is no way to do fully calibration in 3 axes. And I found that it will make it worse if I don't do full round turn in 3 axes. It will get almost the same result if I do fully calibration as using the calibrated data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 20:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489405#M2964</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-12-17T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489406#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Fusion_task() function in mqx_tasks.c includes the code that initiates a new magnetic calibration.&amp;nbsp; Look for variable name "initiatemagcal".&amp;nbsp; You should be able to craft your own strategy for when to initiate, or not, magnetic calibration by tinkering with this section of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 18:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489406#M2965</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-12-19T18:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489407#M2966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I turn off MAG background calibration, the heading is good after I run my system for a long time(&amp;gt;24 hours).&lt;/P&gt;&lt;P&gt;Then I power OFF/ON again, the heading is no big difference.&lt;/P&gt;&lt;P&gt;1) It is possible that the background calibration will cause the problem sometime because of environment inteference?&lt;/P&gt;&lt;P&gt;2) What is the maximum heading error that is caused by temperature based on Freescale MAG chip?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 13:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489407#M2966</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-12-22T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489408#M2967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christie,&lt;/P&gt;&lt;P&gt;1) Yes, environmental interference can throw off the calibration.&amp;nbsp;&amp;nbsp; The calibration routines assume the ambient field is constant and equal to the earth field.&amp;nbsp; If it is not constant, it can and will throw things off.&lt;/P&gt;&lt;P&gt;2) I expect the amount of heading error due to temperature variations to be orientation dependent.&amp;nbsp; The X and Y channels in the magnetic sensor are essentially identical elements, but rotated 90 degrees.&amp;nbsp; So when the device is horizontal, 1st order terms will cancel (recall that we're looking at the inverse tangent of the ratio).&amp;nbsp; The Z axis element has a different structure.&amp;nbsp;&amp;nbsp; Any rotation from horizontal will include Z components in the measured fields, and we can't count on those varying in an identical fashion.&amp;nbsp; All of the above is complicated by the fact that many applications will include other components (i.e. speakers) which generate temperature-dependent fields.&amp;nbsp; The variations are endless and not something easily characterized for the general case.&amp;nbsp; All this is a long way of saying: you will have to evaluate your specific design to see how well it performs.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 14:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489408#M2967</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-12-22T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: MAG Cilibration</title>
      <link>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489409#M2968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 14:19:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MAG-Cilibration/m-p/489409#M2968</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-12-22T14:19:51Z</dc:date>
    </item>
  </channel>
</rss>

