• ESP32 + Cam OV2640 Dev Board

ESP32 + Cam OV2640 Dev Board

  • Brand: Generic
  • Product Code: ESP32-CAM
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock X236
    Stellenbosch In Stock Z2151
  • R239.00 (price excl. VAT)


ESP32 + Cam OV2640 Dev Board

The ESP32-CAM has a very competitive small-size camera module that can operate independently as a minimum system with a footprint of only 40 x 27mm and a deep sleep current of up to 6mA. ESP32-CAM can be widely used in various IoT applications. It is suitable for home smart devices, industrial wireless control, wireless monitoring, QR wireless identification, wireless positioning system signals and other IoT applications. It is an ideal solution for IoT applications. The ESP32-CAM adopts DIP package and can be directly inserted into the backplane to realize rapid production of products, providing customers with high-reliability connection mode, which is convenient for application in various IoT hardware terminals.

Quick Spec

  • The smallest 802.11b/g/n Wi-Fi BT SoC Module
  • Low power 32-bit CPU,can also serve the application processor
  • Up to 160MHz clock speed,Summary computing power up to 600 DMIPS
  • Built-in 520 KB SRAM, external 4MPSRAM
  • Supports UART/SPI/I2C/PWM/ADC/DAC
  • Support OV2640 and OV7670 cameras,Built-in Flash lamp
  • Support image WiFI upload
  • Support TF card
  • Supports multiple sleep modes
  • Embedded Lwip and FreeRTOS
  • Supports STA/AP/STA+AP operation mode
  • Support Smart Config/AirKiss technology
  • Support for serial port local and remote firmware upgrades (FOTA)

Board Layout

ESP32-CAM-001

Pinout

ESP32-CAM-002

Sample Code



#include "esp_camera.h"
#include 

// Select camera model
//#define CAMERA_MODEL_WROVER_KIT
//#define CAMERA_MODEL_ESP_EYE
//#define CAMERA_MODEL_M5STACK_PSRAM
//#define CAMERA_MODEL_M5STACK_WIDE
#define CAMERA_MODEL_AI_THINKER
#include "camera_pins.h"

//Credentials: Stark:
//    char ssid[] = "XXXXXXXXXXXXXXXXX";
//    char password[] = "XXXXXXXXXXXXX";
    
void startCameraServer();

void setup() {
  Serial.begin(115200);
  Serial.setDebugOutput(true);
  Serial.println();

  camera_config_t config;
  config.ledc_channel = LEDC_CHANNEL_0;
  config.ledc_timer = LEDC_TIMER_0;
  config.pin_d0 = Y2_GPIO_NUM;
  config.pin_d1 = Y3_GPIO_NUM;
  config.pin_d2 = Y4_GPIO_NUM;
  config.pin_d3 = Y5_GPIO_NUM;
  config.pin_d4 = Y6_GPIO_NUM;
  config.pin_d5 = Y7_GPIO_NUM;
  config.pin_d6 = Y8_GPIO_NUM;
  config.pin_d7 = Y9_GPIO_NUM;
  config.pin_xclk = XCLK_GPIO_NUM;
  config.pin_pclk = PCLK_GPIO_NUM;
  config.pin_vsync = VSYNC_GPIO_NUM;
  config.pin_href = HREF_GPIO_NUM;
  config.pin_sscb_sda = SIOD_GPIO_NUM;
  config.pin_sscb_scl = SIOC_GPIO_NUM;
  config.pin_pwdn = PWDN_GPIO_NUM;
  config.pin_reset = RESET_GPIO_NUM;
  config.xclk_freq_hz = 20000000;
  config.pixel_format = PIXFORMAT_JPEG;
  //init with high specs to pre-allocate larger buffers
  if(psramFound()){
    config.frame_size = FRAMESIZE_UXGA;
    config.jpeg_quality = 10;
    config.fb_count = 2;
  } else {
    config.frame_size = FRAMESIZE_SVGA;
    config.jpeg_quality = 12;
    config.fb_count = 1;
  }

#if defined(CAMERA_MODEL_ESP_EYE)
  pinMode(13, INPUT_PULLUP);
  pinMode(14, INPUT_PULLUP);
#endif

  // camera init
  esp_err_t err = esp_camera_init(&config);
  if (err != ESP_OK) {
    Serial.printf("Camera init failed with error 0x%x", err);
    return;
  }

  sensor_t * s = esp_camera_sensor_get();
  //initial sensors are flipped vertically and colors are a bit saturated
  if (s->id.PID == OV3660_PID) {
    s->set_vflip(s, 1);//flip it back
    s->set_brightness(s, 1);//up the blightness just a bit
    s->set_saturation(s, -2);//lower the saturation
  }
  //drop down frame size for higher initial frame rate
  s->set_framesize(s, FRAMESIZE_QVGA);

#if defined(CAMERA_MODEL_M5STACK_WIDE)
  s->set_vflip(s, 1);
  s->set_hmirror(s, 1);
#endif

  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");

  startCameraServer();

  Serial.print("Camera Ready! Use 'http://");
  Serial.print(WiFi.localIP());
  Serial.println("' to connect");
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(10000);
}


Resources

Shipping List

  • 1 X ESP32 + Cam OV2640 Dev Board


Related Products

ESP32 + LORA 868 + 0.96 OLED

ESP32 + LORA 868 + 0.96 OLED

ESP32 + LORA 868 + 0.96 OLED This ESP32 development board is a SX1276 chip based on the ESP32 WIFI, featuring an OLED, together with a LoRa remote modem, running on a 868-915MHz frequency, sensiti..

R496.00

Tags: esp32, camera, ov2640, dev, development, board, wireless

Also Bought

ESP-32 Dev Board (Arduino & MicroPython Compatible)

ESP-32 Dev Board (Arduino & MicroPython Compatible)

ESP-32 Dev Board (Arduino & MicroPython Compatible) ESP32 is already integrated antenna and RF balun, power amplifier, low-noise amplifiers, filters, and power management module. The entire sol..

R159.00

D1 Mini Node MCU - ESP8266 - 4M

D1 Mini Node MCU - ESP8266 - 4M

Mini Node MCU ESP8266 - 4M ESP8266 is a very popular WiFi enabled microcontroller. Thanks to very attractive price and huge possibilities quickly became a very popular choice - especially in domain..

R98.00

Switch + LED 10mm - RGB (3 Pack)

Switch + LED 10mm - RGB (3 Pack)

Switch + LED 10mm - RGB (3 Pack) These are great little 12V momentary tactile switches for any projects. The switches have built in LED's which can add coloured lights to your projects. Quick ..

R23.00

SIL 40 Way Header Female Connector (4 Pack)

SIL 40 Way Header Female Connector (4 Pack)

SIL 40 Way Female Connector (4 Pack) Single row of 40-holes, female header. Can be cut to size with a pair of wire-cutters. Standard 2.54mm spacing. We use them extensively in our designs. They mat..

R9.00

ESP-32 WROOM Wifi Module

ESP-32 WROOM Wifi Module

ESP-32 Wroom Wifi Module ESP-32S Wifi Bluetooth combo module is ultra high performance and ultra low-power consumption Wi-Fi and Bluetooth combo wireless platform based on ESPRESSIF ESP32 chipset. ..

R98.00