Skip to main content

ESP32 Pinout

The values below are a common example for an ESP32 DevKit with a 16-channel relay board. Always verify against your firmware sketch.

GPIO for relays (example)

RelayGPIO
1GPIO 32
2GPIO 33
3GPIO 25
4GPIO 26
5GPIO 27
6GPIO 14
7GPIO 12
8GPIO 13
9GPIO 23
10GPIO 22
11GPIO 21
12GPIO 19
13GPIO 18
14GPIO 5
15GPIO 4
16GPIO 2

Safety notes

  • Do not use GPIO 6–11 (connected to internal flash).
  • GPIO 2 may be HIGH at boot — test before relying on it for critical loads.
  • Use optocoupler-isolated relay boards to separate low-voltage logic from mains.

UART for flashing

ESP32USB-TTL
TXRX
RXTX
GNDGND
3.3V3.3V (optional)

Hold BOOT while starting a flash if the tool fails to connect.