antonpegov wrote: ↑Thu Feb 01, 2024 7:46 am
Oh, it was so informative! Thank you for redirecting to another non-informative page. I searching for days on how phisically to connect my camera, and see only answers like this
Despite that topic starter asked for software example and got his answer - the connection defined in Initialisation section
https://github.com/espressif/esp32-came ... ialization
Camera interface has 8 bit parallel bus defined there as D0-D7, sync signal, parallel clock signal, href and some kind of i2c interface for camera control (XCLK, SIOD, SIOC) all mentioned in this code example in super informative way with GPIO pins of ESP32, the "-1" means not connected. Some cameras has 10bit bus etc, but can work in 8 bit as popular ov2640.
Code: Select all
#include "esp_camera.h"
//WROVER-KIT PIN Map
#define CAM_PIN_PWDN -1 //power down is not used
#define CAM_PIN_RESET -1 //software reset will be performed
#define CAM_PIN_XCLK 21
#define CAM_PIN_SIOD 26
#define CAM_PIN_SIOC 27
#define CAM_PIN_D7 35
#define CAM_PIN_D6 34
#define CAM_PIN_D5 39
#define CAM_PIN_D4 36
#define CAM_PIN_D3 19
#define CAM_PIN_D2 18
#define CAM_PIN_D1 5
#define CAM_PIN_D0 4
#define CAM_PIN_VSYNC 25
#define CAM_PIN_HREF 23
#define CAM_PIN_PCLK 22
static camera_config_t camera_config = {
.pin_pwdn = CAM_PIN_PWDN,
.pin_reset = CAM_PIN_RESET,
.pin_xclk = CAM_PIN_XCLK,
.pin_sccb_sda = CAM_PIN_SIOD,
.pin_sccb_scl = CAM_PIN_SIOC,
.pin_d7 = CAM_PIN_D7,
.pin_d6 = CAM_PIN_D6,
.pin_d5 = CAM_PIN_D5,
.pin_d4 = CAM_PIN_D4,
.pin_d3 = CAM_PIN_D3,
.pin_d2 = CAM_PIN_D2,
.pin_d1 = CAM_PIN_D1,
.pin_d0 = CAM_PIN_D0,
.pin_vsync = CAM_PIN_VSYNC,
.pin_href = CAM_PIN_HREF,
.pin_pclk = CAM_PIN_PCLK,