Jump to content
IGNORED

Controlling Microphone Output to be limited to 0V-5V


Recommended Posts

I have a microphone whose output needs to be limited to 0V-5V. The microphone itself should be picking up audio from its environment (such as a living room). Later, specific signals will be identified from the audio stream that the microphone is picking up. The output of the microphone will lead into an analog input pin of a microcontroller which will do all of the signal analysis. But for now, all I'm focusing on is the microphone.

I've done some googling and have discovered auto-gain amplifiers that seem to be able to adjust their gain depending on what the output voltage is. If the output is too low, the gain will increase, and if the output is too large the gain will decrease. If I understand this correctly, this should be the type of behavior I'm looking for. I think this process of limiting microphone output voltage is known as compression in the audio world?

Anyways, I've found an example or two of an auto-gain amplifier LM3886(datasheet:http://www.kynix.com/uploadfiles/pdf2286/LM3886TF.pdf) being used to ensure a minimum output voltage, but I'm struggling to find out how to use one to ensure a maximum output voltage.

MFG_CMA-4544PF-W_sml.jpg

The core of my questions are:

1) Is it possible to use an auto-gain amplifier to limit the output voltage of a microphone to a maximum of 5V with an unknown input voltage?

2) If it possible, is an auto-gain amplifier the best choice for this? If it is not possible to do this with an auto-gain amplifier, what are some other methods that may accomplish this?

3) If an auto-gain amplifier is indeed a suitable choice for this task, how would one go about selecting/wiring an auto-gain amplifier?

For reference, a microphone I might want to use is the CMA-4544PF-W. Some other information that might be relevant is that I expect the ambient noise of the environment the microphone is in to be around ~50dB-60dB on average.

I can clarify any additional details I haven't mentioned here if necessary!

EDIT: When I wrote this I wasn't clear, I still do want to amplify the microphone signal before it reaches the input pin of the microcontroller. So although I expect the microphone to output a signal in mV, I'd like to strengthen the signal a bit. I'm just worried that if I use an amplifier with a large gain that the output could possibly exceed 5V. My thought process is that an auto-gain amplifier would be able to both amplify the input signal as well as limit the output amplitude to less than 5V.

Thanks in advance!

Link to comment

I'm by no means an expert. I don't think you need to worry though, unless that mic has a really high output level. A typical line stage +4db input is equivalent to only 1.2 volts or so, so a 5 v signal would be very hot. You could always test with a meter and a loud noise to make sure your not getting near the 5 v max. 

 

The auto gain gain is a nice feature, but may also create problems, if the analysis also is using dynamics, since the auto gain would tend to squash levels pretty much.

Link to comment
17 hours ago, pooger said:

I'm by no means an expert. I don't think you need to worry though, unless that mic has a really high output level. A typical line stage +4db input is equivalent to only 1.2 volts or so, so a 5 v signal would be very hot. You could always test with a meter and a loud noise to make sure your not getting near the 5 v max. 

 

The auto gain gain is a nice feature, but may also create problems, if the analysis also is using dynamics, since the auto gain would tend to squash levels pretty much.

The datasheet on his mic shows 1 volt at 1 pascal which is 94 db.  So 114 db could give it the rated max of 10 volt output. 

 

mansr has given you a nice suggestion.  

And always keep in mind: Cognitive biases, like seeing optical illusions are a sign of a normally functioning brain. We all have them, it’s nothing to be ashamed about, but it is something that affects our objective evaluation of reality. 

Link to comment
7 hours ago, esldude said:

The datasheet on his mic shows 1 volt at 1 pascal which is 94 db.  So 114 db could give it the rated max of 10 volt output. 

 

mansr has given you a nice suggestion.  

As I started my answer with, I'm not an expert. However, I think the 1v/pa is the reference standard, and the out put is between -46 and -42db of that 1v. So, more like 5mv,  or 1/200 of a volt. Am I completely misreading the data?

Link to comment
31 minutes ago, pooger said:

As I started my answer with, I'm not an expert. However, I think the 1v/pa is the reference standard, and the out put is between -46 and -42db of that 1v. So, more like 5mv,  or 1/200 of a volt. Am I completely misreading the data?

Yes, I badly misread the sheet.  Just like you said.  Sorry, must have been in too much of a hurry.  Good catch pooger. 

 

So at 94 db SPL, it is -44 db below 1 volt typical.  So it would take 138 db SPL to get to one volt and and 158 db to get to 10 volts.  So more than likely it will never get to 10 volts.  Using mansr's diode suggestion would be plenty protective of it. 

And always keep in mind: Cognitive biases, like seeing optical illusions are a sign of a normally functioning brain. We all have them, it’s nothing to be ashamed about, but it is something that affects our objective evaluation of reality. 

Link to comment
7 hours ago, esldude said:

So at 94 db SPL, it is -44 db below 1 volt typical.  So it would take 138 db SPL to get to one volt and and 158 db to get to 10 volts.  So more than likely it will never get to 10 volts.

That's the output from the microphone. Then there's the amp the OP plans to place between the microphone and the ADC input.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...