MEMS microphone PDM to ESP32
Posted: Tue Jun 07, 2022 7:45 pm
Looks like PDM questions don't have many responses here, but crossing my fingers...
I have a MEMS microphone with built-in pre-amp and PDM output going into an ESP32. This input needs converted into a sound pressure level. The sound pressure level will be high, accuracy requirement low, and input frequency narrow, so 'weighting' is NOT required. I think I could just count the number of 'high' states over a long sample period.
At this point, I just need to layout the board for later software development. Basically, to which pins should I connect the MEMS clock and data connections? Does the ESP32 already have a preferred driver interface for PDM?
If the ESP32 doesn't have an easy way to interface with PDM, does the ESP32 have a peripheral similar to PIC's counters that would allow me to just 'count' the high pulses in-sync with the output clock? Counting up a 32bit register every 100mS would be ideal.
Thanks.
I have a MEMS microphone with built-in pre-amp and PDM output going into an ESP32. This input needs converted into a sound pressure level. The sound pressure level will be high, accuracy requirement low, and input frequency narrow, so 'weighting' is NOT required. I think I could just count the number of 'high' states over a long sample period.
At this point, I just need to layout the board for later software development. Basically, to which pins should I connect the MEMS clock and data connections? Does the ESP32 already have a preferred driver interface for PDM?
If the ESP32 doesn't have an easy way to interface with PDM, does the ESP32 have a peripheral similar to PIC's counters that would allow me to just 'count' the high pulses in-sync with the output clock? Counting up a 32bit register every 100mS would be ideal.
Thanks.