ESP32, ESP8266, Pico & STM32 Pinout Reference
NEWMicrocontroller pinout reference for ESP32 DevKit, ESP8266 NodeMCU, Raspberry Pi Pico and STM32 Blue Pill: safe pins, boot pins, ADC, PWM and buses.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
ESP32 DevKit (ESP32-WROOM-32) — ESP32-D0WD dual-core Xtensa @ up to 240 MHz, 3.3 V logic
- GPIO:
- 34 on the chip; ~25 usable on a DevKit (6–11 are flash)
- ADC:
- 18 channels, 12-bit: ADC1 on 32–39, ADC2 on 0, 2, 4, 12–15, 25–27
- DAC:
- 2 × 8-bit on GPIO25, GPIO26
- Touch:
- 10 capacitive touch inputs (T0–T9)
- PWM:
- LEDC on any output-capable GPIO (16 channels)
- Interrupts:
- All GPIOs
- Current per pin:
- Keep to ~20 mA (configurable drive strength, max ~40 mA) — see the datasheet
Pins and limits to watch
- 3.3 V logic — the ESP32 is not 5 V tolerant. Level-shift 5 V signals.
- GPIO6–11 are wired to the SPI flash: never use them.
- GPIO34–39 are input-only and have no internal pull-up/down resistors.
- ADC2 (GPIO0, 2, 4, 12–15, 25–27) cannot be used while Wi-Fi is on — use ADC1 pins (32–39) for analog reads.
- Strapping pins 0, 2, 5, 12, 15 must be at their default level at reset; external pull-ups/downs there can stop the board from booting.
- Physical header order differs between 30-pin and 38-pin DevKit boards — check the silkscreen.
Header diagram (grouped by function, not physical order — tap a pin to look it up)
Strapping pins
Input-only
Flash (do not use)
Safe general-purpose
UART0 + power
- Power / control
- Analog in (ADC)
- PWM
- I2C
- SPI
- UART / Serial
- Boot / strapping
- Avoid / reserved
36 of 36 pins
| Pin | In code | Functions | Notes |
|---|---|---|---|
| GPIO0 | 0 | Digital I/OPWMInterruptAnalog in (ADC)TouchBoot / strapping | Strapping pin: LOW at reset = download (flash) mode; wired to the BOOT button; ADC2_CH1; touch T1⚠ Must be HIGH (floating/pulled up) at reset for normal boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO1 | 1 | Digital I/OInterruptUART / SerialAvoid / reserved | U0TXD — Serial TX to the USB-serial chip⚠ Used for uploading and Serial; boot log is printed here |
| GPIO2 | 2 | Digital I/OPWMInterruptAnalog in (ADC)TouchBoot / strappingOn-board LED | Strapping pin; on-board LED on many DevKit clones; ADC2_CH2; touch T2⚠ Must be LOW or floating at reset to enter download mode. ADC2 cannot be read while Wi-Fi is active |
| GPIO3 | 3 | Digital I/OInterruptUART / SerialAvoid / reserved | U0RXD — Serial RX from the USB-serial chip⚠ Used for uploading and Serial |
| GPIO4 | 4 | Digital I/OPWMInterruptAnalog in (ADC)Touch | ADC2_CH0; touch T0⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO5 | 5 | Digital I/OPWMInterruptBoot / strappingSPI | Strapping pin (SDIO timing); default VSPI SS⚠ Outputs a PWM signal at boot |
| GPIO6 | 6 | Avoid / reserved | Connected to the module's SPI flash (CLK)⚠ Do not use — touching these pins crashes the board |
| GPIO7 | 7 | Avoid / reserved | Connected to the module's SPI flash (SD0)⚠ Do not use — touching these pins crashes the board |
| GPIO8 | 8 | Avoid / reserved | Connected to the module's SPI flash (SD1)⚠ Do not use — touching these pins crashes the board |
| GPIO9 | 9 | Avoid / reserved | Connected to the module's SPI flash (SD2)⚠ Do not use — touching these pins crashes the board |
| GPIO10 | 10 | Avoid / reserved | Connected to the module's SPI flash (SD3)⚠ Do not use — touching these pins crashes the board |
| GPIO11 | 11 | Avoid / reserved | Connected to the module's SPI flash (CMD)⚠ Do not use — touching these pins crashes the board |
| GPIO12 | 12 | Digital I/OPWMInterruptAnalog in (ADC)TouchBoot / strappingDebug (JTAG/SWD)SPI | MTDI strapping pin: selects flash voltage; HSPI MISO; JTAG TDI; ADC2_CH5; touch T5⚠ HIGH at reset selects 1.8 V flash and the WROOM-32 fails to boot — keep it LOW at reset. ADC2 cannot be read while Wi-Fi is active |
| GPIO13 | 13 | Digital I/OPWMInterruptAnalog in (ADC)TouchDebug (JTAG/SWD)SPI | HSPI MOSI; JTAG TCK; ADC2_CH4; touch T4⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO14 | 14 | Digital I/OPWMInterruptAnalog in (ADC)TouchDebug (JTAG/SWD)SPI | HSPI SCK; JTAG TMS; ADC2_CH6; touch T6⚠ Outputs a PWM signal at boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO15 | 15 | Digital I/OPWMInterruptAnalog in (ADC)TouchBoot / strappingDebug (JTAG/SWD)SPI | MTDO strapping pin (LOW at reset silences the boot log); HSPI SS; JTAG TDO; ADC2_CH3; touch T3⚠ Outputs a PWM signal at boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO16 | 16 | Digital I/OPWMInterruptUART / Serial | Serial2 RX (default)⚠ Used by PSRAM on WROVER modules — not available there |
| GPIO17 | 17 | Digital I/OPWMInterruptUART / Serial | Serial2 TX (default)⚠ Used by PSRAM on WROVER modules — not available there |
| GPIO18 | 18 | Digital I/OPWMInterruptSPI | VSPI SCK — default SPI SCK in Arduino |
| GPIO19 | 19 | Digital I/OPWMInterruptSPI | VSPI MISO — default SPI MISO in Arduino |
| GPIO21 | 21 | Digital I/OPWMInterruptI2C | Default I2C SDA (Wire) |
| GPIO22 | 22 | Digital I/OPWMInterruptI2C | Default I2C SCL (Wire) |
| GPIO23 | 23 | Digital I/OPWMInterruptSPI | VSPI MOSI — default SPI MOSI in Arduino |
| GPIO25 | 25 | Digital I/OPWMInterruptAnalog in (ADC)DAC (analog out) | DAC channel 1 (8-bit, dacWrite(25, …)); ADC2_CH8⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO26 | 26 | Digital I/OPWMInterruptAnalog in (ADC)DAC (analog out) | DAC channel 2 (8-bit); ADC2_CH9⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO27 | 27 | Digital I/OPWMInterruptAnalog in (ADC)Touch | ADC2_CH7; touch T7⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO32 | 32 | Digital I/OPWMInterruptAnalog in (ADC)Touch | 32 kHz crystal input (XTAL_32K_P) on some boards; ADC1_CH4 (works with Wi-Fi on); touch T9 |
| GPIO33 | 33 | Digital I/OPWMInterruptAnalog in (ADC)Touch | 32 kHz crystal output (XTAL_32K_N) on some boards; ADC1_CH5 (works with Wi-Fi on); touch T8 |
| GPIO34 | 34 | Digital I/OInterruptAnalog in (ADC)Input only | Input only — no output driver, no internal pull-up/down; ADC1_CH6 (works with Wi-Fi on) |
| GPIO35 | 35 | Digital I/OInterruptAnalog in (ADC)Input only | Input only — no output driver, no internal pull-up/down; ADC1_CH7 (works with Wi-Fi on) |
| GPIO36 | 36 | Digital I/OInterruptAnalog in (ADC)Input only | SENSOR_VP (labelled VP). Input only, no pull-up/down; ADC1_CH0 (works with Wi-Fi on) |
| GPIO39 | 39 | Digital I/OInterruptAnalog in (ADC)Input only | SENSOR_VN (labelled VN). Input only, no pull-up/down; ADC1_CH3 (works with Wi-Fi on) |
| EN | — | Power / control | Chip enable / reset (EN button) — pull LOW to reset |
| 3V3 | — | Power / control | 3.3 V from the on-board regulator |
| VIN / 5V | — | Power / control | 5 V input (or USB 5 V) to the regulator |
| GND | — | Power / control | Ground |
Source: Espressif ESP32 datasheet and ESP32-WROOM-32 datasheet (strapping pins, IO_MUX table), arduino-esp32 default pin definitions. Board revisions and clones differ — verify against the datasheet and schematic for your exact board before wiring.
Quick Examples
Typical inputs and the results this tool produces.
Overview
This MCU pinout reference answers the questions that cause most “my board won’t boot” and “analogRead returns nothing” problems on popular 3.3 V dev boards. It covers the ESP32 DevKit (WROOM-32), the ESP8266 NodeMCU, the Raspberry Pi Pico (RP2040) and the STM32F103 “Blue Pill”.
For each GPIO you get its ADC channel, PWM, touch, SPI, I2C and UART roles plus warnings: ESP32 strapping pins 0, 2, 5, 12 and 15, input-only GPIO34–39, ADC2 being unusable with Wi-Fi, and flash pins 6–11; NodeMCU D-labels versus GPIO numbers and its boot pins; the Pico’s GP numbers, ADC0–2 and power pins; and which Blue Pill pins are 5 V tolerant. Search by pin or function and copy any filtered table as Markdown.
Data comes from the Espressif, Raspberry Pi and STMicroelectronics datasheets. It all runs in your browser; check your exact board revision before wiring.
Why use this tool?
- Avoid strapping and flash pins that stop booting
- Find ADC pins that still work with Wi-Fi on
- Translate NodeMCU D-labels to GPIO numbers
- Check 5 V tolerance before connecting modules
- Four popular boards in one place
Features
Pins to avoid
Boot/strapping, flash, USB, SWD and serial pins are tagged with the reason to avoid them.
ADC channels
ADC1/ADC2 channel per ESP32 pin, the Pico’s ADC0–ADC2, Blue Pill ADC12_IN0–9.
Bus functions
Default and alternative SPI, I2C and UART pins, including every RP2040 function-select option.
5 V tolerance
STM32 FT pins are marked; ESP and RP2040 boards are flagged as 3.3 V only.
Header diagram
Physical layout for the NodeMCU and Pico, function groups for the ESP32 and Blue Pill.
Markdown export
Copy the filtered pin table for your project notes.
How to Use
Choose the board
Pick ESP32, NodeMCU, Pico or Blue Pill in the Board list.
Search or filter
Type a pin (GPIO25, D4, GP15, PA9) or pick a Function such as Analog in.
Check warnings
Read the warnings box and the ⚠ notes before choosing a pin.
Copy
Use Copy as Markdown to save the result.