MPU6050 Example not working

Hello!

I tried to copy the example of how to use the MPU6050 unit and got the following error message:

%Run -c $EDITOR_CONTENT
PiicoDev could not communicate with module at address 0x68, check wiring
Traceback (most recent call last):
File “”, line 5, in
File “PiicoDev_MPU6050.py”, line 79, in init
File “PiicoDev_MPU6050.py”, line 75, in init
OSError: [Errno 5] EIO

I already checked the wiring which is correct and for the address i even modified the mpu6050 object such that i could iterate through all possible addresses yet nothing worked. What should I do?

2 Likes

Hi Fritz,

True to form, MicroPython and PiicoDev are giving you some pretty clear errors. It may be a bad connection of some sort, or a failed MPU6050.

Are you able to share some photos of your setup? We might spot something.

Keen to get to the bottom of this one!

1 Like

Hey Fritz,

Thanks for posting! Something else that’s worth checking quickly is that all of these pins are open, if they’re closed or shorted out the address of the MPU6050 may change.

image