ikostoski/esp32-i2s-slm

Not getting proper dB(A) values.

dharmik768 opened this issue · 0 comments

Hello,
I am using ESP32-WROOM-32D and using ICS43434 as a mic. In the schematic, I have set the LR to HIGH so it is set in the right channel mode. Rest pins of the ICS are connected as followed.
SCK-> GPIO5
SD -> GPIO18
WS -> GPIO19
I only want to read the noise level in dB(A) with the ICS. Therefore, I tried the example code given here. And I have changed the configuration as per the ICS43434 datasheet.
I am attaching the code that I used with my configuration. Also, I am not using any display so I have set USE_DISPLAY to 0.
After uploading the code, in the serial monitor, I am getting the negative values and they are not properly changing with respect to the sound.
I think I have done some wrong configurations or I have missed some configurations not sure how to procede.
It will be very helpful If you can point out the solution to this.
Thank You,
Dharmik Patel
esp32-i2s-slm.zip
image