i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

dmpGetMag returning zeros

Open marcbishara opened this issue 11 years ago • 4 comments

using function: https://github.com/marcbishara/i2cdevlib/blob/master/Arduino/MPU6050/MPU6050_9Axis_MotionApps41.h#L753

Returns 0,0,0 Is that an outstanding issue or am I doing something wrong in setup?

marcbishara avatar Feb 03 '15 02:02 marcbishara

I have the same problem!

Monax111 avatar Feb 28 '16 16:02 Monax111

I have the Arduino Nano, 2 MPU6050, 2 HMC5883L I want to get the output array with 20 values (the first board {3, 3, accelerometer, magnetometer 3, temperature}), the second board {3, 3, accelerometer, magnetometer 3, temperature}) Now I'm trying to make it work the first board (MPU6050+HMC5883L series connection). But i have the magnetometer (0.00,0.00,0.00); What do you think, what's the problem? my scheme

Monax111 avatar Feb 28 '16 16:02 Monax111

Have you tried adding pull-up resistors?

On Sunday, 28 February 2016, Monax111 [email protected] wrote:

I have the Arduino Nano, 2 MPU6050, 2 HMC5883L I want to get the output array with 20 values (the first board {3, 3, accelerometer, magnetometer 3, temperature}), the second board {3, 3, accelerometer, magnetometer 3, temperature}) Now I'm trying to make it work the first board (MPU6050+HMC5883L series connection). But i have the magnetometer (0.00,0.00,0.00); What do you think, what's the problem? my scheme https://pp.vk.me/c630530/v630530113/1b27d/Q8F3Sna7UU8.jpg

— Reply to this email directly or view it on GitHub https://github.com/jrowberg/i2cdevlib/issues/137#issuecomment-189900495.

Recontech avatar Feb 29 '16 00:02 Recontech

The AK8975's address is 0x0C,but the code give the address is 0x0E, so change the address to 0x0C.

yang614 avatar Jul 07 '16 08:07 yang614