hopefully someone can help me to figure out why the interrupt mechanism of the MPU-6050 does not work for my sketch.
I attached the sketch that I’m using for my project. It’s basically the default example of the ic2devlib with the DMP feature.
I attached the MPU-6050 to my arduino leonardo as follows:
MPU GND to GND
MPU VCC to 3.3V
MPU SDL + SCL to SDL and SCL on the arduino board
MPU INT to PIN 3 as the manual says that this is the interrupt 0 PIN for leonardo.
When I start the sketch I only see the message “Initializing I2C devices…” on the serial console and nothing other happens. If I remove the wire connection of the INT pin the program goes further and prints many many messages, but as I far as I understand it correctly, the interrupt is not triggered actually.
I also added some debug output to the dmpDataReady() function which is also invoked, but I don’t understand why, because the wire is not connected.
Is there anyone that has similar problems, or can help me to figure out how I can solve that issue?
Thanks for your help.
Gyro.ino (14.8 KB)