kriswiner / MPU9250

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

MPU9250 Question #461

Open AbhishekJoshi opened 3 years ago

AbhishekJoshi commented 3 years ago

@kriswiner

Quick question for you, as the datasheet is not clear, and I couldn't find obvious hints.

If I powercycle an MPU9250, will the offset/registers be set to "default"/uncalibrated values?

Do I need to recalibrate my MPU everytime I turn it on?

I'm working on a personal project, I'm trying to determine if I need to recalibrate my MPU every cold boot.

SUPER SORRY if I'm polluting your issues. I know this is meant for real issues, but it seems you're one of the better experts on MPU9250!

Thanks!

kriswiner commented 3 years ago

The memory in the MPU9250 is volatile, so it will return to the default contents (i.e., 0) on power on. You can store your calibration in arrays in your program or on-board flash, etc.

On Mon, Jun 7, 2021 at 12:08 AM Abhishek Joshi @.***> wrote:

@kriswiner https://github.com/kriswiner

Quick question for you, as the datasheet is not clear, and I couldn't find obvious hints.

If I powercycle an MPU9250, will the offset/registers be set to "default"/uncalibrated values?

Do I need to recalibrate my MPU everytime I turn it on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/461, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKSJWHTT7QSSIPLNN3TTRRV7LANCNFSM46HAAGZQ .

AbhishekJoshi commented 3 years ago

Hi. Thanks for your response.

From your experience, how often are these MPU's dead from factory on arrival?

https://www.banggood.com/5Pcs-MPU-9250-GY-9250-9-Axis-Sensor-Module-I2C-SPI-Communication-Board-For-Arduino-p-1233671.html

I'm working on a project, and sometimes gx is not moving, and other times its gz, or gy.

kriswiner commented 3 years ago

Depends where you buy from. Reputable sources, never, from China about half the time...

On Mon, Jun 7, 2021 at 2:55 PM Abhishek Joshi @.***> wrote:

Hi. Thanks for your response.

From your experience, how often are these MPU's dead from factory on arrival?

https://www.banggood.com/5Pcs-MPU-9250-GY-9250-9-Axis-Sensor-Module-I2C-SPI-Communication-Board-For-Arduino-p-1233671.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856290092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVNVPHWSMWJ4LDYQ4LTRU54PANCNFSM46HAAGZQ .

kriswiner commented 3 years ago

nCS needs to be pulled HIGH to work IIRC...

On Mon, Jun 7, 2021 at 3:06 PM Tlera Corporation @.***> wrote:

Depends where you buy from. Reputable sources, never, from China about half the time...

On Mon, Jun 7, 2021 at 2:55 PM Abhishek Joshi @.***> wrote:

Hi. Thanks for your response.

From your experience, how often are these MPU's dead from factory on arrival?

https://www.banggood.com/5Pcs-MPU-9250-GY-9250-9-Axis-Sensor-Module-I2C-SPI-Communication-Board-For-Arduino-p-1233671.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856290092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVNVPHWSMWJ4LDYQ4LTRU54PANCNFSM46HAAGZQ .

AbhishekJoshi commented 3 years ago

Last one! Do you have any reputable sources you can recommend?

Thanks!

On Mon, Jun 7, 2021 at 6:06 PM Kris Winer @.***> wrote:

Depends where you buy from. Reputable sources, never, from China about half the time...

On Mon, Jun 7, 2021 at 2:55 PM Abhishek Joshi @.***> wrote:

Hi. Thanks for your response.

From your experience, how often are these MPU's dead from factory on arrival?

https://www.banggood.com/5Pcs-MPU-9250-GY-9250-9-Axis-Sensor-Module-I2C-SPI-Communication-Board-For-Arduino-p-1233671.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856290092 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABTDLKVNVPHWSMWJ4LDYQ4LTRU54PANCNFSM46HAAGZQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856295185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCRJHLZZN4HWJFVAMJK4TTTRU7HLANCNFSM46HAAGZQ .

kriswiner commented 3 years ago

Maybe look at Sparkfun...I also have a few https://www.tindie.com/products/onehorse/wearable-mpu9250-nano-board/.

On Mon, Jun 7, 2021 at 3:07 PM Abhishek Joshi @.***> wrote:

Last one! Do you have any reputable sources you can recommend?

Thanks!

On Mon, Jun 7, 2021 at 6:06 PM Kris Winer @.***> wrote:

Depends where you buy from. Reputable sources, never, from China about half the time...

On Mon, Jun 7, 2021 at 2:55 PM Abhishek Joshi @.***> wrote:

Hi. Thanks for your response.

From your experience, how often are these MPU's dead from factory on arrival?

https://www.banggood.com/5Pcs-MPU-9250-GY-9250-9-Axis-Sensor-Module-I2C-SPI-Communication-Board-For-Arduino-p-1233671.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856290092 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABTDLKVNVPHWSMWJ4LDYQ4LTRU54PANCNFSM46HAAGZQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856295185 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABCRJHLZZN4HWJFVAMJK4TTTRU7HLANCNFSM46HAAGZQ

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/461#issuecomment-856295645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKW3NWXC4FYSOMVN64LTRU7LXANCNFSM46HAAGZQ .