ST FP-SNS-DATALOG2 User manual

Quick Start Guide
STM32Cube function pack for high speed
datalogging and ultrasound processing
(FP-SNS-DATALOG2)
Version 2.0 –Sep ’23

Agenda
1Hardware and Software overview
3Documents & Related Resources
2
2Setup & Demo Examples

1 - Hardware and Software overview

STEVAL-STWINBX1
STWIN.box development kit - STEVAL-STWINBX1
Hardware Overview
STWIN.box - SensorTile Wireless Industrial Node
The STWIN.box (STEVAL-STWINBX1) is a development kit and reference design that simplifies prototyping and testing
of advanced industrial sensing applications in IoT contexts such as condition monitoring and predictive maintenance.
It is an evolution of the original STWIN kit (STEVAL-STWINKT1B) and features a higher mechanical accuracy in the
measurement of vibrations, an improved robustness, an updated BoM to reflect the latest and best-in-class MCU and
industrial sensors, and an easy-to-use interface for external add-ons.
The STWIN.box kit consists of an STWIN.box core system, a 480mAh LiPo battery, an adapter for the ST-LINK
debugger (STEVAL-MKIGIBV4), a plastic case, an adapter board for DIL 24 sensors and a flexible cable.
Key Features
•Multi-sensing wireless platform for vibration monitoring and ultrasound detection
•Built around STWIN.box core system board with processing, sensing, connectivity, and expansion capabilities
•Ultra-low power Arm® Cortex®-M33 with FPU and TrustZone at 160 MHz, 2048 kBytes Flash memory (STM32U585AI)
•MicroSD card slot for standalone data logging applications
•On-board Bluetooth® low energy v5.0 wireless technology (BlueNRG-M2), Wi-Fi (EMW3080) and NFC (ST25DV04K)
•Wide range of industrial IoT sensors: Ultra-wide bandwidth (up to 6 kHz), low-noise, 3-axis digital vibration sensor (IIS3DWB),
3D accelerometer + 3D gyro iNEMO inertial measurement unit (ISM330DHCX) with Machine Learning Core, High-
performance ultra-low-power 3-axis accelerometer for industrial applications (IIS2DLPC), Ultra-low power 3-axis
magnetometer (IIS2MDC), Dual full-scale, 1.26 bar and 4 bar, absolute digital output barometer in full-mold package
(ILPS22QS), Low-voltage, ultra low-power, 0.5°C accuracy I²C/SMBus 3.0 temperature sensor (STTS22H), Industrial grade
digital MEMS microphone (IMP34DT05), Analog MEMS microphone with frequency response up to 80 kHz (IMP23ABSU)
•Expandable via a 34-pin FPC connector
Latest info available at
https://www.st.com/en/evaluation
-tools/steval-stwinbx1.html

Battery
LiPo-752535 - 480mAh
STWIN.box development kit - STEVAL-STWINBX1
Hardware Overview
STWIN.box - SensorTile Wireless Industrial Node
The STEVAL-STWINBX1 development kit includes:
•The STEVAL-STWBXCS1 STWIN.box core system (main board);
•A plastic case with M3 bolts;
•A 480 mAh 3.7 V LiPo battery;
•The STEVAL-MKIGIBV4 ST-LINK adapter with programming cable;
•The STEVAL-C34DIL24 adapter board for DIL24 sensors with the
STEVAL-FLTCB01 flexible cable.
STEVAL-STWBXCS1
STWIN.box Core System
Plastic Case
STEVAL-MKIGIBV4 + Cable
STLINK Adapter (V2, V2.1)
STEVAL-FLTCB01
34 pin Flex cable
STEVAL-C34DIL24

STWIN.box Modular platform expansion - STEVAL-C34KAT1
Hardware Overview
Vibrometer and Temperature Sensors Expansion Board
STWIN.box expansion with Vibrometer (IIS3DWB) and Temperature
(STTS22H) sensors
•Optimal high frequency performance (up to 6kHz)
•Exposed pad on bottom side for thermal coupling
•34-pin slave connector, compatible with STWIN.box and other ST
Evaluation boards
•34-pin flex cable included
•4x fixing holes
STEVAL-C34AT01
STEVAL-FLTCB01
Flex cable
2.5cm
2.5cm
15cm

STWIN.box Modular platform expansion - STEVAL-C34KAT2
Hardware Overview
6 axis + ISPU and Temperature Sensors Expansion Board
STWIN.box expansion with 6 axis + ISPU (ISM330IS) and Temperature
(STTS22H) sensors
•Optimal high frequency performance
•Exposed pad on bottom side for thermal coupling
•34-pin slave connector, compatible with STWIN.box and other ST
Evaluation boards
•34-pin flex cable included
•4x fixing holes
STEVAL-C34AT02
STEVAL-FLTCB01
Flex cable
2.5cm
2.5cm
15cm

STWIN development kit - STEVAL-STWINKT1B
Hardware Overview
STWIN - SensorTile Wireless Industrial Node
The STWIN (STEVAL-STWINKT1B) is a development kit and reference design that simplifies prototyping and testing
of advanced industrial IoT applications such as condition monitoring and predictive maintenance. The kit supports
BLE wireless connectivity through an on-board module and Wi-Fi connectivity through a special plugin expansion
board (STEVAL-STWINWFV1), wired RS485 and USB OTG connectivity.
Key Features
•Multi-sensing wireless platform implementing vibration monitoring and ultrasound detection
•Updated version of STEVAL-STWINKT1, now including STSAFE-A110 populated, BlueNRG-M2S module and
IMP23ABSU MEMS microphone
•Ultra-low-power ARM Cortex-M4 MCU at 120 MHz with FPU, 2048 kbytes Flash memory (STM32L4R9)
•Micro SD Card slot for standalone data logging applications
•Option to implement Authentication and Brand protection secure solution with STSAFE-A110
•Wide range of industrial IoT sensors: ultra-wide bandwidth (up to 6 kHz), low-noise, 3-axis digital vibration sensor
(IIS3DWB), 3D accelerometer + 3D Gyro iNEMO inertial measurement unit (ISM330DHCX) with machine learning core,
ultra-low-power high performance MEMS motion sensor (IIS2DH), ultra-low-power 3-axis magnetometer (IIS2MDC),
digital absolute pressure sensor (LPS22HH), relative humidity and temperature sensor (HTS221), low-voltage digital local
temperature sensor (STTS751), industrial grade digital MEMS microphone (IMP34DT05), analog MEMS microphone with
frequency response up to 80 kHz (IMP23ABSU)
•Modular architecture, expandable via on-board connectors: STMOD+ and 40-pin flex general purpose expansions, 12-pin
male plug for connectivity expansions, 12-pin female plug for sensing expansions
•Other kit components: Li-Po battery 480 mAh, STLINK-V3MINI debugger with programming cable, Plastic box
Latest info available at
www.st.com/stwin

STEVAL-MKBOXPRO
Sensortile.box PRO development kit - STEVAL-MKBOXPRO
Hardware Overview
SensorTile.box PRO discovery box
The STEVAL-MKBOXPRO is the new ready-to-use programmable wireless box kit for developing any IoT application
based on remote data gathering and evaluation.
The SensorTile.box PRO board fits into a small plastic box with a long-life 480mAh rechargeable battery, for the first time
leveraging also on a wireless charger and a programmable NFC tag. The board can be easily connected via Bluetooth to
the ST BLE Sensor app on your smartphone, from which the box kit can be enjoyed in Base and Expert mode. In Pro
mode, professional users can exploit the firmware programming and debugging interface in the STM32 ODE for
developing their firmware from scratch.
Key Features
•All-in-one sensor node in a very small form factor board - Ready-to-go development kit
•Develop apps quickly regardless of your level of expertise:
•Basic mode: wide range of default IoT and wearable applications
•Expert mode: build custom applications leveraging the available algorithms
•Pro mode: develop code in an intuitive way using STM32 open development environment (ODE) and ST function pack
libraries
•ST BLE Sensor app on your smartphone (both on the Android Play Store andiOS App Store) allows you to immediately
connect to the box kit
•Rechargeable long-life battery
•Windows, LINUX, and MacOS ST software compatibility
•Over the Air (OTA) Firmware upgrade
Latest info available at
https://www.st.com/en/evaluation
-tools/steval-mkboxpro.html

B-U585I-IOT02A
Discovery kit for IoT node - B-U585I-IOT02A
Hardware Overview
B-U585I-IOT02A Discovery kit
The B-U585I-IOT02ADiscovery kit provides a complete demonstration and development platform for the STM32U585AI
microcontroller, featuring an Arm® Cortex®-M33 core with Arm® TrustZone® and Armv8-M mainline security extension,
2 Mbytes of Flash memory and 786 Kbytes of SRAM, as well as smart peripheral resources.
This Discovery kit enables a wide diversity of applications by exploiting low-power communication, multiway sensing, and
direct connection to cloud servers.
It includes Wi-Fi® and Bluetooth® modules, as well as microphones, temperature and humidity, magnetometer,
accelerometer and gyroscope, pressure, time-of-flight, and gesture-detection sensors.
Key Features
•Ultra-low-power STM32U585AII6Q microcontroller based on the Arm® Cortex®-M33 core with Arm® TrustZone®, 2 Mbytes
of Flash memory and 786 Kbytes of SRAM, and SMPS in UFBGA169 package
•512-Mbit Quad-SPI Flash memory, 64-Mbit Octo-SPI PSRAM, 256-Kbit I2C EEPROM
•USB FS, Sink and Source power, 2.5 W power capability
•802.11 b/g/n compliant Wi-Fi® module from MXCHIP
•Bluetooth® Low Energy from STMicroelectronics
•MEMS sensors from STMicroelectronics
•2 user LEDs, User and Reset push-button
•On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and
debug port Latest info available at
https://www.st.com/en/evaluation
-tools/b-u585i-iot02a.html

X-NUCLEO-IKS02A1
Motion and microphone expansion board - X-NUCLEO-IKS02A1
Hardware Overview
Industrial motion MEMS sensor expansion board
The X-NUCLEO-IKS02A1 industrial motion MEMS sensor expansion board is compatible with the Arduino UNO R3
connector layout.
It embeds the ISM330DHCX 3-axis accelerometer and 3-axis gyroscope, the IIS2MDC 3-axis magnetometer, the
IIS2DLPC 3-axis accelerometer, the IMP34DT05 digital microphone.
The X-NUCLEO-IKS02A1 interfaces with the STM32 microcontroller via I²C pin, with the possibility of changing the
default I²C port.
Key Features
•ISM330DHCX MEMS 3D accelerometer (±2/±4/±8/±16 g) plus 3D gyroscope (±125/±250/±500/±1000/±2000 dps)
•IIS2MDC MEMS 3D magnetometer (±50 gauss)
•IIS2DLPC MEMS 3D accelerometer low power (±2/±4/±8/±16 g)
•IMP34DT05 MEMS digital omnidirectional microphone (-26 dBFS, ±3 dB sensitivity)
•DIL 24-pin socket available for additional MEMS adapters and other sensors
•Free comprehensive development firmware library and samples for all sensors compatible with STM32Cube firmware
•Available I²C sensor hub features on ISM330DHCX
•Compatible with STM32 Nucleo boards
•Equipped with Arduino UNO R3 connector
•RoHS and WEEE compliant
Latest info available at
https://www.st.com/en/ecosystem
s/x-nucleo-iks02a1.html

FP-SNS-DATALOG2
Software Overview
12
Software Description
The FP-SNS-DATALOG2 function pack for B-U585I-IOT02A, STEVAL-STWINBX1,
STEVAL-STWINKT1B, STEVAL-MKBOXPRO and X-NUCLEO-IKS02A1 with
NUCLEO-U575ZI-Q or with NUCLEO-H7A3ZI-Q represents an evolution of FP-SNS-
DATALOG1 and provides a comprehensive solution for saving data from any
combination of sensors and microphones configured up to the maximum sampling
rate. It natively supports STEVAL-STWINBX1 with its external addons (STEVAL-
C34KAT1, STEVAL-C34KAT2, STEVAL-C34DIL24).
The package also includes an example of ultrasound condition monitoring
(UltrasoundFFT) for STEVAL-STWINBX1 that calculates the FFT of the IMP23ABSU
analog microphone signal and streams the result to a PC GUI via USB.
Key features
•High-rate (up to 6 Mbit/s) data capture software suite:
•Dedicated Python SDK, ready-to-use for integration into any data science design flow
•Compatible with ST BLESensor app for system setup and real-time control
•Allow to setup MLC (Machine Learning Core) or ISPU (Intelligent Sensor Processing Unit)
•Synchronized timestamping and labelling mechanisms common to all sensors
•Generic FFT library middleware to enable frequency domain analysis
•Firmware modular examples based on eLooM (Embedded Light Object Oriented
framework for STM32) to enable code reusability at application level
•Based on AzureRTOS
Overall Software Architecture

DATALOG2 demonstration
•Based on AzureRTOS
•ThreadX, FileX, USBX
•USBX WCID Streaming class and PC DLL
•SD Card
•Full control of acquisition via BLE app
•Control via PnP-Like commands
Optimized STM32 FW Supports streaming of all Sensors at Full data rate
BLE
USB
BLE
USB
Device configuration (Device Template/PnPL) Raw Data streaming
SD
Card
PnPL
PnPL
Device Model
PnPL Parser
Sensor
Manager
Engine
Sensors
JSON
config file
SD
Card
13
Python SDK
Real-time Plot GUI

•Based on AzureRTOS ecosystem
•ThreadX instead of FreeRTOS
•FileX instead of FatFS
•USBX
•Based on eLooM (Embedded Light Object Oriented framework for STM32) firmware components to enable
code reusability at application level (in common to FP-AI-MONITOR1, FP-AI-MONITOR2, FP-AI-PREDMNT2,
FP-AI-PDMWBSOC1)
•SensorManager
•EMData
•PnPL Manager
•DPU –Digital Processing Units
•IStream interfaces to standardize communication channels (USB, Sdcard, BLE)
•Updated and refactored PythonSDK, compatible also with DATALOG1
•New Real Time Plot GUI available only for DATALOG2
•Standardized and updated device configuration through Device Templates and PnP-Like protocols to enable
Platform Virtualization
DATALOG2 vs DATALOG1
14

2 - Setup & Demo Examples

16
•1 STEVAL-STWINBX1, STEVAL-STWINKT1B or STEVAL-MKBOXPRO
•Laptop/PC with Windows 7, 8 or 10
•1 type-C USB + 1 micro USB cables
•2 microUSB cables for STEVAL-STWINKT1B only
•1 STLINK-V3MINI
•1 micro-SD card
•1 smartphone with ST BLESensor App
HW prerequisites

17
•1 B-U585I-IOT02A, X-NUCLEO-IKS02A1 with
NUCLEO-U575ZI-Q or with NUCLEO-H7A3ZI-Q
•Laptop/PC with Windows 7, 8 or 10
•2 USB cables
USB Cables
HW prerequisites
B-U585I-IOT02A X-NUCLEO-IKS02A1
NUCLEO-U575ZI-Q
NUCLEO-H7A3ZI-Q

•STWIN.box and Sensortile.box PRO programming connector is natively compatible with STLINK-V3
debuggers family (STLINK-V3SET or STLINK-V3MINI). STLINKV3 programmers are NOT included in the kit.
•Alternatively, in order to offer more alternatives, an adapter to ST-Link V2-1 (STM32-Nucleo) or standard
JTAG connector is included in the kit.
HW prerequisites
18

19
•STM32CubeProgrammer Software
•Download and install STM32CubeProgrammer
•DATALOG2 - UltrasoundFFT
•Download the FP-SNS-DATALOG2 package from www.st.com, copy the .zip file contents into a folder on your PC. The
package contains binaries and source code with project files (Keil, IAR, STM32CubeIDE)
•ST BLESensor App
•Download and install ST BLESensor App (for both Android and iOS - v4.17 and above)
•Python
•To save, plot and elaborate data, Python utility scripts are available
Software and other prerequisites
DATALOG2 and UltrasoundFFT are not the default firmware.
To update the firmware, please follow the instructions for Fast FOTA valid for
STWIN.box and Sensortile.box PRO
Table of contents
Other ST Data Logger manuals