kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 472 forks source link

How to calibrate sensors with MPU9250BasicAHRS #289

Open tomassalinger opened 6 years ago

tomassalinger commented 6 years ago

Hi Kris, first of all, thanks a lot for doing this detailed examples. I have the MPU9255 with arduino pro mini connected by serial usb. I'm really new to Arduino, but i managed to get the MPU9250BasicAHRS (Because not using Teensy) showing values but now i'm not sure how could i calibrate the sensors. For what i understood, the BasicAHRS file does not calibrate the sensors, right? and the teensy specific ones do a calibration process. So, how could i calibrate them without using the "t3" files?

Thanks!

kriswiner commented 6 years ago

Mybe use this one, or make your own version with the calibration functions.

https://github.com/kriswiner/ESP8285/tree/master/EM7180

On Fri, Jun 15, 2018 at 3:42 PM, tomassalinger notifications@github.com wrote:

Hi Kris, first of all, thanks a lot for doing this detailed examples. I have the MPU9255 with arduino pro mini connected by serial usb. I'm really new to Arduino, but i managed to get the MPU9250BasicAHRS (Because not using Teensy) showing values but now i'm not sure how could i calibrate the sensors. For what i understood, the BasicAHRS file does not calibrate the sensors, right? and the teensy specific ones do a calibration process. So, how could i calibrate them without using the "t3" files?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/289, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvRMyXHdlr4leTWc6IhOFb2KyalLks5t9DhhgaJpZM4UqOyz .

kriswiner commented 6 years ago

wrong one, maybe this one:

https://github.com/kriswiner/ESP8285/blob/master/MPU9250/MPU9250_MS5637_BasicAHRS2_ESP8266.ino

On Fri, Jun 15, 2018 at 3:52 PM, Tlera Corporation tleracorp@gmail.com wrote:

Mybe use this one, or make your own version with the calibration functions.

https://github.com/kriswiner/ESP8285/tree/master/EM7180

On Fri, Jun 15, 2018 at 3:42 PM, tomassalinger notifications@github.com wrote:

Hi Kris, first of all, thanks a lot for doing this detailed examples. I have the MPU9255 with arduino pro mini connected by serial usb. I'm really new to Arduino, but i managed to get the MPU9250BasicAHRS (Because not using Teensy) showing values but now i'm not sure how could i calibrate the sensors. For what i understood, the BasicAHRS file does not calibrate the sensors, right? and the teensy specific ones do a calibration process. So, how could i calibrate them without using the "t3" files?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/289, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvRMyXHdlr4leTWc6IhOFb2KyalLks5t9DhhgaJpZM4UqOyz .

tomassalinger commented 6 years ago

Hi again Kris, i managed to get the MPU9250_MS5637_BasicAHRS2_ESP8266.ino code working for my GY-91 (MPU9255), but i'm not sure if the calibration method is different from the one provided in MPU9250BasicAHRS. I've heard you need a routine to calibrate the sensor, including doing an "8" with the chip in order to calibrate it, is that really necessary or the "factory calibration" provided as is in the code is enough?

Sorry for the newbie questions, i'm trying my best!

Thanks!

kriswiner commented 6 years ago

You only need to claibrate the sensors if you want accurate absolute orientation. Otherwise not necessary. But without calibration, of course, you can get any heading, and probably will.

On Thu, Jul 5, 2018 at 8:59 AM, tomassalinger notifications@github.com wrote:

Hi again Kris, i managed to get the MPU9250_MS5637_BasicAHRS2_ESP8266.ino code working for my GY-91 (MPU9255), but i'm not sure if the calibration method is different from the one provided in MPU9250BasicAHRS. I've heard you need a routine to calibrate the sensor, including doing an "8" with the chip in order to calibrate it, is that really necessary or the "factory calibration" provided as is in the code is enough?

Sorry for the newbie questions, i'm trying my best!

Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/289#issuecomment-402771079, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qr8x8x2XoNsB_zDUAdDKgOagT9WQks5uDjfdgaJpZM4UqOyz .

amishaspatel commented 3 years ago

Hi Kris. I came across your examples for MPU9250. They are very good, thank you for that. I too am using MPU9255 with Arduino Nano Every. The WHO_AM_I register return 0x73 HEX value. In order to go ahead with the code do I need to just change the if condition from c == 0x71 to c == 0x73? Are all the functions same for MPU9250 and MPU9255?

Thank you!

kriswiner commented 3 years ago

Should be enough to change 0x71 to 0x73. The MPU9250 an MPU9255 are very similar, just that the MPU9255 has some extra embedded functions.

On Mon, Jan 4, 2021 at 8:34 PM amishaspatel notifications@github.com wrote:

Hi Kris. I came across your examples for MPU9250. They are very good, thank you for that. I too am using MPU9255 with Arduino Nano Every. The WHO_AM_I register return 0x73 HEX value. In order to go ahead with the code do I need to just change the if condition from c == 0x71 to c == 0x73? Are all the functions same for MPU9250 and MPU9255?

Thank you!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/289#issuecomment-754387955, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKTOKWH5V4SB2O3B44TSYKJEXANCNFSM4FFI5SZQ .

amishaspatel commented 3 years ago

Thank you.