This instructable explains how to build, and calibrate, a tilt-stabilized compass using an Arduino UNO R3 and an MPU-9250 accelerometer | gyro | magnetometer.
The following options are available for displaying the compass heading | pitch | roll:
Serial Monitor
LCD display
A graphics “compass rose” on your PC screen
Calibration is simple … three methods are provided:
Tumble the compass every time at switch-on
Tumble the compass once and save the results
Use my “compass_cal” software and save the results
A compass-heading of +/- 2 degrees is possible using my “compass_cal” software.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey