MPU 6050 sending gibberish data to the serial monitor

k, will try that

k, I have some readable response -

Initializing I2C devices...
Testing device connections...
MPU6050 connection failed

I know that i have wired everything properly, what should I do?

and after that this is what is displayed -

a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0

MPU6050 = NO GOOD.

but, i tried it on multiple mpus

If plugged and MPU connection failed Then either library or the MPU is no good. (check with the manufacture)
If plugged and Monitor did not show texts Then it's the MPU = no good too.
If it works now with plugged .
You are OK?

The mpu i bought had pretty good reviews

MPU causes the system failed . . . Nothing I can help further.

Thank you for your help

Hi,
Can you please post some pictures of your project so we can see your component layout?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Here you go

Hi,

What do you mean?
Does that module work on another controller, but not this particular UNO?

Have you tried connecting to the SDA and SCL connections on the other corner of the UNO PCB?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Hi, I meant that I tried uploading the code on other mpu 6050s too, but it didn't give readable data, and yes, I have tried to connect SDL AND SCL connections to the other corner of the board. I have tried to make it work on unos as well as nanos but with no fruitful result

With the 6050 unplugged your software gives meaningful readout ====> It's good.

OBVIOUSLY it is the 6050 that cause the serial communication disrupted. most likely the signals are not raised high enough for the monitor to recognize HI/LOW

Now you need to debug the hardware by trying see which one is it that makes things fail it one at a time:

Power it from external 5V source (other UNO?) GROUND shared
SDL & SCL now are only for communication signals. The 6050 should not draw any large current
If it still failing means it causes the TX/RX signals unstable. Then try to unplug SDL /SCL one at the time to narrow down which one is it.

Hope this helps (Nothing of your fault).

Hi, i will surely try this over the weekend

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.