I am trying to connect a MPU 6050 (GY-521) to my Arduino Uno and read the values. It took me a lot of hours to understand how this works and I feel like I understand it but it is impossible for me to read values so I feel like the sensor might be broken.
That is what I have attached:
GND → GND
VCC → 3,3V
SCL → A5
SDA → A4
You can see my setup in the attachment of this post to make sure that I didnt mix anything up.
Since I could make my own code working I tried some example codes I found on the internet like the one from the playground or from the I2C Devlib but none of them is working for me.
The output is always 0 no matter how I rotate the sensor or it can’t be found if there is a connection check implemented.
So I read about I2C Scanners and found two of them and tried them with my setup but even those programms couldn’t find my MPU 6050. So is it possible that my sensor isn’t working correctly anymore?
I wasn’t sure whether to connect the VCC to 3.3V or 5.0V so I tried both versions. Was it maybe wrong so too much voltage destroyed it? I couldn’t find a clear answer on this either cause the playground says that it’s supposed to be 5.0V while a lot of member in forums or on stackexchange or whatever say that it’s supposed to be 3,3V.
Another problem is that the sensor’s LED is struggling somethimes. It it supposed to light up all the time?
I have no idea anymore what I could do. So should I try buying a new sensor or is there something I am doing wrong or I could at least try before I get a new one?
So it is indeed necessary to solder the pins. We didn’t thought about this because we connected VCC and GND without soldering as well and the LED was working fine whereby we assumed that it should be enough to stick them together for now. Seems like we were wrong and I’ve got now three working gyros at home.