MEMS microphone PDM to ESP32

Usernamebetween6n20
Posts: 1
Joined: Tue Jun 07, 2022 7:29 pm

MEMS microphone PDM to ESP32

Postby Usernamebetween6n20 » 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.

ESP_Sprite
Posts: 9745
Joined: Thu Nov 26, 2015 4:08 am

Re: MEMS microphone PDM to ESP32

Postby ESP_Sprite » Wed Jun 08, 2022 12:51 am

The I2S peripheral has native support for PDM; you're probably best off trying to use that. There's no requirements (other than avoid reserved pins and input-only pins for output signals) on what GPIOs to use for that.

Who is online

Users browsing this forum: No registered users and 57 guests