Hi All, I’m extremely frustrated here with an MPU6050 that only outputs zeros for ax, ay, az, gx, gy, gz. I’ve read online that the chip boots up into sleep mode, yet when i wake the it up it still only shows zero.
I’ve used about 5 different code/sketches found online, including Jeff Rowlands awesome code/library.
I purchased 5 MPU6050’s directly from digikey. Only the chips, no breakout board or anything.
I made a custom board with a SAMD21 arm cortex which is reading the MPU6050. I’ve attached my schematic and a pic of my board.
I’m going crazy trying to solve this. One idea maybe my SDA and SCL resistance values are incorrect. I started with 10k ohm on i2c, didnt work. Then went to 2.2k on the i2c, didnt work. i dont have any 4.7k unfortunately.
I thought maybe my board was poor or faulty, but i’ve made 3 PCBs so far (different layout each time) and each one the MPU6050 shows zeros.
I purchase these chips right from digikey, still in the cut tape. I tried 3 of the 5 MPU6050 so far, all yield zeros.
Now i’ve tried Jeff’s code, and every example code in existence with same result.
Note that the i2c scanning code finds the MPU6050 just fine, and it shows 0x68 as the chips address.
Some thoughts, i broke out the AD0 to one pin of the SAMD21, and the INT to another pin, but i’m not using either in code. I dont think they are needed. When i use a multimeter these 2 pins are about 95mV when maybe they should be grounded?
I doubt that all 5 chips i bought are faulty, so must be something i’m doing wrong. But i think i tried everything.
My board works as i can flash other code just fine, blink LEDs, etc. Kinda struggling here! thanks for any help.
EDIT: I did check the connections with an oscilloscope and didnt see anything that caught my eye with errors etc…
Also i do have break out board MPU6050s from amazon, and they work just find with the same exact code.
EDIT2: I located some 4.7k resistors and just tried them on SCL/SDA, no change still zeros!!