stm32-hotspot / stm32ai-nanoedge-current-classification

C code examples on how to collect data from current sensor, print the values through uart and then extend an embedded application with NEAI library

Repository from Github https://github.comstm32-hotspot/stm32ai-nanoedge-current-classificationRepository from Github https://github.comstm32-hotspot/stm32ai-nanoedge-current-classification

STM32 dataloggers example

In this repository :

  • C code examples on how to collect data from current sensor, print the values through uart and then extend an embedded application with NEAI library

Contents

Installation

Clone NEAI-LAB repository.

Hardware

These code examples allow to quickly extend existing data logger app with NEAI Studio based inferencing (n-Class classification) feature using following hardware:

Development boards

Wiring

Extend NUCLEO-U575ZI-Q with sensor shield assembling X-NUCLEO-IKA01A1 on the top of MCU board using Arduino connectors.

Sensors

Software

Prerequisites

These STM32Cube projects has been developped and tested under STM32CubeIDE v1.10.1. It requires installing following softwares and packages:

  • The STM32CubeIDE software: Download
  • A serial port terminal, for example PuTTY: Download

[optional] To create your own NanoEdge AI project, following softwares are also required:

  • The NanoEdge AI Studio software: Download

NanoEdge AI library integration

The NanoEdgeAI library is composed of 3 files to include in the STM32Cube project:

  • The libneai.a file, to place in NEAI_Lib/Lib folder.
  • The NanoEdgeAI.h header file, to place in the NEAI_Lib/Inc folder.
  • The knowledge.h header file, to place in the NEAI_Lib/Inc folder.

To add the library and header files to the STM32VubeIDE environment perform below steps:

Project -> Properties -> C/C++ General -> Paths and Symbols -> Libraries -> Add... -> neai Project -> Properties -> C/C++ General -> Path and Symbols -> Library Paths -> Add... -> NEAI_Lib/Lib Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes -> Add... -> NEAI_Lib/Inc

Running and flashing the application on the board

Connect your development board (by the STLK USB port) to your computer. Compile and flash the code using STM32CubeIDE. Use console application to see the output: 115200,8,N,1.

About

C code examples on how to collect data from current sensor, print the values through uart and then extend an embedded application with NEAI library

License:Other


Languages

Language:C 99.8%Language:Assembly 0.2%