The MPU-9250, MPU-9255, MPU-9150, MPU-6500, MPU-6555, and MPU-6050 are motion tracking devices equipped with a combination of accelerometer, gyroscope, and magnetometer sensors. They can operate in either 6-axis (MPU-6050) or 9-axis (MPU-9250, MPU-9255, MPU-9150, MPU-6500, MPU-6555) mode, providing high precision and low noise data for reliable performance. These sensors communicate via the I2C protocol.
This project provides a comprehensive collection of I2C driver libraries for the MPU sensors. The libraries enable easy communication and reading of sensor data on embedded devices, such as microcontrollers. Available in various programming languages, they are highly accessible to developers on different platforms and development environments. Each library comes equipped with functions to initialize the sensors, configure sampling rates, select measurement scales, calibrate the sensors, and read the raw data of motion and orientation.
To access the library documentation page in your programming language of choice, please choose from the options provided below.
This project is currently under development, according to the following roadmap. Along with the source code libraries, wikis will also be created that provide comprehensive support documentation for configuring RPi, I2C, VNC, SSH, and other related topics.
Language | MPU-9250 | MPU-9255 | MPU-9150 | MPU-6500 | MPU-6555 | MPU-6050 |
---|---|---|---|---|---|---|
Arduino | Planned | Planned | Planned | Planned | Planned | Planned |
C | Planned | Planned | Planned | Planned | Planned | Planned |
C++ | Planned | Planned | Planned | Planned | Planned | Planned |
C# | Planned | Planned | Planned | Planned | Planned | Planned |
Python | Developing | Developing | Developing | Developing | Developing | Developing |
Java | Planned | Planned | Planned | Planned | Planned | Planned |
Javascript | Planned | Planned | Planned | Planned | Planned | Planned |
Typescript | Planned | Planned | Planned | Planned | Planned | Planned |
By providing sponsorships and donations, you can support the continuous development of these projects and help keep them active. The more sponsors I have, the more time I can devote to both existing and new projects. As a sponsor, you can suggest new features, support for other programming languages, MPU models, and your project suggestions will be given priority.
Maintenance of this project is made possible by all the following contributors and sponsors.
The repository is licensed under Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0), which means you can share and distribute the code for both commercial and non-commercial purposes, as long as you give credit to the original author. However, the license does not allow you to make modifications to the original code, meaning that you are not permitted to create derivative works from it. Please see License File for more information.