Run a neural network model on an STM32L4 Discovery board
Introduction
Prepare development environment
Collect training data
Train the model
Feature extraction
Run the model on development board
Next Steps
Run a neural network model on an STM32L4 Discovery board
Who is this for?
This is an advanced topic for software developers interested in building network models for microcontrollers.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Build a letter recognition neural network(NN) model using TensorFlow framework
- Run the NN model on an STM32 B-L475E-IOT01A2 board using STM32CubeAI
Prerequisites
Before starting, you'll need the following prerequisites:
- Familiarity with ML concepts
- Familiarity with C programming on microcontrollers
- STM32 B-L475E-IOT01A2 board
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll build a TensorFlow model that recognizes letters from motion data on an STM32 B-L475E-IOT01A2. First, you’ll use Anaconda and a Jupyter notebook to collect accelerometer samples and train a multilayer perceptron. Then, you’ll extract statistical features, retrain the model, import it with STM32Cube.AI, and run predictions with the board’s onboard accelerometer.