Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Tools
Old 8th December 2008, 12:11 PM   #16
Default

thank you very much, i'm sorry, i'd thank you sooner but i way away from my computer
st1f1 is offline  
Old 15th October 2009, 09:42 PM   #17
Default Lm386 with Lm3915 Question audio gurus..

Hi I wanted to create an audio decibel meter using an lm386 with an lm3915.

I can connect a speaker to the output of the lm386 and hear the input at the output with a speaker. I need to know what i need to merge the two IC's so that they can work together. I have a decibel meter for calibration but at this point it is useless. I connected both grounds together as to make a common ground. Input to Pin 5 on the lm3915 is the output of the lm386 but I'm really not getting anything..Any ideas or help would be greatly appreciated..Thanks..

Last edited by carbajal739; 15th October 2009 at 09:43 PM.
carbajal739 is offline  
Old 15th October 2009, 11:18 PM   #18
Default

The LM3915 displays the AC or DC voltage.
But the output pin of an LM386 is a DC voltage that is half the supply voltage. Then the LM3915 will show a high voltage even if there is no signal.

Use a coupling capacitor to block DC but pass AC.

Use an low noise audio opamp as a preamp, not an LM386 little power amp that has hiss.
__________________
Uncle $crooge
audioguru is online now  
Old 30th October 2009, 09:21 PM   #19
Default How do you interface an lm3915 with an Atmega32 microcontroller?

all I have to work with is port A on the atmega 32.. The microcontroller is set up to accept information already to portA.. The Led bar can be removed if necessary to interface to the atmega32. for the atmega a logic one is within 3 volts. zero is below.
Attached Thumbnails
Some help with mic preamp to vu meter-for_uncle_scrooge.jpg  
carbajal739 is offline  
Old 31st October 2009, 01:50 AM   #20
Default

Why are you using an LM386 power amplifier instead of an opamp?
The display will look like a dim blur if you do not use one of the peak detector circuits shown in the datasheet for the LM3915.

Your micro-controller does not have an input. What do you want it to do?
__________________
Uncle $crooge
audioguru is online now  
Old 31st October 2009, 02:58 AM   #21
Default Sound level meter in dB

I need to take sound from the environment and display that sound intensity in terms of decibels from 0 to 120 db on an lcd screen that is controlled from the microcontroller.. 50 to 100 db would work also. And yes Sir my LEDS are dim..should I change my lm386 to an lm741? I can do that fairly easily..
The problem I have with my so called working circuit is interfacing to port A into the microcontroller..I do not have to worry about how the programming and all works for the microcontroller becasue that part is done. All I have to do is find a way to send eight bits of data to an atmega 32. That data should be read by the atmea32 to represent the environment sound. Here are three things I could do, with some help of coarse..

1: lm386 or opamp(lm741?) to an adc 0803(analog to digital converter) sending voltage values in binary (8 bits) form to the atmega 32, then its just information manipulation..using the db formula db=20log(v1/vref), where v1 is the voltage im getting at the output of my opamp...

2: lm386 or an opamp to the lm3915 and interface it with an atmega 32 microcontroller...which isnt working becasue Im guessing the lm3915 is logic low meaning it gives ground to turn LEDs on not a voltage which would be great..and also it is probably too fast for an o-scope and the atmega 32 microcontroller...(no cleary defined 1 and 0 but some sawtooth looking graph in o-scope)

3. lm386 or opamp(lm741?) directly to the microcontroller which has a built in a/d converter and then its just code from there.

Also im thinking of doing a cascaded lowpass and highpass filter for a bandpass filter with corner frequencies of 20hz to 20khz which is the human threshold of the human ear..


carbajal739



=============================================


audioguru: Why are you using an LM386 power amplifier instead of an opamp?
The display will look like a dim blur if you do not use one of the peak detector circuits shown in the datasheet for the LM3915.

Your micro-controller does not have an input. What do you want it to do?
carbajal739 is offline  
Old 31st October 2009, 03:12 AM   #22
Default

Your LEDs are dim because the 2.2k resistor for R4 sets their current at only 6mA each and they do not have a peak detector circuit to match the reponse time of your vision.

You can use an opamp instead of an LM386 power amp for the mic preamp because it does not need power.
__________________
Uncle $crooge
audioguru is online now  
Old 31st October 2009, 04:56 PM   #23
Default

Quote:
Originally Posted by carbajal739 View Post
I need to take sound from the environment and display that sound intensity in terms of decibels from 0 to 120 db on an lcd screen that is controlled from the microcontroller.. 50 to 100 db would work also. And yes Sir my LEDS are dim..should I change my lm386 to an lm741? I can do that fairly easily..
The lousy old 741 opamp is 42 years old and has very poor performance for audio. Its max frequency is only 9kHz and it is too noisy. Use a TL071 low noise wideband opamp instead.

Quote:
3. lm386 or opamp(lm741?) directly to the microcontroller which has a built in a/d converter and then its just code from there.
You need a low noise wideband mic preamp (A TL071 opamp is good) and a precision rectifier circuit that gives a varying DC level to the a/d converter in the micro-controller.

Quote:
Also im thinking of doing a cascaded lowpass and highpass filter for a bandpass filter with corner frequencies of 20hz to 20khz which is the human threshold of the human ear..
A lowpass filter will reduce the sounds made by bats. It is not required.
A highpass filter will reduce wind noise a little.
__________________
Uncle $crooge
audioguru is online now  
Old 2nd November 2009, 09:24 PM   #24
Default tl 071

1)what do I connect to v+ and v- . v+ would be to vcc say 9v, how would I connect v- or how do I for example create a negative 9v for v-?

2)Can I use pins 2, 3, and 6 on the tl071 the same I did with the lm386s' pins 3,2 and5 the same as my schematic from above?

3) Are there any rectrfier Integrated chips I can use? Im not too sure how to do a rectifier circuit just yet and would appreciate some guidance.

thanks
carbajal739 is offline  
Old 2nd November 2009, 10:24 PM   #25
Default

The precision rectifier circuit (the best one uses an opamp but needs a negative supply) is shown on the datasheet for the LM3915 bar graph driver.
Here is an electret mic preamp that does not need a negative supply:
Attached Thumbnails
Some help with mic preamp to vu meter-electret-mic-preamp.png  
__________________
Uncle $crooge
audioguru is online now  
Old 2nd November 2009, 11:55 PM   #26
Default rectifer type

Which do I need for the input to the a/d on an atmega32 microcontroller from above;

1. Half wave peak detector

2. precision half wave rectifier
3. precision full wave average detector
4. or a precision full-wave peak detector?
carbajal739 is offline  
Old 3rd November 2009, 12:21 AM   #27
Default

Use the precision half-wave rectifier circuit.
__________________
Uncle $crooge
audioguru is online now  
Old 3rd November 2009, 03:37 AM   #28
Default vee and vcc

what can I do for v+ and v- for an LF 351? V+ say straight to 9v what about v- ie pin 4.. I dont want to assume its like the typical connection below in the picture becasue thats not a precision half wave rectifier like the data sheet from the lm3915.

Thanks in advance.
Attached Thumbnails
Some help with mic preamp to vu meter-for_uncle_scrooge_rev2.jpg  
carbajal739 is offline  
Old 3rd November 2009, 01:05 PM   #29
Default

The LF351 needs a dual-polarity supply in that circuit.
In my Sound Level Indicator project (it is too complicated for you since it has an automatic gain control) I used an MC33172 dual single supply opamp and a transistor as the rectifier diode like this:
Attached Thumbnails
Some help with mic preamp to vu meter-precision-half-wave-rectifier.png   Some help with mic preamp to vu meter-preamp-peak-detector.png  
__________________
Uncle $crooge
audioguru is online now  
Old 3rd November 2009, 09:13 PM   #30
Default question

1)
It seems better to use the tl071 circuit with a precision half-wave rectifier,
how can I get a -9v am I going to have to use two 9 volt batterries?

2)
I do have an mc33172n chip but how would I connect that the the tl071 circuit?

both of these for input to a microcontroller?
carbajal739 is offline  
Reply

Tags
meter, mic, preamp

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Preamp Help BigE4u General Electronics Chat 15 11th June 2009 03:21 AM
agc preamp distortion palesha Electronic Projects Design/Ideas/Reviews 15 20th August 2007 06:03 AM
preamp to amp crivoli Electronic Projects Design/Ideas/Reviews 9 23rd May 2006 05:14 AM
looking for preamp aguiluz Electronic Projects Design/Ideas/Reviews 0 7th February 2005 04:28 AM
preamp with alc/help Aleks999 Electronic Projects Design/Ideas/Reviews 7 14th July 2004 10:50 PM



All times are GMT. The time now is 12:07 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker