# MPU6050 Example not working

**URL:** <https://forum.core-electronics.com.au/t/mpu6050-example-not-working/16873>\
**Category:** Uncategorized\
**Created:** [18 April 2023 20:35 UTC](https://forum.core-electronics.com.au/t/mpu6050-example-not-working/16873 "2023-04-18T20:35:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fritz241655](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@Fritz241655](https://forum.core-electronics.com.au/u/Fritz241655)\
**Post date:** [18 April 2023 20:35 UTC](https://forum.core-electronics.com.au/t/mpu6050-example-not-working/16873/1 "2023-04-18T20:35:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [19 April 2023 00:55 UTC](https://forum.core-electronics.com.au/t/mpu6050-example-not-working/16873/2 "2023-04-19T00:55:49Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [19 April 2023 05:50 UTC](https://forum.core-electronics.com.au/t/mpu6050-example-not-working/16873/3 "2023-04-19T05:50:22Z")

</div>

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](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/d/d4ed4a1648b08f99b9c34ab656117479e2d83a57.png)
