Microphone to microcontroller

BobTPH

Joined Jun 5, 2013
8,808
I see nothing in that description to say it uses any auto-ranging. It uses an amp with log response to get a linear output that is proportional to the sound level in decibels.
 

Ya’akov

Joined Jan 27, 2019
9,069
Welcome to AAC.

Could you explain what problem you want to solve using the microphone?

We can help a lot more if we know what you are trying to do. Given your level of knowledge you might be going the wrong way with things, and even if you aren't, we can't read your mind about the details that make answering more than a guessing game.
 

Ian0

Joined Aug 7, 2020
9,667
Hi,

Im looking for microphone to microcontroller. It is important that the microphone should have automatic gain. Im looking for microphone similar to https://wiki.dfrobot.com/Gravity__Analog_Sound_Level_Meter_SKU_SEN0232#target_5 but more cheaper.

I found only max9814 and sen-12642 but that microphones has no automating changed ranges.
Have you any suggestions?
What sort of microphone?
For condensor microphones and MEMS microphones, try SSM2166 or SSM2167
https://www.analog.com/media/en/technical-documentation/data-sheets/ssm2167.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ssm2166.pdf
or you can even get MEMS microphones with built-in I2S interfaces which directly connect to microcontrollers.
https://www.mouser.co.uk/ProductDetail/Knowles/SPH0645LM4H-1-8?qs=TuK3vfAjtkXP9L009Fh60A==
 

Thread Starter

LayZ

Joined Dec 27, 2022
8
i would like to build a sound level measuring device, something like this
https://svantek.com/
this allows you to measure ambient noise. I simply mean that I would like to get the dB level from the environment as a result.
 

Ya’akov

Joined Jan 27, 2019
9,069
i would like to build a sound level measuring device, something like this
https://svantek.com/
this allows you to measure ambient noise. I simply mean that I would like to get the dB level from the environment as a result.
Then you certainly don't want AGC (Automatic Gain Control), that would confound the measurements. The sensor you linked is precisely the correct device. You will not be able to make it much cheaper.

Why do you want to measure the SPL? What are you going to do with the data?
 

Ian0

Joined Aug 7, 2020
9,667
If you have a microcontroller with a I2S interface, go for the digital microphone.
When you obtain the data, apply two biquad IIR filter, for the A or C-weighting response (one low-pass, one high-pass). The high-pass part of the filter will conveniently remove any DC offset. Square the data and average using another IIR filter with a time constant of the averaging time you require. Use a look-up table and interpolation to take the logarithm and output the result in dB.
 
Top