jonathanrjpereira / LM3915-VU-Meter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LM3915 VU Meter

An audio volume level indicator using the LM3915.

Order PCB:

Electronic Components

Qty Component Buy
1 LM3915 AliExpress
1 LM386 AliExpress
1 IC Holders AliExpress
1 Electret Condenser Microphone AliExpress
1 10Ω, 1KΩ, 4.7K, 10KΩ Resistor AliExpress
21 5mm LED AliExpress
1 2.2uF, 100uF Capacitor AliExpress
2 10uF Capacitor AliExpress
1 10nF, 47nF, 0.1uF Capacitor AliExpress
1 2 Pin Screw Terminal AliExpress
1 3-Pin Male Header Pins AliExpress
1 2-Pin Jumper Cap AliExpress
1 5VDC Adapter AliExpress
1 PCB AliExpress
Tools Buy
Soldering Iron AliExpress
Soldering Wire AliExpress
Mini PCB Hand Drill + Bits AliExpress
Wire Cutter AliExpress
Wire Stripper AliExpress
Soldering Helping Hands AliExpress

LM3915

The LM3915 is a monolithic integrated circuit that senses analog voltage levels and drives ten LEDs, providing a logarithmic 3 dB/step analog display. One pin changes the display from a bar graph to a moving dot display.

The whole display system can operate from a single supply as low as 3V or as high as 25V.

Pinout

The DIP package of the LM3915 has 18 pins. Most pins are used as output pins that drive the LEDs while the rest of the pins used as power supply, reference configurations and IC control.

Pinout Pin Description

LED Configuration

LED current drive is regulated and programmable, eliminating the need for current limiting resistors. Hence the anodes of the LEDs are directly connected to VCC and the cathodes are connected to the LM3915. The LEDs turn ON when the driving pins of the LM3915 are set to LOW.

Analog Voltage Reference

The IC contains an adjustable voltage reference and an accurate ten-step voltage divider. Pins 6 and 4 are used to set the sensitivity range of the voltage divider. RHI sets the maximum voltage of the voltage divider and RLO sets the minimum voltage of the voltage divider. These pins can be connected to any voltage above 0V and 1.5V below VCC.

Mode Select

The LM3915 has two display modes: Bar Graph mode & Moving Dot mode. In the Bar Graph mode, all the LEDs turn ON below a certain level. Hence if the input signal level is maximum, all the LEDs should turn ON. Whereas in Moving Dot mode only a single LED is turned ON at a time. The mode is selected by configuring Pin 9. When Pin 9 is connected to VCC, it operates in the Bar Graph mode whereas if Pin 9 is left floating, the LM3915 operates in the Moving Dot mode.

LED Current Programming and Setting the Internal Voltage Reference

The reference is designed to be adjustable and develops a nominal 1.25V between the REF OUT (pin 7) and REF ADJ (pin 8) terminals.

VREF

Since we are using only one resistor (R1), VREF = 1.25V, which is more than 1.5V below VCC.

The LED current is calculated using the following formula:

ILED

R

Hence if an LED requires 3mA, we will need to set the value of R to 4.7KΩ.

Voltage Divider Working

The voltage divider consists of ten comparators. If the non-inverting terminal(+) voltage is higher than the inverting terminal(-) voltage, the comparator comparator output is driven HIGH. The inverting terminal are all connected to the Input Signal (Pin 5). The non-inverting(+) terminals are connected through a series of resistors which create larger and larger voltage dividers. The non-inverting(+) voltage on the first comparator will be the divider input voltage (RHI − RLO), while the non-inverting(+) voltage on the last comparator is 1/10th of that voltage. Hence in order to turn ON an LED, the analog Input Signal voltage must be greater than the divided input on a comparator. So a smaller signal voltage is required to turn on the first LED in comparison to any of the following.

Comparator

LM386

The LM386 is a power amplifier designed for use in low voltage consumer applications. The gain is internally set to 20 to keep external part count low, but the addition of an external resistor and capacitor between pins 1 and 8 will increase the gain to any value from 20 to 200.

The inputs are ground referenced while the output automatically biases to one-half the supply voltage.

Pinout Pin Description

Circuit:

The microphone is an electret type and requires a resistor to bias the capacitor connected to it. Some electret microphones also have an amplifier built-in, which also needs power. The larger the resistor from VCC the larger the voltage drop caused by the supply current, though for an unamplified electret the current is low and the resistor may be bigger. A too small resistor will cause the signal to be attenuated. VCC is ground for AC signals and a small resistor will cause too much current to go that way. In this case the 10KΩ resistor R2 acts as the bias resistor.

The capacitor C3 is used is used to filter the DC noise that might be coupled along with the analog electrical signals.

LM3915 VU Meter Circuit Schematic

The LM386 amplifies the audio signal picked up by the microphone. The gain of the LM386 is set to 200 by connecting a 10uF capacitor between pins 1 and 8.

The LM3915 is used as the LED driver. By setting the value of resistor R4 to 4.7KΩ, the LED drive current is regulated to 3mA. A total of 20 LED's are driven by the LM3915.

The jumper connected across the header pins JP2 are used to select the display mode: Either Bar Graph mode or Moving Dot mode.

Capacitor's C1 and C2 filter out any noise in the supply line and LED1 is used to indicate the power supply status.

LM3915 VU Meter Board PCB

You can Order the PCB:

Printable

Or you can printout the PDF file and make your own PCB using the Iron-on method.

Contributing🛠

Are you an engineer or hobbyist who has a great idea for a new feature in this project? Maybe you have a good idea for a bug fix? Feel free to grab our code & schematics from Github and tinker with it. Don't forget to smash ⭐️ & the Pull Request button.

alt text alt text alt text

References: LM3915 Datasheet LM386 Datasheet Sparkfun

About

License:GNU General Public License v3.0


Languages

Language:Eagle 100.0%