Posted in 2019
How to calibrate a magnetometer & accelerometer (MPU9250)
- 13 十月 2019
- Microcontroller
The magnetometer is a device that measures the direction and strength of magnetism. As we all know, compass is a famous type of magnetometer which tells the orientation by measuring the Earth’s magnetic field. Here I will present three methods to calibrate the magnetometer, one is simple and straight forward and the other two utilize Least-Squares estimation, which can be done offline or online.