Most ML projects pick a model first and find hardware later. TinyML reverses the order. On a microcontroller the firmware, the working buffers and the model share the same few hundred kilobytes, so the memory budget is the first design input.
We wrote a longer guide on TinyML at dev-station.tech, with every source linked. Here is the short engineering version.
How big are real TinyML models?
The MLPerf Tiny benchmark publishes a reference model for each of its tasks:
- Keyword spotting, DS-CNN: 52.5 KB, target 90% top-1 accuracy
- Visual wake words, MobileNetV1: 325 KB, target 80% top-1 accuracy
- Anomaly detection, fully connected autoencoder: 270 KB, target 0.85 AUC
The runtime is small too. Google states that the core LiteRT for Microcontrollers runtime fits in 16 KB on an Arm Cortex-M3, with no operating system, no standard C or C++ library and no dynamic memory allocation.
What does the toolchain look like?
Train a small model that uses only supported operations. Convert it to a LiteRT model, then turn that file into a C byte array so it sits in read-only program memory:
# after converting the trained model to model.tflite
xxd -i model.tflite > model_data.cc
Inference then runs through the C++ library. Training never runs on the chip, because Google lists on-device training as unsupported.
Checklist before you train anything
- [ ] Write down the one decision the device makes, how fast, and what happens after a detection.
- [ ] Record real signals from the actual machine in healthy and faulty states.
- [ ] Subtract firmware and buffers from chip memory. The remainder is the model budget.
- [ ] Start with the smallest model that meets the quality target and measure it on the target chip.
- [ ] Decide how new models reach devices in the field, since each update is a firmware build.
When is TinyML the wrong tier?
Open-ended language and high-resolution vision need megabytes or more. Those jobs go to an embedded Linux board or a local LLM. A common mixed design uses a microcontroller to wake a bigger device only when it detects something worth a closer look.
Dev Station writes the firmware and plans the update path around TinyML models for manufacturers in the US and UK. The full guide with sources and a decision table is at https://dev-station.tech/tinyml/

Top comments (0)