MPU6050 crashes after uploading new sketch on Arduino Due

Hello,

I am using a MPU6050 on the Arduino Due with the libraries written by Jeff "the one" Rowberg and I keep having my MPU650 crash after a new sketch is uploaded. After some googling I found that having the INT pin connected should resolve this, but all the examples are for the Arduino Uno. I tried connecting the INT pin to DP2 on the Due and it did not work. Has anyone else had this problem, and if so then what did you do to correct it?

The code I am trying to upload is a simple calibration sketch. Once the MPU6050 crashes, no amount of hitting the reset button on the Due helps. I have to restart the power to the MPU6050 before it starts working again.

I have tried the solution here but it did not work: [Solved] MPU6050 and DUE - Arduino Due - Arduino Forum

MPU6050 source code: i2cdevlib/Arduino/MPU6050 at master · jrowberg/i2cdevlib · GitHub

Thanks for your help!

Please post a complete wiring diagram and a link to the used breakout board!

This might help:

https://forum.arduino.cc/index.php?topic=162727.0

Pylon - I am using the following connection to a breadboard

MPU6050 --> Arduino Due
GND --> GND
VCC --> 5V
SCL --> SCL (Pin 21)
SDA --> SDA (Pin 20)

Usually there is another pin going to the interrupt for an Uno, but the Due does not seem to be able to replicate such functionality.

ard_newbie - that is the post I said I tried and it did not work

MPU6050 --> Arduino Due
GND --> GND
VCC --> 5V
SCL --> SCL (Pin 21)
SDA --> SDA (Pin 20)

The MPU-6050 (the chip) is a 3.3V device, so if you actually connected Vcc to 5V you fried it. That's why I asked for the link to the breakout board or better it's schematics, as the content of that board is important, most contain a voltage regulator, some even level converters.

I am using this MPU6050: https://www.amazon.com/MPU-6050-MPU6050-Accelerometer-Gyroscope-Converter/dp/B008BOPN40/ref=sr_1_3?ie=UTF8&qid=1540241071&sr=8-3&keywords=mpu6050

This board allows for 5Vs, sorry for the confusion.

This board allows for 5Vs, sorry for the confusion.

The board does not allow for 5V IO, only 5V power. It does not have IO level shifters.

If you have exposed SDA and SCL to 5V, it is probably damaged.

The board does not allow for 5V IO, only 5V power. It does not have IO level shifters.

OP is connecting it to a Due.

@OP: Post the code you're actually testing with!