Machine learning on a microcontroller
Small machine-learning models can run on microcontrollers, with no operating system and very little memory.
Key points
- Training normally happens on a computer or in the cloud; the microcontroller only runs inference, applying a fixed, already-trained model to new sensor data.1
- Google renamed TensorFlow Lite to LiteRT in September 2024. Its microcontroller version, LiteRT for Microcontrollers (still kept in the tflite-micro code repository), needs no operating system, no standard C/C++ libraries and no dynamic memory allocation.213as of 6 October 2026
- ExecuTorch is the PyTorch project's runtime for on-device inference, including microcontroller targets.4as of 6 October 2026
- Microcontroller-class NPUs now appear in MCUs from several vendors. Some license Arm's Ethos-U NPU and pair it with a Cortex-M core; others design an NPU of their own.5678
Where to go next
- The one room a phone does not follow you into an engineering note from our team
- Wake-word and stop-phrase detection for VAHA: dataset, validation accuracy and first field check a whitepaper from our lab
- Quantisation: making models fit builds on this
Spotted a mistake, or found this useful?
Tell usSources
- LiteRT for Microcontrollers · Google · Project docs
- TensorFlow Lite is now LiteRT · Google for Developers Blog · News
- TensorFlow Lite for Microcontrollers (tflite-micro) repository · TensorFlow / Google · Project docs
- ExecuTorch overview · PyTorch · Project docs
- Ethos-U55 microNPU · Arm · Vendor page
- Ensemble family of fusion processors and microcontrollers · Alif Semiconductor · Vendor page
- RA8P1: 1GHz Arm Cortex-M85 and Ethos-U55 NPU based AI microcontroller · Renesas · Vendor page
- MCX N94x and N54x · NXP · Vendor page