VideoLibrary

How to Calibrate a Magnetometer | DigiKey

Magnetometers are fantastic sensors that allow you to measure the strength and direction of magnetic fields. With a little bit of math, they can be used as digital compasses to find your absolute orientation on Earth. However, they are very susceptible to extraneous magnetic fields (hard iron distortions) and nearby ferrous materials (soft iron distortions). In this video, we construct a basic digital compass using a magnetometer, which measures the strength and direction of the Earth’s magnetic field. We demonstrate possible distortion effects and show how to perform hard iron and soft iron calibration.

5/31/2022 1:31:25 PM

Part List

ImageManufacturer Part NumberDescriptionAvailable QuantityPriceView Details
MCX JACK TO BNC RF CABLE ADAPTER1531MCX JACK TO BNC RF CABLE ADAPTER0 - Immediate$48.98View Details
TRIPLE-AXIS MAGNETOMETER LIS3MDL4479TRIPLE-AXIS MAGNETOMETER LIS3MDL33 - Immediate$81.91View Details
JST PH 4-PIN TO MALE HEADER CABL3955JST PH 4-PIN TO MALE HEADER CABL93 - Immediate$12.35View Details