Author Topic: Help in designing a VU meter circuit w/ an electret mic.  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Help in designing a VU meter circuit w/ an electret mic.
« on: April 29, 2020, 01:04:12 pm »
I'm still a beginner in designing my own circuits.
can you help me with the design of the circuit if there is something to change?
also, I have some questions like:
Can it all operate in 5v? it says in the datasheets that the ic's can operate on 5v but I'm afraid that the voltage is too low and can cause distortions.
Do I need the precision full-wave peak detector? I was told that it can help smooth out the audio from the op-amp.
 
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #1 on: April 29, 2020, 01:55:50 pm »
Assuming there a speaker missing in your design? (hence the LM386 and huge ac coupling capacitor).

Let's sort out the front end and get to the bottom of what the overall device is trying to do before setting the rails.

https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #2 on: April 29, 2020, 02:32:15 pm »
There wont be a speaker.
it will just measure how noisy the room is or see how loud the music in the background is played.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #3 on: April 29, 2020, 03:31:14 pm »
There wont be a speaker.
it will just measure how noisy the room is or see how loud the music in the background is played.
Get rid of the LM386 and humongous coupling capacitor and replace with another pair of LM358 stages - probably a gain of 50-100 will be sufficient (so each stage needs sqrt(50) to sqrt(100)=7 to 10).

Assuming you are trying to make the whole circuit work on a single rail? 5V can be done - 9V might be nicer.
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #4 on: April 29, 2020, 03:48:52 pm »
Yes I am using a single rail.
I currently only have one lm358 and one lm386 but I do have a few lm324s, should I use the lm324?
I checked the datasheet for the lm386 and I can set the gain to 50. will that work instead of using a second lm358?
« Last Edit: April 29, 2020, 03:54:35 pm by K-Experiment »
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #5 on: April 29, 2020, 04:16:56 pm »
LM324 (quad) would be much better than an LM386 (single) in this application.

Have you got an oscilloscope?







https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #6 on: April 29, 2020, 04:31:14 pm »
Half-wave will be fine.

VU is a type of reponse, you won't get a proper VU response with the LM3915 - I suspect you are after a VU like response. If you use a simple precision rectifier, and then slug the response - could be as simple as parallel RC network between the rectifier and the LM3915 will give you something like you want.

https://www.mouser.com/datasheet/2/405/lm3915-443929.pdf

If you've got a single rail - you'll probably want to create an artifcial ground.
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #7 on: April 30, 2020, 02:10:04 am »
nope, I don't have an oscilloscope

I designed the precision full wave peak detector in reference to the lm3915 datasheet.

and what is an artificial ground?
« Last Edit: April 30, 2020, 01:04:36 pm by K-Experiment »
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #8 on: April 30, 2020, 01:22:21 pm »
You're probably going to struggle during development without a 'scope. And if you don't have a 'scope you probably won't be familar with LTSpice or other simulation suites.

Artificial ground - most audio is AC, AC amplification typically requires split rails (eg +/-5V).  You can achieve this by creating an 'artificial' or 'virtual' ground at the mid-point between the single rail and 0V.  This might be as simple as potential divider (sometimes with a decent size capacitor(s) across one or both resistors), or it might be buffered by an opamp.

So your +9V and 0V now become +4.5VA (previous+9V), 0VA, -4.5VA (previous 0V), all your circuitry is now referenced to the artificial/virtual ground called 0VA.
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 
The following users thanked this post: K-Experiment

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #9 on: April 30, 2020, 01:27:00 pm »
so the design changes that I need to make are the op amps, the power supply, and the coupling capacitor.
are there any more design changes that you recommend?

about the lm324, I read that it isn't a good amplifier for audio because of the high noise and THD.

I added a schematic diagram, is it correct?
« Last Edit: April 30, 2020, 03:02:48 pm by K-Experiment »
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #10 on: April 30, 2020, 03:34:39 pm »
LM324 - it's much more nuisanced than that. Noise and distortion are unlikely to be issues if you aren't actually listening to the output of your amplifiers, and if you haven't got an oscilloscope then you are flying blind somewhat.

The schematic of the virtual ground looks OK, but it won't source/sink much current, so you'll have to watch your design.
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 
The following users thanked this post: K-Experiment

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #11 on: April 30, 2020, 04:41:14 pm »
Thank you for helping me, I have learned a lot of things, and if you have any more recommendations pls tell me.
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2431
  • Country: mx
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #12 on: April 30, 2020, 05:01:22 pm »
Because you will be driving a lot of LEDs, your current consumption can be significant for a 9V battery.

You have two options:
-connect the LM3915 in dot mode.
-use 6 AAA batteries in series. Actually AA would be even better, if you have the space.
 
The following users thanked this post: K-Experiment

Offline K-ExperimentTopic starter

  • Contributor
  • Posts: 16
  • Country: 00
Re: Help in designing a VU meter circuit w/ an electret mic.
« Reply #13 on: May 01, 2020, 02:32:58 am »
alright, anything else?
« Last Edit: May 01, 2020, 11:27:37 am by K-Experiment »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf