kriswiner / MPU9150

Arduino sketch for MPU9150 9DoF with AHRS sensor fusion
75 stars 36 forks source link

how to access the magnetometer #8

Open PatelKishanJ opened 7 years ago

PatelKishanJ commented 7 years ago

hello kriswiner, actually i have used mpu9250 library and i have got reading of the accelerometer and gyrometer data,but when i tried to communicate with mpu9250,i could not. Means that after reading data of accel. and gyro ,i have enable the bypass_i2c.then when try to something write/read with magnetometer_address(0x0C) and send start_condition of i2c ,it could not get acknowledgement.

kriswiner commented 7 years ago

If you perfrom an I2C scan, which devices show on the I2C bus after enabling bypass?

PatelKishanJ commented 7 years ago

thank you. actually because of some hardware issue,it cause communication problem with the magnetometer. now,i can get all data,see below. are all right?

ax ay az (meter/second square) -0.02 -0.01 -0.32

gx gy gz (degrees/second) -0.33 29.65 -0.00

mx my mz (milliGauss) -461.03 -275.13 5563.25

temperature=23.19 degrees centigrade

kriswiner commented 7 years ago

The mag values seem about 10x too large, and the gyro values are very large indeed if the device is at rest.

On Sun, Mar 5, 2017 at 10:30 PM, jenextech notifications@github.com wrote:

thank you. actually because of some hardware issue,it cause communication problem with the magnetometer. now,i can get all data,see below. are all right?

ax ay az (meter/second square) -0.02 -0.01 -0.32

gx gy gz (degrees/second) -0.33 29.65 -0.00

mx my mz (milliGauss) -461.03 -275.13 5563.25

temperature=23.19 degrees centigrade

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU-9150/issues/8#issuecomment-284313485, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1quQnbCAthQQodYSTTzSPr4-LJK3Qks5ri6fxgaJpZM4MQ1kr .

PatelKishanJ commented 7 years ago

okay.so,what should i change?.. any specific setting or anything.. and i have 1 question that how can i sure that raw data is right?..any hint?..

kriswiner commented 7 years ago

check units

On Tue, Mar 7, 2017 at 10:43 PM, jenextech notifications@github.com wrote:

okay.so,what should i change?.. any specific setting or anything.. and i have 1 question that how can i sure that raw data is right?..any hint?..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU-9150/issues/8#issuecomment-284961123, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qmO8VamN1hwL4OYvgQ284dyVM06zks5rjk4EgaJpZM4MQ1kr .