groupUrl: https://ez.analog.com/mems/
Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EZ Spotlight
    • The Engineering Mind
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • A2B
    • Aerospace and Defense (ADEF)
    • Amplifiers
    • Analog Microcontrollers
    • Analysis Control Evaluation (ACE) Software
    • Audio
    • Clock and Timing
    • Condition-Based Monitoring
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power Management
    • Precision Technology Signal Chains
    • Processors and DSP
    • Reference Circuits
    • RF and Microwave
    • Signal Chain Power (SCP)
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • About EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • More
  • Cancel
MEMS Inertial Sensors
MEMS Inertial Sensors
Documents FAQ: Hard & Soft Iron Correction for Magnetometers II
  • Q&A
  • Discussions
  • Documents
  • File Uploads
  • Video/Images
  • Tags
  • Managers
  • More
  • Cancel
  • New
MEMS Inertial Sensors requires membership for participation - click to join
  • +Documents
  • +3-D Model/STEP: FAQ
  • +AD22282-A-R2: FAQ
  • +ADIS16000: FAQ
  • +ADIS16003 MTBF: FAQ
  • +ADIS16006: FAQ
  • +ADIS16201: FAQ
  • +ADIS16203: FAQ
  • +ADIS16204: FAQ
  • +ADIS16209: FAQ
  • +ADIS16210: FAQ
  • +ADIS16223: FAQ
  • +ADIS16227: FAQ
  • +ADIS16228: FAQ
  • +ADIS16229: FAQ
  • +ADIS16240: FAQ
  • +ADIS16255: FAQ
  • +ADIS16355: FAQ
  • +ADIS16364: FAQ
  • +ADIS16365: FAQ
  • +ADIS16375: FAQ
  • +ADIS16385: FAQ
  • +ADIS16400: FAQ
  • +ADIS16405: FAQ
  • +ADIS16407: FAQ
  • +ADIS16445: FAQ
  • +ADIS16448: FAQ
  • +ADIS16460: FAQ
  • +ADIS16475: FAQ
  • +ADIS16477: FAQ
  • +ADIS1647x: FAQ
  • +ADIS16480: FAQ
  • +ADISUSB: FAQ
  • +ADXL001: FAQ
  • +ADXL203: FAQ
  • +ADIS16300: FAQ
  • +ADIS16485: FAQ
  • +ADIS16488: FAQ
  • +ADIS16488A: FAQ
  • +ADIS16490: FAQ
  • +ADIS16495: FAQ
  • +ADIS16497: FAQ
  • +ADXL103: FAQ
  • +ADXL150: FAQ
  • +ADxL193: FAQ
  • +ADXL202: FAQ
  • +ADXL206: FAQ
  • +ADXL210: FAQ
  • +ADXL210E: FAQ
  • +ADXL213: FAQ
  • +ADxL230: FAQ
  • +ADXL278: FAQ
  • +ADXL312: FAQ
  • +ADXL313: FAQ
  • +ADXL320: FAQ
  • +ADXL321: FAQ
  • +ADXL322: FAQ
  • +ADXL327: FAQ
  • +ADXL335: FAQ
  • +ADXL337: FAQ
  • +ADXL345: FAQ
  • +AD22290: FAQ
  • +ADIS16003: FAQ
  • +ADIS16133: FAQ
  • +ADIS16135: FAQ
  • +ADIS16265: FAQ
  • +ADIS16305: FAQ
  • +ADXL326: FAQ
  • +ADXL350: FAQ
  • +ADXL362: FAQ
  • +ADXL375: FAQ
  • +ADXL377: FAQ
  • +ADXL78: FAQ
  • +ADXRS150: FAQ
  • +ADXRS290: FAQ
  • +ADXRS300: FAQ
  • +ADXRS401: FAQ
  • +ADXRS453: FAQ
  • +ADXRS610: FAQ
  • +ADxRS614: FAQ
  • +ADXRS623: FAQ
  • +ADXRS646: FAQ
  • +ADXRS652: FAQ
  • +ADXRS800: FAQ
  • +ADIS16136: FAQ
  • +ADIS16137: FAQ
  • +ADIS16266: FAQ
  • +ADIS16334: FAQ
  • +ADIS16362 Evaluation Tool: FAQ
  • +ADIS16364 Evaluation Tool: FAQ
  • +ADIS16367: FAQ
  • +ADIS163xx: FAQ
  • +ADIS16489: FAQ
  • +ADIS1648x: FAQ
  • +ADXL346: FAQ
  • +ADXL363: FAQ
  • +EVAL-ADIS: FAQ
  • +EVAL-ADIS2: FAQ
  • +Filtering Functions: FAQ
  • +General: FAQ
  • +Gyroscope: FAQ
  • -Hard & Soft Iron Correction: FAQ
    • FAQ: Hard & Soft Iron Correction for Magnetometer Measurements
    • FAQ: Hard & Soft Iron Correction for Magnetometers II
  • +ISEB USB: FAQ
  • +IMU: FAQ
  • +MEMS: FAQ
  • +Slip Ring Interface: FAQ
  • +SPI Troubleshooting: FAQ
  • +TEMP_OUT Variation: FAQ
  • +Test Procedures: FAQ

FAQ: Hard & Soft Iron Correction for Magnetometers II

Q:

Do you have any further insights on how to observe and correct for hard and soft iron behaviors?

------------------------------------------------------------------------------------------------------------------------------------------

A:

The first version of the "Hard & Soft Iron Correction for Magnetometer Measurements" post offered some insights on how one might approach developing their own correction process. Since posting this, we have received a great deal of feedback and have updated a few things that might be helpful and also are working on a weakness that was identified during this process (more on that below). 

Here are the three things that we have done, in order to offer additional help for those who are looking to develop their own hard/soft iron correction approaches:

  1. Updated the Hard and Soft Iron Computation Spreadsheet (Magnetometer_HardandSoftIron_CalculationSpreadsheet.xlsx) to a format that is more suitable for copying data directly into it.  In other words, all "simulation inputs" have been removed and the area for copying data to is more clearly marked.
  2. Automated the register value computation, based on the correction matrix calculations.
  3. Tested this method in a number of scenarios with an ADIS16480 to validate the final register values
  4. Identified a weakness in the soft-iron correction formulas, which happens when the x and y scale factors are very close to each other.
  5. Offer a short-term approach for managing this weakness.

The Method

  1. Start with the ADIS16488 (or ADIS16480) in an orientation where the x-axis magnetometer reading will be at its maximum and the y-axis reading will be equal to zero, when all errors have been removed.
  2. Measure x-axis and y-axis magnetometer outputs at this position.
  3. Rotation the platform in a counter-clockwise direction, by 10 degrees.
  4. Measure x-axis and y-axis magnetometer outputs at this position.
  5. Repeat steps 2 and 3 through the 350 degree rotation point.
  6. Copy the data at all 36 angles, into Cells C16:D52 in the "2 Dimensional Model" sheet, located in the Magnetometer_HardandSoftIron_CalculationSpreadsheet.xlsx file (see attachment).
  7. Observe the 2x2 soft iron correction matrix in cells O12:P13
  8. Observe the hard iron correction factors in Q12:Q13
  9. Observed the "compensated" and "uncompensated" graphs in the spreadsheet
  10. Write the register values from the "Register_Worksheet" sheet from the same file into the device's registers to apply the correction factors.

The Examples

The second file attachment (FAQ-HardSoftIron_UseExamples.xls) contains some trial runs of this calibration process. In this file, each sheet corresponds to a specific run of x-y data.

Initial = Calibrated ADIS16480 magnetometer outputs

Mag Field = Magnet was placed in close proximity of the ADIS16480

Mag Field Comp = Post-compensation of the response, with the magnetic still in the same location

Metal Blade = A metal saw blade was placed in close proximity to the ADIS16480

Metal Blade Comp = Post-compensation response, with the saw blade still in place.

The Videos

The following three videos show the X-Y rotational sweep for the three conditions described in the FAQ-HardSoftIron_UseExamples.xls file.

Initial Sweep

Magnetic Field Error (Notice the hand-clipped magnet attached the the disk-shaped PCB)

Metal Blade Error (Notice the thin saw blade resting on top of the ADIS16480) 

The Weakness

When the x-axis and y-axis scale factors are very close to each other, the eigenvalue calculation method is prone to introducing angle errors.  We are in the process of experimenting with some more automated approaches to this issue, but for now, overcoming this will require an additional correction matrix. For starters, one can observe this error by using compensated and uncompensated x,y values at a particular measurement point.

After identifying the skew angle, one can develop a 2x2 correction matrix for removing it. 

EQUATION EXAMPLE COMING SOON.

NOTE: While waiting for this example, please see the following link:

http://en.wikipedia.org/wiki/Rotation_matrix#In_two_dimensions

Attachments:
0511.Magnetometer_HardandSoftIron_CalculationSpreadsheet.xlsx
7823.FAQ-HardSoftIron_UseExamples.xls
  • adis16480
  • adis16488
  • adis16488a
  • productpage
  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
Parents
  • mille-feuille
    mille-feuille over 6 years ago

    Hello

    I use ADIS16488 and I want to use correction factor at the magnetometer output.

    In this topic, I have some questions in calculating the correction factors.

    1. I should rotate the sensor in a counter-clockwise direction. But in the video, the platform is rotating in clockwise direction. In addition, when measuring the magnetometer's output, the sin and cosine curve are shown in clockwise direction. Could you tell me which direction is correct?

    2. In the attached spread sheet "HardSoftIron Examples", I copied the "Mag field" data into the "Magnetometer_HardandSoftIron_calculation spread sheet". As a result, I got Hard X,Y and Soft Iron correction factors.

    But, S12 and S21 correction factor in "Magnetometer_HardandSoftIron_calculation spread sheet" is differ from the one written in "HardSoftIron Examples". Could you tell me how to calculate S12 and S21 accurately?

    As a calculation result in the "Magnetometer_HardandSoftIron_calculation spread sheet", S12 is ED17 and S21 is 1361, but in the "HardSoftIron Examples", S12 is 12E9 and S21 is EC9F.

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
  • NevadaMark
    NevadaMark over 6 years ago in reply to mille-feuille

    I am sorry about the confusion, but unfortunately, we are buried right now and I am scheduled to be out of the office for most of the next 3 weeks.  The important thing about calibrating this in the x-y plane is to characterize the ellipse X/Y and develop correction factors to shape that into a circle.  We did not intended to offer a bullet-proof calibration method in this post, but do try to incorporate improvement opportunities when customers (like yourself) offer such thoughtful valuable feedback on something that we can improve on.  The bottom line is that you can rotate any direction you want, as long as you establish the right orientation with the correct rows in the spreadsheets.  Sorry I am not in a position to help more at the moment, but I will come back to this as soon as possible.  Good luck! 

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
Comment
  • NevadaMark
    NevadaMark over 6 years ago in reply to mille-feuille

    I am sorry about the confusion, but unfortunately, we are buried right now and I am scheduled to be out of the office for most of the next 3 weeks.  The important thing about calibrating this in the x-y plane is to characterize the ellipse X/Y and develop correction factors to shape that into a circle.  We did not intended to offer a bullet-proof calibration method in this post, but do try to incorporate improvement opportunities when customers (like yourself) offer such thoughtful valuable feedback on something that we can improve on.  The bottom line is that you can rotate any direction you want, as long as you establish the right orientation with the correct rows in the spreadsheets.  Sorry I am not in a position to help more at the moment, but I will come back to this as soon as possible.  Good luck! 

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
Children
No Data
Related
 
社交网络
快速链接
  • 关于ADI
  • Partners
  • 模拟对话
  • 职业
  • 联系我们
  • 投资信息
  • 新闻中心
  • 质量和可靠性
  • 办事处与代理商
  • Analog Garage
语言
  • English
  • 简体中文
  • 日本語
  • Руccкий
电子快讯

欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

订阅
Switch to mobile view
Analog Logo
© 1995 - 2022 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2022 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • 网站地图
  • 隐私和保密政策
  • 隐私设置
  • 使用条款
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2022 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2022 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.