hmmm...little problem with a LM3915 IC

Thread Starter

JoeBro391

Joined May 15, 2010
68
Okay, so I have lots of experience with LM3915 IC, it was the first IC I ever used and have made a bunch of gifts and displays with them. Now, the cool thing about this IC is the ability to display in either Bar-Graph-mode or in Dot-mode. I usually hardwire Pin9 to Pin3, which keeps it in Bar-Graph-mode, but yesterday I built a little pocket-version VU meter and this time I hooked a switch up to Pin9 so that I could toggle between Bar-Graph-mode and Dot-mode. Bar-Graph-mode works perfectly, but Dot-mode doesn't. When I flip the switch, it goes SORT OF into dot-mode; where there's always about 4 LED's on, but not the single LED. This is weird because I had dot-mode working perfectly over christmas break (was making a present for my brother) but right now, i can't seem to get it to work.

Here's the circuit I've been using:
LM3915.jpg

And here's the datasheet of the IC:
http://www.national.com/ds/LM/LM3915.pdf

I've been using 6V with the circuit, but have tested up to 12V without different results. And for the record, IN THIS PARTICULAR BUILD, instead of using individual resistors for each LED, I used a single 100-ohm resistor, hooked up to the Positive strip that runs down the right side of the diagram, but I don't think that's the problem, because Pin3 (Vcc) and Pin2 (Gnd) are still getting direct power from my power supply.

Thanks to anyone that can offer an insight. -Joe
 

Thread Starter

JoeBro391

Joined May 15, 2010
68
okay, nevermind, I think I figured out the problem. I think It's because I didn't rectify the audio signal and the Inputs of the LM3915 is meant for DC in dot-mode (but runs fine in bar mode off of AC). Makes sense, cause when I DID have it working, the input was coming from a transistor's emitter, and hence, from a DC supply. -Joe
 

Audioguru

Joined Dec 20, 2007
11,248
The LM3915 automatically rectifies its input.
Your circuit is missing the important supply bypass capacitor that every IC needs. It should be a minimum of 2.2uF but use 10uF.

Maybe your wiring is picking up mains hum because you did not use shielded audio cable for its input.
 

Thread Starter

JoeBro391

Joined May 15, 2010
68
The LM3915 automatically rectifies its input.
Your circuit is missing the important supply bypass capacitor that every IC needs. It should be a minimum of 2.2uF but use 10uF.
Is this like a smoothing cap? cause I usually use 100uF caps for smoothing. Does this 10uF cap go between Pin2 and Pin3 or between the positive and negative supply connections?? -Joe
 

Audioguru

Joined Dec 20, 2007
11,248
Is this like a smoothing cap? cause I usually use 100uF caps for smoothing. Does this 10uF cap go between Pin2 and Pin3 or between the positive and negative supply connections?? -Joe
Pin 2 is ground. Pin 3 is the positive supply. The supply bypass capacitor goes between them to provide a low impedance. 10uF to 100uF is fine.
The LM3915 does not have a negative supply.
 

Audioguru

Joined Dec 20, 2007
11,248
You said that you placed a 100 ohm resistor from +12V to the anodes of the LEDs (the positive strip on the right side of your diagram).
Then the datasheet says and shows that you must also bypass the anodes to ground with a 2.2uF tantalum or 10uF electrolytic capacitor to avoid oscillations.

What are the values for your R1 and R2?
What is the level of your input signal?
 

Thread Starter

JoeBro391

Joined May 15, 2010
68
You said that you placed a 100 ohm resistor from +12V to the anodes of the LEDs (the positive strip on the right side of your diagram).
just to be clear, i'm only using 6V with this circuit.

Then the datasheet says and shows that you must also bypass the anodes to ground with a 2.2uF tantalum or 10uF electrolytic capacitor to avoid oscillations.
i'll try that

What are the values for your R1 and R2?
What is the level of your input signal?
R1= 1k-ohm
R2= 150-ohm
The input is just the headphone jack from my laptop, but I put an audio-input jack on the circuit so I can adapt just about anything to be the input (light circuit, microphone, temperature, etc).
 

Audioguru

Joined Dec 20, 2007
11,248
just to be clear, i'm only using 6V with this circuit.
Then you do not need the 100 ohm resistor and extra capacitor that is needed with it. The resistor is used to share the heating when the LEDs have a high current and your power supply voltage is 9V and more.

R1= 1k-ohm
R2= 150-ohm
Why?
Then the 10th LED lights when the peak voltage is 1.44V (1.25V across the 1k plus 0.188V across the 150 ohms). If you short R2 then it will light when the peak voltage is 1.25V which is nearly the same.
The current in the LEDs will be only 8mA which is not very bright.

The input is just the headphone jack from my laptop, but I put an audio-input jack on the circuit so I can adapt just about anything to be the input (light circuit, microphone, temperature, etc).
You need a preamp circuit to amplify the low level from a microphone.
Your circuit probably needs an input coupling capacitor but its value will be huge because you have a low value resistor (10k) at the input of the LM3915. Use 330k like I did.
 

dejfmastejn

Joined Sep 28, 2017
1
Okay, so I have lots of experience with LM3915 IC, it was the first IC I ever used and have made a bunch of gifts and displays with them. Now, the cool thing about this IC is the ability to display in either Bar-Graph-mode or in Dot-mode. I usually hardwire Pin9 to Pin3, which keeps it in Bar-Graph-mode, but yesterday I built a little pocket-version VU meter and this time I hooked a switch up to Pin9 so that I could toggle between Bar-Graph-mode and Dot-mode. Bar-Graph-mode works perfectly, but Dot-mode doesn't. When I flip the switch, it goes SORT OF into dot-mode; where there's always about 4 LED's on, but not the single LED. This is weird because I had dot-mode working perfectly over christmas break (was making a present for my brother) but right now, i can't seem to get it to work.

Here's the circuit I've been using:
View attachment 22860

And here's the datasheet of the IC:
http://www.national.com/ds/LM/LM3915.pdf

I've been using 6V with the circuit, but have tested up to 12V without different results. And for the record, IN THIS PARTICULAR BUILD, instead of using individual resistors for each LED, I used a single 100-ohm resistor, hooked up to the Positive strip that runs down the right side of the diagram, but I don't think that's the problem, because Pin3 (Vcc) and Pin2 (Gnd) are still getting direct power from my power supply.

Thanks to anyone that can offer an insight. -Joe
Hello
I have a similar problem.
DOT / BAR mode does not work properly.
When I have an audio input connected when I connect the pin9 with the power supply and so what happens is that the LED diodes shine stronger when I disconnect the pin9 from the power supply, the LEDs light up weaker.
I have a 2xlm3915n connection as a stereo VU meter if I disconnect the audio input so the DOT mode and the Bar mode work as they should.
As a power supply, I use a 9V battery.
Anyone have any ideas? Maybe I just looked at something. Thank you for any answer
 

Audioguru

Joined Dec 20, 2007
11,248
Without an average or peak detector then the LEDs are simply a dim blur.
My Sound Level Indicator project has been running continuously for more than 11 years, mostly in the bar mode. It has an electret microphone and a half-wave peak detector. It is powered from a 9VDC wall-wart that also charges its "9V" Ni-MH battery that is used when it is portable.
I added a circuit to reduce the gain when the signal is high so that the level range is 50dB instead of the original 30dB of the LM3915.
 
Top