ESP32-CAM Camera Module
The ESP32-CAM is a small-size, low-power camera module based on ESP32. It comes with an OV2640 camera and provides an onboard TF card slot. This board has 4MB PSRAM which is used for buffering images from the camera into video streaming or other tasks and allows you to use higher quality in your pictures without crashing the ESP32. It also comes with an onboard LED for flash and several GPIOs to connect peripherals.
ESP32-CAM Pinout
Pin No. |
Name |
Type |
Function |
1 |
5V |
POWER |
5V Supply |
2 |
GND |
POWER |
Ground pin |
3 |
IO12 |
I/O |
GPIO 12/MicroSD DATA2 |
4 |
IO13 |
I/O |
GPIO 13/MicroSD DATA3 |
5 |
IO15 |
I/O |
GPIO 15/MicroSD CMD |
6 |
IO14 |
I/O |
GPIO 14/MicroSD CLK |
7 |
IO2 |
I/O |
GPIO 2/MicroSD DATA0 |
8 |
IO4 |
I/O |
GPIO 12/MicroSD DATA1/ Flash |
9 |
GND |
POWER |
Ground pin |
10 |
UOT/IO1 |
I/O |
UART TX /GPIO 1 |
11 |
UOR/IO3 |
I/O |
UART RX /GPIO 3 |
12 |
VCC |
POWER |
5V/3.3V |
13 |
GND |
POWER |
Ground pin |
14 |
IO0 |
I/O |
GPIO 0 / Boot select |
15 |
IO16 |
I/O |
GPIO 16 |
16 |
3V3 |
POWER |
3.3V Supply |
Camera Connections
The connections between the camera and the ESP32-CAM AI-Thinker are shown in the following table.
OV2640 CAMERA |
ESP32 |
Variable name in code |
D0 |
GPIO 5 |
Y2_GPIO_NUM |
D1 |
GPIO 18 |
Y3_GPIO_NUM |
D2 |
GPIO 19 |
Y4_GPIO_NUM |
D3 |
GPIO 21 |
Y5_GPIO_NUM |
D4 |
GPIO 36 |
Y6_GPIO_NUM |
D5 |
GPIO 39 |
Y7_GPIO_NUM |
D6 |
GPIO 34 |
Y8_GPIO_NUM |
D7 |
GPIO 35 |
Y9_GPIO_NUM |
XCLK |
GPIO 0 |
XCLK_GPIO_NUM |
PCLK |
GPIO 22 |
PCLK_GPIO_NUM |
VSYNC |
GPIO 25 |
VSYNC_GPIO_NUM |
HREF |
GPIO 23 |
HREF_GPIO_NUM |
SDA |
GPIO 26 |
SIOD_GPIO_NUM |
SCL |
GPIO 27 |
SIOC_GPIO_NUM |
POWER PIN |
GPIO 32 |
PWDN_GPIO_NUM |
Features
- Onboard ESP32-S module, supports WiFi + Bluetooth
- OV2640 camera with flash
- Onboard TF card slot, supports up to 4G TF card for data storage
- Supports WiFi video monitoring and WiFi image upload
- Supports multi sleep modes, deep sleep current as low as 6mA
- Control interface is accessible via pin-header, easy to be integrated and embedded into user products
Specifications
- WIFI module: ESP-32S
- Processor: ESP32-D0WD
- Built-in Flash: 32Mbit
- RAM: Internal 512KB + External 4M PSRAM
- Antenna: Onboard PCB antenna
- WiFi protocol: IEEE 802.11 b/g/n/e/i
- Bluetooth: Bluetooth 4.2 BR/EDR and BLE
- WIFI mode: Station / SoftAP / SoftAP+Station
- Security: WPA/WPA2/WPA2-Enterprise/WPS
- Output image format: JPEG (OV2640 support only), BMP, GRAYSCALE
- Supported TF card: up to 4G
- Peripheral interface: UART/SPI/I2C/PWM
- IO port: 9
- UART baudrate rate: default 115200bps
- Power supply: 5V
- Transmitting power:
- 802.11b: 17 ±2dBm(@11Mbps)
- 802.11g: 14 ±2dBm(@54Mbps)
- 802.11n: 13 ±2dBm(@HT20,MCS7)
- Reception sensitivity:
- CCK,1Mbps: -90 dBm
- CCK,11Mbps: -85 dBm
- 6Mbps(1/2 BPSK): -88 dBm
- 54Mbps(3/4 64-QAM): -70 dBm
- HT20,MCS7(65Mbps, 72.2Mbps): -67 dBm
- Power consumption:
- Flash off: 180mA@5V
- Flash on and brightness max: 310mA@5V
- Deep-Sleep: as low as 6mA@5V
- Modern-Sleep: as low as 20mA@5V
- Light-Sleep: as low as 6.7mA@5V
- Operating temperature: -20 ℃ ~ 85 ℃
- Storage environment: -40 ℃ ~ 90 ℃, <90%RH
- Dimensions: 40.5mm x 27mm x 4.5mm
ESP32-CAM Schematics
The following figure shows the schematic diagram for the ESP32-CAM.
Applications
The ESP32-CAM suit for IoT applications such as:
- Smart home devices image upload
- Wireless monitoring
- Intelligent agriculture
- QR wireless identification
- facial recognition