All Projects → kkpoon → CalibrateMPU6050

kkpoon / CalibrateMPU6050

Licence: MIT License
Calibrate MPU6050 procedure

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to CalibrateMPU6050

CodeDroneDIY
The most simple, but working, quadricopter flight controller from scratch, using Arduino Uno/Nano.
Stars: ✭ 68 (+195.65%)
Mutual labels:  mpu6050
esp32 snow
esp32 evk
Stars: ✭ 74 (+221.74%)
Mutual labels:  mpu6050
mpu6050
MPU6050 Arduino Library
Stars: ✭ 141 (+513.04%)
Mutual labels:  mpu6050
MPU6050
STM32 HAL library for GY-521 (MPU6050) with Kalman filter
Stars: ✭ 114 (+395.65%)
Mutual labels:  mpu6050
MPU60X0
Fast, Lightweight STM32 I2C HAL Driver for the MPU6000/MPU6050 IMU
Stars: ✭ 15 (-34.78%)
Mutual labels:  mpu6050
esp8266-sensor-mpu6050
A set of arduino sketches that use the esp8266 and the MPU-6050
Stars: ✭ 17 (-26.09%)
Mutual labels:  mpu6050
pi-cloud-frame
An icloud-powered digital frame running on a Raspberry Pi. Downloads a random sample of photos from your icloud account, crops them to the correct aspect ratio and displays them. Supports parallel slideshows, interactive menus, GPS/EXIF lookup and auto rotation via a MPU-6050 accelerometer.
Stars: ✭ 21 (-8.7%)
Mutual labels:  mpu6050
sensor-imu
C library to interact with various IMUs (MPU6000, MPU6050, MPU6500, ICM20600, ICM20601, ICM2062)
Stars: ✭ 16 (-30.43%)
Mutual labels:  mpu6050
MPU6050 light
Lightweight, fast and simple library to communicate with the MPU6050
Stars: ✭ 73 (+217.39%)
Mutual labels:  mpu6050
X360Advance
External Arduino gyroscope & pedals for any Xbox compatible gamepads / Внешний Arduino гироскоп и педали для Xbox совместимых геймпадов
Stars: ✭ 35 (+52.17%)
Mutual labels:  mpu6050
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (+121.74%)
Mutual labels:  mpu6050

CalibrateMPU6050

Calibrate MPU6050 procedure

Setup

  1. Copy the folders from libraries/ to your Arduino IDE workspace libraries folder
  2. Compile and Run in Arduino IDE

How to use

  • For the first 180 seconds, the Calibration procedure is in WARM-UP mode.
  • After 180 seconds, the procedure adjusts the offset value to satisfy the sensor reading to expected value.
  • By observing the offset values, the mean of sensor readings and the standard deviation in Serial Monitor, pick the offset values when they become stable.
  • Use the offset value in your program as below:
#include "I2Cdev.h"
#include "MPU6050.h"
#include "Wire.h"

#define MPU6050_ACCEL_OFFSET_X -773
#define MPU6050_ACCEL_OFFSET_Y 3278
#define MPU6050_ACCEL_OFFSET_Z 1660
#define MPU6050_GYRO_OFFSET_X  -24
#define MPU6050_GYRO_OFFSET_Y  -62
#define MPU6050_GYRO_OFFSET_Z  -6
  
MPU6050 mpu;
  
void setup() {
    Wire.begin();
    mpu.initialize();
    mpu.setXAccelOffset(MPU6050_ACCEL_OFFSET_X);
    mpu.setYAccelOffset(MPU6050_ACCEL_OFFSET_Y);
    mpu.setZAccelOffset(MPU6050_ACCEL_OFFSET_Z);
    mpu.setXGyroOffset(MPU6050_GYRO_OFFSET_X);
    mpu.setYGyroOffset(MPU6050_GYRO_OFFSET_Y);
    mpu.setZGyroOffset(MPU6050_GYRO_OFFSET_Z);
}
  
void loop() {
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].