↓ Skip to main content

ESP-TFLite-Micro workshop

Table of Contents

Welcome to the ESP-TFLite-Micro workshop!

About this workshop
#

This hands-on workshop covers the complete workflow for running machine learning directly on a microcontroller, with no network connection or cloud service involved. You will repeatedly move a development board by hand to record a gesture of your choice, turn those recordings into a labeled dataset, and train a small neural network on your computer to tell your gesture apart from other movements. You will then compress the model so that it fits in the limited memory of the microcontroller, embed it in the firmware, and measure how reliably the board recognizes the gesture as you perform it.

This workflow is implemented in the ESP-SensairShuttle gesture recognition example, which the workshop uses as its starting point. Specifically, you will collect motion data from the BMI270 IMU on the ESP-SensairShuttle, train a lightweight gesture classification model, convert it to TensorFlow Lite format, and run inference on the ESP32-C5 with ESP-TFLite-Micro.

By the end of the workshop, you will be able to:

  • Capture and label time-series IMU data
  • Prepare a dataset for gesture classification
  • Train and evaluate a compact 1D convolutional neural network with Keras
  • Convert the trained Keras model to TensorFlow Lite
  • Embed a model in an ESP-IDF application
  • Run and validate on-device inference with ESP-TFLite-Micro

Prerequisites
#

Required hardware:

  • Computer running Linux, Windows, or macOS
  • ESP-SensairShuttle
  • USB cable that supports power and data

Required software:

  • ESP-IDF v6.1
  • Python 3.12 with TensorFlow, pandas, NumPy, matplotlib, and scikit-learn
  • Git
  • A serial terminal

Agenda
#

Time requirements
#

Estimated time: 180 min

Workshop resources
#

Feedback
#

If you have any feedback about the workshop, feel free to start a new discussion on GitHub.

Next step
#

Introduction: Machine learning on microcontrollers

There are no articles to list here yet.