# MPU6050 datasheet register map confusion

**URL:** <https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143>\
**Category:** 3rd Party Boards\
**Created:** [July 20, 2023, 7:39pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143 "2023-07-20T19:39:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tubos](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tubos/32/1099919_2.png) [@tubos](https://forum.arduino.cc/u/tubos)\
**Post date:** [July 20, 2023, 7:39pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/1 "2023-07-20T19:39:18Z")

</div>

I have some demo code and it works , but when i look up the documentation , some registers used in the code arent even listed.

For example writeByte(MPU\_ADDR, MOT\_THR, 5); //Write the desired Motion threshold to register 0x1F

Register 0x1F ( 31 ) is not even mentioned in the register map documents i found.  
Anyone have some experience that can explain this?

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [July 20, 2023, 7:53pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/2 "2023-07-20T19:53:37Z")

</div>

When the MPU-6050 was released, only parts of it were documented.  
Even the 'dmp' processing unit was kept a secret 👻  
At Invensense they thought that was a good idea 💩

Then someone reverse-engineered firmware for the 'dmp', so the 'dmp' could be used by Arduino users. Others found that some registers were offset values.  
After some years, Invensense also released the rest of the documentation of the chip. You are probably looking at the original documents. If I remember it well, there were four documents.

If you bought your MPU-6050 from AliExpress/Amazon/Ebay then it is a counterfeit.  
Can you buy a more recent and more normal sensor ?

---

<div class="post-metadata">

**Author:** ![tubos](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tubos/32/1099919_2.png) [@tubos](https://forum.arduino.cc/u/tubos)\
**Post date:** [July 20, 2023, 8:03pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/3 "2023-07-20T20:03:00Z")

</div>

I checked out different versions of the document some registers are never mentioned.

For example for using and setting motion detect threshold function for the int pin.

I guess i have a clone it is the GY521 but it seems to work fine.

Any other good alternatives for motion detect with int function and esp support?

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [July 20, 2023, 8:14pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/4 "2023-07-20T20:14:03Z")

</div>

Look for the DMP documentation, but who knows if the counterfeits actually implement it?

There are better sensors these days, and they are much better documented, for example the [LSM6DS3](https://www.adafruit.com/product/4503).

---

<div class="post-metadata">

**Author:** ![tubos](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tubos/32/1099919_2.png) [@tubos](https://forum.arduino.cc/u/tubos)\
**Post date:** [July 21, 2023, 7:23am UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/5 "2023-07-21T07:23:22Z")

</div>

I tried to locate the official DMP documentation but i failed , all broken links.  
I did find that it was officially released in 2014 by TDK.

I got the clone to do what i need it to do , without using a library , but i would have liked to tweak some settings.

I understand the mpu6050 is old and obsolete , but i have a few lying around to play with.

What it does now is generate a 50us pos pulse when one of the acc values reaches a threshold ( motion detect ) so it can wake up my esp to send a post request.

---

<div class="post-metadata">

**Author:** ![tubos](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tubos/32/1099919_2.png) [@tubos](https://forum.arduino.cc/u/tubos)\
**Post date:** [July 30, 2023, 3:16pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/6 "2023-07-30T15:16:11Z")

</div>

Does anyone know if the gyroscope is needed for motiondetect to work with the mpu ?

Otherwise i could disable gyroscope to save on batt power

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 26, 2024, 3:16pm UTC](https://forum.arduino.cc/t/mpu6050-datasheet-register-map-confusion/1150143/7 "2024-01-26T15:16:38Z")

</div>

Closed on January 26, 2024, 3:16pm UTC

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