Other common microcontroller boards

The ESP32 is one of many boards that you can use for physical computing. This page compares the ESP32 with other common boards: Arduino, Raspberry Pi Pico, Teensy, micro:bit and others. It also tells you when to use a Raspberry Pi computer. Most of what you learn on this site, such as GPIO, PWM, I²C and SPI, applies to all of these boards.

Microcontroller or single-board computer?

Microcontroller (MCU)

A small chip that runs one program directly, without an operating system. It starts in less than a second, uses little power and controls pins with exact timing. You can disconnect the power at any time.

Examples: ESP32, Arduino Uno, Raspberry Pi Pico.

Single-board computer (SBC)

A full computer that runs Linux. It has gigabytes of RAM, a desktop, a camera port and HDMI. It can run Python, a web server and AI models. It takes time to start, uses more power and must shut down correctly. Its pin timing is less exact.

Examples: Raspberry Pi 5, Raspberry Pi Zero 2 W.

Use both together. Many projects use a Raspberry Pi for the camera, screen and network, and a microcontroller for the motors and sensors. They communicate over USB serial or Wi-Fi.

Microcontroller boards compared

Cost: $ is less than approximately US$10, $$ is approximately US$10 to $30, and $$$ is more than approximately US$30. Prices change, and clone boards cost less.

BoardChip and CPURAM / flashLogicWirelessGood pointsCost
ESP32 DevKit (this site)ESP32, 2 × Xtensa, 240 MHz520 KB / 4 MB3.3 VWi-Fi, BluetoothFast, wireless, low cost, many pins. See ESP32 variants$
Arduino Uno R3ATmega328P, 8-bit AVR, 16 MHz2 KB / 32 KB5 VNoneThe classic beginner board. Very robust. Most shields and tutorials. 6 analog inputs$$
Arduino Uno R4 Minima / WiFiRenesas RA4M1, Arm Cortex-M4, 48 MHz32 KB / 256 KB5 VWiFi model: Wi-Fi and BLE (ESP32-S3 co-processor)Uno shape and shields, more memory, DAC, CAN, 12 × 8 LED matrix on the WiFi model$$
Arduino NanoATmega328P, 16 MHz2 KB / 32 KB5 VNoneAn Uno in a small breadboard format. Clones are very low cost$–$$
Arduino Nano family (Every, 33 IoT, 33 BLE, ESP32, Matter)Different chips in the Nano format6 KB to 512 KB / 48 KB to 16 MB5 V (Every) or 3.3 V (others)Most have Wi-Fi or BLESame small format with more features. The Nano ESP32 uses an ESP32-S3$$
Arduino Mega 2560ATmega2560, 16 MHz8 KB / 256 KB5 VNone54 digital pins, 16 analog inputs, 4 hardware serial ports. Used in 3D printers$$–$$$
Arduino Leonardo / Pro MicroATmega32U4, 16 MHz2.5 KB / 32 KB5 V (some Pro Micro: 3.3 V)NoneNative USB: acts as a keyboard, mouse or game controller$–$$
Raspberry Pi Pico / Pico WRP2040, 2 × Arm Cortex-M0+, 133 MHz264 KB / 2 MB3.3 VPico W: Wi-Fi, BLEVery low cost, PIO state machines for custom protocols, native USB, drag-and-drop programming, good MicroPython support$
Raspberry Pi Pico 2 / Pico 2 WRP2350, 2 × Arm Cortex-M33 or 2 × RISC-V, 150 MHz520 KB / 4 MB3.3 VPico 2 W: Wi-Fi, BLEFaster than the RP2040, floating-point unit, more PIO, security features. Same pin layout as the Pico$
Other RP2040 / RP2350 boardsAdafruit Feather RP2040, Pimoroni, Seeed XIAO RP2040, WaveshareVaries3.3 VSome modelsThe same chips in other formats, often with a USB-C port, STEMMA QT / Qwiic connector or battery charger$–$$
Teensy 4.0 / 4.1NXP i.MX RT1062, Arm Cortex-M7, 600 MHz1 MB / 2 to 8 MB3.3 VNone (4.1 has Ethernet)Very fast. Excellent audio library, USB MIDI and USB audio. 4.1 has a microSD slot$$–$$$
BBC micro:bit V2nRF52833, Arm Cortex-M4, 64 MHz128 KB / 512 KB3.3 VBLE, micro:bit radioBuilt-in 5 × 5 LEDs, buttons, accelerometer, compass, microphone and speaker. Block coding in MakeCode$$
nRF52840 boardsNordic nRF52840, Arm Cortex-M4, 64 MHz (XIAO nRF52840, Feather nRF52840)256 KB / 1 MB3.3 VBLE 5, Thread, ZigbeeVery low power, good for Bluetooth devices on batteries. Used in Meshtastic radios$$
STM32 boardsSTM32 (Arm Cortex-M): “Blue Pill”, “Black Pill”, NucleoVaries: 20 KB to 1 MB RAM3.3 VUsually noneProfessional chips used in industry, many peripherals. Nucleo boards have a debugger on the board$–$$
SAMD21 boardsMicrochip SAMD21, Arm Cortex-M0+, 48 MHz (XIAO SAMD21, Adafruit QT Py, Trinket M0)32 KB / 256 KB3.3 VNoneSmall, native USB, good CircuitPython support$
ESP8266ESP8266, Tensilica, 80 to 160 MHz (Wemos D1 Mini, NodeMCU)80 KB / 4 MB3.3 VWi-Fi onlyThe older, lower-cost Wi-Fi chip. Only one analog input. Use an ESP32 for new projects$
ATtiny85ATtiny85, 8-bit AVR, 8 to 16 MHz (Digispark)512 bytes / 8 KB5 V or 3.3 VNoneTiny 8-pin chip for very small, simple projects$
Check the logic voltage before you connect two boards or a module. A 5 V Arduino output can damage a 3.3 V input on an ESP32 or Pico. Use a level shifter or a voltage divider. Read Level shifters for more information.

Raspberry Pi computers compared

BoardCPURAMWirelessPowerGood pointsCost
Raspberry Pi 54 × Arm Cortex-A76, 2.4 GHz1 to 16 GBWi-Fi 5, BLE 55 V, 5 A USB-C supply recommendedFastest Pi. Two 4K HDMI outputs, PCIe for an NVMe SSD, two camera ports, power button, real-time clock$$$
Raspberry Pi 4 Model B4 × Arm Cortex-A72, 1.5 to 1.8 GHz1 to 8 GBWi-Fi 5, BLE 55 V, 3 A USB-CLower cost and cooler than the Pi 5. Many cases and guides$$$
Raspberry Pi 400 / 500Pi 4 or Pi 5 inside a keyboard4 to 8 GBWi-Fi 5, BLE 5USB-CA complete desktop computer in a keyboard, with the GPIO header at the back$$$
Raspberry Pi Zero 2 W4 × Arm Cortex-A53, 1 GHz512 MBWi-Fi 4, BLE 4.25 V, 2.5 A micro-USBSmall and low cost. Good for a camera, a small web server or a network sensor$$
Raspberry Pi 3 Model B+4 × Arm Cortex-A53, 1.4 GHz1 GBWi-Fi 5, BLE 4.25 V, 2.5 A micro-USBOlder model that many labs still have. Good for simple projects$$
Arduino UNO QQualcomm Arm Linux processor plus an STM32 microcontroller2 to 4 GBWi-Fi, BLEUSB-CLinux computer and microcontroller on one board in the Uno shape. Works with Uno shields$$–$$$

All Raspberry Pi computers have a 40-pin GPIO header with 3.3 V logic. They have no analog inputs. Use an external ADC chip, such as the ADS1115, to read a potentiometer or an analog sensor.

How to program them

Arduino IDE (C++)

All the microcontroller boards above work in the Arduino IDE. Install the board package for your board in the Boards Manager. For RP2040 and RP2350 boards, the “Raspberry Pi Pico/RP2040/RP2350” package by Earle Philhower is the most complete.

MicroPython and CircuitPython

Python for microcontrollers. They are easy to learn, and you can change the code without a compile step. The Pico, Pico 2, ESP32 and SAMD21 boards have good support. The 8-bit AVR boards (Uno R3, Nano, Mega) do not have sufficient memory.

Linux (Raspberry Pi)

Install Raspberry Pi OS with the Raspberry Pi Imager. Write Python with the gpiozero library, or use any language that runs on Linux.

Which one to choose

  • You need Wi-Fi or Bluetooth at a low cost: an ESP32, or a Pico W or Pico 2 W.
  • You use 5 V shields or old tutorials: an Arduino Uno R3 or R4.
  • You want to learn Python on hardware: a Raspberry Pi Pico 2 with MicroPython or CircuitPython.
  • You make a USB keyboard, game controller or MIDI device: a Pico, a Leonardo or Pro Micro, an ESP32-S3, or a Teensy.
  • You need fast audio processing: a Teensy 4.x with its audio board.
  • You need many pins: an Arduino Mega 2560. Or add I²C port expanders to a smaller board.
  • You teach a beginner or a young student: a micro:bit with MakeCode.
  • You need a camera with image processing, a screen, a database or AI models: a Raspberry Pi 4 or 5.

Resources