I am trying to run the basic DMP6 sketch with my MP6050 sensor. When doing so, I get the output:
Initializing I2C devices...
Testing device connections...
MPU6050 connection successful
Send any character to begin DMP programming and demo:
Initializing DMP...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
However, it appears to be hung. Even after waiting for some time, the message remains the same and nothing else is printed.
I would really appreciate your help with possible solutions, thanks.
Which Arduino are you using and which Arduino pin did you wire the MPU6050's INT pin to?
Pete
@el_supremo
I am using the Arduino pro mini 5v and have wired the INT pin to pin 2
The library does its own check of the I2C. But, just to be sure of it, try running an I2C scanner to see if it also comes up with the I2C address 0x34.
Pete
el_supremo:
The library does its own check of the I2C. But, just to be sure of it, try running an I2C scanner to see if it also comes up with the I2C address 0x34.
Pete
If I remember correctly I had similar issues with the example code in the library I believe you are using.
I broke this code down into functions corrected the startup hang issue and resolved other overflow issues.
Make sure the int pin on the mpu6050 is connected to pin2 to trigger the interrupt if you would like to use pin 3 make sure you modify the line in my attached code:
#define interruptPin 2
Z
Another thought, What voltage are you applying to the Vcc pin on the MPU6050 breakout
It has a regulator to drop the 5V down to 3.3 so you should be applying 5V to the MPU VCC pin

MPU6050_Latest_code.ino (7.98 KB)
I am applying 5v volts to the pin so that shouldn't be the problem. I will test the code you sent, thank you so much for the help.