Espressif ESP32
WiFi + Bluetooth powerhouse
ESP32-DevKitC V4 (ESP32-WROOM-32E)
Espressif's own ESP32 board: a dual-core 240 MHz chip with Wi-Fi and Bluetooth, 3.3 V logic, two 19-pin headers and a USB-to-UART bridge for flashing over Micro-USB.
Tested in the SolderHub Simulator. Opens a ready-wired circuit that runs in your browser.
- CPU
- 2 × 240 MHz
- Usable GPIO
- 26
- SRAM
- 520 KB
- Radio
- Wi-Fi + BT 4
Every header pin at a glance
- 9 safe I/O
- 14 use with care
- 3 avoid
- 6 not available
- 6 power, ground & other
01Pinout
Every pin, live
J2 on the left, J3 on the right, as Espressif numbers them. Hover or tap a pin for its functions and catches.
38 of 38 pins match
Hover or tap any pin on the board
J2 header · pin 7
GPIO32
Safe to use
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- PWM out
- Analog in
- Touch
Signals on this pad
- GPIO32
- ADC1_CH4
- TOUCH_CH9
- XTAL_32K_P
Full header tables (J2, J3)
J2 · left side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | 3V3 | 3.3 V power supply | |
| 2 | EN | Chip enable / reset. Pulled low by the EN button. | |
| 3 | VP 36 | ADC1_CH0, S_VP | Caution |
| 4 | VN 39 | ADC1_CH3, S_VN | Caution |
| 5 | GPIO34 | ADC1_CH6, VDET_1 | Caution |
| 6 | GPIO35 | ADC1_CH7, VDET_2 | Caution |
| 7 | GPIO32 | ADC1_CH4, TOUCH_CH9, XTAL_32K_P | OK |
| 8 | GPIO33 | ADC1_CH5, TOUCH_CH8, XTAL_32K_N | OK |
| 9 | GPIO25 | ADC2_CH8, DAC_1 | Caution |
| 10 | GPIO26 | ADC2_CH9, DAC_2 | Caution |
| 11 | GPIO27 | ADC2_CH7, TOUCH_CH7 | Caution |
| 12 | GPIO14 | ADC2_CH6, TOUCH_CH6, MTMS | Caution |
| 13 | GPIO12 | ADC2_CH5, TOUCH_CH5, MTDI | Avoid |
| 14 | GND | Ground | |
| 15 | GPIO13 | ADC2_CH4, TOUCH_CH4, MTCK | Caution |
| 16 | D2 9 | SD2 | Not available |
| 17 | D3 10 | SD3 | Not available |
| 18 | CMD 11 | CMD | Not available |
| 19 | 5V | 5 V power supply |
J3 · right side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | GND | Ground | |
| 2 | GPIO23 | — | OK |
| 3 | GPIO22 | — | OK |
| 4 | TX 1 | U0TXD | Caution |
| 5 | RX 3 | U0RXD | Caution |
| 6 | GPIO21 | — | OK |
| 7 | GND | Ground | |
| 8 | GPIO19 | — | OK |
| 9 | GPIO18 | — | OK |
| 10 | GPIO5 | — | Caution |
| 11 | GPIO17 | — | OK |
| 12 | GPIO16 | — | OK |
| 13 | GPIO4 | ADC2_CH0, TOUCH_CH0 | Caution |
| 14 | GPIO0 | ADC2_CH1, TOUCH_CH1 | Avoid |
| 15 | GPIO2 | ADC2_CH2, TOUCH_CH2 | Avoid |
| 16 | GPIO15 | ADC2_CH3, TOUCH_CH3, MTDO | Caution |
| 17 | D1 8 | SD1 | Not available |
| 18 | D0 7 | SD0 | Not available |
| 19 | CLK 6 | CLK | Not available |
02Safety
Pins to avoid, and why
Six pins belong to the flash, three decide how the board boots, and several more come with a catch.
Not available
6 pins
Wired to the module's SPI flash. Leave them unconnected.
- CLK 6SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
- D0 7SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
- D1 8SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
- D2 9SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
- D3 10SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
- CMD 11SPI flash. Used inside the module to talk to the SPI flash. Espressif says to avoid these pins: using them can disrupt access to the flash and crash the board.
Avoid
3 pins
Read at reset to choose how the chip boots. The wrong level can stop it starting or uploading.
- GPIO0Boot mode. Low at reset puts the chip into firmware-download mode instead of running your sketch. It defaults high through an internal pull-up, so don't let a circuit hold it low at power-up.
- GPIO2Boot mode. Sampled with GPIO0 at reset to pick the boot mode. Defaults low through an internal pull-down; a circuit that pulls it high at reset can block flashing.
- GPIO12Strapping pin (MTDI). Read at reset to set the flash supply voltage (VDD_SDIO). It defaults low through an internal pull-down; pulling it high at boot can stop the board starting.
Use with care
14 pins
Usable with a catch: input only, shared with Wi-Fi's ADC, or part of the serial console.
- TX 1Serial console. UART0, wired to the USB-to-UART bridge. Using it for something else clashes with the serial monitor and with flashing over USB.
- RX 3Serial console. UART0, wired to the USB-to-UART bridge. Using it for something else clashes with the serial monitor and with flashing over USB.
- GPIO4ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO5Strapping pin. Read at reset, with GPIO15, for SDIO slave timing. Defaults high through an internal pull-up; keep it from being pulled low at boot.
- GPIO13ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO14ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO15Strapping pin (MTDO). Read at reset to turn the boot messages on UART0 on or off, and for SDIO timing. Defaults high through an internal pull-up.
- GPIO25ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO26ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO27ADC2 shared with Wi-Fi. This pin's analog input is on ADC2, which the Wi-Fi driver also uses. For analog readings in a Wi-Fi sketch, use the ADC1 pins (GPIO32–39). Digital use is unaffected.
- GPIO34Input only. GPIO34–39 can't drive an output and have no internal pull-up or pull-down resistors, so a button needs an external resistor.
- GPIO35Input only. GPIO34–39 can't drive an output and have no internal pull-up or pull-down resistors, so a button needs an external resistor.
- VP 36Input only. GPIO34–39 can't drive an output and have no internal pull-up or pull-down resistors, so a button needs an external resistor.
- VN 39Input only. GPIO34–39 can't drive an output and have no internal pull-up or pull-down resistors, so a button needs an external resistor.
03Layout
How the board fits together
The ESP32 module does everything; the board adds USB, buttons and power.
Micro-USB → USB-to-UART
Flashing and the serial monitor, up to 3 Mbps
BOOT + EN buttons
Download mode and reset
ESP32-WROOM-32E
Dual-core 240 MHz · Wi-Fi · Bluetooth · SPI flash inside
Header J2
ADC1 inputs, DAC, touch
Header J3
UART0, I2C, VSPI, boot pins
04Specs
Full specifications
Processor
- Chip
- ESP32 (Xtensa LX6)Dual core, up to 240 MHz.
- SRAM / ROM
- 520 KB / 448 KB
- Module
- ESP32-WROOM-32EFlash is inside the module, wired to GPIO6–11.
Wireless
- Wi-Fi
- 802.11 b/g/n, 2.4 GHz
- Bluetooth
- v4.2 BR/EDR and LE
Power
- Logic level
- 3.3 VNot 5 V tolerant: level-shift 5 V signals.
- Inputs
- Micro-USB, 5V pin or 3V3 pinUse exactly one of them at a time.
Analog
- ADC1
- GPIO32–39Works alongside Wi-Fi.
- ADC2
- GPIO0, 2, 4, 12–15, 25–27Shared with the Wi-Fi driver.
- DAC
- GPIO25, GPIO26
Board
- USB
- Micro-USBThrough a USB-to-UART bridge, up to 3 Mbps.
- Buttons
- BOOT (GPIO0) and EN (reset)
- LED
- 5 V power-on LED
05Buses
Where each bus lives
Serial (UART0)
TX on GPIO1, RX on GPIO3, wired to the USB-to-UART bridge for flashing and the serial monitor.
I2C (Wire)
SDA on GPIO21, SCL on GPIO22 by default in the Arduino core. The ESP32 can route I2C to most GPIOs.
SPI (VSPI)
COPI GPIO23, CIPO GPIO19, SCK GPIO18, SS GPIO5 by default in the Arduino core.
PWM (LEDC)
Any output-capable GPIO. GPIO34–39 are input only.
DAC
Two 8-bit outputs on GPIO25 and GPIO26.
06Power & start
Power it up and get connected
Power options
- Micro-USB (default)5 V from your computer; also the flashing and serial connection.
- 5V and GND pinsAn external 5 V supply.
- 3V3 and GND pinsA regulated 3.3 V supply.
- Only one at a timeEspressif warns that using more than one of these at once can damage the board or the supply.
- 1
Plug in with a Micro-USB cable
The 5 V power LED lights and a serial port appears.
- 2
Install ESP32 support
Boards Manager → esp32 by Espressif SystemsThen pick ESP32 Dev Module and the new port.
- 3
Upload a Wi-Fi scan
File → Examples → WiFi → WiFiScanOpen the serial monitor at 115200 baud to see nearby networks. If the upload waits at "Connecting…", hold BOOT until it starts.
- 4
No board on your desk?
Open the tested ESP32 circuit in the SolderHub Simulator below.
07Gotchas
Things that trip people up
01
GPIO6–11 are off limits
The six pins marked CLK, D0–D3 and CMD near the USB end talk to the flash chip. Wiring anything there crashes the board.
02
analogRead fails once Wi-Fi is on
ADC2 pins share hardware with the Wi-Fi driver. In Wi-Fi projects, read sensors on GPIO32–39 (ADC1).
03
GPIO34–39 can't light an LED
They are inputs only, with no internal pull-ups. Use another pin for outputs and add an external resistor for buttons.
04
Upload stuck at "Connecting…"
Hold BOOT, press and release EN, then release BOOT to enter download mode. Also check that nothing holds GPIO0 low or GPIO2/GPIO12 high.
05
It's a 3.3 V board
Feeding 5 V logic straight into a GPIO can damage it. Use a level shifter or a divider for 5 V sensors.
06
Boots into download mode on its own
Early DevKitC V4 boards have a capacitor (C15) on GPIO0 that can do this. Espressif's fix is to remove C15.
08SolderHub Simulator
Wire up the Espressif ESP32 without the hardware
The simulator runs Espressif ESP32 sketches in your browser. Start from the tested board circuit, then change the wiring or the code.
- RC522 RFID access controlWiring and code for the SolderHub RC522 + ESP32 guide: card allow-list with green and red LEDs on GPIO25/26. The simulator does not emulate the RC522's SPI traffic yet; this is the real circuit and hardware-true code.
- L298N two-motor testL298N on an ESP32 (ENA 25, IN1 26, IN2 27, ENB 14, IN3 32, IN4 33; LEDC PWM at 1 kHz) with a 9 V motor supply and two DC motors. Runs forward, stop, backward and spin.
- SG90 servo knobSG90 on an ESP32: signal on GPIO18 driven by LEDC at 50 Hz, potentiometer on GPIO34. Turn the knob from the potentiometer's Settings and the horn follows.
Board Basics
Introduction, pinout, and protocols — all in one guide.
Sensor Modules & Library
Wiring sensors and modules, plus the library you need to talk to them.
Sensor Integration
Coming soon
Library & Setup
Coming soon

ESP32 Ultrasonic Radar with Servo Sweep and Live Web Dashboard

ESP32-CAM Sensor Monitoring with Blynk: Readings and Status

ESP32-CAM Face Detection Security Camera with Motion Alerts

ESP32-CAM Face Detection Door Lock with Live Stream

ESP32-CAM + Blynk Remote Security System

ESP32-CAM + Blynk Motion Snapshot Dashboard

Build a Retro Gaming Console with ESP32 and an OLED Display

Building Tiny AI Robotic Heads Using ESP32-S3 🤖
SolderHub Simulator
Espressif ESP32 circuits you can run in the browser
Ready-wired circuits with working code. Open one, press run, then change the wiring or the sketch.
- Board self-testEspressif ESP32 board testBoard test: LED on IO25 follows the button on IO26; HC-SR04 (TRIG IO27, ECHO IO14) and DHT11 (IO17) shown on the 1.3" OLED (0x3C) and LCD1602 I2C (0x27) on IO21/IO22; SG90 servo on IO16 sweeps 0-180-0. Expected Serial: T=24.0 H=50 D about 100 cm.Open in simulator
- CircuitRC522 RFID access controlWiring and code for the SolderHub RC522 + ESP32 guide: card allow-list with green and red LEDs on GPIO25/26. The simulator does not emulate the RC522's SPI traffic yet; this is the real circuit and hardware-true code.Open in simulator
- CircuitL298N two-motor testL298N on an ESP32 (ENA 25, IN1 26, IN2 27, ENB 14, IN3 32, IN4 33; LEDC PWM at 1 kHz) with a 9 V motor supply and two DC motors. Runs forward, stop, backward and spin.Open in simulator
- CircuitSG90 servo knobSG90 on an ESP32: signal on GPIO18 driven by LEDC at 50 Hz, potentiometer on GPIO34. Turn the knob from the potentiometer's Settings and the horn follows.Open in simulator
- CircuitBME280 weather readingsBME280 on an ESP32 (3V3, GPIO21 SDA, GPIO22 SCL), address 0x76. The Adafruit BME280 sketch prints temperature, humidity, pressure and altitude. Change the readings from the sensor's Settings.Open in simulator
- CircuitBMP280 weather readingsBMP280 on an ESP32 (3V3, GPIO21 SDA, GPIO22 SCL), address 0x76. The Adafruit BMP280 sketch prints temperature, pressure and altitude. Change the readings from the sensor's Settings.Open in simulator
- CircuitHC-SR501 motion lightHC-SR501 PIR on an ESP32 (VCC 5V, OUT GPIO27, LED on GPIO26). Counts motion events and keeps the light on for 10 s after the last one. Toggle motion from the sensor's Settings.Open in simulator
- CircuitMPU-9250 pitch and rollMPU-9250 on an ESP32 (3V3, GPIO21 SDA, GPIO22 SCL), AD0 to GND, NCS to 3.3V. A no-library sketch wakes the chip, prints WHO_AM_I, then pitch and roll from the accelerometer. Tilt it from its Settings.Open in simulator
- CircuitMPU-6050 pitch and rollMPU-6050 on an ESP32 (3V3, GPIO21 SDA, GPIO22 SCL), AD0 to GND. A no-library sketch wakes the chip, prints WHO_AM_I, then pitch and roll from the accelerometer. Tilt it from its Settings.Open in simulator
- CircuitMQ-135 gas alarmMQ-135 module (air quality) on an ESP32: AO through a 10k/20k divider to GPIO34, buzzer on GPIO25. Learns the clean-air baseline at start-up and sounds the buzzer above it. Raise the gas level from the sensor's Settings.Open in simulator
- CircuitMQ-7 gas alarmMQ-7 module (carbon monoxide) on an ESP32: AO through a 10k/20k divider to GPIO34, buzzer on GPIO25. Learns the clean-air baseline at start-up and sounds the buzzer above it. Raise the gas level from the sensor's Settings.Open in simulator
- CircuitMQ-3 gas alarmMQ-3 module (alcohol) on an ESP32: AO through a 10k/20k divider to GPIO34, buzzer on GPIO25. Learns the clean-air baseline at start-up and sounds the buzzer above it. Raise the gas level from the sensor's Settings.Open in simulator
- CircuitMQ-2 gas alarmMQ-2 module (gas and smoke) on an ESP32: AO through a 10k/20k divider to GPIO34, buzzer on GPIO25. Learns the clean-air baseline at start-up and sounds the buzzer above it. Raise the gas level from the sensor's Settings.Open in simulator
- Circuit1.3-inch OLED live readout1.3-inch I2C OLED on an ESP32 DevKit (3V3, GND, GPIO21, GPIO22) showing a potentiometer on GPIO34 as a big percentage and a bar graph.Open in simulator
- CircuitHello World — LCD 1602 I2CLCD1602 I2C on an ESP32 DevKit: LCD on 5V, SDA/SCL through a 4-channel level shifter to GPIO21/GPIO22 so the backpack's 5 V pull-ups never reach the ESP32. Prints a greeting and the uptime.Open in simulator
- CircuitPassive Buzzer ScalePassive buzzer on an ESP32 DevKit: + on GPIO25, - on GND. tone() (Arduino-ESP32 3.x, LEDC underneath) plays a C major scale.Open in simulator
- CircuitDS18B20 Temperature SensorDS18B20 1-Wire temperature sensor on an ESP32 DevKit: DQ on GPIO4 with a 4.7 kΩ pull-up to 3V3 (never 5 V), VDD to 3V3, GND to GND. Prints °C and °F every second.Open in simulator
- CircuitLDR Photoresistor Night LightGL5528 LDR in a 10 kΩ divider from 3V3 to GPIO34, LED on GPIO26. Change the LDR lux in its settings.Open in simulator
- CircuitA3144 Hall Effect SensorA3144 powered from 5V, OUT on GPIO27 with a 10 kΩ pull-up to 3V3, LED on GPIO26. Toggle the magnet in the part settings.Open in simulator
- CircuitHC-SR04 Ultrasonic SensorWiring and code for the SolderHub HC-SR04 + ESP32 guide: VCC on the 5V pin, Trig on GPIO4, and Echo on GPIO18 through a 1 kΩ + 2 kΩ voltage divider. This is the real circuit and hardware-true code; upload the sketch to a real ESP32 to measure distance.Open in simulator
- CircuitDHT22 temperature and humidityWiring and code for the SolderHub DHT22 + ESP32 guide: DATA on GPIO 4, powered from 3V3. This is the real circuit and hardware-true code; upload the sketch to a real ESP32 to read live air.Open in simulator
- CircuitDHT11 temperature and humidityWiring and code for the SolderHub DHT11 + ESP32 guide: DATA on GPIO 4, powered from 3V3. This is the real circuit and hardware-true code; upload the sketch to a real ESP32 to read live air.Open in simulator
More From This Board
6More Espressif ESP32 guides worth reading.
XIAO ESP32S3 Pinout: D0–D10, ADC, Touch, I2C, SPI and Battery
7m
ESP32 MicroPython Weather Web Server: Live DHT22 Readings with Auto-Refresh
17m
MicroPython ESP32 Web Server: Control an LED or Relay from Your Browser
16m
MicroPython SSD1306 OLED on ESP32: Wiring, Text, Graphics and Sensors
5m
ESP32 Dual Core and FreeRTOS: Tasks on Core 0 and Core 1, Queues and Mutexes
6m
ESP32 Hall Sensor: hallRead(), Core 3.x Removal and External Sensor Alternatives
10m