Extracting the Audio Signal from I2S integration

Good day! I have a nRF52840 based board that I interfaced with a MEMS microphone (SPH0645) through I2S interfacing. I got to the point where sounds made near the microphone affects the data being fed through the board. I assumed that the interfacing is successful.

However, I want to make sure that these data are really sound. How can I extract the PCM data on the I2S buffer to listen to the sound from the microphone, in order to make sure that I was getting the right sound signals?

I am using NCS 2.6.0 and the Seeed Studio Xiao (nRF52840) BLE board. Attached below is the code I am currently using.

/cfs-file/__key/communityserver-discussions-components-files/4/echo_5F00_2.zip

Thank you!

Parents Reply
  • Just want to clarify on this, does i2s_buf_read() copy the data from the Rx queue into the buffer? I have been trying to make i2s_buf_read work but I can't seem to do it. Do you have any example codes where it uses i2s_buf_read so I can see? 

    This is my current code and it just uses the i2s_read() function. I want to access the data per sample, not per block. With this, I think i2s_buf_read works better for my application if my assumption that it transfers the Rx queue to the buffer is right. 
     echo_2 (2).zip


Children
Related