esp32-i2s-slm icon indicating copy to clipboard operation
esp32-i2s-slm copied to clipboard

Constant dB(A) level even though microphone data changes

Open dmarc1234 opened this issue 2 years ago • 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 ?

dmarc1234 avatar May 13 '22 08:05 dmarc1234

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

eduardoalexandree avatar Dec 14 '22 20:12 eduardoalexandree