ESP32-S3-N16R8 Camera config

Hello Everyone,

I’m looking for a working esp32_camera yaml config for this board.


What do the docs from the manufacturer say?

this is all I have. CAM pins are marked on the image but I’m not sure how it is translated into the yaml config

I’m using the following generic esp32 config and while it seems to be matching the pins, it does not work:

esp32_camera:
  external_clock:
    pin: GPIO15
    frequency: 20MHz
  i2c_pins:
    sda: GPIO4
    scl: GPIO5
  data_pins: [GPIO11, GPIO9, GPIO8, GPIO10, GPIO12, GPIO18, GPIO17, GPIO16]
  vsync_pin: GPIO6
  href_pin: GPIO7
  pixel_clock_pin: GPIO13
  name: "3D Printer CAM"

Debug log:

[08:39:39][C][esp32_camera:048]: ESP32 Camera:
[08:39:39][C][esp32_camera:049]:   Name: 3D Printer CAM
[08:39:39][C][esp32_camera:050]:   Internal: NO
[08:39:39][C][esp32_camera:051]:   Framebuffer in PSRAM: YES
[08:39:39][C][esp32_camera:053]:   Data Pins: D0:11 D1:9 D2:8 D3:10 D4:12 D5:18 D6:17 D7:16
[08:39:39][C][esp32_camera:054]:   VSYNC Pin: 6
[08:39:39][C][esp32_camera:055]:   HREF Pin: 7
[08:39:39][C][esp32_camera:056]:   Pixel Clock Pin: 13
[08:39:39][C][esp32_camera:057]:   External Clock: Pin:15 Frequency:20000000
[08:39:39][C][esp32_camera:061]:   I2C Pins: SDA:4 SCL:5
[08:39:39][C][esp32_camera:063]:   Reset Pin: -1
[08:39:39][C][esp32_camera:081]:   Resolution: 640x480 (VGA)
[08:39:39][E][esp32_camera:124]:   Setup Failed: ESP_FAIL
[08:39:39][E][component:082]:   Component esp32_camera is marked FAILED: 
[08:39:39][C][psram:017]: PSRAM:
[08:39:39][C][psram:032]:   Available: NO

I managed to solve it.
The PSRAM needed to be configured. Here is a working config:

esphome:
  name: 3d-printer-cam
  friendly_name: 3D-Printer-CAM

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
    version: 2.0.7
psram:
  mode: octal
  speed: 80MHz

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "*****************************************"

ota:
  - platform: esphome
    password: "***************************************"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "3D-Printer-Cam Fallback Hotspot"
    password: "password"

captive_portal:

esp32_camera:
  external_clock:
    pin: GPIO15
    frequency: 20MHz
  i2c_pins:
    sda: GPIO4
    scl: GPIO5
  data_pins: [GPIO11, GPIO9, GPIO8, GPIO10, GPIO12, GPIO18, GPIO17, GPIO16]
  vsync_pin: GPIO6
  href_pin: GPIO7
  pixel_clock_pin: GPIO13
  resolution: 1600x1200
  jpeg_quality: 10
  name: "3D Printer CAM"