sparkfun / SparkFun_MPU-9250-DMP_Arduino_Library

Arduino library for the MPU-9250 enabling its digital motion process (DMP) features.
Other
227 stars 152 forks source link

Problem with magnetometer #10

Open Jef35 opened 7 years ago

Jef35 commented 7 years ago

I can read the gyroscope and the accelerometer, but not the magnetometer, the values of mx, my, and mz are always zero.

iamchrisb commented 7 years ago

I think some code would help, you might provide a link to your github or something. Besides your problem, I can always refer to kris winers github take a look in the issues section I linked, you may find help, unless you are using the DMP, because kris does not recommend to use it.

Jef35 commented 7 years ago

I'm using DMP

savvn001 commented 5 years ago

Did you ever fix this? Have the same problem also. Accel and gyro works fine but can't get any readings from mag.

savejeff commented 4 years ago

do you use the FIFO ? there is a bug with enabling the fifo that disables master mode of aux i2c. see my issue on that from a few days ago