Development boards

Ai-Thinker ESP32-CAM pinout

ESP32 · camera and microSD · Rev 1.6

Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe

Ai-Thinker ESP32-CAM Rev 1.6. Side headers, camera socket and microSD contacts follow the schematic.

At a glance

Platform / manufacturer
Espressif
Type
Development boards
MCU
ESP32
Physical contacts
50
GPIO
24 (15 reserved)
I/O voltage
3.3 V I/O
Interfaces (pin count)
I²C (10) · SPI (10) · UART (10) · ADC (7) · PWM (10) · IRQ (10) · JTAG (4) · SDIO (6) · SYSTEM (15) · TOUCH (7)
Documented by this date
2018-01-30 [b] [a]
MCU / processor core
2 × Xtensa LX6 [a]
Clock speed / maximum
240 MHz [a]
Internal RAM / system RAM
520 KB SRAM + 16 KB RTC SRAM [a]
Program Flash / storage
Module-dependent external Flash [a]
Fixed ROM / boot ROM
448 KB ROM [a]
External PSRAM
On-board SPI PSRAM; GPIO16 is its chip select [b] [a]
Power and logic level
5 V input through the on-board regulator; 3.3 V I/O [b] [a]
Pin sources checked
2026-11-19
Technical details reviewed
2026-11-19

All pins (50)

Ai-Thinker ESP32-CAM: every pin in physical order with its type, functions and warnings
PhysicalPin nameTypeFunctionsNotes and warningsSource
P2.85VPower——[1]
P2.7GNDGround——[1]
P2.6GPIO12General-purpose I/OADC2_CH5TOUCH_CH5MTDIUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.1

Strapping pin: its reset-time level affects boot or hardware configuration. Check that external circuitry preserves the required reset levels.

This header signal is shared with the on-board microSD socket. Source: [1]

[1]
P2.5GPIO13General-purpose I/OADC2_CH4TOUCH_CH4MTCKUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.2

This header signal is shared with the on-board microSD socket. Source: [1]

[1]
P2.4GPIO15General-purpose I/OADC2_CH3TOUCH_CH3MTDOUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.3

Strapping pin: its reset-time level affects boot or hardware configuration. Check that external circuitry preserves the required reset levels.

This header signal is shared with the on-board microSD socket. Source: [1]

[1]
P2.3GPIO14General-purpose I/OADC2_CH6TOUCH_CH6MTMSUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.5

This header signal is shared with the on-board microSD socket. Source: [1]

[1]
P2.2GPIO2General-purpose I/OADC2_CH2TOUCH_CH2UART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.7

Strapping pin: its reset-time level affects boot or hardware configuration. Check that external circuitry preserves the required reset levels.

This header signal is shared with the on-board microSD socket. Source: [1]

[1]
P2.1GPIO4General-purpose I/OADC2_CH0TOUCH_CH0UART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as SD1.8

GPIO4 is shared with microSD DAT1 and the flash LED. Source: [1]

[1]
P1.83V3Power——[1]
P1.7GPIO16General-purpose I/OUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Reserved for HAT EEPROM

GPIO16 is the on-board PSRAM chip-select signal. Source: [1]

[1]
P1.6GPIO0General-purpose I/OADC2_CH1TOUCH_CH1UART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt

Same electrical signal as Cam1.12

Strapping pin: its reset-time level affects boot or hardware configuration. Check that external circuitry preserves the required reset levels.

GPIO0 is the camera XCLK signal. It also selects the programming mode at reset. Source: [1]

[1]
P1.5GNDGround——[1]
P1.4VCCSystem—

Reserved for HAT EEPROM

The VCC level depends on the R1/R2 link. Check the fitted link before using this contact. Source: [1]

[1]
P1.3U0RGeneral-purpose I/OU0RXDUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt—[1]
P1.2U0TGeneral-purpose I/OU0TXDUART1 RX (matrix) GPIO matrixSPI2 MISO (matrix) GPIO matrixUART1 TX (matrix) GPIO matrixSPI2 MOSI (matrix) GPIO matrixSPI2 SCK (matrix) GPIO matrixSPI2 CS (matrix) GPIO matrixI2C0 SDA (matrix) GPIO matrixI2C0 SCL (matrix) GPIO matrixLEDC PWM (matrix) GPIO matrixGPIO interrupt—[1]
P1.1GNDGround——[1]
Cam1.1Y0System—

Reserved for HAT EEPROM

[1]
Cam1.2Y1System—

Reserved for HAT EEPROM

[1]
Cam1.3Y4General-purpose I/OCAM_Y4

Reserved for HAT EEPROM

[1]
Cam1.4Y3General-purpose I/OCAM_Y3

Reserved for HAT EEPROM

[1]
Cam1.5Y5General-purpose I/OCAM_Y5

Reserved for HAT EEPROM

[1]
Cam1.6Y2General-purpose I/OCAM_Y2

Reserved for HAT EEPROM

[1]
Cam1.7Y6General-purpose I/OCAM_Y6

Reserved for HAT EEPROM

[1]
Cam1.8PCLKGeneral-purpose I/OCAM_PCLK

Reserved for HAT EEPROM

[1]
Cam1.9Y7General-purpose I/OCAM_Y7

Reserved for HAT EEPROM

[1]
Cam1.10DGNDGround—

Reserved for HAT EEPROM

[1]
Cam1.11Y8General-purpose I/OCAM_Y8

Reserved for HAT EEPROM

[1]
Cam1.12XCLKGeneral-purpose I/OCAM_XCLK

Reserved for HAT EEPROM · Same electrical signal as P1.6

[1]
Cam1.13Y9General-purpose I/OCAM_Y9

Reserved for HAT EEPROM

[1]
Cam1.14DOVDDPower—

Reserved for HAT EEPROM

[1]
Cam1.15DVDDPower—

Reserved for HAT EEPROM

[1]
Cam1.16HREFGeneral-purpose I/OCAM_HREF

Reserved for HAT EEPROM

[1]
Cam1.17PWDNGeneral-purpose I/OCAM_PWDN

Reserved for HAT EEPROM

[1]
Cam1.18VSYNCGeneral-purpose I/OCAM_VSYNC

Reserved for HAT EEPROM

[1]
Cam1.19RESETSystem—

Reserved for HAT EEPROM

[1]
Cam1.20SIO_CGeneral-purpose I/OCAM_SIO_C

Reserved for HAT EEPROM

[1]
Cam1.21AVDDPower—

Reserved for HAT EEPROM

[1]
Cam1.22SIO_DGeneral-purpose I/OCAM_SIO_D

Reserved for HAT EEPROM

[1]
Cam1.23AGNDGround—

Reserved for HAT EEPROM

[1]
Cam1.24NCSystem—

Unconnected

[1]
Cam1.25GNDGround—

Reserved for HAT EEPROM

[1]
Cam1.26GNDGround—

Reserved for HAT EEPROM

[1]
SD1.1DAT2General-purpose I/OSDMMC_DAT2

Reserved for HAT EEPROM · Same electrical signal as P2.6

[1]
SD1.2DAT3General-purpose I/OSDMMC_DAT3

Reserved for HAT EEPROM · Same electrical signal as P2.5

[1]
SD1.3CMDGeneral-purpose I/OSDMMC_CMD

Reserved for HAT EEPROM · Same electrical signal as P2.4

[1]
SD1.4VDDPower—

Reserved for HAT EEPROM

[1]
SD1.5CLKGeneral-purpose I/OSDMMC_CLK

Reserved for HAT EEPROM · Same electrical signal as P2.3

[1]
SD1.6GNDGround—

Reserved for HAT EEPROM

[1]
SD1.7DAT0General-purpose I/OSDMMC_DAT0

Reserved for HAT EEPROM · Same electrical signal as P2.2

[1]
SD1.8DAT1General-purpose I/OSDMMC_DAT1

Reserved for HAT EEPROM · Same electrical signal as P2.1

[1]

Sources

Pin and warning references

  1. Ai-Thinker ESP32-CAM schematic · PDF p. 1Ai-Thinker ESP32_CAM Rev 1.6 · P1/P2, camera socket Cam1, microSD SD1 and on-board PSRAM

Technical sources (2)

  1. ESP32 series datasheetEspressif · Locked pin-source document; see sources/manifest.json for revision and SHA-256
  2. Ai-Thinker ESP32-CAM schematicAi-Thinker · Locked schematic or pin-source document

Locked source documents

Pin reference · Datasheet