Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARKFUN MPU6050 AND ARDUINO UNO - zeros!!!! #61

Closed
reut10 opened this issue Feb 24, 2014 · 5 comments
Closed

SPARKFUN MPU6050 AND ARDUINO UNO - zeros!!!! #61

reut10 opened this issue Feb 24, 2014 · 5 comments

Comments

@reut10
Copy link

reut10 commented Feb 24, 2014

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.

@pagalFromAgra
Copy link
Contributor

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 notifications@github.com 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//issues/61
.

@reut10
Copy link
Author

reut10 commented Feb 24, 2014

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

@honnet
Copy link
Contributor

honnet commented Feb 24, 2014

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
Copy link
Contributor

honnet commented Mar 3, 2014

@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!

@circuitmagic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants