Download Print this page
ST FP-SNS-DATALOG2 Quick Start Manual

ST FP-SNS-DATALOG2 Quick Start Manual

Stm32cube function pack for high speed datalogging and ultrasound processing
Hide thumbs Also See for FP-SNS-DATALOG2:

Advertisement

Quick Links

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

Advertisement

loading
Need help?

Need help?

Do you have a question about the FP-SNS-DATALOG2 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST FP-SNS-DATALOG2

  • Page 1 Quick Start Guide STM32Cube function pack for high speed datalogging and ultrasound processing (FP-SNS-DATALOG2) Version 2.0 – Sep ’23...
  • Page 2 Agenda Hardware and Software overview Setup & Demo Examples Documents & Related Resources...
  • Page 3: Hardware And Software Overview

    1 - Hardware and Software overview...
  • Page 4: Hardware Overview

    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.
  • Page 5 • 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-MKIGIBV4 + Cable STEVAL-FLTCB01 flexible cable. STLINK Adapter (V2, V2.1) STEVAL-STWBXCS1 STWIN.box Core System...
  • Page 6 (STTS22H) sensors • Optimal high frequency performance (up to 6kHz) • Exposed pad on bottom side for thermal coupling 2.5cm • 34-pin slave connector, compatible with STWIN.box and other ST Evaluation boards • 34-pin flex cable included • 4x fixing holes 2.5cm...
  • Page 7 STWIN.box expansion with 6 axis + ISPU (ISM330IS) and Temperature (STTS22H) sensors • Optimal high frequency performance • Exposed pad on bottom side for thermal coupling 2.5cm • 34-pin slave connector, compatible with STWIN.box and other ST Evaluation boards • 34-pin flex cable included • 4x fixing holes 2.5cm...
  • Page 8 Latest info available at • Modular architecture, expandable via on-board connectors: STMOD+ and 40-pin flex general purpose expansions, 12-pin www.st.com/stwin 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...
  • Page 9 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.
  • Page 10 • Bluetooth® Low Energy from STMicroelectronics • MEMS sensors from STMicroelectronics • 2 user LEDs, User and Reset push-button Latest info available at • On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and https://www.st.com/en/evaluation debug port -tools/b-u585i-iot02a.html...
  • Page 11 • 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 Latest info available at • Equipped with Arduino UNO R3 connector https://www.st.com/en/ecosystem • RoHS and WEEE compliant s/x-nucleo-iks02a1.html...
  • Page 12: Software Overview

    • 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) •...
  • Page 13 DATALOG2 demonstration Optimized STM32 FW Supports streaming of all Sensors at Full data rate Device configuration (Device Template/PnPL) Raw Data streaming PnPL Sensors Card JSON config file Card Sensor Python SDK PnPL Manager Engine Real-time Plot GUI • Based on AzureRTOS •...
  • Page 14 DATALOG2 vs DATALOG1 • 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) •...
  • Page 15 2 - Setup & Demo Examples...
  • Page 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...
  • Page 17 HW prerequisites • 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 NUCLEO-H7A3ZI-Q NUCLEO-U575ZI-Q USB Cables X-NUCLEO-IKS02A1 B-U585I-IOT02A...
  • Page 18 • 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.
  • Page 19 • 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) •...
  • Page 20 Samples demonstrations www.st.com Package structure Docs BSP, HAL Select: drivers FP-SNS-DATALOG2 Download & unpack Sample applications Visualize log of sensors data and Use the pre-compiled binaries or re-compile the code control the device customizing your device configuration...
  • Page 21 The default firmware for STWIN.box enables the Bluetooth pairing via NFC and Fast Firmware On-The- Air upgrade through ST BLESensor app. By just turning on Bluetooth and NFC on the smartphone and placing your smartphone on top of the NFC Antenna of the STWIN.box, the smartphone...
  • Page 22 The above procedure is available only for STWIN.box. Sensortile.box PRO default firmware doesn't enable BLE pairing via NFC. In alternative, STWIN.box and Sensortile.box PRO can be connected to the ST BLESensor app by just open manually the application. The board presents itself as BLEDfFw. During BLE pairing, if requested, you must insert the following PIN: 123456.
  • Page 23 Firmware Update – FFOTA for STWIN.box and Sensortile.box PRO To update the firmware, you can simply follow the above procedure:...
  • Page 24 Firmware Update – FFOTA for STWIN.box and Sensortile.box PRO Once the download is finished, the new firmware will restart automatically. To reconnect to BLESensor app (if needed), restart the app. In Board Configuration tab you can also swap between 2 firmware already loaded into the STWIN.box or Sensortile.box PRO flash, download a new firmware or upgrade the current on with the latest available.
  • Page 25 Firmware Update – ST-LINK An alternative way is to use the pre-compiled binary provided in the package (i.e.: Projects\STWIN.box\Applications\DATALOG2) To update the firmware: • Connect the board to the preferred programmer (here we are using STLINK-V3MINI). • Connect both the boards to a PC through the proper USB cables.
  • Page 26 Firmware Update – USB STEVAL-STWINBX1, STEVAL-STWINKT1B and STEVAL-MKBOXPRO can also be reprogrammed via USB using the STM32CubeProgrammer "USB mode". To enter "Firmware upgrade" mode you must follow the procedure below: • Unplug the core system board. • Press the USR button. •...
  • Page 27 2.1 – DATALOG2 Demonstration...
  • Page 28 2.1.1 - USB sensor data streaming Command Line Interface...
  • Page 29 cli_example overview • The command line example is in the Utilities folder. It is available for Windows 32 and 64 bit, Linux and RaspberryPi 3 platforms. • USB_DataLog_Run.bat and USB_DataLog_Run.sh scripts provide a ready-to-use example. • If needed, the application can receive as parameters: timeout (-t), device configuration file (-f) and UCF file for Machine Learning Core or Intelligent Sensor Processing Unit (-u).
  • Page 30 Use one of the available device configuration examples in Utilities/STWIN.box_config_examples • Configure the board through ST BLESensor or Real Time Plot GUI For retro-compatibility, it is still supported the possibility to define a custom sensors configuration by editing one of the available examples. Be aware...
  • Page 31: Run The Application

    Run the application • Double click on the USB_DataLog_Run batch script • The application starts, and the command line appears, showing information about the connected board. • Press Enter to start the acquisition • Application will stop automatically if a timeout was set •...
  • Page 32 2.1.2 - USB sensor data streaming Real Time Plot...
  • Page 33 • HSDPython_SDK requires different Python modules, distributed together with FP-SNS-DATALOG2. By installing them through the provided installers, all the required dependencies are automatically solved – see HSDPython_SDK to fully setup your Python environment • Once the board is connected via USB and the...
  • Page 34 hsdatalog_GUI.py • Once the connection is established, you can: • Enable/disable the needed sensors • Setup data rate, full scale, timestamps • Retrieve sensor status • Load UCF to setup an MLC (Machine Learning Core) or an ISPU (Intelligent Sensor Processing Unit) •...
  • Page 35 hsdatalog_GUI.py • Real Time Plot GUI allow also to: • send a UCF configuration file and visualize outputs • choose which tag classes will be used for the next acquisition • handle data tagging and labelling of an ongoing acquisition •...
  • Page 36 hsdatalog_GUI.py • Once concluded the test, you can also check and plot the entire dataset by clicking on Plot the last acquisition button...
  • Page 37 2.1.3 – Data logging on SD card, configuration with BLESensor App * * Only for STWIN.box, STWIN and SensorTile.box PRO...
  • Page 38 ST BLESensor App: DATALOG2 tab • DATALOG2 application can be controlled via Bluetooth using the ST BLE Sensor app (for both Android and iOS - v4.17 and above) which lets you manage the board and sensor configurations, start/stop data acquisition on SD card and control data labelling.
  • Page 39 Configure MLC • You can also: • send a UCF configuration file to setup an MLC (Machine Learning Core) or an ISPU (Intelligent Sensor Processing Unit). The UCF file could be retrieved either from the smartphone memory or from a cloud storage (e.g. Google Drive, Microsoft OneDrive, etc.)
  • Page 40 Acquisition settings and control • By clicking to the tags button you can switch to the acquisition settings and control tab to: • start and stop an acquisition (to an SD card) • choose which tag classes will be used for the next acquisition •...
  • Page 41 ST BLESensClassic App: DATALOG2 tab • DATALOG2 tab is also available on ST BLESensClassic app, the old-fashioned UI app for Android and iOS • FP-SNS-DATALOG2 is fully supported by both apps...
  • Page 42 2.1.4 – Data logging on SD card, standalone mode * Only for STWIN.box, STWIN and SensorTile.box PRO...
  • Page 43 Start an acquisition in standalone mode • DATALOG2 can work also standalone, saving all the sensor data at the highest possible rate into the SD card • DATALOG2 can read a custom sensors configuration from the SD card root folder. To do so, you can simply save a JSON configuration file in the root folder of the SD card (same as described in 2.1.1).
  • Page 44: Auto Mode

    Automode • DATALOG2 also features the automode, which can be initiated automatically at the device power-up or reset • This mode can be used to start the datalog operations or to pause all the executions for a specific period by putting the sensor node in the "idle"...
  • Page 45 Automode • As for the standalone mode, to enable the automode you must setup properly the automode component properly in the device_config.json • enabled: if true, the automode starts after the reset and node initialization. If false, automode is not executed. •...
  • Page 46 2.2 – HSDPython_SDK...
  • Page 47 HSDPython_SDK • FP-SNS-DATALOG2 comes with a dedicated Python SDK, ready-to-use for integration into any data science design flow. • HSDPython_SDK is compatible also with FP- SNS-DATALOG1 and can handle data acquired from both packages. • HSDPython_SDK has been developed in Python 3.10...
  • Page 48 HSDPython_SDK • Before using HSDPython_SDK, Python3 (>=3.10) must be properly installed on your machine. • The following steps are valid for a Windows machine. Similar approach can be followed on other OS as well. • Download the installer from python.org and launch it •...
  • Page 49 HSDPython_SDK installation • Launching install.bat (Windows) or .sh (Linux) and the SDK modules will be installed in your Python environment • For Linux users further steps are needed. A step-by-step procedure is described in detail in the readme_linux file. • In this way, all the required dependencies are automatically solved and installed.
  • Page 50 HSDPython_SDK scripts • The SDK can be used to develop a custom project either by importing the provided modules in a new application or by modifying one of the available scripts • Here the list of scripts available in the examples folder: •...
  • Page 51 HSDPython_SDK scripts • You can execute the scripts in your preferred Python environment • i.e.: use the command python hsdatalog_plot.py • Discover the complete list of parameters for each script by executing with the –h option • i.e.: python hsdatalog_ploy.py –h...
  • Page 52 2.3 – UltrasoundFFT for STWIN.box...
  • Page 53 UltrasoundFFT on STWINKT1B • UltrasoundFFT example represents the evolution of the well-known example available for STEVAL-STWINKT1B in X- CUBE-MEMSMIC1 package. • Here an image from the original example, where the Power Spectral Density of the analog microphone were sent to this GUI...
  • Page 54 FP-SNS-DATALOG2 - UltrasoundFFT The example has been redesigned to support STEVAL-STWINBX1: → New FW: • Redesigned based on eLooM framework • SensorManager + EMData + DPU → New GUI: • Real-time FFT of Analog Microphone signal • 192kHz sampling rate, 80kHz bandwidth (ultrasound) •...
  • Page 55 FP-SNS-DATALOG2 - UltrasoundFFT ultrasound_fft_app.py is based on the same Python SDK and modules developed for hsdatalog_GUI.py. Following the same procedure described in 2.1.2, once launched the acquisition, you can: • Click on Connect button to allow the connection between the board and the PC •...
  • Page 56 3 - Documents & Related Resources...
  • Page 57 • DB4590: SensorTile.box PRO discovery box with multi-sensors and wireless connectivity for any intelligent IoT node – databrief • UM3133: Getting started with SensorTile.box PRO multi-sensors and wireless connectivity development kit for any intelligent IoT node – user manual Visit www.st.com for the complete list...
  • Page 58 Gerber files, BOM, Schematic • DB4015: Motion MEMS and microphone MEMS expansion board for STM32 Nucleo – databrief • UM2633: Getting started with the X-NUCLEO-IKS02A1 industrial motion MEMS sensor expansion board for STM32 Nucleo – user manual Visit www.st.com for the complete list...
  • Page 59 4 - STM32 Open Development Environment: Overview...
  • Page 60 The STM32 Open Development Environment (ODE) is an open, flexible, easy and affordable way to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with leading-edge components that can quickly be transformed into final designs.
  • Page 61 Environment prototyping hardware can be directly used in an Software advanced prototyping board or in and end product design using the same commercial ST components, or components from the same family as those found on the STM32 Nucleo Power supply...
  • Page 62 Thank you © STMicroelectronics - All rights reserved. The STMicroelectronics corporate logo is a registered trademark of the STMicroelectronics group of companies. All other names are the property of their respective owners.