Coder Social home page Coder Social logo

plorefice / stm32_mpu9150_emd_6.1 Goto Github PK

View Code? Open in Web Editor NEW
18.0 12.0 9.0 1.2 MB

Embedded MotionDriver 6.1 example using an STM32F4-Discovery board connected to an MPU-9150 9DoF IMU via I²C bus #1.

C 91.45% C++ 1.64% Assembly 6.91%
mpu stm32 mpu9150 dmp c

stm32_mpu9150_emd_6.1's Introduction

STM32_MPU9150_eMD_6.1

Embedded MotionDriver™ 6.1 example using an STM32F4-Discovery board connected to an MPU-9150 breakout board via I²C.

The MPU-9150 is a 9-axis MotionTracking device designed for the low power, low cost, and high performance requirements of consumer electronics equipment including smartphones, tablets and wearable sensors. It includes a 3-axis accelerometer, a 3-axis gyroscope and a 3-axis magnetometer.

This example uses the new Embedded MotionDriver 6.1 SDK that allows to perform 9-axis sensor fusion on all the ARM Cortex-Mx devices, thanks to the Digital Motion Processor (DMP) integrated inside the MPU which performs 6-axis sensor fusion in the DMP co-processor, and the Motion Processing Library (MPL) that allows to fuse the previous results with the compass raw data in the host processor.

The resulting data is sent to the host PC via USB using a VCP on the host itself.

How to use

Connect the IMU to the board using the following scheme.

PLEASE NOTE: In this setup, the breakout board that has been used already integrates a 5V-to-3V3 voltage regulator. DO NOT connect 5V directly to the MPU-9150.

+------------------+               +----------------------+
|     MPU-9150     |               |   STM32F4DISCOVERY   |
|                  |               |                      |
|             INT  +---------------+  PB4                 |
|             GND  +---------------+  GND                 |
|             VDD  +---------------+  5V                  |
|             SDA  +---------------+  PB7                 |
|             SCL  +---------------+  PB6                 |
|                  |               |                      |
+------------------+               +----------------------+

Once the firmware has been uploaded, the board will start sending raw quaternion data to the host PC at the frequency specified during the initialization phase. This data can be visualized via a GUI using the python scripts provided with the SDK (adjustments to the orientation matrices may be needed for a correct visualization).

stm32_mpu9150_emd_6.1's People

Contributors

plorefice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stm32_mpu9150_emd_6.1's Issues

assembling libmpllib.a error

Hi, plorefice

I am transplanting Motion Driver 6.1 to Stm32F429 platform, and i do the same thing you did, but when i build the target i got some error, and i couldn`t find solution, can you help me out? Thanks .

Here is the error i got:

compiling storage_manager.c...
assembling libmpllib.a...
....\Drivers\eMPL\mpl\libmpllib.a(1): error: A1167E: Invalid line start
....\Drivers\eMPL\mpl\libmpllib.a(2): error: A1167E: Invalid line start
....\Drivers\eMPL\mpl\libmpllib.a(35): error: A1271E: Line too long, maximum line length is 4095
....\Drivers\eMPL\mpl\libmpllib.a(35): warning: A1313W: Missing END directive at end of file
"Stm32F429IGT6_FC Configuration\Stm32F429IGT6_FC Configuration.axf" - 3 Error(s), 1 Warning(s).
Target not created.

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.