November 2016
DocID029892 Rev 1
1/19
www.st.com
UM2127
User manual
Getting started with osxMotionID motion intensity detection
library for X-CUBE-MEMS1 expansion for STM32Cube
Introduction
osxMotionID is an add-on software package for X-CUBE-MEMS1. The software runs on STM32 and
includes drivers that recognize ST inertial sensors LSM6DS0, LSM6DS3 or LSM6DSL.
By outputting an intensity value in the range [0:10] (i.e., from doing nothing to sprinting), this library may
be used for real-time evaluation of activities for the accurate calculation of calories or to distinguish
between active and non-active stationary status.
The algorithm manages the data acquired exclusively from the accelerometer at the low sampling
frequency of 16 Hz to reduce the power consumption of the hosting platform.
The software comes with sample implementations of the drivers, exploiting STM32Cube software
technology and running on X-NUCLEO-IKS01A2 or X-NUCLEO-IKS01A1 expansion boards with
optional STEVAL-MKI160V1, mounted on a NUCLEO-F401RE or NUCLEO-L476RG development
board.
UM2127
2/19
DocID029892 Rev 1
Contents
1 osxMotionID library add-on to X-CUBE-MEMS1 software
expansion for STM32Cube ...................................................................... 5
1.1 osxMotionID overview ....................................................................... 5
1.2 osxMotionID architecture .................................................................. 5
1.3 osxMotionID folder structure ............................................................. 6
1.4 osxMotionID APIs .............................................................................. 7
1.4.1 osxMotionID library ............................................................................. 7
1.5 Sample application ............................................................................ 7
1.5.1 Stand-alone working mode ................................................................. 8
1.5.2 PC GUI driven mode ........................................................................ 10
1.5.3 Unicleo-GUI utility ............................................................................. 10
1.5.4 Data storage ..................................................................................... 14
2 Acronyms and abbreviations ....................................................... 16
3 References ..................................................................................... 17
4 Revision history ............................................................................ 18