How to perform condition monitoring on STM32 using FP-AI-NANOEDG1

Revision as of 07:55, 23 June 2020 by Registered User
Under construction.png Delivery for this distribution is being prepared

In this guide, you will learn how to get started using the Function Pack for Predictive Maintenance FP-AI-NanoEdg1 and use it as your first project to detect anomalies in your setup using accelerometer data.

This Function Pack supports two STM32 boards, STWIN and STM32L562E. Following the steps provided in this page a users will be able to create the data logs for their setups, and generate EdgeAi libraries using Cartesiam NanoEdge AI Studio. Once these libraries are generated the user can use these libraries by plugging them into the provided FP and can learn the nominal behavior of his setup by issuing commands through a command line interface. After training phase the monitoring can be started and any anomalies from the normal behavior are reported on the CLI as well as on the LCD (in case of L5).

1. What you will learn

  • How to log the motion sensor data.
  • How to parse and read the motion sensor data.
  • How to generate the suitable libraries for your sample data set using Cartesiam NanoEdge AI Studio.
  • Learn and detect the anomalies and controlling the hyper parameters of learning and detection.

2. Requirements

2.1. Hardware

STWIN or STM32L562E

The STWIN (STEVAL-STWINKT1) and STM32L562E are two STM32 boards with environment sensors whose an accelerometer.

STLINK-V3MINI

The STLINK-V3MINI is a stand-alone debugging and programming mini probe for STM32 microcontrollers.

Micro SD card between 4GB and 16GB

2.2. Software

Install STM32 CubeIDE

Download STM32 CubeIDE from ST website. This software allows the development and the compilation of firmwares.

Optional: Install STM32 ST-LINK Utility (STSW-LINK004) or STM32CubeProgrammer

STM32 ST-LINK Utility and STM32CubeProgrammer allow the programming of targets and can be useful for some cases (example : erase the flash of the target).

Install Tera Term

You can easily download Tera Term form the internet.

Install Cartesiam NanoEdgeAIStudio

You can get a pro licence with your company. For that contact support@cartesiam.com.

Otherwise, you can download NanoEdge AI Studio for free by filling out the following form: https://share.hsforms.com/1vVgNZ5JfQAWeJs10Yw6oHQ2a3c9

At this moment of the tutorial, if you want more information about this software see the NanoEdge AI Studio Documentation.

Download or clone the FP-AI-NanoEdg1 Function Pack

Warning white.png Warning
Add the link from ST website for the download of FP-AI-NanoEdg1 once it's ready

Download the latest version of FP-AI-NanoEdg1 Function Pack from ST website or clone the project into your STM32CubeIDE workspace directory.

Command to clone FP-AI-NanoEdg1: git clone ssh://gitolite@codex.cro.st.com/ai-poc/STM32_PREDMNT1_TMP.git