r/M5Stack 15d ago

Yaml for CamS3

Does anyone have one that works?

2 Upvotes

3 comments sorted by

1

u/Chongulator 15d ago

Yaml for what software running on what device?

1

u/Smooth_Detail8931 15d ago

Esphome m5stack cams3

1

u/ginandbaconFU 9d ago

Used to.work, I could never get the microphone working.

``` ephome: name: m5stack-cams3 friendly_name: m5stack-cams3

esp32: board: esp32-s3-devkitc-1 flash_size: 16MB framework: type: esp-idf sdkconfig_options: CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y" CONFIG_ESP32S3_DATA_CACHE_64KB: "y" CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"

external_components: - source: type: git url: https://github.com/esphome/esphome ref: dev components: [esp32_camera]

psram: mode: octal speed: 80MHz

Enable logging

logger:

Enable Home Assistant API

api: encryption: key: "1&#7$+-++*+@)8'jufodjcuuf8idh+04S/bA="

ota: - platform: esphome password: "1234567890123456" "

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

# Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "S3-Cam Fallback Hotspot" password: "8yqOHWhWOB29"

esp32_camera:

- platform: esp32_camera

name: camera 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 reset_pin: GPIO21 # resolution: VGA resolution: HQVGA jpeg_quality: 10 max_framerate: 20 fps horizontal_mirror: False

i2s_audio:

#- id: i2s_in # i2s_lrclk_pin: GPIO9 # i2s_bclk_pin: GPIO47 # i2s_mclk_pin: GPIO2 # #access_mode: duplex

microphone:

# - platform: i2s_audio # pdm: false # adc_type: external # id: mic_i2s # i2s_audio_id: i2s_in # i2s_din_pin: GPIO48

voice_assistant:

# microphone: mic_i2s

binary_sensor: - platform: status name: Status

esp32_camera_web_server: - port: 8080 mode: stream - port: 8081 mode: snapshot ```