# SensorFusion **Repository Path**: hzustc/SensorFusion ## Basic Information - **Project Name**: SensorFusion - **Description**: imusensor fusion 2 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-15 - **Last Updated**: 2021-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SensorFusion Using IMUs is one of the most struggling part of every Arduino lovers, here there is a simple solution. ![Alt text](/extras/axis.png?raw=true "axis") 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](https://img.youtube.com/vi/uhsOAhe9qgI/0.jpg)](https://www.youtube.com/watch?v=uhsOAhe9qgI) 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](https://github.com/bolderflight/MPU9250) 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](https://github.com/geneReeves/ArduinoStreaming)