Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/9peo0xnd/m5gray_mpu6886_bmm150

This is M5Stack Gray MPU6886+BMM150 examples for arduino IDE
https://github.com/9peo0xnd/m5gray_mpu6886_bmm150

arduino-ide bmm150 m5stack-gray m5unified mpu6886 sensor

Last synced: about 1 month ago
JSON representation

This is M5Stack Gray MPU6886+BMM150 examples for arduino IDE

Awesome Lists containing this project

README

        

# M5Gray_MPU6886_BMM150 for arduino IDE

This is M5Stack Gray MPU6886+BMM150 examples for arduino IDE.

![HSI.jpg](images/hsi_picture.png)
![orientation](images/Gray_Mpu6886+bmm150_orientation.png)

---

`BMM150class.cpp` and `BMM150class.h` were forked from omegatao's repository. Original link (platform IO based)
https://github.com/omegatao/M5StackGrey_MPU6886_BMM150_AHRS_sample

## What's New ?
- Added soft iron distortion correction.
>[Simple and Effective Magnetometer Calibration](https://github.com/kriswiner/MPU6050/wiki/Simple-and-Effective-Magnetometer-Calibration)
>Kris Winer edited this page on 15 Aug 2017 · 17 revisions

- Added gyro offset calibration. However, built in `M5.IMU.setGyroOffset(Ωx0,Ωy0,Ωz0)` is not used.
It starts automatically. (still has gyro drift. but reduced a little)
- yaw tweaked 90 degrees (button A,B,C are front side)

## Usages
- Copy BMM150 folder into your arduino libraries folder.
- Some .ino files are required lovyanGFX and lovyanlancher.
- M5Stack-SD-Updater ~~version must be 0.5.2 (1.x or higher will not work in my code. I don't know why) 1.0.x is OK now.~~ Verified arduino 1.8.15
- tilt_compass.ino is traditional tilt-compensated compass. Not using 9-AXIS quaternion.
- Do not move or tilt your M5Stack during the gyro offset calibration.
- Do not use this unit in situations involving safety to life.
- ~~- Not supported M5Unified library. (Consider M5Stack.h library depandency such as I2C, etc.)~~
- Added example code using M5Unified library.

## References
- https://github.com/BoschSensortec/BMM150-Sensor-API
- https://github.com/m5stack/M5_BMM150
- https://github.com/m5stack/M5Unified
- https://x-io.co.uk/open-source-imu-and-ahrs-algorithms/

## Revision history
- 2021-Jan Initial release.
- 2021-Feb updated Readme.md, added built in sensor's orientation images.
- 2023-Jan Modified I2C part and added example code using M5Unified library.
- 2024-Feb added destructor and year 2024 Ehou-roll.

Have fun !