ESP32-S3 Camera Example

m.salmankhalid29
Posts: 1
Joined: Wed Jun 01, 2022 6:57 am

ESP32-S3 Camera Example

Postby m.salmankhalid29 » Wed Jun 01, 2022 7:00 am

Hi, ESP32-S3 has a dedicated camera peripheral which uses DVP interface. I am not able to find any example of using this peripheral in the SDK examples. Can someone explain where it could be or if it is even available.

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S3 Camera Example

Postby ESP_Sprite » Wed Jun 01, 2022 8:15 am


antonpegov
Posts: 1
Joined: Thu Feb 01, 2024 7:42 am

Re: ESP32-S3 Camera Example

Postby antonpegov » Thu Feb 01, 2024 7:46 am

ESP_Sprite wrote:
Wed Jun 01, 2022 8:15 am
You probably want https://github.com/espressif/esp32-camera .
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 :(

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S3 Camera Example

Postby ESP_Sprite » Fri Feb 02, 2024 5:12 am

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 :(
You are responding to a topic where someone asks for a software example, and you're angry the answer is a software example rather than how to physically connect the camera? I'm confused. If you need help connecting your camera, why not start a topic asking for exactly that?

vesper
Posts: 1
Joined: Mon Feb 26, 2024 11:20 am

Re: ESP32-S3 Camera Example

Postby vesper » Mon Feb 26, 2024 11:34 am

antonpegov wrote:
Thu Feb 01, 2024 7:46 am
ESP_Sprite wrote:
Wed Jun 01, 2022 8:15 am
You probably want https://github.com/espressif/esp32-camera .
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,

mihvoi
Posts: 2
Joined: Sat Mar 09, 2024 2:41 pm

Re: ESP32-S3 Camera Example

Postby mihvoi » Tue Apr 16, 2024 6:07 pm

I adapted the timelapse code from ESP32-CAM to also work with ESP32-S3-Wroom1 CAM (with PSRAM enabled)
I also identified the SD card pins for timelapse snapshots to be written to SD card.

You can try my code below, only tested with the ESP32-S3 WROOM N16R8 from ali*, not sure for other variants.
https://github.com/mihvoi/ESP32S3CamTimeLapse

Who is online

Users browsing this forum: No registered users and 7 guests