# Mpu-6050 gy-521

**URL:** https://community.simplefoc.com/t/mpu-6050-gy-521/1155
**Category:** hardware support
**Created:** [September 2, 2021, 9:05pm UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155 "2021-09-02T21:05:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![German\_io](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@German\_io](https://community.simplefoc.com/u/German_io)
#### Post date: [September 2, 2021, 9:05pm UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/1 "2021-09-02T21:05:56Z")

</div>

I have some problems with mpu6050. When I use Serial.println(getPitchIMU) and I rotate the module the data from sensor changing very slow. What is it ?

---

<div class="post-metadata">

### Author: ![Antun\_Skuric](https://community.simplefoc.com/user_avatar/community.simplefoc.com/antun_skuric/32/21_2.png) [@Antun\_Skuric](https://community.simplefoc.com/u/Antun_Skuric)
#### Post date: [September 3, 2021, 5:39am UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/2 "2021-09-03T05:39:29Z")

</div>

Hey @German_io,

We’ve seen your messages, but it’s really hard to say from the your description.  
Did you try the sensor alone, without the SimpleFOC library?  
Does it work well?  
I did have some issues with mpu6050 I’ve bought on Amazon. I’ve bought pack of 4 and only two were good.

What does it mean it changes slow?  
Mayb it is the issue with the mpu settings, the filtering or something.

What MCU ate you using?  
Do you have the i2c pullups?

---

<div class="post-metadata">

### Author: ![German\_io](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@German\_io](https://community.simplefoc.com/u/German_io)
#### Post date: [September 3, 2021, 7:46am UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/3 "2021-09-03T07:46:24Z")

</div>

Im using stm32 in first case and esp32 in second. Im using shielded cable from MPU.  
But im not using i2c pullups.

---

<div class="post-metadata">

### Author: ![Antun\_Skuric](https://community.simplefoc.com/user_avatar/community.simplefoc.com/antun_skuric/32/21_2.png) [@Antun\_Skuric](https://community.simplefoc.com/u/Antun_Skuric)
#### Post date: [September 3, 2021, 8:09am UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/4 "2021-09-03T08:09:58Z")

</div>

Does the sensor work without the library code?

I was not be able to make the MPU work without the pull-ups really 😃

---

<div class="post-metadata">

### Author: ![German\_io](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@German\_io](https://community.simplefoc.com/u/German_io)
#### Post date: [September 3, 2021, 8:15am UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/5 "2021-09-03T08:15:41Z")

</div>

it works but speed slow to. Im using your code for balancing robot and testing MPU.  
When I watch. youtube demonstration video about robot Im noticed that you speed changing angles slow to.

[![](https://img.youtube.com/vi/f9GJqqUpL2w/maxresdefault.jpg "Arduino BLDC balancer robot - Tutorial") ](https://www.youtube.com/watch?v=f9GJqqUpL2w&t=311)

---

<div class="post-metadata">

### Author: ![German\_io](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/g/bb73d2/32.png) [@German\_io](https://community.simplefoc.com/u/German_io)
#### Post date: [September 3, 2021, 12:30pm UTC](https://community.simplefoc.com/t/mpu-6050-gy-521/1155/6 "2021-09-03T12:30:43Z")

</div>

So I have an idea about my problem. Its low pass filtering angle. It the reason of slow speed;
