cancel
Showing results for 
Search instead for 
Did you mean: 

MPU6050 Az is dcreasing in +Z direction

testbenchmark
Associate III

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?

1 REPLY 1
Peter BENSCH
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.