I don’t see anything obvious.
Here is my similar working setup, with a MAX98357A and a INMP441 microphone. I’m using 5V for the MAX, but it shouldn’t matter according to the specs.
For me, it just starts logging sensor values, but if you have none…
[08:57:37][C][mdns:108]: mDNS:
[08:57:37][C][mdns:109]: Hostname: espassist
[08:57:37][C][ota:093]: Over-The-Air Updates:
[08:57:37][C][ota:094]: Address: espassist.local:3232
[08:57:37][C][ota:097]: Using Password.
[08:57:37][C][api:138]: API Server:
[08:57:37][C][api:139]: Address: espassist.local:6053
[08:57:37][C][api:141]: Using noise encryption: YES
[08:57:37][C][wifi_signal.sensor:009]: WiFi Signal 'RSSI'
[08:57:37][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[08:57:37][C][wifi_signal.sensor:009]: State Class: 'measurement'
[08:57:37][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[08:57:37][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[08:57:37][C][audio:190]: Audio:
[08:57:46][D][sensor:103]: 'Uptime': Sending state 31.44700 s with 0 decimals of accuracy
[08:57:49][D][sensor:103]: 'Free Memory': Sending state 226.00000 kB with 1 decimals of accuracy
[08:57:55][D][sensor:103]: 'Internal Temperature': Sending state 53.33333 °C with 1 decimals of accuracy
Good day to all of you. I’m working on project for ceiling wifi speakers and yesterday tried to use WEMOS or LOLIN ESP32-S2 mını along with MAX98357A I2S board hooked up to pins 8,9,10.
First issue I’m facing - complete ınability to flash ESP board through ESPHome, it just kept saying that error, try to reset or hit programming button or so. I thought maybe the problem is with ESP32 board, used second one and got the same issue.
Then I have tried to flash board using Arduıno IDE and it worked by setting board to programming mode. Then tried again using ESPHome page in HA - no success.
Then I have created firmware using offline method in ESPHome page
Used ESP Flasher program for Windows and flashed the board with ESPHome firmware.
Now thing is either Im using too thin wires or something else, but when I try to play something on the speaker (16Ohms Speaker) Music or Radio or text to speech plays intermittent and sometimes does not play at all.
I Looked in logs and while attempting to play mp3, board keeps reconnecting resetting itself, While streaming radio - no probs, but sound is intermittent. Text to Speach does not work at all despite player says that it’s playing.
I will check voltage drop today, maybe I have used very thin wires and that is the reason for power shortage.
Other device I have tried is ESP32 DEVKIT hooked to I2S using development wires and it is hooked to 4Ohm speaker and works just fine.
After using ESP Flasher to flash initial firmware, updating firmware wirelessly works. However on second board refuses to connect to my home wifi and is offline. This could be problems relating to consistency in board to board manufacturing quality, not sure yet. Anyways I have ordered couple other dev boards ESP32s, just to complete the project. Or maybe code for this board is not perfected by developers, as it has so many difficulties flashing and bad sound, not sure.
@koying I’m setting up the a vintage phone with the same mic and amp but I’m getting problems with the wiring and connecting to the the esp
Do you have the pinout or wiring schema?
Also, where can I find these files that your code. Includes?
external_components:
source:
type: local
path: custom_components
packages:
base: !include common/base_nomq.ya
I would strongly suggest avoiding the new esp32 c2 and others unless you actually need one or more of its unique characteristics that the tried and true esp32 d2 mini can’t offer. People assume when things are newer, then they must be better and that isn’t the case at all here. It’s better suited for some tasks but isn’t always a better alternative over an older esp32 and in some cases your worse off. Use the board that is best suited for the project and one that is fully supported in esphome as the S2 is still in development and not fully supported yet.
You have the code and a photo, I’m not going to do a fritzing, honestly
The include is just common stuff (wifi, api, …) and the custom_components is irrelevant for this project
I’ve manged to get it all working but when plugged on and off I have to press the EN button (reset?) for it boot and connect, is there any to avoid this behaviour?
also, I can’t seem to use a momentary to start/stop assist conversation
@koying, did you need to define two separate i²s audio devices one for speakers and one for microphone? I’m wondering if you could just define a single i2s_audio device and use it for both speakers and mic… does that cause problems?
Thanks for sharing your setup and YAML! I had ordered a bunch of MSM261S4030H0 i2s microphones from AliExpress but I’ve been really struggling to get them to work – no audio. I just ordered some of the INMP441s you had success with and I have my fingers crossed that these are much easier to get working…