ESP32-CAM pinout

ESP32-CAM (AI-Thinker), ESP32 (ESP32-D0WDQ6), 3.3 V logic, 27×40.5 mm, 16 pins

partly verified17.10.2026

Which ESP32-CAM pins are safe to use

Free to use

GPIO3

Use with care

  • GPIO0, GPIO2, GPIO12, GPIO15: strapping: the level at power-up selects the boot mode.
  • GPIO1: signal at boot.
  • GPIO4, GPIO13, GPIO14: onboard peripherals are wired to them.

Leave alone

  • GPIO16: flash and PSRAM memory.

Important

  • 3.3 V logic, don't put 5 V on the GPIO.
  • The camera uses GPIO0, 5, 18, 19, 21-23, 25-27, 32, 34-36, 39: of these only GPIO0 (XCLK) is brought out to the header.
  • A microSD card in 4-bit mode uses GPIO2, 4, 12, 13, 14, 15, which is almost all the free header pins. In 1-bit mode (SD_MMC.begin("/sdcard", true)) 4, 12, 13 are free.
  • GPIO16 is used by PSRAM, GPIO1 and 3 are UART0 for flashing. Without the card, 2, 4, 12, 13, 14, 15 remain for your own sensors.
  • Flashing: IO0 to GND, reset (RST button on the back), upload, remove the jumper, reset.
  • Strapping pins on the header: IO0, IO2, IO12, IO15. Keep GPIO12 low at power-up.
  • Red LED on GPIO33 (on when LOW) on the back, not brought out to the header.
  • The board draws up to 300 mA with Wi-Fi and the camera and more with the flash: power it with 5 V from a 1-2 A source, not from the 3.3 V pin of an adapter.
  • No USB on the board: flash through a USB-UART adapter (U0R, U0T, GND, 5V) or the ESP32-CAM-MB board.
  • AI-Thinker: with weak power the image has stripes and the board resets when the camera starts.

Revisions and clones

  • Clones (ESP32-CAM "HW-297" and similar) copy the AI-Thinker board; some have 4 MB PSRAM and no VCC jumper.
  • ESP32-CAM-MB is a base board with a CH340 and micro-USB: the ESP32-CAM plugs on top and is flashed over USB.

All pins

LabelNumberFunctionsLimitsCheck
5V5 Vpower inputnot from manufacturer
GNDGroundnot from manufacturer
IO12GPIO12interruptPWM (LEDC)ADC2_CH5TOUCH5RTC_GPIO15HSPI MISOJTAG MTDIaffects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
IO13GPIO13interruptPWM (LEDC)ADC2_CH4TOUCH4RTC_GPIO14HSPI MOSIJTAG MTCKADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
IO15GPIO15interruptPWM (LEDC)ADC2_CH3TOUCH3RTC_GPIO13HSPI CSJTAG MTDOaffects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
IO14GPIO14interruptPWM (LEDC)ADC2_CH6TOUCH6RTC_GPIO16HSPI SCKJTAG MTMSADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
IO2GPIO2interruptPWM (LEDC)ADC2_CH2TOUCH2RTC_GPIO12affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
IO4GPIO4interruptPWM (LEDC)ADC2_CH0TOUCH0RTC_GPIO10ADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
3V33.3 Vpower inputpower outputnot from manufacturer
IO16GPIO16interruptPWM (LEDC)UART2 RXnot 5 V tolerantused by PSRAM, do not usenot from manufacturer
IO0GPIO0interruptPWM (LEDC)ADC2_CH1TOUCH1RTC_GPIO11affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantused by onboard peripherals (camera, card, display)not from manufacturer
GNDGroundnot from manufacturer
VCC3.3 Vpower outputnot from manufacturer
U0RGPIO3interruptPWM (LEDC)UART0 RXnot 5 V tolerantnot from manufacturer
U0TGPIO1interruptPWM (LEDC)UART0 TXoutputs a signal at bootnot 5 V tolerantnot from manufacturer
GNDGroundnot from manufacturer

Sources

Not verified against the manufacturer: 16 of 16 pins. The pin card says what confirms each one and where sources disagree.

Size: 27×40.5 mm per the AI-Thinker description; rows 0.9 inch apart, position from the photo.

FAQ

Which ESP32-CAM pins are I2C, SPI and UART?
By default in arduino-esp32 ("AI Thinker ESP32-CAM" board): UART: TX GPIO1, RX GPIO3.
Which pin is the ESP32-CAM LED on?
White flash LED on GPIO4 (through a transistor, HIGH = on).
Are the ESP32-CAM pins 5 V tolerant?
No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.
Does ADC2 on the ESP32-CAM work with Wi-Fi on?
No. ADC2 pins (GPIO0, GPIO2, GPIO4, GPIO12-15) can't read analog while Wi-Fi is on.

You might also need

Similar boards

Next

Need firmware or a device built on ESP32? I'll build it to order