Home Cameras & Vision ESP32-CAM
Cameras & Vision

ESP32-CAM

$6-10

Specifications

MCUESP32-S
CameraOV2640 2MP
ResolutionUp to 1600x1200
WiFi802.11 b/g/n
StorageMicroSD slot
Flash4MB

Use cases

SurveillanceTime-lapseQR scanning

Integration code

Example code
// Arduino - Basic web server
#include "esp_camera.h"
#include <WiFi.h>

// Camera pins for AI-Thinker model
#define PWDN_GPIO_NUM     32
#define RESET_GPIO_NUM    -1
#define XCLK_GPIO_NUM      0
#define SIOD_GPIO_NUM     26
#define SIOC_GPIO_NUM     27
// ... etc

void setup() {
    camera_config_t config;
    config.ledc_channel = LEDC_CHANNEL_0;
    config.pixel_format = PIXFORMAT_JPEG;
    config.frame_size = FRAMESIZE_VGA;
    config.jpeg_quality = 12;
    config.fb_count = 1;
    
    esp_camera_init(&config);
    
    WiFi.begin(ssid, password);
    startCameraServer();
}

Notes and tips

Antenna diversity issues - external antenna recommended. No UART pins exposed!