2021-02-16 09:59 PM
the noise intensity level print on serially on monitor . from this the threshold has to be set to detect pleasant noise or harmful noises for further coding and analysis.
I am stuck at a point in PCM audio data out conversion to dB i.e noise level .
Below is a image attached on how I am getting the PCM values in buffer. And I am not sure how to validate whether this is correct or wrong.? and after this if any voice or variations in the mic should be showing alterations in the noise level intensity printing serially.
I am a beginner with audio mems mic and audio processing.
Please help .this project is on urgent requirement.
Thanks in advance.
Solved! Go to Solution.
2021-02-17 11:48 PM
Hi @Community member ,
I checked by our ST experts, and here you can find their feedback.
Please let me know if these suggestions help.
-Eleon
2021-02-17 11:48 PM
Hi @Community member ,
I checked by our ST experts, and here you can find their feedback.
Please let me know if these suggestions help.
-Eleon
2021-02-18 01:01 AM
Hi Eleon,
1)Well even am not clear of the data shown . may be the inputs and suggestions will be considered further .
Thanks to the ST experts and you.
2) Well there are lots of libraries firmware packages your guiding through.
If any assistance needed further will definitely get back.
2021-02-18 01:18 AM
I can only offer a few suggestions based on my experience so far with MEMs microphones. Note, I write directly to registers and don't use any libraries:
2021-02-18 01:57 AM
Hi @Community member ,
Well thanks a lot for your hands on suggestions based on your experiences.
To be frank I am a total newbie to these MEMS mic audio processing and STM32s MCUs and IDEs.
But your suggestions will definitely save the time I guess.
Thanks once again.
2021-02-19 02:54 AM
Hi @Community member ,
In the above section you have mentioned of using 32 bit arrays and capturing 1000 samples , could you please elaborate a bit more and provide any links further in support to it. I am using MEMS mic ICS43432 and STM32f466 re nucelo board.
Thanks in advance.
2021-02-19 03:31 AM
Hi Eleon,
To get the data frames of pcm audio from buffer to display on UART,
If possible can you just support through or could you provide if there are any links in support of it.
Thanks in advance.
2021-02-19 05:13 PM
I found it useful to take the raw 32 bit data from the DFSDM and save it into a buffer (the size 1000 was just a manageable number), without any processing. Then I used my own routines to "print" the data to a serial port - I then pasted that data into a spreadsheet and used the graphing tools of the spreadsheet to see what is going on. I save the spreadsheets for later reference. It is easy to make assumptions about the raw data and mess up the initial processing. I sometimes use spreadsheet calculations to emulate my software algorithms - so I can test the processing with known data and graph the results. I have just realised you are using an I2S microphone, I moved to the PDM microphones to give me a greater range of high performance microphones (but understanding and getting the DFSDM going at a register level was a struggle) - I hope some of this helps, but possibly not, I am also new to MEMs microphones and have found it a bit of a slow process to get things right - but I can think of many good applications for these things so I will keep persisting...
2021-02-20 02:58 AM
Hi @Community member ,
Thank you for the response. Your last words like keep persisting which says keep trying. well will definitely do that.
thanks for the analysis explanation. well even this mems mic i2smems mic to gives a 1 bit data PDM output too.