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
  • Hi,

    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.

    Could you provide more information about the "data being fed through the board" and about the "sounds made near the microphone"?

    Could you also provide more information about your application?

    Best regards,
    Dejan

  • I use this code to print the I2S memory as int so I can check the change in values on the serial monitor.

                unsigned int* value_ptr = (unsigned int*)mem_block;
        		unsigned int value = *value_ptr;
       			printk("Received audio data: %d\n", value);

    This video can help on this case. I have another ticket that might be useful too. Thank you!

Reply Children
Related