cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about PDM MEMS microphones.

Trampler
Associate

I am using STM32F407 Discovery Board for my audio project. There is a PDM mems microphone on this board. I want to get sound signal over I2S with DMA. For that ı am using SWV graph in İDE. I tried all ı found on the internet. ı have a few questions to make sure I am right. I think ı need to convert PDM data to PCM for meaningful graph. Is that right? I actually used the pdm2pcm library to do that. But all ı get is random numbers, it seems. Then, I try to observe the PDM signal with oscilloscope. The data signal was coming in two voltage levels. Is that normal for the PDM signal?

image below is taken at start of the run.

Trampler_0-1707135217960.png

yellow signal is I2S CK(pb10), Cyan signal is data(pc3) 

1707133719056.jpg

Trampler_1-1707135391085.pngTrampler_2-1707135399453.png

Trampler_3-1707135691404.png

 

I started this project with an analog mic. It was success. The ADC codes not necessary for I2S; 

1 REPLY 1
Trampler
Associate

It's been 3 days but I still haven't solved the problem. I really don't know what I doing wrong.