Advanced STM32 library for the Invensense MPU-9250 inertial measurement unit (IMU), which enables the sensor's digital motion processing (DMP) features. Along with configuring and reading from the accelerometer, gyroscope, and magnetometer, this library also supports the chip's DMP features like:
- Quaternion calculation
- Pedometer
- Gyroscope calibration
- Tap detection
- Orientation dtection
This library uses I2C bus, not SPI!
- /src - Source files for the library (.c, .h).
- /src/util - Source and headers for the MPU-9250 driver and dmp configuration. These are available and adapted from Invensene's downloads page.
- Open file stm32_mpu9250_i2c.c and change the
extern I2C_HandleTypeDef hi2c2;
line by writing there your I2C Handler and everywhere in the file. - In the file also change SDA and SCL pins and ports defines.
- Similar usage examples you can find here.
This product is open source!
Please review the LICENSE file for license information.
This is a modified SparkFun repository, here is their license.