2020-12-09 09:30 PM
I'm working for LIS2DW12 sensor, I want to implement Pedometer so in this sensor there is no pedometer embedded option. I am using MEMS library but we are using BMD300 board (NRF52832),
is it supported for NRF52832 ?
2020-12-10 12:36 AM
Hi @SKuma.23 ,
since the libraries are platform independent (they only need acceleration, gyro or magnetometer values as input data), you can use them together with different microcontroller, after inserting them in the there is the MotionPM real-time pedometer library that should fit your purpose. You can find it in the folder \Middlewares\ST\STM32_MotionPM_Library. The two main functions to be used are:
void MotionPM_Initialize(void)
void MotionPM_Update (MPM_input_t *data_in, MPM_output_t *data_out)
You cannot use the whole projects / application in the X-CUBE-MEMS1 package (the ones in the \Projects folder), since they are depends on specific STM32 boards, but no issue for the libraries.
-Eleon
2020-12-20 11:25 PM
2020-12-21 01:43 AM
Hi @SKuma.23 ,
if you are using the NUCLEO-F446RE board, I suggest you not to start from scratch at the beginning, but to refer to the FP-SNS-ALLMEMS1 firmware function pack, which implements the LIS2DW12 sensor drivers and some of the X-CUBE-MEMS1 libraries (unfortunately, not the Pedometer one, but you can add it taking inspiration from the already-implemented ones). You can find an example in the \Projects\STM32F446RE-Nucleo\Applications\ALLMEMS1 folder.
For the "Hard fault error", it could have been caused by a wrong configuration of the Pedometer library, and for this reason I suggest to check the settings of the implementation of the previous example.
-Eleon