MPU6050 Calibration

Hello people!

I’m completely new to Arduino, In fact, a newbie in IOT.
I’m currently working on my first project where I’m making use of MPU6050 accelerometer and gyro sensor to detect Change in motion of an object, Angle of change, Rate of change

I have a Couple of Questions to which I’m finding difficult to get my head around

  1. Gyroscope gives me the angle of rotation when I rotate Mpu6050, But I don’t understand the angle
    given is the angle of rotation respect to what?

  2. What are Offests and How to find Offset for your MPU6050

P.s : I know my questions might be very silly to many, But I’m a new guy in this field, so pardon me!

But I don't understand the angle given is the angle of rotation respect to what?

A gyro doesn't give an angle, it gives a rate of change of angle, in radians per second.

What are Offests and How to find Offset for your MPU6050

The gyro offsets are the measured outputs when the gyro is at rest. These are simple to measure and the average values should be subtracted from subsequent measurements. However, the offsets depend on temperature.

Look here for a good overview of accelerometer/magnetometer calibration.

So basically by initializing offsets gyro measure rate of change(orientation) with respect to the given offests?

This is the Calibration code I use to set the offsets for DMP

Also Download this library

and try the other sketch :slight_smile:
the int pin needs to be connected to pin 2 for best results

Z

MPU6050_calibration.ino (7.64 KB)

MPU6050_Latest_code.ino (7.95 KB)