ESP32 - CAM Pinout

ESP32-CAM is a compact ESP32-based camera development board with built-in Wi-Fi, Bluetooth, an OV2640 camera connector, microSD card slot, onboard flash LED, and external PSRAM on common AI-Thinker variants. It is designed for low-cost IoT camera projects such as wireless image capture, video streaming, face detection demos, remote monitoring, and simple embedded vision applications. Unlike standard ESP32 development boards, the ESP32-CAM has no onboard USB-to-serial converter and exposes only a limited number of GPIO pins because many ESP32 pins are already used by the camera, PSRAM, flash memory, and microSD interface.

Manufacturer
Espressif / AI-Thinker
Package
Dev Board
ESP32 - CAM pinout diagram

Pin reference

PinNameFunctionsDescription
15V5V<p>Main 5 V power input for the ESP32-CAM board. This pin feeds the onboard regulator that powers the ESP32 module and camera circuitry.</p>
2GNDGround<p>Common ground. Multiple GND pins are available.</p>
3IO12IO12<p>General-purpose I/O pin exposed on the ESP32-CAM header. It is also used by the microSD card interface and has ESP32 boot-strapping behavior, so external circuits should not force the wrong level during reset.</p>
4IO13IO13<p>General-purpose I/O pin exposed on the ESP32-CAM header. It is commonly available for external use when the microSD card is not used, but it is also part of the SD card connection.</p>
5IO15IO15<p>General-purpose I/O pin exposed on the ESP32-CAM header. It is also used by the microSD command line and has ESP32 strapping behavior.</p>
6IO14IO14<p>General-purpose I/O pin exposed on the ESP32-CAM header. It is also used as the microSD clock line, so avoid using it for other circuits when the SD card is active.</p>
7IO2IO2<p>General-purpose I/O pin that is also connected to the microSD card interface on the ESP32-CAM. It can be used as GPIO when the SD card is not used or when using a compatible SD mode.</p>
8IO4IO4<p>IO4 is connected to the ESP32-CAM onboard white flash LED. It is also shared with the microSD card interface, so the flash LED can behave unexpectedly when the SD card is active.</p>
9GNDGND
10UOTUOT<p>UART0 transmit pin used for firmware upload logs and serial output. Connect this pin to the adapter RX pin.</p>
11UORUOR<p>UART0 receive pin used for uploading firmware through an external USB-to-serial adapter. Connect this pin to the adapter TX pin.</p>
12VCCVCC<p>Board VCC rail pin. On many ESP32-CAM boards this is associated with the external supply rail, but the exact connection can vary by clone or revision.</p>
13GNDGND
14IO0IO0<p>Boot-mode pin used for programming. Pull IO0 low while resetting or powering the board to enter firmware flashing mode. Leave it high or unconnected for normal boot.</p>
15IO16IO16<p>General-purpose I/O pin exposed on the ESP32-CAM header. Availability can depend on the ESP32-CAM module variant and how PSRAM is wired internally.</p>
163V33V3<p>3.3 V rail pin connected to the ESP32-CAM board power system. It can be used as a low-current 3.3 V reference or supply point, depending on the board revision and wiring.</p>

Report an error on this page