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
STWIN.box Modular platform expansion - STEVAL-PDETECT1 Hardware Overview Presence Detection add-on for STWIN.box • Add-on evaluation kit connected to STWIN.box targeting human presence applications. The kit includes: • STEVAL-PDETCS1 board • TMOS long range Fresnel lens: TMOS63-10 • Plastic case for TMOS63-10 Fresnel lenses •...
• Dedicated Python SDK, ready-to-use for integration into any data science design flow • Compatible with ST BLE Sensor app for system setup and real-time control • Allow to setup MLC (Machine Learning Core) or ISPU (Intelligent Sensor Processing Unit) •...
Page 9
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 11
• 2 type-C USB cables + 1 STLINK-V3MINIE • In alternative it is also possible to directly program the STWIN.box with a single USB-C cable (refer to firmware update – USB) • 1 micro-SD card • 1 smartphone with ST BLE Sensor App...
• If you are interested in FW debugging, STWIN.box 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 13
• Download and install STM32CubeProgrammer • PDetect • 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 BLE Sensor App •...
Page 14
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 15
NFC Antenna of the STWIN.box, the smartphone will read the Bluetooth pairing information and it will automatically load the ST BLESensor. In alternative, just open manually the application. During BLE pairing, if requested, insert the following PIN: 123456.
Page 16
Firmware Update – ST-LINK An alternative way is to use the pre-compiled binary provided in the package (i.e.: Projects\STM32U585AI- STWIN.box\Applications\PDetect\Binary) To update the firmware: • Connect the board to the preferred programmer (here we are using STLINK-V3MINIE). • Connect both the boards to a PC through the proper USB cables.
Page 17
Firmware Update – USB STEVAL-STWINBX1 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 in STWIN.box •...
Page 19
2.1.1 - USB sensor data streaming Real Time Plot...
Page 20
Execute hsdatalog_GUI.py • FP-SNS-DATALOG2 provides a Python example for PDetect real time control and plot • hsdatalog_GUI.py works within the HSDPython_SDK, developed in Python 3.10 on Windows and Linux environments. • 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 –...
Page 21
hsdatalog_GUI.py • Once the connection is established, you can: • Enable/disable the needed sensors • Setup data rate, full scale, timestamps • Retrieve sensor status • Save and load a configuration via a JSON file • Start/stop logging data on the PC...
Page 22
hsdatalog_GUI.py • Real Time Plot GUI allows also to: • setup tag classes and handle data tagging and labelling of an ongoing acquisition • Enable FFT calculation for accelerometers and microphones • set up the acquisition name and description...
Page 23
hsdatalog_GUI.py • Furthermore, you can set up Automode to start the datalog operations or to pause all the executions for specific periods • Setup the desired values in Automatic Mode widget • Automode section for further details...
Page 24
hsdatalog_GUI.py • Once the test is concluded, you can also check and plot the entire dataset by clicking on Plot the last acquisition button...
Page 25
2.1.2 – Data logging on SD card, configuration with BLESensor App...
Page 26
ST BLESensor App: DATALOG2 tab • PDetect application can be controlled via Bluetooth using the ST BLE Sensor app (for both Android and iOS – v5.2 and above) which lets you manage the board and sensor configurations, start/stop data acquisition on SD card and control data labelling.
Page 27
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 28
2.1.3 – Data logging on SD card, standalone mode...
Page 29
Start an acquisition in standalone mode • PDetect can work also standalone, saving selected sensor data at the highest possible rate into the SD card • PDetect 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 •...
Automode • PDetect 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 31
Automode • As for the standalone mode, to enable the automode you must setup 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 33
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 34
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 35
HSDPython_SDK installation • The three modules are distributed as Python wheels • Launch HSDPython_SDK_install.bat (Windows) or HSDPython_SDK_ install.sh (Linux) • The SDK modules and their dependencies will be installed in your Python environment • For Linux users, further steps are needed. •...
Page 36
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 37
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_plot.py –h...
Page 39
• UM2965: Getting started with the STEVAL-STWINBX1 SensorTile wireless industrial node development kit– user manual STEVAL-PDETECT1: • Gerber files, BOM, Schematic • DB5165: Presence detection add-on for STWIN.box – databrief • UM3320: Getting started with the STEVAL-PDETECT1 Presence Detection evaluation board – user manual Visit www.st.com for the complete list...
Need help?
Do you have a question about the STEVAL-PDETECT1 and is the answer not in the manual?
Questions and answers