LM3915 based VU meter

Status
Not open for further replies.
These ICs have current programming. That makes the output switch differently (no series resistor is used with current programming).

As long as the resistor is in series with each LED, that will allow the IC switching to go to ground which should eliminate the problem of LED1 remaining lit.
 
I understand.

I'll have to purchase a few more 1k's to test that - Attached is the schematic you asked for.


If you don't mind, I'd like to address another section of this instrument - the power supply.
I will be installing this in my vehicle, and I'd need to have a constant power source + ACC turn on.

I think running the LM and LED's at 5v would be best, so a voltage regulator + transistor switch would be needed. Something that can do 300-500mA should be solid enough. How should I approach this?

I'd like to keep footprint as small as possible so I'm hoping I can use a TO-92 transistor to hold 500mA @12V and an SMD LM7805 to regulate 5v.
 

Attachments

  • uv_meter_full.png
    uv_meter_full.png
    19.2 KB · Views: 135
To test to see if the 1 k in series would blank LED1, you only need the resistor in series with one LED and that LED be lit (its output pin pulled to ground).

You'll have to test with the 5v regulator. IF it runs too hot, you can add a sink to it or go to a 7809.

Why do you need a constant source? All you need is a switched source?
 
It appears that bridging pin 7-8 will make all leds light up faintly.
I put in 680 ohm resistor on pins 7-8 to get around 23mA of current. I put 1k between pin 8 and ground (sets a 3v input range).
I then measured ground to LM pins - 0.5 volts. Just not enough to pull to ground and switch that first led off.
If I had on each pin, two or three leds in series, it would have been enough to pull the LM pins to ground.

It seems like I'm going to have to ditch the dot mode and go graph mode, I'm pretty bummed about that.
 
I had another go at it today.

LEDs 1-9 are white (forward voltage of 3v), LED 10 is blue (forward voltage of 3v) and LED 11 is red (forward voltage of 1.8v)

I've placed a 680 ohm resistor on the LED supply & set the LM to output around 3.8mA of current via a 3.3k resistor between pins 7 and 8. Also placed a 4.7k resistor between pin 8 and ground to achieve a full scale voltage of 3.02v

Here is the updated schematic:
attachment.php


Now, this all works great, except for when the last led (red) lights up - I can see LEDs 6-10 light up very faint as well for a few seconds as if it flashes on and off.

LED 10 on (9 on LM)
attachment.php


LEDs 6-11 on (5-10 on LM) - This is the issue
attachment.php


LED 11 on (10 on LM)
attachment.php


I found this in the application hints
Application Hints
The most difficult problem occurs when large LED currents are being drawn, especially in bar graph mode.
These currents flowing out of the ground pin cause voltage drops in external wiring, and thus errors and oscillations. Bringing the return wires from signal sources, reference ground and bottom of the resistor string to a single point very near pin 2 is the best solution.

Long wires from VLED to LED anode common can cause oscillations. Depending on the severity of the problem 0.05 μF to 2.2 μF decoupling capacitors from LED anode common to pin 2 will damp the circuit. If LED anode line wiring is inaccessible, often similar decoupling from pin 1 to pin 2 will be sufficient.

If LED turn ON seems slow (bar mode) or several LEDs light (dot mode), oscillation or excessive noise is usually the problem. In cases where proper wiring and bypassing fail to stop oscillations, V+ voltage at pin 3 is usually below suggested limits. Expanded scale meter applications may have one or both ends of the internal voltage divider terminated at relatively high value resistors. These high-impedance ends should be bypassed to pin 2
with at least a 0.001 μF capacitor, or up to 0.1 μF in noisy environments.

From my understanding, I need to add a small capacitor between pin 7 and ground, as this may be due to oscillation?
 

Attachments

  • uv_meter_full.png
    uv_meter_full.png
    21.6 KB · Views: 185
  • image1.jpeg
    image1.jpeg
    171.3 KB · Views: 169
  • image2.jpeg
    image2.jpeg
    170.1 KB · Views: 176
  • image3.jpeg
    image3.jpeg
    169.1 KB · Views: 177
Status
Not open for further replies.