Open ericlindersson opened 1 year ago
I have the same problem, did you manage to solve it?
The code was not yet compatible with IDF version 4, now it should work again.
Remark that I2S input using INMP441 on ESP32 only works until
platform = espressif32@5.0.0
which is based on IDF v4.4.1-1-gb8050b365e and Arduino 2.0.3
All later versions contain bugs in the I2S input part on ESP32 so that the microphone no longer works. This is described in https://github.com/espressif/esp-idf/issues/9635 and contains a workaround:
#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_RIGHT
instead of
#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_LEFT
in config.h
There should be a fix in later versions (IDF 4.4.5?)
Remark that on some chips (e.g. ESP32-S2) and in some versions, you can fix microphone issues by setting
Remark also that defines can be set in platformio.ini or config.h : USE_I2S_MIC_INPUT & USE_ESP_NOW are set in platformio.ini
I have connected everything according to the code, default pin numbers et.c. I can see that data is being received from the mic and being sent. The receiver receives data, but I can only hear a ticking noise from the speaker. I have also tested the components alone and was able to record my voice over UDP, and used the speaker with a webradio sample with success. I have only tried ESP-NOW, could that be the problem? Or is there anything else I could try?