Skip to content

Instantly share code, notes, and snippets.

@vbahtev
vbahtev / arduino-berryIMU.ino
Created August 10, 2018 05:07
BerryIMU v1 and v2: Correct heading after hard iron calibration
/*
This program reads the angles and heading from the accelerometer, gyroscope
and compass on a BerryIMU connected to an Arduino. Make 360 degrees rotation
for apply hard iron calibration.
Both the BerryIMUv1 and BerryIMUv2 are supported.
Feel free to do whatever you like with this code
Distributed as-is; no warranty is given.
http://ozzmaker.com/