ArmDeveloperEcosystem / microphone-library-for-pico

Capture audio from a microphone on your Raspberry Pi Pico or any RP2040 based board. 🎤
Apache License 2.0
231 stars 47 forks source link

Reading raw PDM data #29

Closed jessica-brown closed 6 months ago

jessica-brown commented 8 months ago

Hi,

Is it possible to output the raw PDM data directly to the serial monitor using these examples? I would like to implement my own filter on the incoming PDM signal in post processing, but I'm not proficient in C so struggling a bit to get the raw data easily.

Thanks!

sandeepmistry commented 8 months ago

Hi @jessica-brown,

The unfiltered data can be found in the pdm_microphone_read function, in the in variable before Open_PDM_Filter_64/Open_PDM_Filter_128 is called.

https://github.com/ArmDeveloperEcosystem/microphone-library-for-pico/blob/a837f633a6ad2bac268349df35d57e46e551f416/src/pdm_microphone.c#L232

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.