ArmDeveloperEcosystem / microphone-library-for-pico

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

Settings for Arduino RP2040 Connect #15

Closed RickorDD closed 2 years ago

RickorDD commented 2 years ago

what is the correct setting for MP34DT05 at Arduino RP2040 Connect? Pin Data:22,Clk:23 not running. Microphone 20000Hz?

Thanks.

RickorDD commented 2 years ago

Now is Running with Pin Data 22 Pin Clk 23 SampleRate 16000Hz Sample_Buffer 512

src/pdm_microphone.c PDM_DECIMATION 128

sandeepmistry commented 2 years ago

Hi @RickorDD, I'm closing this as resolved.

brian-smith-github commented 1 month ago

Can I add that the main problem is that the code is assuming that the left/right select pin is tied low so that samples are clocked in on rising edge, however the RP2040 Connect has the select pin tied high so that samples are clocked in on falling edge. Modifying the pdm_microphone.pio file to clock in samples on falling instead of rising edge also fixes this.