i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

SPARKFUN MPU6050 AND ARDUINO UNO - zeros!!!!

Open reut10 opened this issue 12 years ago • 5 comments

hi! I connect my arduino to the mpu 6050 in this way: VDD and VIO of MPU6050 to 3.3V from the Arduino board. SDA ( Serial Data ) pin from MPU6050 board to Analog pin 4. SCL ( Serial Clock ) to Analog pin 5. Ground - ground . i try to use this libarary: https://github.com/jrowberg/i2cdevlib and i get zeros!!! what's wrong!?!?!? thank you, reut.

reut10 avatar Feb 24 '14 10:02 reut10

Hello,

You need to connect the interrupt pin (INT) on MPU6050 to Arduino's pin #2 as well. But I imagine that it should not have shown zeros without INT; should've said "Waiting for first interrupt...".

  • Aditya

On Mon, Feb 24, 2014 at 5:14 AM, reut10 [email protected] wrote:

hi! I connect my arduino to the mpu 6050 in this way: VDD and VIO of MPU6050 to 3.3V from the Arduino board. SDA ( Serial Data ) pin from MPU6050 board to Analog pin 4. SCL ( Serial Clock ) to Analog pin 5. Ground - ground . i try to use this libarary: https://github.com/jrowberg/i2cdevlib and i get zeros!!! what's wrong!?!?!? thank you, reut.

Reply to this email directly or view it on GitHubhttps://github.com/jrowberg/i2cdevlib/issues/61 .

pagalFromAgra avatar Feb 24 '14 11:02 pagalFromAgra

I use the example of mpu6050 raw, I still need to use int? thank you again!!!

reut10 avatar Feb 24 '14 11:02 reut10

I'm not sure if this will help you but I had a similar problem and setting the PWR_MGMT registers to 0 solved mine ;) I'm going to dig a bit more and tell you if I find a clean way to do it...

honnet avatar Feb 24 '14 22:02 honnet

@reut10 If ever you haven't solved your problem, try adding a delay just before starting initializing the IMU (to find the right time, dichotomy is your friend). I hope you didn't get a Heisenbug... May the force be with you!

honnet avatar Mar 03 '14 03:03 honnet

Hi, check this example maybe this will help you. https://www.youtube.com/watch?v=D5HY_tjW1lc

circuitmagic avatar Apr 20 '14 16:04 circuitmagic