Hello
I want to calibrate a MPU9250 DMP (accelerometer and gyroscope)
I try to use the same procedure as for the MPU6050 DMP
// Arduino sketch that returns calibration offsets for MPU6050 // Version 1.1 (31th January 2014)
// Done by Luis Ródenas <luisrodenaslorda@gmail.com>
// Based on the I2Cdev library and previous work by Jeff Rowberg <jeff@rowberg.net>
// Updates (of the library) should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
// These offsets were meant to calibrate MPU6050's internal DMP, but can be also useful for reading sensors.
// The effect of temperature has not been taken into account so I can't promise that it will work if you
// calibrate indoors and then use it outdoors. Best is to calibrate and use at the same room temperature.
/* ========== LICENSE ==================================
I2Cdev device library code is placed under the MIT license
Copyright (c) 2011 Jeff Rowberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
This file has been truncated. show original
For MPU9250 values do not converge to "accel and gyro deadzones".
Do you have an idea or a good procedure to communicate to me
Thank you
For the gyro, most people simply add up 100-500 measurements for each axis while the sensor is at rest, average to get the offsets, and subtract those offsets from later readings.
For the accelerometer and magnetometer, this tutorial describes the very best procedures.
thank you for your reply!!
For the Gyro, if you have a sample code I am interested
the tutorial is complicated.
You would not have a simpler procedure. it can be a little less precise?
thank you
Sometimes even life itself is complicated. To get the best possible results, follow the linked tutorial.
Without calibration, the magnetometer is almost always useless. To get results that are usable, you can follow this simplified and much less accurate procedure .