ESP32 CAM

From SGMK-SSAM-WIKI
Jump to: navigation, search

Introduction

https://www.cnx-software.com/2018/09/30/esp32-cam-esp32-camera-board/

Arduino

Installation

  1. Install the ESP32 core for Arduino: https://dl.espressif.com/dl/package_esp32_index.json
  2. Search for ESP32 in the Boards Manager, the description only lists 2 boards

Getting started

After installing the Boards, and switching to a random ESP32 board, there schould be an example:

Examples > ESP32 > Camera > CameraWebServer

To flash it use the following settings:

Board
ESP32 Wrover
Partion Scheme
Huge APP (3MB no OTA)

Flashing

  • Connect GND and IO0 to flash.
  • Press RST
  • On some USB to TTL modules you must set a lower baud rate (115200) for flashing.

Code

Before compiling and flashing you should set the WiFi credentials. And choosing the board. In this case its the CAMERA_MODEL_AI_THINKER.

 
//#define CAMERA_MODEL_WROVER_KIT
//#define CAMERA_MODEL_M5STACK_PSRAM
#define CAMERA_MODEL_AI_THINKER

Caveats

  • Use 5V when powering from USB TTL, at 3V3 I got constant brownouts.


Tutorial I followed

It's somehow back online:

https://randomnerdtutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/