MCPcopy Create free account
hub / github.com/aster94/SensorFusion

github.com/aster94/SensorFusion @1.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.6 ↗ · + Follow
16 symbols 16 edges 2 files 2 documented · 12% updated 3y ago1.0.6 · 2023-02-23★ 2285 open issues

Browse by type

Functions 15 Types & classes 1
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SensorFusion

Using IMUs is one of the most struggling part of every Arduino lovers, here there is a simple solution.

Alt text

This library will work with every IMU, it just need the raw data of gyroscope and accelerometer (the magnetometer isn't mandatory), it is based on these two libraries: - https://github.com/PaulStoffregen/MahonyAHRS - https://github.com/PaulStoffregen/MadgwickAHRS

I just made small modifications in the way the libraries handled the timing between two measurements and melted them together

Installation

Use the arduino/platformIO library manager or download directly from github

About

Click on the video to see it on youtube

Alt text

please note that the Roll is inverted

I am using an STM32F103F103 known as blue pill but also any Arduino board will work

The IMU is a cheap MPU9250, you could find it everywhere for about 2€ (eBay, Aliexpress, ecc), to use it I strongly suggest you this library

If you wish use IMU_tester in the extras folder to see how you IMU works (needs Processing) Note: I am using also this very useful library: Streaming

Donate

If you liked the library and wish to donate you can sent to PayPal

Core symbols most depended-on inside this repo

Shape

Method 15
Class 1

Languages

C++100%

Modules by API surface

src/SensorFusion.h9 symbols
src/SensorFusion.cpp7 symbols

For agents

$ claude mcp add SensorFusion \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page