# MPU6050 - doesn't detect any movement

**URL:** <https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964>\
**Category:** Hardware Interfacing Questions\
**Created:** [November 29, 2019, 3:05pm UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964 "2019-11-29T15:05:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elangiocola](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@elangiocola](https://forum.xod.io/u/elangiocola)\
**Post date:** [November 29, 2019, 3:05pm UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/1 "2019-11-29T15:05:16Z")

</div>

Good evening guys !  
I have some problems with my MPU6050. It doesn’t detect any movement. I have red other comments about this sensor but I didn’t catch where is my problem.  
Thank you. I am a beginner. ![1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4a07623f638c998de3f171e323f97dfcf411f6a4.jpeg)

 ![02](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/25140dbf783ac81e4559340fc0172d9324bbefd4.jpeg)

---

<div class="post-metadata">

**Author:** ![robertspark](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@robertspark](https://forum.xod.io/u/robertspark)\
**Post date:** [November 30, 2019, 8:01am UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/2 "2019-11-30T08:01:32Z")

</div>

Where did you get the mpu6050 node?

I can only find this one in the library  
[https://xod.io/libs/yzheka-m/mpu-9250/mpu-9250/](https://xod.io/libs/yzheka-m/mpu-9250/mpu-9250/)

I have both the mpu6050 and the mpu9250 hardware and can help if you require… But cannot locate the node to test

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [November 30, 2019, 11:31am UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/3 "2019-11-30T11:31:00Z")

</div>

The node can be found in this library:  
[https://xod.io/libs/gabbapeople/mbot-lib/](https://xod.io/libs/gabbapeople/mbot-lib/)

---

<div class="post-metadata">

**Author:** ![robertspark](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@robertspark](https://forum.xod.io/u/robertspark)\
**Post date:** [November 30, 2019, 12:05pm UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/4 "2019-11-30T12:05:58Z")

</div>

Thanks I’ll take a look

I thought the search function would be a bit more intuitive as it’s not picking up on that library or node

[https://xod.io/libs/?q=MPU6050](https://xod.io/libs/?q=MPU6050)

---

<div class="post-metadata">

**Author:** ![robertspark](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@robertspark](https://forum.xod.io/u/robertspark)\
**Post date:** [November 30, 2019, 3:43pm UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/5 "2019-11-30T15:43:58Z")

</div>

suggestion (I have not tried it yet) but am just looking at the code of the node:

change the “INT” pin from Digital Pin11 to pin 2 or pin 3 of the arduino (+ change your wiring accordingly…)

[https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/](https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/)

(I have not worked out if the interrupt HAS to be a hardware interrupt pin or if it can be any pin to which an interrupt can be attached [a software interrupt])

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 14, 2020, 8:37am UTC](https://forum.xod.io/t/mpu6050-doesnt-detect-any-movement/2964/6 "2020-07-14T08:37:14Z")

</div>

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