TinyML: Getting Started with STM32 X-CUBE-AI | Digi-Key Electronics
In this tutorial, Shawn shows you how to use the STMicroelectronics X-CUBE-AI add-on package to perform machine learning tasks in an STM32 microcontroller. Specifically, he shows you how to install and use the add-on in STM32CubeIDE. You will first need to train a sample neural network by following the steps in this video: • Intro to TinyML Part 1: Training a Neural ... . Download all three model files (.h5, .tflite, .h). If you are not familiar with STM32CubeIDE, we recommend watching this video first: • Getting Started with STM32 and Nucleo Part... First, we show you how to download and enable the X-CUBE-AI add-on package from within STM32CubeIDE. Note that this package is part of the STM32Cube.AI suite. From there, you can load your trained neural network (we will use the TensorFlow Lite, .tflite, file). X-CUBE-AI offers a number of tools to help you evaluate and test your model. Some of these can be run on your desktop, but others require a special program to be uploaded to your microcontroller first. Please note that we are using the Nucleo-L432KC for this demonstration, which can be found here: https://www.digikey.com/product-detai... The CubeMX software can then be used to auto-generate a number of source code files used to initialize your peripherals and inference engine. We then demonstrate how to interact with the X-CUBE-AI library to perform inference with a simple neural network. All of which is done in C. Finally, we measure the required flash and RAM used to run our basic neural network as well as the time it takes to run inference. These numbers can be used to compare against other machine learning frameworks, such as TensorFlow Lite for Microcontrollers. Before starting, we recommend you watch the following videos: What is Edge AI • Intro to Edge AI: Machine Learning + IoT –... Getting Started with Machine Learning Using TensorFlow and Keras • Getting Started with TensorFlow and Keras ... Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow • Intro to TinyML Part 1: Training a Neural ... Getting Started with TensorFlow Lite for Microcontrollers • TinyML: Getting Started with TensorFlow Li... Product Links: Nucleo-L432KC https://www.digikey.com/product-detai... Related Videos: Intro to Edge AI • Intro to Edge AI: Machine Learning + IoT –... Getting Started with Machine Learning Using TensorFlow and Keras • Getting Started with TensorFlow and Keras ... Intro to TensorFlow Lite Part 1: Wake Word Feature Extraction • Intro to TensorFlow Lite Part 1: Wake Word... Intro to TensorFlow Lite Part 2: Speech Recognition Model Training • Intro to TensorFlow Lite Part 2: Speech Re... Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi • Intro to TensorFlow Lite Part 3: Speech Re... Low-Cost Data Acquisition (DAQ) with Arduino and Binho for Machine Learning • Low-Cost Data Acquisition (DAQ) with Ardui... Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow • Intro to TinyML Part 1: Training a Neural ... Intro to TinyML Part 2: Deploying a TensorFlow Lite Model to Arduino • Intro to TinyML Part 2: Deploying a Tenso... Edge AI Anomaly Detection Part 1: Data Collection • Edge AI Anomaly Detection Part 1: Data Col... Edge AI Anomaly Detection Part 2: Feature Extraction and Model Training • Edge AI Anomaly Detection Part 2: Feature ... Edge AI Anomaly Detection Part 3: Deploy Machine Learning Models to Raspberry Pi • Edge AI Anomaly Detection Part 3: Deploy M... Edge AI Anomaly Detection Part 4: Deploy TinyML Model in Arduino to ESP32 • Edge AI Anomaly Detection Part 4: Deploy ... Related Project Links: TinyML: Getting Started with STM32 X-CUBE-AI https://www.digikey.com/en/maker/proj... Related Articles: What is Edge AI? https://www.digikey.com/en/maker/proj... Getting Started with Machine Learning Using TensorFlow and Keras https://www.digikey.com/en/maker/proj... TensorFlow Lite Tutorials: https://www.digikey.com/en/maker/sear... Low-Cost Data Acquisition (DAQ) with Arduino and Binho for ML https://www.digikey.com/en/maker/proj... Intro to TinyML: https://www.digikey.com/en/maker/sear... Edge AI Anomaly Detection: https://www.digikey.com/en/maker/sear...

TinyML: Getting Started with TensorFlow Lite for Microcontrollers | Digi-Key Electronics

I Added PSRAM to My RP2350 Projects—Here's What Happened

Getting Started with STM32 and Nucleo Part 1: Introduction to STM32CubeIDE and Blinky – Digi-Key

7 Microcontrollers You Should NEVER Use in a Product

Getting Started with STM32 and Nucleo Part 6: Timers and Timer Interrupts | Digi-Key Electronics

Running AI/Neural networks on microcontrollers made simple with the STM32Cube.AI

What I Learned from Letting AI Write My Microcontroller Code

Getting Started with STM32Cube.AI

Get Started with TinyML Webinar

Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow | Digi-Key Electronics

TinyML Explained: Bringing AI to Microcontrollers

China’s Secret | The Most Unbelievable Megaprojects in China | 4K Travel Documentary

Getting Started With STM32 & Nucleo Part 4: Working with ADC and DMA - Maker.io

The Most Famous AI Company Isn't Winning. Here's Who Is.

Exposing The Solid State Donut Battery. It's Over.

Before You Buy Local AI Hardware, Watch This

Inside the Mind of Anthropic CEO Dario Amodei | The Circuit | Extended Interview

Edge AI and IoT in 2025 — All You Need to Know

tinyML Talks: Enabling on-device learning on STM32 microcontrollers

