REFERENCE · GPIO PINOUT

ESP32 DEVKIT V1: GPIO Reference

A lookup table for the 30‑pin ESP‑WROOM‑32 board: pick a pin without breaking booting or Wi‑Fi.

Rule of thumb: for a plain input or output, reach for a ✅ safe pin first: GPIO 4, 13, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, 33.
ESP32 DEVKIT V1 pinout diagram
The DEVKIT V1 pinout (see Foundation 2 for the board tour).

1 · Quick categories

CategoryPinsWhy
SAFE general‑purpose4, 13, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, 33Use these first for I/O
STRAPPING (read at boot)0, 2, 5, 12, 15Usable, but a wrong level can block uploading
BOOT HIGH/PWM1, 3, 5, 14, 15May glitch attached outputs at reset
INPUT‑ONLY34, 35, 36 (VP), 39 (VN)No output, no internal pull
DO NOT USE (flash)6, 7, 8, 9, 10, 11Wired to the SPI flash, not broken out
🔌 USB serial1 (TX0), 3 (RX0)Used by the Serial Monitor: avoid for I/O

2 · Full pin table

I = input · O = output · ADC = analog‑in · Touch = capacitive touch · DAC = analog‑out.

GPIOLabelIOADCTouchOtherNotes
36VP-ADC1_CH0-Sensor VPinput only
39VN-ADC1_CH3-Sensor VNinput only
34D34-ADC1_CH6--input only
35D35-ADC1_CH7--input only
32D32ADC1_CH4T9-safe
33D33ADC1_CH5T8-safe
25D25ADC2_CH8-DAC1safe
26D26ADC2_CH9-DAC2safe
27D27ADC2_CH7T7-safe
14D14ADC2_CH6T6HSPI CLKPWM at boot
12D12ADC2_CH5T5HSPI MISOstrapping boot fails if pulled HIGH
13D13ADC2_CH4T4HSPI MOSIsafe
23D23--VSPI MOSIsafe
22D22--I²C SCLsafe
21D21--I²C SDAsafe
19D19--VSPI MISOsafe
18D18--VSPI CLKsafe
5D5--VSPI CSstrapping HIGH at boot; PWM at boot
17TX2--UART2 TXsafe
16RX2--UART2 RXsafe
4D4ADC2_CH0T0-safe
2D2ADC2_CH2T2On‑board LEDstrapping floating/LOW to flash
15D15ADC2_CH3T3HSPI CSstrapping HIGH at boot; PWM at boot
1TX0---UART0 TXDebug output at boot: avoid
3RX0---UART0 RXHIGH at boot: avoid
0(BOOT)ADC2_CH1T1Boot selectstrapping tied to BOOT; not on header
Pins 6–11 connect to the module's SPI flash and are not exposed: never use them.

3 · Peripheral defaults

BusSignal → pin
I²CSDA = GPIO 21, SCL = GPIO 22 (reassignable in code)
SPI: VSPIMOSI 23 · MISO 19 · CLK 18 · CS 5
SPI: HSPIMOSI 13 · MISO 12 · CLK 14 · CS 15
UART0 (USB Serial)TX 1 · RX 3
UART2TX 17 · RX 16
DAC (analog out)DAC1 = 25 · DAC2 = 26

4 · ADC & touch

ADC is 12‑bit → readings 0–4095 for 0–3.3 V.

Touch T0–T9: T0=4, T1=0, T2=2, T3=15, T4=13, T5=12, T6=14, T7=27, T8=33, T9=32.

5 · Electrical limits

More: ESP32 pinout reference (Random Nerd Tutorials) →

← Foundation 1 · Electronics Basics Components Glossary →