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)
- 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]
- Pin sources checked
- 2026-11-19
- Technical details reviewed
- 2026-11-19
All pins (50)
| Physical | Pin name | Type | Functions | Notes and warnings | Source |
|---|---|---|---|---|---|
| P2.8 | 5V | Power | — | — | [1] |
| P2.7 | GND | Ground | — | — | [1] |
| P2.6 | GPIO12 | General-purpose I/O | ADC2_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.5 | GPIO13 | General-purpose I/O | ADC2_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.4 | GPIO15 | General-purpose I/O | ADC2_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.3 | GPIO14 | General-purpose I/O | ADC2_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.2 | GPIO2 | General-purpose I/O | ADC2_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.1 | GPIO4 | General-purpose I/O | ADC2_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.8 | 3V3 | Power | — | — | [1] |
| P1.7 | GPIO16 | General-purpose I/O | UART1 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.6 | GPIO0 | General-purpose I/O | ADC2_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.5 | GND | Ground | — | — | [1] |
| P1.4 | VCC | System | — | 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.3 | U0R | General-purpose I/O | U0RXDUART1 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.2 | U0T | General-purpose I/O | U0TXDUART1 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.1 | GND | Ground | — | — | [1] |
| Cam1.1 | Y0 | System | — | Reserved for HAT EEPROM | [1] |
| Cam1.2 | Y1 | System | — | Reserved for HAT EEPROM | [1] |
| Cam1.3 | Y4 | General-purpose I/O | CAM_Y4 | Reserved for HAT EEPROM | [1] |
| Cam1.4 | Y3 | General-purpose I/O | CAM_Y3 | Reserved for HAT EEPROM | [1] |
| Cam1.5 | Y5 | General-purpose I/O | CAM_Y5 | Reserved for HAT EEPROM | [1] |
| Cam1.6 | Y2 | General-purpose I/O | CAM_Y2 | Reserved for HAT EEPROM | [1] |
| Cam1.7 | Y6 | General-purpose I/O | CAM_Y6 | Reserved for HAT EEPROM | [1] |
| Cam1.8 | PCLK | General-purpose I/O | CAM_PCLK | Reserved for HAT EEPROM | [1] |
| Cam1.9 | Y7 | General-purpose I/O | CAM_Y7 | Reserved for HAT EEPROM | [1] |
| Cam1.10 | DGND | Ground | — | Reserved for HAT EEPROM | [1] |
| Cam1.11 | Y8 | General-purpose I/O | CAM_Y8 | Reserved for HAT EEPROM | [1] |
| Cam1.12 | XCLK | General-purpose I/O | CAM_XCLK | Reserved for HAT EEPROM · Same electrical signal as P1.6 | [1] |
| Cam1.13 | Y9 | General-purpose I/O | CAM_Y9 | Reserved for HAT EEPROM | [1] |
| Cam1.14 | DOVDD | Power | — | Reserved for HAT EEPROM | [1] |
| Cam1.15 | DVDD | Power | — | Reserved for HAT EEPROM | [1] |
| Cam1.16 | HREF | General-purpose I/O | CAM_HREF | Reserved for HAT EEPROM | [1] |
| Cam1.17 | PWDN | General-purpose I/O | CAM_PWDN | Reserved for HAT EEPROM | [1] |
| Cam1.18 | VSYNC | General-purpose I/O | CAM_VSYNC | Reserved for HAT EEPROM | [1] |
| Cam1.19 | RESET | System | — | Reserved for HAT EEPROM | [1] |
| Cam1.20 | SIO_C | General-purpose I/O | CAM_SIO_C | Reserved for HAT EEPROM | [1] |
| Cam1.21 | AVDD | Power | — | Reserved for HAT EEPROM | [1] |
| Cam1.22 | SIO_D | General-purpose I/O | CAM_SIO_D | Reserved for HAT EEPROM | [1] |
| Cam1.23 | AGND | Ground | — | Reserved for HAT EEPROM | [1] |
| Cam1.24 | NC | System | — | Unconnected | [1] |
| Cam1.25 | GND | Ground | — | Reserved for HAT EEPROM | [1] |
| Cam1.26 | GND | Ground | — | Reserved for HAT EEPROM | [1] |
| SD1.1 | DAT2 | General-purpose I/O | SDMMC_DAT2 | Reserved for HAT EEPROM · Same electrical signal as P2.6 | [1] |
| SD1.2 | DAT3 | General-purpose I/O | SDMMC_DAT3 | Reserved for HAT EEPROM · Same electrical signal as P2.5 | [1] |
| SD1.3 | CMD | General-purpose I/O | SDMMC_CMD | Reserved for HAT EEPROM · Same electrical signal as P2.4 | [1] |
| SD1.4 | VDD | Power | — | Reserved for HAT EEPROM | [1] |
| SD1.5 | CLK | General-purpose I/O | SDMMC_CLK | Reserved for HAT EEPROM · Same electrical signal as P2.3 | [1] |
| SD1.6 | GND | Ground | — | Reserved for HAT EEPROM | [1] |
| SD1.7 | DAT0 | General-purpose I/O | SDMMC_DAT0 | Reserved for HAT EEPROM · Same electrical signal as P2.2 | [1] |
| SD1.8 | DAT1 | General-purpose I/O | SDMMC_DAT1 | Reserved for HAT EEPROM · Same electrical signal as P2.1 | [1] |
Sources
Pin and warning references
- 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)
- ESP32 series datasheetEspressif · Locked pin-source document; see sources/manifest.json for revision and SHA-256
- Ai-Thinker ESP32-CAM schematicAi-Thinker · Locked schematic or pin-source document
Locked source documents
- esp32-devkitc official user guideEspressif · 5c06bf1835329d6525f316475f7218aab6acfe79
- ESP32 series datasheetEspressif · Snapshot reviewed 2026-11-04
- Ai-Thinker ESP32-CAM schematicAi-Thinker · 1.6 · 2018-01-30