If you don't want to set up a graphical interface for calibration a gyroscopic sensor, you can do a simple zero-g offset calibration using just the serial interface. The nice thing about this is it will work for any and all boards, and does not require any additional software installation!

This example can be run by any Arduino compatible, from a Arduino UNO/ATmega328 or better

Step 1 - Upload the SensorLab zero rate simplecal Example

We have a simple sketch that will read a few seconds of gyroscope data and calculate zero-rate offset for you

Open up the Adafruit_SensorLab->calibration->gyro_zerorate_simplecal

Step 2 - Open Serial Port

Open the serial port to launch the SensorLab calibration. You should see your gyroscope detected


You'll see a countdown to warn you that the gyro must be kept perfectly still during calibration

Place the board on a stable flat surface and hold it down with a book or something. The board will take 5 seconds of data and print at each reading

The first three numbers are the current gyro readings

The middle three numbers are the average values (zero rate offsets) in radians/second.

The last numbers are the peak-to-peak values.

At the end, you'll get a summary:

In this case shown above, the screenshot indicates x = 0.0003, y = 0.01, z = 0.0004 rad/s

You may want to take a few measurements to get a couple calculations!

This guide was first published on Jan 26, 2020. It was last updated on Mar 08, 2024.

This page (Simple Gyro Calibration) was last updated on Mar 08, 2024.

Text editor powered by tinymce.