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.
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.
| Board | Chip and CPU | RAM / flash | Logic | Wireless | Good points | Cost |
|---|---|---|---|---|---|---|
| ESP32 DevKit (this site) | ESP32, 2 × Xtensa, 240 MHz | 520 KB / 4 MB | 3.3 V | Wi-Fi, Bluetooth | Fast, wireless, low cost, many pins. See ESP32 variants | $ |
| Arduino Uno R3 | ATmega328P, 8-bit AVR, 16 MHz | 2 KB / 32 KB | 5 V | None | The classic beginner board. Very robust. Most shields and tutorials. 6 analog inputs | $$ |
| Arduino Uno R4 Minima / WiFi | Renesas RA4M1, Arm Cortex-M4, 48 MHz | 32 KB / 256 KB | 5 V | WiFi 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 Nano | ATmega328P, 16 MHz | 2 KB / 32 KB | 5 V | None | An 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 format | 6 KB to 512 KB / 48 KB to 16 MB | 5 V (Every) or 3.3 V (others) | Most have Wi-Fi or BLE | Same small format with more features. The Nano ESP32 uses an ESP32-S3 | $$ |
| Arduino Mega 2560 | ATmega2560, 16 MHz | 8 KB / 256 KB | 5 V | None | 54 digital pins, 16 analog inputs, 4 hardware serial ports. Used in 3D printers | $$–$$$ |
| Arduino Leonardo / Pro Micro | ATmega32U4, 16 MHz | 2.5 KB / 32 KB | 5 V (some Pro Micro: 3.3 V) | None | Native USB: acts as a keyboard, mouse or game controller | $–$$ |
| Raspberry Pi Pico / Pico W | RP2040, 2 × Arm Cortex-M0+, 133 MHz | 264 KB / 2 MB | 3.3 V | Pico W: Wi-Fi, BLE | Very low cost, PIO state machines for custom protocols, native USB, drag-and-drop programming, good MicroPython support | $ |
| Raspberry Pi Pico 2 / Pico 2 W | RP2350, 2 × Arm Cortex-M33 or 2 × RISC-V, 150 MHz | 520 KB / 4 MB | 3.3 V | Pico 2 W: Wi-Fi, BLE | Faster than the RP2040, floating-point unit, more PIO, security features. Same pin layout as the Pico | $ |
| Other RP2040 / RP2350 boards | Adafruit Feather RP2040, Pimoroni, Seeed XIAO RP2040, Waveshare | Varies | 3.3 V | Some models | The same chips in other formats, often with a USB-C port, STEMMA QT / Qwiic connector or battery charger | $–$$ |
| Teensy 4.0 / 4.1 | NXP i.MX RT1062, Arm Cortex-M7, 600 MHz | 1 MB / 2 to 8 MB | 3.3 V | None (4.1 has Ethernet) | Very fast. Excellent audio library, USB MIDI and USB audio. 4.1 has a microSD slot | $$–$$$ |
| BBC micro:bit V2 | nRF52833, Arm Cortex-M4, 64 MHz | 128 KB / 512 KB | 3.3 V | BLE, micro:bit radio | Built-in 5 × 5 LEDs, buttons, accelerometer, compass, microphone and speaker. Block coding in MakeCode | $$ |
| nRF52840 boards | Nordic nRF52840, Arm Cortex-M4, 64 MHz (XIAO nRF52840, Feather nRF52840) | 256 KB / 1 MB | 3.3 V | BLE 5, Thread, Zigbee | Very low power, good for Bluetooth devices on batteries. Used in Meshtastic radios | $$ |
| STM32 boards | STM32 (Arm Cortex-M): “Blue Pill”, “Black Pill”, Nucleo | Varies: 20 KB to 1 MB RAM | 3.3 V | Usually none | Professional chips used in industry, many peripherals. Nucleo boards have a debugger on the board | $–$$ |
| SAMD21 boards | Microchip SAMD21, Arm Cortex-M0+, 48 MHz (XIAO SAMD21, Adafruit QT Py, Trinket M0) | 32 KB / 256 KB | 3.3 V | None | Small, native USB, good CircuitPython support | $ |
| ESP8266 | ESP8266, Tensilica, 80 to 160 MHz (Wemos D1 Mini, NodeMCU) | 80 KB / 4 MB | 3.3 V | Wi-Fi only | The older, lower-cost Wi-Fi chip. Only one analog input. Use an ESP32 for new projects | $ |
| ATtiny85 | ATtiny85, 8-bit AVR, 8 to 16 MHz (Digispark) | 512 bytes / 8 KB | 5 V or 3.3 V | None | Tiny 8-pin chip for very small, simple projects | $ |
Raspberry Pi computers compared
| Board | CPU | RAM | Wireless | Power | Good points | Cost |
|---|---|---|---|---|---|---|
| Raspberry Pi 5 | 4 × Arm Cortex-A76, 2.4 GHz | 1 to 16 GB | Wi-Fi 5, BLE 5 | 5 V, 5 A USB-C supply recommended | Fastest Pi. Two 4K HDMI outputs, PCIe for an NVMe SSD, two camera ports, power button, real-time clock | $$$ |
| Raspberry Pi 4 Model B | 4 × Arm Cortex-A72, 1.5 to 1.8 GHz | 1 to 8 GB | Wi-Fi 5, BLE 5 | 5 V, 3 A USB-C | Lower cost and cooler than the Pi 5. Many cases and guides | $$$ |
| Raspberry Pi 400 / 500 | Pi 4 or Pi 5 inside a keyboard | 4 to 8 GB | Wi-Fi 5, BLE 5 | USB-C | A complete desktop computer in a keyboard, with the GPIO header at the back | $$$ |
| Raspberry Pi Zero 2 W | 4 × Arm Cortex-A53, 1 GHz | 512 MB | Wi-Fi 4, BLE 4.2 | 5 V, 2.5 A micro-USB | Small 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 GHz | 1 GB | Wi-Fi 5, BLE 4.2 | 5 V, 2.5 A micro-USB | Older model that many labs still have. Good for simple projects | $$ |
| Arduino UNO Q | Qualcomm Arm Linux processor plus an STM32 microcontroller | 2 to 4 GB | Wi-Fi, BLE | USB-C | Linux 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
- Arduino hardware documentationSpecifications, pinouts and datasheets for all official Arduino boards.
- Raspberry Pi: microcontroller documentationPico, Pico 2, RP2040 and RP2350 guides and datasheets.
- Raspberry Pi: computer documentationSetup, GPIO and configuration of Raspberry Pi computers.
- Arduino-Pico coreArduino board package for RP2040 and RP2350 boards.
- PJRC: TeensyTeensy boards, audio library and Teensyduino.
- micro:bitMakeCode, Python editor and lesson plans.
- CircuitPython downloadsFind CircuitPython for more than 500 boards.
- ESP32 variants · IDE setup · Online toolsRelated pages on this site.