again, microphone input high school project

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Kevin,
Ripple doesn't come from the input. It is the result of the cap discharging a bit into the load between charging pulses from the diode.

 

zgnoh

Jan 28, 2005
25
Joined
Jan 28, 2005
Messages
25
Hi Zgnoh,
It would be cool to see your water fountain squirt by the various levels of music. With most pop music it would squirt to the beat of the music!
1) The LM3915 can have a switch to select a single output called dot mode when it lights LEDs, or bar mode when it lights all LEDs below the one that it is indicating. The outputs of the LM3915 can drive electrical water valves or relays to drive them.
2) You can put a volume control on it to adjust the range of input.
3) With CD input you reduce the gain of the preamp but the circuit still needs a rectifier circuit and filter cap.
4) A very simple rectifier circuit is shown on the LM3915's datasheet that works much better than just a single diode.
thanks~
where can I find the LM3915 datasheet?

I'll have to do the written part of the project, I'll be using the diagram below to briefly illustrate the flow of the circuit:
Click here, circuit
Then in practice, I'll use the IC, do some calculations on the values of capacitance, resistors.

Do you think it's okay?
moreover, what do you think I can put in the other side of the electromagnetic relay?
I propose using a big water tank and some tubes. What I have to do is just control the opening and closing of some switches or valves.
If I couldn't figure out how to set a valve circuit, I'll have to end up showing LEDs, which is much less fun than seeing a musical water fountain:(

thanks
 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Zgnoh,
At the bottom of this page is a link "WWW Search" to the Google search engine. You can enter part numbers, circuit names or anything. I entered LM3915 and it linked to this datasheet: http://www.national.com/ds/LM/LM3915.pdf
You will see that it has 10 outputs arranged in steps of amplitude of the input. The 1st output is activated with a low-level input. The 2nd activates with more input amplitude and so on. It needs only 2 resistors to be calculated, for its maximum input voltage range and the brightness of its LEDs.

On your drawing the left triangle is the LM3815. You show one output driving a relay. You can draw more outputs on the LM3915 driving more relays up to ten.
Each relay can activate an electrical water valve that are used for timed sprinklers for example.
For your demonstration use LEDs instead of relays.

 

zgnoh

Jan 28, 2005
25
Joined
Jan 28, 2005
Messages
25
Hi Zgnoh,
At the bottom of this page is a link "WWW Search" to the Google search engine. You can enter part numbers, circuit names or anything. I entered LM3915 and it linked to this datasheet: http://www.national.com/ds/LM/LM3915.pdf
You will see that it has 10 outputs arranged in steps of amplitude of the input. The 1st output is activated with a low-level input. The 2nd activates with more input amplitude and so on. It needs only 2 resistors to be calculated, for its maximum input voltage range and the brightness of its LEDs.

On your drawing the left triangle is the LM3815. You show one output driving a relay. You can draw more outputs on the LM3915 driving more relays up to ten.
Each relay can activate an electrical water valve that are used for timed sprinklers for example.
For your demonstration use LEDs instead of relays.
thanks,
I have some problems drafting the circuit regarding LM3915
just silly problems.

http://www.national.com/ds/LM/LM3915.pdf
according to page ten of this factsheet FIGURE 1, the amplifier and rectifier.
the input,,, only one input...>!?!?!?!..<<??!?
how can I connect a microphone to it... a microphone,,, two wires... only one place for input...... and one for output,,,
one output to SIG5 is okay,,, but only one input... how to draw?

also, if i want to voltage gain to be variable, which, R1 or R2, R3, R4 should I change to variable resistor?

I know it's not the page's error,,, just my poor knowledge about circuit...
thanks.
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Zgnoh,
The LM3915 isn't connected to the microphone, it is fed from the volume control like the left triangle in your previous diagram. The volume control is R2 of the "Half-wave peak detector" circuit in figure 1 in the datasheet. The half-wave peak detector circuit is DC-coupled from the output of a preamp circuit you still need. The preamp needs a gain of a few hundred and its input is the microphone.

It ain't simple but you're getting there.

 

Kevin Weddle

Feb 23, 2004
1,620
Joined
Feb 23, 2004
Messages
1,620
Audioguru, I did some experimenting and found that I was wrong. It seems that a triangle wave is perfect to charge the diode capacitor combination. If even you increase the frequency, the greater DC you have. I was under two impressions. One was that there needed to be more DC delivered to the load like during the peak of the sinewave. I also thought that the triangle would not give enough DC when a triangle was applied. We all learn something. However, when there is a load, there is a DC difference between the sinewave and the triangle, but it is a distinct small difference. And I wonder how that could be. Maybe I am not able to get the peak of the voltage because of the rate of change of the triangle. There is a small voltage divider that exists between the re of the diode and the capacitive reactance. Also I don't think it is because of the discharge because there is little ripple. The voltage divider would explain the up to .2 DC voltage difference.

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Kevin,
Thanks for admitting your error.
If your triangle wave and sine wave have exactly the same frequency and peak-to-peak voltage, the difference in rectified DC voltage is probably due to the different amount of time that the different waves spend at the peak.
The triangle wave spends very little time at its peak voltage. As soon as it reaches the peak, its voltage reduces.
However, the sine wave spends considerable time at its peak voltage so the filter capacitor has a long time to completely charge.

 

zgnoh

Jan 28, 2005
25
Joined
Jan 28, 2005
Messages
25
Hi Zgnoh,
The LM3915 isn't connected to the microphone, it is fed from the volume control like the left triangle in your previous diagram. The volume control is R2 of the "Half-wave peak detector" circuit in figure 1 in the datasheet. The half-wave peak detector circuit is DC-coupled from the output of a preamp circuit you still need. The preamp needs a gain of a few hundred and its input is the microphone.

It ain't simple but you're getting there.
I just put P.22 of the factsheet
http://www.alltronics.com/download/LM3915.pdf#search='LM3915'

in the written part of my project.
replacing the word "LOUDSPEAKER" by "MIC INPUT",
the word "Output Amplifier" changed to "Amplifier and Rectifier(+filter)"

is it okay!?
leaving the details of amplifier and rectifier not mentioned.
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Zgnoh,
Oops, page 22 says that the LM3915 was discontinued in 1999, I just checked and the LM3914 is available and works the same but with a linear, reduced range.

You must watch your english when talking about inputs and outputs. The microphone's input is your voice, certainly not its electrical output!
Don't forget about the preamp.
I gathered the circuit for you here:

View attachment 36580

 

zgnoh

Jan 28, 2005
25
Joined
Jan 28, 2005
Messages
25
Hi Zgnoh,
Oops, page 22 says that the LM3915 was discontinued in 1999, I just checked and the LM3914 is available and works the same but with a linear, reduced range.

You must watch your english when talking about inputs and outputs. The microphone's input is your voice, certainly not its electrical output!
Don't forget about the preamp.
I gathered the circuit for you here:
I will connect pin 9 to pin 3 for bar mode ;D
thanks very much for your help ar, :)
I have some questions about your diagram

1) Is the word "Rectifier" supposed to be under the diode and capacitor, and the word "Preamplifier" be under the transistor and resistors?
2) There is just one input for the triangle and I suppose it's a buffer gate rather than an op-amp :p As far as I was taught, a buffer gate is two not gates in series. the output of a not gate is independent of the input. it just follows that the input is low then output is also low, input is high then output is also high. but a buffer gate does not amplify the input in ratio... Is what I taught correct? If so, then the circuit cannot serve as a volume detector!?
3) the v- in the diagram is earthed?
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Zgnoh,
It will look good connected as "bar mode".
I'm glad to help you.

1) I think the word "rectifier" should be changed to "half-wave peak detector", which is the transistor, diode, associated resistors and capacitor.
2) The triangle is the preamp circuit. It is an opamp with a gain of a few hundred, with its inverting input inside the triangle and used for negative feedback to determine its gain. The opamp's non-inverting input is the preamp's input.
Digital logic gates can't be used for audio because they only switch high or low. They would sound like "click, click" or "buzz, buzz". Audio amplifiers are linear and smoothly reproduce all sounds and levels.
A new form of audio amplifier is becoming available. It switches its output at a very high frequency that you cannot hear, and uses duty-cycle changes in its output switching pulses to reproduce the audio. These amplifiers operate in "class-D" and the duty-cycle changes in their pulses is called "pulse-width-modulation".
3) V- is a negative power supply. It is used because the input to the LM3914 must be positive only but at ground (not called earthed) with no signal. The output of the preamp must also be at ground with no signal. Therefore, the output of the preamp must swing symmetrically above and below ground with audio, and since it must swing below ground (negative voltage) it must have a negative power supply in addition to a positive power supply.
The half-wave peak detector is called "half-wave" because it responds only to the positive swings (half-waves) of the preamp's output. The negative half-waves of the preamp's output are ignored, but still must be present in order for the preamp's output to be at ground with no signal.

 

zgnoh

Jan 28, 2005
25
Joined
Jan 28, 2005
Messages
25
Hi Zgnoh,
It will look good connected as "bar mode".
I'm glad to help you.

1) I think the word "rectifier" should be changed to "half-wave peak detector", which is the transistor, diode, associated resistors and capacitor.
2) The triangle is the preamp circuit. It is an opamp with a gain of a few hundred, with its inverting input inside the triangle and used for negative feedback to determine its gain. The opamp's non-inverting input is the preamp's input.
Digital logic gates can't be used for audio because they only switch high or low. They would sound like "click, click" or "buzz, buzz". Audio amplifiers are linear and smoothly reproduce all sounds and levels.
A new form of audio amplifier is becoming available. It switches its output at a very high frequency that you cannot hear, and uses duty-cycle changes in its output switching pulses to reproduce the audio. These amplifiers operate in "class-D" and the duty-cycle changes in their pulses is called "pulse-width-modulation".
3) V- is a negative power supply. It is used because the input to the LM3914 must be positive only but at ground (not called earthed) with no signal. The output of the preamp must also be at ground with no signal. Therefore, the output of the preamp must swing symmetrically above and below ground with audio, and since it must swing below ground (negative voltage) it must have a negative power supply in addition to a positive power supply.
The half-wave peak detector is called "half-wave" because it responds only to the positive swings (half-waves) of the preamp's output. The negative half-waves of the preamp's output are ignored, but still must be present in order for the preamp's output to be at ground with no signal.
thzzz, rili sorry for repeatedly making silly english mistakes... English is not my mother tongue leeeeeeee...
"earthed" ;D, it should be "grounded" :-*
So now we have both variable voltage-gain pre-amplifier and the variable volume control. Both accounts for the sensitivity or setting of the musical shower?~
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Zgnoh,
Many elecrical appliances are earthed for safety. Big radio transmitters are earthed so that their antennas work correctly. But your project doesn't have to have its ground common connection earthed.
When you connect something to the earth you connect it to a cold water pipe where the pipe enters the building from outside, or connect to a long metal stake in the ground outside.

The preamp will have its gain fixed at a few hundred and you adjust the sensitivity with the volume control.

 
Top