M5STACK ATOMS3 Camera 5MP

Is there a working example of how to use the M5Stack AtomS3 Camera (5mp model!) in EspHome?

I get the follow message in the log:

[16:41:56][E][esp32_camera:123]:   Setup Failed: ESP_ERR_NOT_FOUND
[16:41:56][E][component:082]:   Component esp32_camera is marked FAILED
[16:41:56][C][web_server:285]: Web Server:

This is how far i got until now:

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino

esphome:
  name: 95e-atom-s3cam
  friendly_name: 95e-Atom-S3Cam

api:

ota:
  - platform: esphome
    password: "XXXXXX"

wifi:
  networks:
  - ssid: !secret wifi_ssid
    password: !secret wifi_password
    manual_ip:
      static_ip: 192.168.X.XXX
      gateway: 192.168.2.254
      subnet: 255.255.255.0
      dns1: 192.168.2.25
      dns2: 1.1.1.1

logger:
  level: DEBUG

psram:
  mode: octal
  speed: 80MHz  

esp32_camera:
  name: M5Stack CamS3 5MP
  external_clock:
    pin: GPIO11
    frequency: 20MHz
  i2c_pins:
    sda: GPIO17
    scl: GPIO41
  data_pins: [GPIO6, GPIO15, GPIO16, GPIO7, GPIO5, GPIO10, GPIO4, GPIO13]
  vsync_pin: GPIO42
  href_pin: GPIO18
  pixel_clock_pin: GPIO12
  power_down_pin: GPIO0
  reset_pin: GPIO21
  #resolution: 1920x1080 
  jpeg_quality: 12 
  max_framerate: 15 fps 

web_server:
  port: 80 

Any example of working code in yaml is welcome!!!

I’m using the M5Stack Unit CamS3 5MP (U174-B) and getting the same result. I’m not seeing an “Atom” camera on their site, so I assume we’re talking about the same product.

I’ve found m5stack Unit CamS3-5MP - EV-EOF-OVF error · Issue #729 · espressif/esp32-camera · GitHub which seems to suggest that the esp32_camera component works for that user, but he’s having a different issue.

My code looks pretty much the same as yours. I’ve tried framework type as “arduino” and “esp-idf” with no change in result. I’ve also got an “esp32_camera_web_server” section, but that’s also failing, since it can’t find the camera.

Hardware is working fine under the “user demo” provided by M5Stack, so I don’t believe that there’s a hardware fault.

Anyone had any luck with this?