Schluggi / AIOsense

ESPHome based all-in-one sensor
https://aiosense.readthedocs.io/en/latest/
MIT License
119 stars 22 forks source link

PCB Release v3.0.0 #132

Open Schluggi opened 9 months ago

Schluggi commented 9 months ago

We need a new PCB version for all the new components:

jaws35smith commented 1 month ago

@mourix I believe that the PCB silk screen has an error. The MAX98357 has the negative on the left side of the board closet to the LRC and DIN. The Silk screen prints the "+" on that side and positions the positive leads in the center of the board for the speaker This in turn can result in the incorrect installation of the speaker orientation. The PTH Pads seem to need to be reshaped and relabeled for the speaker and relabeled for the output of the MAX98357. None of this should result in damage though. adafruit_products_3006_iso_ORIG KICAD_AIOSENSE

s-gordon commented 3 weeks ago

@mourix With the speaker orientation reversed per the comment from @jaws35smith I am seeing poor performance on 3013 speakers. Audio, if it comes through at all, is very crackly and unintelligible. On a breadboard using the same pins and configuration I am seeing great performance with Piper TTS.

I recall reading somewhere that MAX98357 likes wide output traces.

substitutions:
  name: "aiosense-v3"  # lowercase only, have to be unique
  friendly_name: "AIOsense v3"  # device name and entity prefix

  i2s_lrclk_pin: "GPIO34" # WS
  i2s_bclk_pin: "GPIO36"  # SCK
  i2s_din_pin: "GPIO40"   # DA
  i2s_mic_din_pin: "GPIO38"   # DA

...

packages:
  remote_package:
    url: https://github.com/schluggi/AIOsense
    ref: pcb-3.0.0-rc1
    refresh: 1d
    files:
      - esphome/packages/config/base.yaml

      # ----- board -----
      - esphome/packages/config/esp32-s2-mini.yaml

...

i2s_audio:
  - id: i2s_audiobus
    i2s_lrclk_pin: "${i2s_lrclk_pin}"  # WS
    i2s_bclk_pin: "${i2s_bclk_pin}"  # SCK

media_player:
  - platform: i2s_audio
    name: ESPHome I2S Media Player
    dac_type: external
    i2s_dout_pin: "${i2s_din_pin}"
    mode: mono
    id: media_out

...

esphome:
  min_version: 2024.06.0