ESP32-WROOM
by Generic
Compact Wi-Fi and Bluetooth module based on the ESP32-D0WDQ6 chip, suitable for integration into various embedded systems.

On this page
ESP32-WROOM Pinout
38 pins| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | - | GND | ground | - | Ground connection (pad 1) |
| 2 | - | 3V3 | power | - | 3.3V power supply input (pad 2) |
| 3 | - | EN | control | - | Module enable, active high - pull low to reset (pad 3) |
| 4 | 36 | SENSOR_VPGPIO36 | strapping | adc | ADC1_CH0, RTC_GPIO0 |
| 5 | 39 | SENSOR_VNGPIO39 | strapping | adc | ADC1_CH3, RTC_GPIO3 |
| 6 | 34 | IO34GPIO34 | strapping | adc | ADC1_CH6, RTC_GPIO4 |
| 7 | 35 | IO35GPIO35 | strapping | adc | ADC1_CH7, RTC_GPIO5 |
| 8 | 32 | IO32GPIO32 | safe | adc · touch | XTAL_32K_P (32.768 kHz crystal oscillator input), ADC1_CH4, TOUCH9, RTC_GPIO9 |
| 9 | 33 | IO33GPIO33 | safe | adc · touch | XTAL_32K_N (32.768 kHz crystal oscillator output), ADC1_CH5, TOUCH8, RTC_GPIO8 |
| 10 | 25 | IO25GPIO25 | safe | adc · dac | DAC_1, ADC2_CH8, RTC_GPIO6, EMAC_RXD0 |
| 11 | 26 | IO26GPIO26 | safe | adc · dac | DAC_2, ADC2_CH9, RTC_GPIO7, EMAC_RXD1 |
| 12 | 27 | IO27GPIO27 | safe | adc · touch | ADC2_CH7, TOUCH7, RTC_GPIO17, EMAC_RX_DV |
| 13 | 14 | IO14GPIO14 | strapping | adc · touch · spi | ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK, HS2_CLK, SD_CLK, EMAC_TXD2 |
| 14 | 12 | IO12GPIO12 | strapping | adc · touch · spi | ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI, HSPIQ, HS2_DATA2, SD_DATA2, EMAC_TXD3 |
| 15 | - | GND | ground | - | Ground connection |
| 16 | 13 | IO13GPIO13 | strapping | adc · touch · spi | ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID, HS2_DATA3, SD_DATA3, EMAC_RX_ER |
| 17 | 9 | SHD/SD2GPIO9 | strapping | - | SD_DATA2, SPIHD, HS1_DATA2, U1RXD. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 18 | 10 | SWP/SD3GPIO10 | strapping | - | SD_DATA3, SPIWP, HS1_DATA3, U1TXD. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 19 | 11 | SCS/CMDGPIO11 | strapping | - | SD_CMD, SPICS0, HS1_CMD, U1RTS. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 20 | 6 | SCK/CLKGPIO6 | strapping | - | SD_CLK, SPICLK, HS1_CLK, U1CTS. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 21 | 7 | SDO/SD0GPIO7 | strapping | - | SD_DATA0, SPIQ, HS1_DATA0, U2RTS. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 22 | 8 | SDI/SD1GPIO8 | strapping | - | SD_DATA1, SPID, HS1_DATA1, U2CTS. Wired to the module's SPI flash - do NOT use, the module will crash or fail to boot |
| 23 | 15 | IO15GPIO15 | strapping | adc · touch · spi | ADC2_CH3, TOUCH3, MTDO, HSPICS0, RTC_GPIO13, HS2_CMD, SD_CMD, EMAC_RXD3 |
| 24 | 2 | IO2GPIO2 | strapping | adc · touch · spi | ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP, HS2_DATA0, SD_DATA0 |
| 25 | 0 | IO0GPIO0 | strapping | adc · touch | ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1, EMAC_TX_CLK |
| 26 | 4 | IO4GPIO4 | safe | adc · touch · spi | ADC2_CH0, TOUCH0, RTC_GPIO10, HSPIHD, HS2_DATA1, SD_DATA1, EMAC_TX_ER |
| 27 | 16 | IO16GPIO16 | safe | - | HS1_DATA4, U2RXD, EMAC_CLK_OUT |
| 28 | 17 | IO17GPIO17 | safe | - | HS1_DATA5, U2TXD, EMAC_CLK_OUT_180 |
| 29 | 5 | IO5GPIO5 | strapping | spi | VSPICS0, HS1_DATA6, EMAC_RX_CLK |
| 30 | 18 | IO18GPIO18 | safe | spi | VSPICLK, HS1_DATA7 |
| 31 | 19 | IO19GPIO19 | safe | spi | VSPIQ, U0CTS, EMAC_TXD0 |
| 32 | - | NC | - | Not connected (pad 32) | |
| 33 | 21 | IO21GPIO21 | safe | spi | VSPIHD, EMAC_TX_EN |
| 34 | 3 | RXD0GPIO3 | uart | - | U0RXD, CLK_OUT2 |
| 35 | 1 | TXD0GPIO1 | uart | - | U0TXD, CLK_OUT3, EMAC_RXD2 |
| 36 | 22 | IO22GPIO22 | safe | spi | VSPIWP, U0RTS, EMAC_TXD1 |
| 37 | 23 | IO23GPIO23 | safe | spi | VSPID, HS1_STROBE |
| 38 | - | GND | ground | - | Ground connection |
Start with these
13 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
13 pins · 12 things to knowSENSOR_VPGPIO36 Input-only GPIO (no output); ADC1 channel 0, Hall sensor VP. Other
Cannot be used as output; only suitable for input (e.g., analog read).
SENSOR_VNGPIO39IO35 Input-only GPIOs with ADC1 channels - no output driver Other
Cannot be used as output; only suitable for input.
- SENSOR_VNInput-only GPIO (no output); ADC1 channel 3, Hall sensor VN.
- IO35Input-only GPIO (no output driver); ADC1 channel 7.
IO34 Input-only GPIO (no output driver); ADC1 channel 6. Other
Cannot be used as output (no drive capability); only suitable for analog/digital input.
IO14 JTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO. JTAG
Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.
IO12 Bootstrapping pin; JTAG TDI; sets flash voltage (VDD_SDIO); also HSPIQ (flash data line). Strapping
Keep LOW during boot (internal PD); pulling HIGH at reset selects 1.8V flash, and a module with 3.3V flash then fails to boot. espefuse set-flash-voltage 3.3V makes its level irrelevant.
IO13 JTAG clock pin (TCK); also ADC2 channel 4 / Touch4 input. JTAG
Used for JTAG debugging (TCK); avoid using as GPIO if JTAG is needed.
IO15 Bootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS). Strapping
Keep HIGH during boot (internal PU); if LOW at reset, the ROM boot log on U0TXD is silenced and the SDIO slave timing changes.
IO2 Bootstrapping pin; internal pull-down. Any level boots normally from flash, but it must be LOW or floating (with GPIO0 LOW) to enter download mode. Strapping
If held HIGH at reset, the chip cannot enter download mode, so flashing fails.
IO0 Bootstrapping pin (enter bootloader when low); internal pull-up. Strapping
Must be HIGH during boot for normal startup; if held LOW on reset, forces flash programming mode.
IO5 Bootstrapping pin; internal pull-up; VSPI CS0 (default SPI chip-select); acts as FSPIWP (flash write-protect) on internal-flash variants. Strapping
Sampled at reset (internal pull-up) with MTDO to set the SDIO slave timing; this only matters when the ESP32 runs as an SDIO slave.
RXD0GPIO3 Default UART0 RX pin for USB-serial programming (console input). UART
Used for receiving data from USB-UART (programming); also pulled HIGH at boot for console communication, so using as GPIO can disrupt uploads.
TXD0GPIO1 Default UART0 TX pin for USB-serial programming and console. UART
Connected to on-board USB-UART for uploading and logs; drives serial output at boot, so using as GPIO can disrupt programming or console.
Only if you know the tricks
6 pins · 4 things to knowSHD/SD2GPIO9SWP/SD3GPIO10 SPI flash/PSRAM data lines SD2 and SD3 (flash HOLD and WP) Flash
Used by internal flash/PSRAM; typically not exposed on modules, avoid using as GPIO.
- SHD/SD2Connected to SPI flash/PSRAM data 2 (SD2, flash HOLD).
- SWP/SD3Connected to SPI flash/PSRAM data 3 (SD3, flash WP).
SCS/CMDGPIO11 Connected to SPI flash command/CS (CMD/CS0). Flash
Used by internal flash (chip select/command); not available for general use.
SCK/CLKGPIO6 Connected to SPI flash clock (SCK/CLK). Flash
Used for internal flash/PSRAM communication; not available for general GPIO.
SDO/SD0GPIO7SDI/SD1GPIO8 SPI flash data lines SD0 and SD1 Flash
Used for internal flash/PSRAM data; not available for general GPIO.
- SDO/SD0Connected to SPI flash data 0 (SD0).
- SDI/SD1Connected to SPI flash data 1 (SD1).
The ESP32-WROOM breaks out 38 pins in total: 32 GPIO for your project, with GND and 3V3 handling power.
On the analog side there are 16 ADC-capable pins for sensors and battery monitoring, 10 capacitive-touch inputs and 2 true DAC outputs.
If you want zero surprises, IO32, IO33, IO25, IO26 and 9 more are free of any such role - the safest first picks. 13 of the exposed pins carry boot-time or system duties on the ESP32 (SENSOR_VP, SENSOR_VN, IO34 and 10 more).
Getting started
flash your first firmware in ~2 minutesBoard: ESP32 Dev Module Flash Size: 4MB (32Mb) Flash Mode: DIO Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS) Upload Speed: 921600
// toggle GPIO32 - wire an LED and resistor to it
void setup() {
pinMode(32, OUTPUT);
}
void loop() {
digitalWrite(32, HIGH); delay(500);
digitalWrite(32, LOW); delay(500);
}[env:esp32-wroom]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600esp32dev - or type it after board =.esp32:
board: esp32dev
variant: esp32
framework:
type: esp-idf
# blink - GPIO32
output:
- platform: gpio
pin: 32
id: led_out
light:
- platform: binary
name: "LED"
output: led_outesp32dev (same ids as PlatformIO).esptool.py --chip esp32 --port /dev/ttyACM0 \
--baud 921600 write_flash 0x1000 firmware.bin--port = your /dev/tty* (macOS/Linux) or COMx (Windows).Specifications
ESP32 · 25.5 × 18 mm · vs other ESP32 chips →Dimensions
About this board
At 25.5 × 18 mm it's among the smallest boards in the whole ESP32 family.
At its core is the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.
32 GPIO are broken out - more than most ESP32 boards, so the pin budget is rarely the constraint.
Resources
Similar boards




