Fermion I2S MEMS Microphone Read Data Issue

userHead Charlie.Francis 2023-05-26 16:39:41 659 Views1 Replies

Hi, I recently purchased an ESP32 NodeMCU-32S board (https://www.az-delivery.uk/collections/esp32/products/esp32-dev-kitc-ai-thinker-unsoldered) and am trying to hook it up to this I2S MEMS Microphone (https://wiki.dfrobot.com/SKU_SEN0526_Fermion_I2S_MEMS_Microphone). I followed multiple tutorials, specifically this one ESP32 Sound - Working with I2S (https://www.youtube.com/watch?v=m-MPBjScNRk) which was most useful, to hook it up and write some initial code to read the data coming from the mic in the Serial Plotter.

 

I can't seem to get any readable data out of it, the output is either 0 or fluctuating wildly between positive and negative, but without actually responding to any audio. I've used pins which aren't CLK or have any other uses (that I know of), all the code is correct and reflects that of the example.

 

Does anyone have any idea what I'm doing wrong?

 

I've added the code to a gist https://gist.github.com/ChazUK/35dbb29348adfa8e34fc76f35dae9ca2 and here is an output of the Serial Plotter https://youtu.be/fuYma5AiWHs and the pinout diagram for my board https://imgur.com/a/5Qwcnqb also here is a sample library which I couldn't get working https://github.com/cdjq/DFRobot_MSM261/tree/master

2023-05-29 16:12:17

I have reviewed your code and video. It may be a problem caused by the pin definition. Please refer to the definition of pins in the official documentation. 

 

 

https://github.com/espressif/esp-idf/tree/v3.3.5/examples/peripherals/i2shttps://docs.espressif.com/projects/esp-idf/zh_CN/v3.3.5/api-reference/peripherals/i2s.html

userHeadPic jenna