Adafruit QT Py ESP32-S2
by Adafruit
Tiny ESP32-S2 board with STEMMA QT and USB-C - ideal for compact, plug-and-play IoT applications.

On this page
Pinout
16 pins · 2.54 mm pitch| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | 5 | A6TXT5PWM | uart | adc · touch · uart | |
| 2 | 6 | SCLA5T6PWM | safe | adc · touch · i2c | |
| 3 | 7 | SDAA4T7PWM | safe | adc · touch · i2c | |
| 4 | 8 | A3T8PWM | safe | adc · touch | |
| 5 | 9 | A2T9PWM | strapping | adc · touch | |
| 6 | 16 | A7RXPWM | strapping | adc · uart | |
| 7 | 17 | A1DAC1PWM | safe | adc · dac | |
| 8 | 18 | A0DAC2PWM | safe | adc · dac | |
| 9 | 35 | MOSIPWM | strapping | spi | |
| 10 | 36 | SCKPWM | strapping | spi | |
| 11 | 37 | MISOPWM | strapping | spi | |
| 12 | 38 | NEOPIXEL_POWERPWM | strapping | - | |
| 13 | 39 | PIN_NEOPIXELPWM | strapping | - | |
| 14 | 40 | SCL1PWM | strapping | - | |
| 15 | 41 | SDA1PWM | strapping | - | |
| 16 | 42 | SSPWM | strapping | spi |
Start with these
6 pins with no boot or system involvementFreely 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| Pin | Label | What to know | Role |
|---|---|---|---|
| A7 | XTAL_32K_N | If using an external 32 kHz crystal, this pin is connected to the crystal and should not be used as general I/O. | Other |
| PIN_NEOPIXEL | MTCK | Used for JTAG debugging interface; using this pin for other purposes will disable JTAG clock input. | Other |
| SCL1 | MTDO | Part of JTAG interface (TDO); should be avoided as GPIO if JTAG debugging is needed. | Other |
| SDA1 | MTDI | Part of JTAG interface (TDI); avoid using as GPIO to retain ability for JTAG debug. | Other |
| SS | MTMS | JTAG TMS pin; should not be repurposed if JTAG debugging or programming via JTAG is required. | Other |
Only if you know the tricks
wired to flash or USB - expect a fight| Pin | Label | What to know | Role |
|---|---|---|---|
| A2 | FSPIHD | Typically used as flash/PSRAM IO line in certain configurations; avoid using as GPIO if flash or PSRAM is present. | Flash |
| MOSI | FSPID | Used by internal flash/PSRAM on some ESP32-S2 variants; avoid using as GPIO to prevent conflicts. | Flash |
| SCK | FSPICLK | May be connected to internal flash or used for high-speed SPI; not intended for general GPIO use. | Flash |
| MISO | FSPIQ | Used for internal flash/PSRAM data in some models; should not be repurposed for GPIO. | Flash |
| NEOPIXEL_POWER | FSPIWP | Reserved for flash/PSRAM in ESP32-S2 modules with internal memory; not recommended for general I/O. | Flash |
Pinout notes The Adafruit QT Py ESP32-S2 pinout brings out 16 GPIO pins at a 2.54 mm pitch - every one of them usable in your project. For peripherals, I²C is mapped to SDA…
The Adafruit QT Py ESP32-S2 pinout brings out 16 GPIO pins at a 2.54 mm pitch - every one of them usable in your project.
For peripherals, I²C is mapped to SDA on GPIO7 and SCL on GPIO6; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO5 and GPIO16 cover serial logging and flashing.
On the analog side there are 8 ADC-capable pins for sensors and battery monitoring, 5 capacitive-touch inputs and 2 true DAC outputs.
If you want zero surprises, A6, SCL, SDA, A3 and 2 more are free of any such role - the safest first picks. 5 of the exposed pins carry boot-time or system duties on the ESP32-S2 (A7, PIN_NEOPIXEL, SCL1 and 2 more).
Getting started
flash your first firmware in ~2 minutesBoard: 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
// blink the onboard LED
void setup() {
pinMode(6, OUTPUT);
}
void loop() {
digitalWrite(6, HIGH); delay(500);
digitalWrite(6, LOW); delay(500);
}[env:adafruit_qtpy_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_PSRAMesp32-s2-saola-1 — or type it after board =.esp32:
board: esp32-s2-saola-1
variant: adafruit_qtpy_esp32s2
framework:
type: esp-idf
psram:
mode: quad
speed: 80MHz
# blink - GPIO6
output:
- platform: gpio
pin: 6
id: led_out
light:
- platform: binary
name: "LED"
output: led_outesp32-s2-saola-1 (same ids as PlatformIO).esptool.py --chip esp32s2 --port /dev/ttyACM0 \
--baud 921600 write_flash 0x0 firmware.bin--port = your /dev/tty* (macOS/Linux) or COMx (Windows).Specifications
ESP32-S2 · 21.8 × 17.9 mmAbout this board
At 21.8 × 17.9 mm it's the smallest ESP32-S2 board we've measured.
At its core is the ESP32-S2 - a single-core Xtensa with native USB-OTG and no Bluetooth.
Expect to pay about $12.50 - less than the ~$20 most ESP32-S2 boards go for.
The small footprint costs pins: 16 GPIO are broken out, versus 26 or so on a full-size board.
Onboard you'll find 2MB (QSPI) PSRAM, a STEMMA QT connector, an addressable RGB LED (GPIO39) and Reset/Boot 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
Resources
Similar boards




