Author Topic: Microphone to microcontroller  (Read 4085 times)

0 Members and 1 Guest are viewing this topic.

Offline Lay-ZTopic starter

  • Newbie
  • Posts: 4
  • Country: pl
Microphone to microcontroller
« on: December 27, 2022, 10:16:34 am »
Hi,

Im looking for microphone to microcontroller. It is important that the microphone should have automatic gain. Im looking for microphone similar to Gravity__Analog_Sound_Level_Meter_SKU_SEN0232-DFRobot 1 but more cheaper.

I found only max9814 and sen-12642 but that microphones has no automating changed ranges.
Have you any suggestions? |O
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17838
  • Country: fr
Re: Microphone to microcontroller
« Reply #1 on: December 27, 2022, 05:56:20 pm »
The MAX9814 has an AGC, what more do you need?
 

Offline Faranight

  • Supporter
  • ****
  • Posts: 256
  • Country: si
Re: Microphone to microcontroller
« Reply #2 on: December 28, 2022, 06:18:18 am »
MAX9814 is noisy as hell. I have bad experience with this IC as I tried it with an electret microphone, and the hissing was almost unbearable at higher gains. I then switched to TLV6742 and got complete and utter silence. No autogain though.
Fara-day? Fara-night.
 

Offline Lay-ZTopic starter

  • Newbie
  • Posts: 4
  • Country: pl
Re: Microphone to microcontroller
« Reply #3 on: December 28, 2022, 09:23:50 am »
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. And I found that i don't need AGC. In my electronic collection found sen 12642. Is possible to use it to solution such this?
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2178
  • Country: fi
  • Embedded SW/HW.
Re: Microphone to microcontroller
« Reply #4 on: December 28, 2022, 09:37:19 am »
If you want to measure the ambient noise level, and relate the results to the human physiological perception, you need A-Weighting filter after microphone to emulate human perception of acoustic energy.

A-Weighting Filter For Audio Measurements:
https://sound-au.com/project17.htm

 

Offline Lay-ZTopic starter

  • Newbie
  • Posts: 4
  • Country: pl
Re: Microphone to microcontroller
« Reply #5 on: December 28, 2022, 12:57:29 pm »
Okey thanks for explain. Could you recommend something, cause i can find nothing :/
 

Offline Brianf

  • Regular Contributor
  • *
  • Posts: 73
  • Country: gb
Re: Microphone to microcontroller
« Reply #6 on: December 28, 2022, 02:57:56 pm »
Okey thanks for explain. Could you recommend something, cause i can find nothing :/

https://www.ebay.co.uk/itm/175523979279

I believe that it can be found cheaper on Aliexpress.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17838
  • Country: fr
Re: Microphone to microcontroller
« Reply #7 on: December 28, 2022, 08:00:11 pm »
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. And I found that i don't need AGC. In my electronic collection found sen 12642. Is possible to use it to solution such this?

If you want to measure sound level, you absolutely don't want to use any kind of automatic gain. So I don't really get your first post.
 

Offline Lay-ZTopic starter

  • Newbie
  • Posts: 4
  • Country: pl
Re: Microphone to microcontroller
« Reply #8 on: December 29, 2022, 07:36:52 am »
Thanks Brinaf for help.
SilconWizard, when I wrote the first one post I thought I need AGC, but later it turned out that I doesnt need it, so in the next post I writed that i dont need AGC. Sorry for the confusion guys  :-\
 

Offline bidrohini

  • Regular Contributor
  • *
  • Posts: 201
  • Country: bd
Re: Microphone to microcontroller
« Reply #9 on: December 29, 2022, 02:00:37 pm »
You can check waveshare's sound sensor: https://www.waveshare.com/sound-sensor.htm
It features a microphone and an Onboard audio power amplifier LM386.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 5397
  • Country: nl
Re: Microphone to microcontroller
« Reply #10 on: January 03, 2023, 04:55:14 am »
 Those aluminimum can based electret's are so last century...

These days microphones look like some 1 by 2mm SMT part and they directly interface digitally with a microcontroller (maybe I2S or something).

I just looked at a random one. The link below is a 3 by 4mm device, so it's a bit bigger then I thought.

https://www.cuidevices.com/product/audio/microphones/mems-microphones/cmm-4030dt-26165-tr

these things are made by the billions. Every phone has one (or maybe more?) of them.

 

Offline Sacodepatatas

  • Regular Contributor
  • *
  • Posts: 215
  • Country: es
Re: Microphone to microcontroller
« Reply #11 on: January 04, 2023, 11:23:58 am »
Those aluminimum can based electret's are so last century...

These days microphones look like some 1 by 2mm SMT part and they directly interface digitally with a microcontroller (maybe I2S or something).


I prefer those little cans because they are more versatile (you can use them with a MCU throught an ADC, or you just use some analog circuitry for conditioning the signal before processing). If you want to make a level meter, you wouldn't like to lose accuracy when converting a linear value from the ADC to a logarithmic value. Hence a propper conditioning of the analog signal (a programmable/selectable decade-gain amplifier) would keep a good compromise of bit accuracy and measure depth.

If you already have a discrete digital signal out of the microphone, then you can't reach such performance.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17838
  • Country: fr
Re: Microphone to microcontroller
« Reply #12 on: January 04, 2023, 11:52:56 pm »
Many of the low-cost MEMS microphones have a relatively poor sensitivity, which can make them unsuitable for measuring sound level if you want to be able to go down to 30-35 dB SPL or below.

So sensitivity and frequency response should both be considered before making a choice. MEMS mics with better sensitivity can be very expensive.
 

Offline spostma

  • Regular Contributor
  • *
  • Posts: 191
  • Country: nl
Re: Microphone to microcontroller
« Reply #13 on: January 06, 2023, 10:18:41 pm »
an inspiring sample project with an ESP32, an I2S microphone and a FFT sound detector:
https://iotassistant.io/esp32/smart-door-bell-noise-meter-using-fft-esp32/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->