Lm3915 Calculator Now

( R_\textset = 12.5 / 0.015 = 833.3 \ \Omega ) → use 820 Ω.

From Vref = 5V to RHI = 1.5V: Use voltage divider between pin 7 and ground, middle to pin 4. Choose Rtop = 10 kΩ, Rbottom = 4.285 kΩ (approx 4.3k).

Desired input at pin 5 for LED10 = 5.0 V (peak). Actual peak input = 1.414 V. Thus, we need gain , not attenuation. Instead, set RHI lower: Use a voltage divider from Vref to set RHI = 1.5 V (peak). Then:

However, the standard application simplifies by setting ( V_\textRHI = V_\textref ) and ( V_\textRLO = 0 ) for ground-referenced input. For line-level audio (e.g., 1.228 Vrms = +4 dBu), an input voltage divider is needed before pin 5: LM3915 Calculator

Then choose ( R_\textin1, R_\textin2 ) as a voltage divider. [ R_\textset = \frac12.5I_\textLED ]

A dedicated calculator solves these with direct equations. 4.1 Reference Voltage Divider (R1, R2) Given desired ( V_\textref ):

| Parameter | Formula | Standard value example | |-----------|---------|------------------------| | ( R_\textset ) | 12.5 / I_LED | 620 Ω for 20 mA | | ( V_\textref ) | 1.25 × (1+R2/R1) | 5.0 V: R1=1.2k, R2=3.6k | | LED step voltage (n from 1 to 10) | ( V_\textRLO \times 10^(n-1)/10 ) (if RHI/RLO = 1:0 ratio) | Step 6: ×3.16 from step 1 | | Power (bar mode) | ( 10 \times V_\textLED \times I_\textLED ) | 10×2V×0.02A = 0.4W | ( R_\textset = 12

Example: For 20 mA (typical bright LED), ( R_\textset = 12.5 / 0.02 = 625 \ \Omega ). Use 620 Ω standard. Design goal: Audio level meter for -30 dBV to +6 dBV (36 dB range, but LM3915 only does 30 dB, so compress or shift). Desired: LED1 = -30 dBV, LED10 = 0 dBV (30 dB span). Reference voltage = 5.0 V (from 12V supply). LED current = 15 mA.

For a desired max LED at ( V_\textin,peak = V_\textmax ):

RLO = 0 V (ground). RHI = 5.0 V (to reference). But now the highest LED triggers at ( V_\textin \approx 5.0 ) V peak? That’s far above 1.414 V. So we must attenuate input. Desired input at pin 5 for LED10 = 5

( V_\textRHI = 1.5 ) V. Check: 1.5 V peak corresponds to ~1.06 Vrms → ~0.5 dBV (close to 0 dBV).

[ \textAttenuation factor = \fracV_\textref,desiredV_\textmax ]

[ R2 = R1 \times \left( \fracV_\textref1.25 - 1 \right) ]

Typically ( R1 = 1.2 \textk\Omega ) (recommended min). Example: To set ( V_\textref = 2.5 \textV ), ( R2 = 1200 \times (2.5/1.25 - 1) = 1200 \times 1 = 1.2 \textk\Omega ). If the lowest LED lights at ( V_\textin = V_\textLO ) and the highest at ( V_\textin = V_\textHI ), then:

But for simplicity, designers often set ( V_\textRLO = V_\textLO ) and ( V_\textRHI = V_\textref ) (if ( V_\textref ) is scaled to match highest LED threshold). More practically: The LM3915’s internal divider has a ratio of ~1.25 dB per step in voltage terms, so the voltage at step n is: