Expansion board for the stm32mp157f-dk2 discovery kit (29 pages)
Summary of Contents for ST X-CUBE-MEMS1
Page 1
It is able to distinguish the following poses: sitting, standing and lying down. The library is intended for wrist-worn devices. This library is intended to work with ST MEMS only. ®...
UM2223 Acronyms and abbreviations Acronyms and abbreviations Table 1. List of acronyms Acronym Description Application programming interface Board support package Graphical user interface Hardware abstraction layer Integrated development environment UM2223 - Rev 5 page 2/17...
The library acquires data from the accelerometer and provides information about the user current pose based on data from a device. The library is designed for ST MEMS only. Functionality and performance when using other MEMS sensors are not analyzed and can be significantly different from what described in the document.
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube • void MotionPE_Update(MPE_input_t *data_in, MPE_output_t *data_out) – executes pose estimation algorithm – *data_in parameter is a pointer to a structure with input data – the parameters for the structure type MPE_input_t are: ◦...
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube 2.2.3 API flow chart Figure 3. MotionPE API logic sequence Start Initialize GetLibVersion SetOrientation_Acc Wait Expiring Timer Data Read Interrupt Read Accelerometer Data Update Get Pose Estimation Code 2.2.4 Demo code The following demonstration code reads data from the accelerometer sensor and gets the estimated pose.
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube Sample application The MotionPE middleware can be easily manipulated to build user applications. A sample application is provided in the Application folder. It is designed to run on a NUCLEO-F401RE,...
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube Step 2. Launch the MEMS-Studio application to open the main application window. If an STM32 Nucleo board with supported firmware is connected to the PC, the appropriate COM port is automatically detected. Press the [Connect] button to establish connection to the evaluation board.
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube Step 4. Click on the [Pose Estimation] to open the dedicated page for this library. Figure 7. MEMS-Studio - Library Evaluation - Pose Estimation Step 5. Click on [Save to File] to open the dataloging configuration window. Select the sensor and pose estimation data to be saved in the file.
UM2223 MotionPE middleware library in X-CUBE-MEMS1 software expansion for STM32Cube Step 6. Data Injection mode can be used to send the previously acquired data to the library and receive the result. Select the [Data Injection] tab on the vertical tool bar to open the dedicated view for this functionality.
References References All of the following resources are freely available on www.st.com. 1. UM1859: Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube 2. UM1724: STM32 Nucleo-64 boards (MB1136) 3. UM3233: Getting started with MEMS-Studio...
UM2223 Revision history Table 5. Document revision history Date Version Changes 18-May-2017 Initial release. Added references to NUCLEO-L152RE development board, Figure 2. Orientation system for wrist- 06-Feb-2018 worn devices and Table 3. Elapsed time (μs) algorithm. 21-Mar-2018 Updated Introduction, Section 2.1 MotionPE overview and Section 2.2.5 Algorithm performance. Updated Figure 1.
UM2223 List of figures List of figures Figure 1. Example of sensor orientations ............4 Figure 2.
Page 17
ST’s terms and conditions of sale in place at the time of order acknowledgment. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’...
Need help?
Do you have a question about the X-CUBE-MEMS1 and is the answer not in the manual?
Questions and answers