hi, my name is Jake and I need help.
I am having troubles with the mpu6050. I have tried wiring it up according to a few diagrams and followed a few instruction pages to try and get it working and displaying its orientation, but none have worked. And it has taken me a while but I am finally reaching out to a community for support. I have tried using arduino-mpu6050-master by jarzebski. I have also tried the library titled MPU6050 by electronic cats and finally mpu6050_light by rfetick.
Most of these come back with a failed to connect error message (if they have one) otherwise they just don't do anything. I am thoroughly confused and have spent to much time on this with little knowledge on how this all actually works and I really need help.
I have been wiring it up as seen here to my aurdino mega2560
I'm afraid I have to spoil the fun:
The MPU-6050 is a 3.3V sensor and the Arduino Mega 2560 has a 5V I2C bus. The SDA and SCL signals can damage the MPU-6050.
You need a I2C level shifter, some modules have onboard level shifter.
The first thing to do is to run a I2C Scanner.
For example the I2C Scanner from Nick Gammon.
Perhaps it is also in the Arduino IDE menu: File / Examples / Wire / i2c_scanner
Check the module with a magnifier to see if the soldering is okay.
Do you use a breadboard and jumper cable ? A breadboard can have bad contacts and jumper cables can be broken.