Lm3915 Calculator Updated [updated] ●
The updated calculation for the logarithmic display driver involves two primary formulas to set the Full-Scale Voltage ( cap V sub cap R cap E cap F end-sub LED Current ( cap I sub cap L cap E cap D end-sub
The bridges this gap. It allows a modern developer to prototype an analog circuit as quickly as they could write an Arduino sketch.
Args: Vin (float): Input voltage. Vref (float): Reference voltage. gain (int): Gain of the amplifier.
. These parameters are determined by the values of two resistors, (connected between Pin 7 and Pin 8) and (connected between Pin 8 and Ground). Core Calculation Formulas Full-Scale Voltage ( cap V sub cap R cap E cap F end-sub lm3915 calculator updated
Note: To fine-tune the range, replace R2 with a potentiometer or a trimmer resistor.
VREF=1.25×(1+R2R1)+(IADJ×R2)cap V sub cap R cap E cap F end-sub equals 1.25 cross open paren 1 plus the fraction with numerator cap R sub 2 and denominator cap R sub 1 end-fraction close paren plus open paren cap I sub cap A cap D cap J end-sub cross cap R sub 2 close paren IADJcap I sub cap A cap D cap J end-sub is typically very small ( ) and can be ignored for standard hobbyist calculations. Equation 2: LED Current Programming ( ILEDcap I sub cap L cap E cap D end-sub
R2=VREF−1.251.25R1+IADJcap R sub 2 equals the fraction with numerator cap V sub cap R cap E cap F end-sub minus 1.25 and denominator the fraction with numerator 1.25 and denominator cap R sub 1 end-fraction plus cap I sub cap A cap D cap J end-sub end-fraction Example: If your audio source peaks at 5V, you want and an average IADJcap I sub cap A cap D cap J end-sub The updated calculation for the logarithmic display driver
Properly implementing your calculated values requires correct wiring of the control pins.
Some LM3915 circuits include a peak hold capacitor. The updated calculator includes a timing tab. Enter your desired hold time (e.g., 0.5 seconds), and it calculates the required capacitor value for pin 12.
R2=1200×(4−1)cap R sub 2 equals 1200 cross open paren 4 minus 1 close paren Vref (float): Reference voltage
+---U---+ V- | 1 18 | LED 1 V+ | 2 17 | LED 2 GND | 3 16 | LED 3 SIG IN | 4 15 | LED 4 R-LO | 5 14 | LED 5 R-HI | 6 13 | LED 6 V-REF | 7 12 | LED 7 REFOUT | 8 11 | MODE (Dot/Bar) +-------+ Key Pins for Calculation:
ILED≈12.5R1cap I sub cap L cap E cap D end-sub is approximately equal to the fraction with numerator 12.5 and denominator cap R 1 end-fraction Modern Updates in Design