Skip to main content
Graduate
August 30, 2024
Question

MPU6050 Az is dcreasing in +Z direction

  • August 30, 2024
  • 1 reply
  • 899 views

Hello everyone,

 

I am using MPU6050 with STM32F44VET7

 

When I read the values of MPU6050 its seems normal. I checked my codes twice nothing wrong its standart MPU6050 library.

testbenchmark_2-1725007334447.png

 

testbenchmark_0-1725007194639.png

testbenchmark_1-1725007307724.png

 

Az is = 1.1

but when I quickly raise the card in the +Z direction, I expect Az to increase but instead I see it decrease

when I quickly raise the card in the -Z direction, I expect Az to decrease but instead I see it increase

Can u explain me the logic of this?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 30, 2024

    Regardless of the fact that this is a problem with a sensor from the manufacturer TDK (I don't know their library either), it's just a logic problem: why don't you simply interpret the values with an inverted sign?

    Regards
    /Peter