Hi - I connected a PDM Mic at pins 26 & 27, modified pin defs in wire.h, built revised firmware, installed, connected - can’t get any signal out of it - flat line. The mic is a PDM MEMS from Adafruit. The data acquisition dashboard indicates a built-in mic for sampling, but my suspicion this is perhaps for the Arduino Nano?
I’m clearly missing something here, can you point me in the right direction?
doesn’t matter. No models yield audio data. I also used the canned firmware image. Same result.
I see the pdm library in the code set, and I know its being used, but can’t figure out why there’s this no data transfer.
okay I got this working as well so maybe someone else doesn’t struggle though this as much as I did, so in the code all you have to do is change the last line “PDMClass PDM(22, 23, -1);”
the 22 is the data pin and the 23 is the clk pin since the pico does not have gpio 23 we need to change this. So I modified it to PDMClass PDM(2, 3, -1); which used gpio pins 2 and 3.
Then following the Getting started with Raspberry Pi Pico
we can build the code using section 9.2.
Works flawlessly and recognizes the Ada fruit PDM mic as an onboard one.
Thank you to the above poster for bringing this topic to the forum. Hopefully between both of our post we can assist someone else.