kriswiner / LSM9DS0

LSM9DS0 9DOF sensor AHRS sketch
39 stars 16 forks source link

How to calibration the chip #3

Closed purewind7 closed 10 years ago

purewind7 commented 10 years ago

Hi kriswiner!

Great work you have done! I have one question about the LSM9DS0 libraries. How do you calibrate the magnetometer? It seems you haven't wrote any calibration in the code or the library. Thanks for your code!

Regards, purewind7

kriswiner commented 10 years ago

Yes, the calibration is done manually and a bit crudely. I note the max/min magnetometer readings on all three axes, then subtract the average from the data as a bias. This has the effect of recentering the magnetometer response surface, but the better way to do this is to also remove the spherical distortion. There are magnetometer calibration routines available that can do this, but I haven’t incorporated any of them yet.

Kris

From: purewind7 Sent: Sunday, October 19, 2014 5:21 AM To: kriswiner/LSM9DS0 Subject: [LSM9DS0] How to calibration the chip (#3)

Hi kriswiner!

Great work you have done! I have one question about the LSM9DS0 libraries. How do you calibrate the magnetometer? It seems you haven't wrote any calibration in the code or the library. Thanks for your code!

Regards, purewind7

— Reply to this email directly or view it on GitHub.

purewind7 commented 10 years ago

Thanks for the reply. I'm doing the spherical distortion thing now. But this process involving manually rotate the chip for sampling. A GUI is often required. Maybe I can write a simple Processing code for that. Thanks for your advice!

Regards, purewind7