2025-02-21 07:26 AM - edited 2025-02-21 07:30 AM
Hello,
After using the WESU board (https://community.st.com/t5/mems-sensors/lsm6ds3-lis3mdl-calibration/td-p/762534)
we decided to move forward with the sensor tile box PRO.
We want to record human activity recognition and pedometer information in the SD card, with a timestamp.
We managed to record HAR and pedometer information separetly, on BLE or in a SD card file, but :
* If we add the RTC value (for timestamp) to the HAR example, we got the message FLOW_COMPATIBILITY_ERROR
* If we enable pedometer, adding gyroscope and accelerometer (60Hz, same as HAR example) in input, add HAR in function, there is no data in the SD card (only header in the csv file), and no updates in Bluetooth (event when SD_Log is updated in log status)
Is it possible to get timestamped HAR + pedometer data in a SD card file ?
Bonus : if We can also log raw data (ACC, GYR, MAG + BARO) at 240, 100 and 1Hz, that's will great.
For now, we can't use this eval board for our need.
PS :
FW version : 1.2.0
brd name : STEVAL-MKBOXPRO
Please find attached :
* the json for HAR + RTC Screenshot for the configuration.
Regards,
2025-02-21 08:52 AM
You have reached the limit of the no-code ecosystem.
Time to move to the low-code ecosystem: download MEMS Studio and look into AlgoBuilder. You can select the target platform (Sensortile.Box PRO) and how it is connected (BLE or USB). Then drag-and-drop the blocks you need: first the sensorHub block which represents the main loop, then pick the pedometer library that you want (PM generic, PW specialized for wrist worn devices), then pick the sensors you want to log (mind that sensor data is raw, if you need calibrated and compensated data you need to use MotionMC for example to get hard-iron compensated data), connect in the appropriate way, mux the sensor signals and feed them to the SD card block. You can also add plots for real time display. Each block has a description and few configuration parameters, click on the block and look at the panes on the right.
See attached screenshots.
AlgoBuilder will generate an STM32 project for you. The code is well structured and human-friendly, start from ab_sensor_hub.c to see how it is organized. There you will find how the various functions are called when appropriate.
From AlgoBuilder you will be able to compile and build the binary (STM32CubeIDE needs to be installed), and program/flash the target device (STM32CubeProg needs to be installed).
You should be able to build a customized FW that does what you need very quickly.
2025-02-21 10:31 AM
Hello Andrea,
thanks a lot for this fast answer.
Ok understood. I will check this. I leave the topic open for now and I will update it if it is resolved or I need more help.
Regards,