1

Consider:

Enter image description here

Here is the schematic I'm trying to work around. My major question is about the LED bar graph I want to use, on the right side; does it need resistors?

I saw three different versions of this microcontroller use ... sometimes with, sometimes without, and the datasheet did not really help. On this point, and it also displays an example of use without a resistor.

Bonus question: Is there something wrong in this?

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23

3 Answers3

10

As always, READ THE DATASHEET!

The chip you use has programmable constant current outputs, so you don't need external resistors to determine the current, the chip does this for you.

The current sunk by each output is ~ 10 x the current out of the Vref.

enter image description here

In your case 10 * ( 1.2 V / (1k2 + 680 ) Ohm ) ~= 6 mA, which is OK for a normal (20 mA max) LED.

**strong text**

Wouter van Ooijen
  • 48,407
  • 1
  • 63
  • 136
3

The LM3915 regulates the current to the LEDs. You do not need a current limiting resistor for each LED.

In your circuit, R9 and R10 set the LED current.

Vref is 1.25V. The current drawn through that pin controls the LED current.

According to the datasheet, the LED current is 10* the current drawn through Vref.

In your circuit, that'd be 10*(1.25V/(680 ohms + 1200 ohms))

So, about 6.5 mA.

To make the LEDs brighter, you reduce R9 and R10 (but keep the ratio the same.) So, if you changed to R9=340 ohms and R10= 600 ohms, you'd get about 13 mA for the LEDs.

The given current is per LED.

I've simplified the calculation. The datasheet says you are supposed to take into account the current through the internal divider chain. That amounts to about 0.5 mA, so I just ignored it for simplicity's sake.

JRE
  • 67,678
  • 8
  • 104
  • 179
1

No, you don't need resistors with LM3915.

The LEDs need to be driven with the correct current to achieve the desired brightness. The resistors are used with LEDs to adjust the current when they are driven with constant voltage. LM3915 drives the LEDs with a constant current, which you can program, so you don't need the resistors.

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23
TemeV
  • 1,421
  • 7
  • 10