Download Print this page
ST STM32Cube Quick Start Manual

ST STM32Cube Quick Start Manual

Unction pack for stevalstwinkt1b evaluation kit for predictive maintenance application based on artificial intelligence (ai)
Hide thumbs Also See for STM32Cube:

Advertisement

Quick Links

Quick Start Guide
STM32Cube function pack for STEVAL-
STWINKT1B evaluation kit for predictive
maintenance application based on artificial
intelligence (AI)
(FP-AI-PREDMNT2)
Version 1.0 (Oct 15, 2021)

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32Cube and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STM32Cube

  • Page 1 Quick Start Guide STM32Cube function pack for STEVAL- STWINKT1B evaluation kit for predictive maintenance application based on artificial intelligence (AI) (FP-AI-PREDMNT2) Version 1.0 (Oct 15, 2021)
  • Page 2 Agenda Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview...
  • Page 3: Hardware And Software Overview

    1- Hardware and Software overview...
  • Page 4 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 5 • Low power operation (3.3 V supply) with built-in low power modes • Secure Wi-Fi authentication WEP-128, WPA-PSK (TKIP), WPA2-PSK • CE, FCC and IC certified • RoHS and China RoHS compliant • WEEE compliant Latest info available at www.st.com STEVAL-STWINWFV1...
  • Page 6 FP-AI-PREDMNT2 Software Description FP-AI-PREDMNT2 FP-AI-PREDMNT2 is an STM32Cube function pack that programs the STWIN as an Software Overview IoT Edge node, connected to the cloud, able to acquire sensor data, process them and send the results to the DSH-PREDMNT cloud dashboard. It includes dedicated...
  • Page 7 2- Setup & Demo Examples...
  • Page 8 • 1x STEVAL-STWINKT1B development board • 1x STEVAL-STWINWFV1 STEVAL-STWINWFV1 • Laptop/PC with Windows 7, 8 or 10 • 2x microUSB cables • 1 smartphone with ST BLESensor App STEVAL-STWINKT1B • Wi-Fi Router or access to a Wi-Fi network MicroUSB Cable ST BLESensor App...
  • Page 9 Setup & Demo Examples HW prerequisites • How to re-program/debug the STWIN STLINK-V3MINI Assembled Kit Programming cable...
  • Page 10 • Copy the .zip file content into a folder on your PC. The package will contain source code example (Keil, IAR, STM32CubeIDE) based on STEVAL-STWINKT1B • ST BLE Sensor Application for Android/iOS to download from Google Store / iTunes • ST DSH-PREDMNT Account FP-AI-PREDMNT2 is not the default firmware on STEVAL-STWINKT1B.
  • Page 11 Setup & Demo Examples Firmware update FP-AI-PREDMNT2 is not the default firmware on the STEVAL- STWINKT1B, so it needs to be downloaded on the board by the user. The easiest way is to use the pre-compiled binary provided in the package in the folder Projects\STM32L4R9ZI- STWIN\Applications\PREDMNT2\Binary.
  • Page 12 FP-AI-PREDMNT2 Setup Overview FP-AI-PREDMNT2 package structure www.st.com/stm32ode-fp Docs BSP, HAL, drivers BlueNRG, Download & unpack FreeRTOS, AI-Library, … Select Function Pack: FP-AI-PREDMNT2 Applications Configure the board through ST BLESensor app and monitor the application through the DSH-PREDMNT dashboard Projects\STM32L4R9ZI-STWIN\Applications\PREDMNT2\...
  • Page 13 FP-AI-PREDMNT2 Setup Overview STWIN Power ON/OFF • Battery only (no USB cable): • Power ON • Long-press the PWR button until the red led turns off (~1 sec) • Power OFF • Press the PWR button • Plugged mode (USB cable) •...
  • Page 14 2.1- Setup wi-fi and security certificates through ST BLESensor app...
  • Page 15 Wi-fi configuration and certificate request • Once the firmware has been loaded, press the [Reset] black button on the STWIN core system. Then, open STBLESensor app and connect to PM2_100 device. • Open the menu, select [Board configuration] and open [Certificate Request]. •...
  • Page 16 Wi-fi configuration and certificate request • Ask for a new certificate by tapping the + symbol placed at the bottom of the screen or retrieve the ones already associated to your myST account. The certificates valid for your STWIN are highlighted in blue •...
  • Page 17 2.2- Setup and use DSH-PREDMNT dashboard...
  • Page 18 How to use DSH-PREDMNT dashboard DSH-PREDMNT features...
  • Page 19 How to use DSH-PREDMNT dashboard Configure periodic update time • Set streaming times to reduce bandwidth according to the system dynamics Drag balloons Configure transmission periods...
  • Page 20 How to use DSH-PREDMNT dashboard Configure measures and condition monitoring thresholds • Configure the measures to take under control and set thresholds for warning and alerts Threshold configuration Configure alarms Measures domains...
  • Page 21 How to use DSH-PREDMNT dashboard Add a device to live monitoring • Once devices are selected in the live dashbaord, a new cardbox will be showed and, if your physical device is transmitting, you will see live data monitoring refreshing. •...
  • Page 22 How to use DSH-PREDMNT dashboard Hand Shaking Device – Flexible visualization • The Dashboard recognizes the device, update the device shadow (that will be used for other purposes also) and adapt the visualization Vibration (TDM) Environmental domain domain Vibration (FFT) domain Acoustic domain...
  • Page 23 FP-AI-PREDMNT2 DHS-PREDMNT dashboard to visualize data and setup STWIN...
  • Page 24 2.3- Setup NanoEdge™ AI library by Cartesiam...
  • Page 25 Setup a NanoEdge™ AI library into FP-AI-PREDMNT2 Build library using Embed into Generating contextual data using Use with NanoEdge™ AI FP-AI- FP-SNS-DATALOG1 DSH-PREDMNT Studio PREDMNT2 Build Embed Process Capture data Label data NanoEdge Lib NanoEdge Lib new data NanoEdge Normal Modeling integration Real-time...
  • Page 26 Capture data and create a labelled dataset Generating contextual data using FP-SNS-DATALOG1 • Flash STWIN board with HSDatalog firmware • Acquire training data onto SDCard • Extract and convert logs using Generate data set Label Data hsdatalog_to_cartesiam.py Python script Data log Regular signals file.csv Abnormal signals file.csv SDCard...
  • Page 27 Use NanoEdge AI Studio tool Build library using NanoEdge™ AI Studio • Generate a Machine Learning library with NanoEdge™ AI Studio Building and Export Library based on the provided data • Download the library from file the NanoEdge™ AI Studio 1.
  • Page 28 Integration in the FP Embed into FP-AI-PREDMNT2 • Replace the provided stub in the function pack by the newly generated library Integrate Lib files into the • Rebuild the firmware • Program the STWIN with the new project firmware NanoEdgeAI.h Libneai.a Re-compile the FP...
  • Page 29 Running and Learning Use FP-AI-PREDMNT2 with DSH-PREDMNT • Learn the normal modes on the NanoEdge edge Run the demo: NanoEdgeAI Learn execute NanoEdgeAI_learn() NanoEdgeAI_execute()
  • Page 30 Running and Re-training Use FP-AI-PREDMNT2 with DSH-PREDMNT • Monitor anomalies in detection Analyze and decide if new • Run the demo Go back to learn mode to improve the learning or to add new normal training should be launched again modes...
  • Page 31 Send a command to NanoEdge™ AI library • DSH-PREDMNT allow you to configure and setup your custom NanoEdge™ AI library A. Click on the Configuration tab B. Select the symbol of the desired STWIN board C. Click on Anomaly detection...
  • Page 32 Send a command to NanoEdge™ AI library • The settings tab allow to setup the sensitivity and the threshold parameters • The commands tab allow to chose either train or detect command. The result of the train command is the training of the neai library for the time interval set in the “phase duration”...
  • Page 33 Detection phase of NanoEdge™ AI library Orange led is blinking Start detection Alarm sent • If the detect command is set, in according with the custom NanoEdge™ AI library, an anomaly event is sent to the dashboard and an event will be shown in the EVENTS panel of the dashboard.
  • Page 34 3- Documents & Related Resources...
  • Page 35 Documents & Related Resources All documents are available in the DESIGN tab of the related products webpage FP-AI-PREDMNT2: • DB4566: STM32Cube function pack for STEVAL-STWINKT1B evaluation kit for predictive maintenance application based on – artificial intelligence (AI) databrief • UM2937: Getting started with the STM32Cube function pack for STEVAL-STWINKT1B evaluation kit for predictive –...
  • Page 36 • Cloud based web application for condition monitoring and predictive maintenance To build up your custom NanoEdge AI library: NanoEdge AI Studio: • Automated Machine Learning (ML) tool for STM32 developers FP-SNS-DATALOG1: • STM32Cube High Speed Datalog function pack for STWIN evaluation kits Consult www.st.com for the complete list...
  • Page 37 4- STM32 Open Development Environment: Overview...
  • Page 38 STM32 Nucleo expansion boards, and compatible with the STM32Cube software framework Function Packs o STM32Cube Function Packs. Set of function examples for some of the most common application cases built by leveraging the modularity and interoperability of STM32 Nucleo development boards and expansions, with STM32Cube software and expansions.
  • Page 39 Touch controller ACCESS LED drivers • Select your development environment (IAR EWARM, Keil MDK, and GCC-based IDEs) and use the free STM32Cube tools and software. ACTUATE Stepper motor driver Move DC & BLDC motor driver •...
  • Page 40 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.