Free Tool

Find the Best Microcontroller for Edge AI

Compare ESP32, STM32, and Arduino boards for your edge AI project. Select a use case, pick a framework, set your constraints — get a ranked list of compatible MCUs with specs and technical reasoning.

What do you want to build?

Select a use case to see which MCUs can handle it.

How the Compatibility Checker Works

  1. 1

    Select your use case

    Choose from object detection, voice recognition, predictive maintenance, and more. Each use case has specific hardware requirements for RAM, flash, and sensor inputs.

  2. 2

    Pick an AI framework

    Choose between TensorFlow Lite Micro, Edge Impulse, or let the checker evaluate both. Framework support varies by MCU architecture.

  3. 3

    Get ranked results with reasoning

    The checker scores each MCU based on RAM headroom, flash capacity, clock speed, hardware acceleration, and your constraints. Every rating comes with a technical explanation — not a marketing claim.

Learn more about choosing microcontrollers for machine learning or the differences between ESP32 and STM32 for AI workloads.

Supported Microcontrollers

27 MCU families validated against official datasheets.

i.MX RT1062

NXP

ARM Cortex-M7 @ 600 MHz

1024 KB RAM · 8 MB Flash

$25-$40 (dev board)

i.MX RT1064

NXP

ARM Cortex-M7 @ 600 MHz

1024 KB RAM · 4 MB Flash

$30-$60 (dev board)

STM32H7

STMicroelectronics

ARM Cortex-M7 @ 480 MHz

1024 KB RAM · 2 MB Flash

$30-$80 (dev board)

STM32U5

STMicroelectronics

ARM Cortex-M33 @ 160 MHz

786 KB RAM · 2 MB Flash

$20-$50 (dev board)

STM32H5

STMicroelectronics

ARM Cortex-M33 @ 250 MHz

640 KB RAM · 2 MB Flash

$25-$50 (dev board)

ESP32

Espressif

Dual-core Xtensa LX6 @ 240 MHz

520 KB RAM · 16 MB Flash

$5-$15 (dev board)

ESP32-C6

Espressif

Single-core RISC-V @ 160 MHz

512 KB RAM · 4 MB Flash

$5-$15 (dev board)

ESP32-S3

Espressif

Dual-core Xtensa LX7 @ 240 MHz

512 KB RAM · 16 MB Flash

$10-$25 (dev board)

GAP8

GreenWaves Technologies

9-core RISC-V (1 FC + 8 Cluster) @ 250 MHz

512 KB RAM · 8 MB Flash

$30-$80 (dev board)

i.MX RT1052

NXP

ARM Cortex-M7 @ 600 MHz

512 KB RAM · 8 MB Flash

$20-$50 (dev board)

RA6M5

Renesas

ARM Cortex-M33 @ 200 MHz

512 KB RAM · 2 MB Flash

$25-$50 (dev board)

STM32F7

STMicroelectronics

ARM Cortex-M7 @ 216 MHz

512 KB RAM · 2 MB Flash

$25-$60 (dev board)

ESP32-C3

Espressif

Single-core RISC-V @ 160 MHz

400 KB RAM · 4 MB Flash

$4-$10 (dev board)

ESP32-S2

Espressif

Single-core Xtensa LX7 @ 240 MHz

320 KB RAM · 4 MB Flash

$6-$18 (dev board)

LPC55xx

NXP

Dual-core ARM Cortex-M33 @ 150 MHz

320 KB RAM · 640 KB Flash

$15-$40 (dev board)

EFR32MG

Silicon Labs

ARM Cortex-M4F @ 40 MHz

256 KB RAM · 1 MB Flash

$20-$40 (dev board)

nRF52840

Nordic Semiconductor

ARM Cortex-M4F @ 64 MHz

256 KB RAM · 1 MB Flash

$20-$35 (dev board)

SAMD51

Microchip

ARM Cortex-M4F @ 120 MHz

256 KB RAM · 1 MB Flash

$15-$35 (dev board)

SAME51

Microchip

ARM Cortex-M4F @ 120 MHz

256 KB RAM · 1 MB Flash

$20-$40 (dev board)

STM32L5

STMicroelectronics

ARM Cortex-M33 @ 110 MHz

256 KB RAM · 512 KB Flash

$15-$35 (dev board)

STM32WB

STMicroelectronics

ARM Cortex-M4F @ 64 MHz + Cortex-M0+ @ 32 MHz

256 KB RAM · 1 MB Flash

$15-$35 (dev board)

STM32F4

STMicroelectronics

ARM Cortex-M4F @ 168 MHz

192 KB RAM · 1 MB Flash

$10-$30 (dev board)

nRF52833

Nordic Semiconductor

ARM Cortex-M4F @ 64 MHz

128 KB RAM · 512 KB Flash

$10-$25 (dev board)

STM32G4

STMicroelectronics

ARM Cortex-M4F @ 170 MHz

128 KB RAM · 512 KB Flash

$10-$20 (dev board)

STM32L4

STMicroelectronics

ARM Cortex-M4F @ 80 MHz

128 KB RAM · 1 MB Flash

$15-$50 (dev board)

STM32F3

STMicroelectronics

ARM Cortex-M4F @ 72 MHz

80 KB RAM · 512 KB Flash

$10-$15 (dev board)

nRF52832

Nordic Semiconductor

ARM Cortex-M4F @ 64 MHz

64 KB RAM · 512 KB Flash

$10-$30 (dev board)

Frequently Asked Questions

Which microcontroller is best for running AI models?
It depends on the use case. The ESP32-S3 is the best all-rounder for edge AI thanks to 512 KB SRAM, vector instructions, and camera support. For demanding workloads like real-time object detection, the STM32H7 with 1 MB SRAM and Cortex-M7 at 480 MHz offers more headroom. For simple keyword spotting or gesture recognition, an Arduino Nano 33 BLE or ESP32-C3 can be sufficient.
Can you run TensorFlow on an ESP32?
Yes. TensorFlow Lite Micro supports the Xtensa LX6 (ESP32) and LX7 (ESP32-S3) architectures. You deploy quantized .tflite models that run inference on-device without cloud connectivity. The ESP32-S3 is preferred because its vector instructions accelerate neural network operations.
How much RAM does edge AI need?
Minimum requirements vary by use case. Keyword spotting needs ~128 KB SRAM. Gesture recognition and anomaly detection need ~64-128 KB. Object detection typically needs 256+ KB, ideally 512 KB or more. These figures cover the model, inference buffers, and application code.
What is the cheapest MCU for machine learning?
The ESP32-C3 is the most affordable option at $1-3 per chip ($4-10 for a dev board). It runs TensorFlow Lite Micro on its RISC-V core and handles simple models like anomaly detection and keyword spotting. For more demanding tasks, the ESP32 at $2-5 per chip is the next step up.

Browse Resources

All resources →

Ready to Deploy Edge AI?

ForestHub compiles visual AI workflows to C code for your microcontroller. Pick your MCU above, then build and deploy in minutes.

Get Started Free