Skip to content
Switch branches/tags

esp32cam: OV2640 camera on ESP32-CAM

GitHub build status GitHub code size

esp32cam library provides an object oriented API to use OV2640 camera on ESP32 microcontroller. It is a wrapper of esp32-camera library. This library has been tested with AI Thinker ESP32-CAM board and OV2640 camera.

esp32cam logo


  1. Clone this repository under $HOME/Arduino/libraries directory.
  2. Add #include <esp32cam.h> to your sketch.
  3. In Tools - Board menu, select ESP32 Wrover Module to take advantage of 4MB external PSRAM. Internal RAM is insufficient to support high resolution.
  4. Check out the examples for how to use.