Adafruit Metro ESP32-S2

Full-size ESP32-S2 dev board with USB-C and STEMMA QT - great for breadboarding and secure applications.

USB-C Native USB
Adafruit Metro ESP32-S2 board
72 × 53.2 mm
ESP32-S2
MCU
240MHz
clock
4MB
flash
320KB
SRAM
28· 20 ADC
GPIO
Wi-Fi
radio
On this page

Pinout

28 pins · 2.54 mm pitch
View:
Adafruit Metro ESP32-S2 pinout diagram
PinGPIOLabelsStatusCapabilitiesNotes
10PIN_BUTTON1strapping-
21A2T1PWMsafeadc · touch
32A3T2PWMsafeadc · touch
43A4T3PWMsafeadc · touch
54A5T4PWMsafeadc · touch
65TXA6T5PWMuartadc · touch · uart
76RXA7T6PWMuartadc · touch · uart
87A8T7PWMsafeadc · touch
98A9T8PWMsafeadc · touch
109A10T9PWMstrappingadc · touch
1110A11T10PWMstrappingadc · touch
1211A12T11PWMstrappingadc · touch
1312A13T12PWMstrappingadc · touch
1413A14T13PWMstrappingadc · touch
1514A15T14PWMstrappingadc · touch
1615A16PWMstrappingadc
1716A17PWMstrappingadc
1817A0DAC1PWMsafeadc · dac
1918A1DAC2PWMsafeadc · dac
2019A18PWMuartadc
2120A19PWMuartadc
2233SDAPWMstrappingi2c
2334SCLPWMstrappingi2c
2435MOSIPWMstrappingspi
2536SCKPWMstrappingspi
2637MISOPWMstrappingspi
2742LED_BUILTINSSPWMstrappingspi
2845PIN_NEOPIXELPWMstrapping-

Start with these

10 pins with no boot or system involvement
A2T1A3T2A4T3A5T4TXA6RXA7A8T7A9T8A0DAC1A1DAC2

Freely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.

Fine - with a little care

sampled at boot or shared with debug/serial
PinLabelWhat to knowRole
PIN_BUTTON1GPIO0Must be pulled high for normal boot; pulling low at reset enters bootloader (download mode). Also serves as SPI flash data-in (SPID) line when using external flash memory.Strapping
A16XTAL_32K_PIf an external 32 kHz crystal is used for RTC, this pin is dedicated to the crystal and cannot be used as GPIO.Other
A17XTAL_32K_NIf using an external 32 kHz crystal, this pin is connected to the crystal and should not be used as general I/O.Other
LED_BUILTINMTMSJTAG TMS pin; should not be repurposed if JTAG debugging or programming via JTAG is required.Other
PIN_NEOPIXELGPIO45Must be set correctly at boot (usually low for 3.3 V); improper level can cause boot failure or flash malfunction.Strapping

Only if you know the tricks

wired to flash or USB - expect a fight
PinLabelWhat to knowRole
A10FSPIHDTypically used as flash/PSRAM IO line in certain configurations; avoid using as GPIO if flash or PSRAM is present.Flash
A11FSPICS0Often used as flash chip select in some designs; not available for GPIO when controlling flash.Flash
A12FSPIDUsed for flash data transfer in certain configurations; should be avoided for general use if flash is connected.Flash
A13FSPICLKUsed as flash clock line in some boards; not free for GPIO if driving flash.Flash
A14FSPIQUsed for flash data output in certain configurations; avoid using as GPIO if connected to flash.Flash
A15FSPIWPUsed as flash write-protect/data line on some modules; not recommended for other usage.Flash
A18USB_D-Used for USB communication; using this pin as general GPIO can interfere with USB functionality.USB
A19USB_D+Dedicated to USB interface; repurposing as GPIO may disrupt USB connectivity.USB
SDASPIHDConnected to SPI flash (hold/data line); not available for general-purpose use.Flash
SCLSPIWPConnected to SPI flash (write-protect/data line); not recommended for other use.Flash
MOSIFSPIDUsed by internal flash/PSRAM on some ESP32-S2 variants; avoid using as GPIO to prevent conflicts.Flash
SCKFSPICLKMay be connected to internal flash or used for high-speed SPI; not intended for general GPIO use.Flash
MISOFSPIQUsed for internal flash/PSRAM data in some models; should not be repurposed for GPIO.Flash
These are recommendations, not hard rules - with the right pull-ups, timing and boot-state awareness most pins can be made to work. When in doubt, start green.
Pinout notes All 28 pins on the Adafruit Metro ESP32-S2 are usable GPIO, spaced at the standard 2.54 mm pitch. Peripheral wiring is straightforward: I²C is mapped to SDA on…

All 28 pins on the Adafruit Metro ESP32-S2 are usable GPIO, spaced at the standard 2.54 mm pitch.

Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO33 and SCL on GPIO34; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO5 and GPIO6 cover serial logging and flashing.

Beyond plain digital I/O you get 20 ADC-capable pins for sensors and battery monitoring, 14 capacitive-touch inputs and 2 true DAC outputs.

5 of the exposed pins carry boot-time or system duties on the ESP32-S2 (PIN_BUTTON1, A16, A17 and 2 more) - check the guidance above before wiring anything to them. A2, A3, A4, A5 and 6 more are free of any such role - the safest first picks.

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Native USB - shows up as a port right away, no driver needed. Not detected? Hold BOOT while plugging in.
2
Match & flash
Set the Tools options shown, then click Upload.
3
Verify it runs
The onboard LED on GPIO1 blinks - swap the pin if your board's LED differs.
Set these in Tools · leave everything else at default
Arduino IDE 2.x — Tools Copy
Board: "ESP32S2 Dev Module"
USB CDC On Boot: "Enabled"
Flash Size: "4MB (32Mb)"
Flash Mode: "DIO"
PSRAM: "QSPI PSRAM"
Partition Scheme: "Default 4MB with spiffs (1.2MB APP / 1.5MB SPIFFS)" (default)
Upload Speed: "921600"
▸ every other Tools option — leave at default
Board: ESP32S2 Dev Module
USB CDC On Boot: Enabled
Flash Size: 4MB (32Mb)
Flash Mode: DIO
PSRAM: QSPI PSRAM
Partition Scheme: Default 4MB with spiffs (1.2MB APP / 1.5MB SPIFFS)
Upload Speed: 921600
Find it: Tools ▸ Board ▸ ESP32 Arduino ▸ ESP32S2 Dev Module
blink.ino Copy
// blink the onboard LED
void setup() {
  pinMode(1, OUTPUT);
}
void loop() {
  digitalWrite(1, HIGH); delay(500);
  digitalWrite(1, LOW);  delay(500);
}
board to selectesp32-s2-saola-1⧉ copy
platformio.ini Copy
[env:adafruit_metro_esp32s2]
platform = espressif32
board = esp32-s2-saola-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
board_build.arduino.memory_type = qio_qspi
build_flags = -DBOARD_HAS_PSRAM
Find it: PlatformIO Home ▸ Boards, search esp32-s2-saola-1 — or type it after board =.
board to selectesp32-s2-saola-1⧉ copy
device.yaml Copy
esp32:
  board: esp32-s2-saola-1
  variant: adafruit_metro_esp32s2
  framework:
    type: esp-idf
psram:
  mode: quad
  speed: 80MHz

# blink - GPIO1
output:
  - platform: gpio
    pin: 1
    id: led_out
light:
  - platform: binary
    name: "LED"
    output: led_out
Find it: search ESPHome's board list for esp32-s2-saola-1 (same ids as PlatformIO).
esptool doesn't pick board settings — a prebuilt .bin already has them baked in. This is just the raw flash command.
terminal Copy
esptool.py --chip esp32s2 --port /dev/ttyACM0 \
  --baud 921600 write_flash 0x0 firmware.bin
--port = your /dev/tty* (macOS/Linux) or COMx (Windows).
Build details: sketch space 1310720 B · data 327680 B · DIO

Specifications

ESP32-S2 · 72 × 53.2 mm
Compute
MCU
ESP32-S2
Clock
240 MHz
SRAM · Flash
320 KB · 4MB · 2MB (QSPI) PSRAM
Radio
Wi-Fi
802.11 b/g/n 2.4 GHz
Bluetooth
-
Antenna
PCB
I/O
GPIO · ADC
28 · 20
UART · I²C · SPI
2 · 1 · 4
PWM
8 channels
Power
USB
USB-C
Serial
Native (CDC)
Boot address
0x1000
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · QIO
Sketch · Data
1.25 MB · 320 KB
53.2 mm72 mm
72 × 53.2 mm · pin pitch 2.54 mm
The Adafruit Metro ESP32-S2 uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is DIO with QIO boot mode. The maximum sketch size is 1.25 MB with 320 KB available for data.

About this board

Inside sits the ESP32-S2 - a single-core Xtensa with native USB-OTG and no Bluetooth.

At $24.95 it's on the expensive side for an ESP32-S2 board - most land around $20.

Around the module: 2MB (QSPI) PSRAM, a STEMMA QT connector, an addressable RGB LED (GPIO45), a battery fuel gauge (MAX17048), battery charging via JST-PH 2.0, status LEDs (On, Charge, User) and Reset/DFU (BOOT0) buttons.

It flashes over native USB - no serial-converter driver needed, which isn't a given among ESP32-S2 boards.

Where to buy

prices are typical street prices
Adafruit Metro ESP32-S2
Adafruit Metro ESP32-S2
$24.95per unit, typical

Resources

Similar boards