Getting started with FP-AI-NANOEDG1

Revision as of 16:22, 26 June 2020 by Registered User
Under construction.png The preparation of this wiki page is under progress...

This article is a quick start guide for FP-AI-NanoEdg1, which is a condition monitoring function pack using vibration sensor data using STM32Cube and STM32 microcontroller family. This article will provide a brief overview on the hardware and software used, setting the software and hardware, using the function pack to do the data collection, installing the NanoEdgeAI machine learning library and testing it, and finally the links to useful online resources which can help a user to get started.

1. Hardware and Software Review

1.1. Discovery kit with STM32L562QE MCU Hardware Description

The STM32L562E-DK Discovery kit is a complete demonstration and development platform for Arm® Cortex®-M33 with Arm® TrustZone® and ARMv8-M mainline security extension core-based STM32L562QEI6QU microcontroller, with 512 Kbytes of Flash memory and 256 Kbytes of SRAM. The key specifications of the board are

File:STM32L562E-DK.png
STM32L562E-DK Board
  • STM32L562QEI6QU microcontroller featuring 512 Kbytes of Flash memory and 256 Kbytes of SRAM
  • 1.54" 240 × 240 pixel-262K color TFT LCD module with parallel interface and touch-control pane
  • MEMS digital microphones
  • 512-Mbit Octal-SPI Flash memory
  • Bluetooth® V4.1 Low Energy module
  • iNEMO 3D accelerometer and 3D gyroscope
  • 2 user LEDs
  • User and reset push-buttons
  • Board connectors:
  • USB Type-C™
    • microSD™ card
    • Stereo headset jack including analog microphone input
    • JTAG debugger

1.2. FP-AI-NanoEdg1 Software Description

The FP-AI-NANOEDG1 function pack helps to easily jump-start the development and implementation of condition monitoring applications designed with the NanoEdge™ AI Studio solution from Cartesiam.

File:SoftwareDescription.png
Overall Software Architecture

The key features of the software are

  • Complete firmware to develop a sensor node for condition monitoring and predictive maintenance applications based on vibration data:
  • Simple LCD user interface
  • Autonomous mode controlled by user button.
  • Wired interactive command-line interface (CLI) for
    • Node configuration
    • AI utility for data logging on a microSD™ card
    • Management of the learning and detection phases of Cartesiam Machine Learning solution
  • Free, user-friendly license terms

2. Setup and Application Examples

2.1. HW prerequisites for STM32L562E-DK

To use the FP-AI-NanoEdg1 function pack on STM32L562E-DK, the user need to have following hardware items in hand:

  • 1x STM32L562E-DK development board
  • Laptop/PC with Windows 7 or later.
  • 1x USB cable to connect the PC to the Micro-B USB connector on the board CN17-STLNK
  • 1x micro SDcard for data logging operations

2.2. Software and other prerequisites

2.2.1. FP-AI-NanoEdg1

  • Download the FP-AI-NANOEDG1 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 (STM32CubeIDE only) based on STM32L562E-DK.

2.2.2. STM32CubeIDE

  • Integrated Development Environment for STM32
  • Download and install STM32CubeIDE.

2.2.3. STM32 ST-Link Utility

  • full-featured software interface for programming STM32 microcontrollers.
  • Download and install STSW-LINK004.

2.2.4. TeraTerm

  • Open source free software terminal emulator
  • Download and install TeraTerm

2.3. FP-AI-NANOEDG1 Console Application

2.3.1. Get the Function Pack

2.3.2. Flash the Application

2.3.3. Use the Command Line Interface (CLI)

3. Data Collection

3.1. Configure the Sensor for Data Logging

3.2. Logging the Data

4. Installing and Testing NanoEdgeAI Machine Learning Library

4.1. Preparing the Data

4.2. Generating a Library with NanoEdgeAI Studio

4.3. Installing the Generated Library

4.4. Testing the Generated Library

5. Documents and Related Resources