MPU6050 - Display raw amplitude

Hello everybody,

First of all: I'm fairly new to Arduino programming stuff (i had to do this topic for my university project about predictive maintenance).

I use an Arduino Nano and also a MPU6050. Furthermore I read the instructions and watched a few guides to understand the values I get from the MPU.

For a better visualization, we decided to bring those data onto a dashboard for an efficient - and easier understanding.

  • Now to my problem
    I want to display the raw movement - hard to describe.
    I just want a bar which fills or decelerate with the movements intensity. (all values must be positive)
    I dont want the direction - just that the object attached to the sensor moves.

  • but I don't knwo whether I can just sum up the values or I can use a library module or a formula since I don't find such an easy use case for the MPU6050.

If someone could give me a hint or s.th. like that - that would makes me very happy :slight_smile:

Sincerely
Arduino Newbie Kilneana

The MPU-6050 has an accelerometer and gyro.
The accelerometer is very sensitive for vibrations.
The gyro drifts.

What do you want to measure ? I don't know what you mean with raw movement.

If you would use the raw accelerometer values, then you must know the values when it is not moving.
Adjust the values with the values when it is not moving and calculate the resulting vector.
A 3-axis vector is calculated as: vector size = sqrt ( xx + yy + z*z )

You might need some averaging, because it is very sensitive for vibrations.