Sooo… anyone ever got the Microphone to work?
V1.6.2 with Mic is supposed to have SCK26 WS32 SDO33
i tried with this yaml:
esphome:
name: esphome-web-454f70
friendly_name: Camera-ESP
esp32:
board: esp32dev
framework:
type: arduino
i2c:
sda: GPIO21
scl: GPIO22
i2s_audio:
i2s_lrclk_pin: GPIO32
i2s_bclk_pin: GPIO26
microphone:
- platform: i2s_audio
id: adc_mic
i2s_din_pin: GPIO33
adc_type: external
pdm: false
voice_assistant:
microphone: adc_mic
time:
- platform: homeassistant
id: homeassistant_time
binary_sensor:
- platform: gpio
pin: GPIO19
name: "ttgocam2 PIR"
device_class: motion
- platform: gpio
pin:
number: GPIO15
mode: INPUT_PULLUP
inverted: True
name: "ttgocam2 Button"
sensor:
- platform: wifi_signal
name: "ttgocam2 WiFi Signal"
update_interval: 60s
font:
- file: "fonts/times-new-roman.ttf"
id: tnr1
size: 20
- file: "fonts/times-new-roman.ttf"
id: tnr2
size: 35
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.strftime(64, 0, id(tnr1), TextAlign::TOP_CENTER,"%d-%m-%Y", id(homeassistant_time).now());
it.strftime(64, 64, id(tnr2), TextAlign::BASELINE_CENTER, "%H:%M", id(homeassistant_time).now());
esp32_camera:
external_clock:
pin: GPIO4
frequency: 20MHz
i2c_pins:
sda: GPIO18
scl: GPIO23
data_pins: [GPIO34, GPIO13, GPIO14, GPIO35, GPIO39, GPIO38, GPIO37, GPIO36]
vsync_pin: GPIO5
href_pin: GPIO27
pixel_clock_pin: GPIO25
jpeg_quality: 10
vertical_flip: true
horizontal_mirror: false
# Image settings
name: My Camera
# Enable logging
logger:
but i don’t know how to integrate that into HA now… or if it even works?
The Bootlog from the ESP32 doesn’t mention audio or microphone anywhere…
[03:29:01][I][app:102]: ESPHome version 2023.11.6 compiled on Dec 6 2023, 03:28:16
[03:29:01][C][wifi:559]: WiFi:
[03:29:01][C][wifi:391]: Local [redacted]
[03:29:01][C][wifi:396]: SSID: [redacted]
[03:29:01][C][wifi:397]: IP Address: 192.168.1.236
[03:29:01][C][wifi:399]: BSSID: [redacted]
[03:29:01][C][wifi:400]: Hostname: 'esphome-web-454f70'
[03:29:01][C][wifi:402]: Signal strength: -56 dB ▂▄▆█
[03:29:01][C][wifi:406]: Channel: 12
[03:29:01][C][wifi:407]: Subnet: 255.255.255.0
[03:29:01][C][wifi:408]: Gateway: 192.168.1.1
[03:29:01][C][wifi:409]: DNS1: 192.168.1.1
[03:29:01][C][wifi:410]: DNS2: 0.0.0.0
[03:29:01][C][logger:416]: Logger:
[03:29:01][C][logger:417]: Level: DEBUG
[03:29:01][C][logger:418]: Log Baud Rate: 115200
[03:29:01][C][logger:420]: Hardware UART: UART0
[03:29:01][C][i2c.arduino:053]: I2C Bus:
[03:29:01][C][i2c.arduino:054]: SDA Pin: GPIO21
[03:29:01][C][i2c.arduino:055]: SCL Pin: GPIO22
[03:29:01][C][i2c.arduino:056]: Frequency: 50000 Hz
[03:29:01][C][i2c.arduino:059]: Recovery: bus successfully recovered
[03:29:01][I][i2c.arduino:069]: Results from i2c bus scan:
[03:29:01][I][i2c.arduino:075]: Found i2c device at address 0x3C
[03:29:01][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'ttgocam2 PIR'
[03:29:01][C][gpio.binary_sensor:015]: Device Class: 'motion'
[03:29:01][C][gpio.binary_sensor:016]: Pin: GPIO19
[03:29:01][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'ttgocam2 Button'
[03:29:01][C][gpio.binary_sensor:016]: Pin: GPIO0
[03:29:01][D][api:102]: Accepted 192.168.1.1
[03:29:01][C][homeassistant.time:010]: Home Assistant Time:
[03:29:01][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[03:29:01][C][esp32_camera:048]: ESP32 Camera:
[03:29:01][C][esp32_camera:049]: Name: My Camera
[03:29:01][C][esp32_camera:050]: Internal: NO
[03:29:01][C][esp32_camera:052]: Data Pins: D0:34 D1:13 D2:14 D3:35 D4:39 D5:38 D6:37 D7:36
[03:29:01][C][esp32_camera:053]: VSYNC Pin: 5
[03:29:01][C][esp32_camera:054]: HREF Pin: 27
[03:29:01][C][esp32_camera:055]: Pixel Clock Pin: 25
[03:29:01][C][esp32_camera:056]: External Clock: Pin:4 Frequency:20000000
[03:29:01][C][esp32_camera:060]: I2C Pins: SDA:18 SCL:23
[03:29:01][C][esp32_camera:062]: Reset Pin: -1
[03:29:01][C][esp32_camera:080]: Resolution: 640x480 (VGA)
[03:29:01][C][esp32_camera:129]: JPEG Quality: 10
[03:29:01][C][esp32_camera:131]: Contrast: 0
[03:29:01][C][esp32_camera:132]: Brightness: 0
[03:29:01][C][esp32_camera:133]: Saturation: 0
[03:29:01][C][esp32_camera:134]: Vertical Flip: ON
[03:29:01][C][esp32_camera:135]: Horizontal Mirror: OFF
[03:29:01][C][esp32_camera:136]: Special Effect: 0
[03:29:01][C][esp32_camera:137]: White Balance Mode: 0
[03:29:01][C][esp32_camera:140]: Auto Exposure Control: 1
[03:29:01][C][esp32_camera:141]: Auto Exposure Control 2: 0
[03:29:01][C][esp32_camera:142]: Auto Exposure Level: 0
[03:29:01][C][esp32_camera:143]: Auto Exposure Value: 300
[03:29:01][C][esp32_camera:144]: AGC: 1
[03:29:01][C][esp32_camera:145]: AGC Gain: 0
[03:29:01][C][esp32_camera:146]: Gain Ceiling: 0
[03:29:01][C][esp32_camera:152]: Test Pattern: NO
[03:29:01][D][api.connection:1089]: Home Assistant 2023.11.3 (192.168.1.1): Connected successfully
[03:29:01][C][psram:020]: PSRAM:
[03:29:01][C][psram:021]: Available: YES
[03:29:01][C][psram:024]: Size: 4095 KB
[03:29:01][D][time:045]: Synchronized time: 2023-12-06 03:29:01
[03:29:01][C][ssd1306_i2c:023]: I2C SSD1306
[03:29:01][C][ssd1306_i2c:023]: Rotations: 0 °
[03:29:01][C][ssd1306_i2c:023]: Dimensions: 128px x 64px
[03:29:01][C][ssd1306_i2c:024]: Address: 0x3C
[03:29:01][C][ssd1306_i2c:025]: Model: SSD1306 128x64
[03:29:01][C][ssd1306_i2c:027]: External VCC: NO
[03:29:01][C][ssd1306_i2c:028]: Flip X: YES
[03:29:01][C][ssd1306_i2c:029]: Flip Y: YES
[03:29:01][C][ssd1306_i2c:030]: Offset X: 0
[03:29:01][C][ssd1306_i2c:031]: Offset Y: 0
[03:29:01][C][ssd1306_i2c:032]: Inverted Color: NO
[03:29:01][C][ssd1306_i2c:033]: Update Interval: 1.0s
[03:29:01][C][captive_portal:088]: Captive Portal:
[03:29:01][C][mdns:115]: mDNS:
[03:29:01][C][mdns:116]: Hostname: esphome-web-454f70
[03:29:01][C][ota:097]: Over-The-Air Updates:
[03:29:01][C][ota:098]: Address: esphome-web-454f70.local:3232
[03:29:01][C][api:139]: API Server:
[03:29:01][C][api:140]: Address: esphome-web-454f70.local:6053
[03:29:01][C][api:142]: Using noise encryption: YES
[03:29:02][W][component:214]: Component ssd1306_base took a long time for an operation (0.27 s).
[03:29:02][W][component:215]: Components should block for at most 20-30ms.
[03:29:02][C][wifi_signal.sensor:009]: WiFi Signal 'ttgocam2 WiFi Signal'
[03:29:02][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[03:29:02][C][wifi_signal.sensor:009]: State Class: 'measurement'
[03:29:02][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[03:29:02][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[03:29:03][W][component:214]: Component ssd1306_base took a long time for an operation (0.26 s).
[03:29:03][W][component:215]: Components should block for at most 20-30ms.
i do see 7 devices.
Should the assist Pipeline simply get all the mic input? how would one check?
Or is my config not giving any output?
Is there a way to stream Mic Input to browser playback or such?