ikostoski/esp32-i2s-slm

Constant dB(A) level even though microphone data changes

dmarc1234 opened this issue · 1 comments

I am trying to get your standard code working with a ICS43434 microphone connected as follows:

#define I2S_WS 22
#define I2S_SCK 23
#define I2S_SD 5

I can see the I2S CLK, I2S_WS going into the microphone and I2S_SD data coming out, using a logic analyser, but the reported dBA value just sits at between 51.0 and 53.0 and when the microphone audio level increases nothing happens, the level remains the same.
I am using Arduino IDE 1.8.10 and esp32 v1.0.4 to compile.

Is there anything I can add in the code to see if the microphone data is being read and processed correctly ?

Try SCK and WS in ADC2 ESP Pin, 14 and 15 for example. And SD ADC1, for example 32.