Get free access to our online edition!

From the Q&A

With TJ Byers

LED Voltmeter


I'm interested in building a voltmeter that shows the voltage level using a row of LEDs in a bargraph. I plan on using this for a panel meter, so I only need one range of 0-15 V and I want to use 15 LEDs for the display. Do you have a schematic for this device?

Nicholas Olcan
via Internet


This is easily done using comparators; the basic circuit is shown in Figure 1.


Each comparator is biased one step higher than the comparator under it. As the input voltage increases and exceeds the reference voltage on the comparator's inverting input, the output goes high and lights its respective LED. However, your request would require four of these chips plus 30 resistors. A better solution is the LM3914 Dot/Bar Display Driver. This IC contains 10 comparators with LED drivers, a buffer input op-amp, and a 1.2-volt reference. Only two ICs and four resistors are required to make a bargraph voltmeter that measures zero to 20 volts (Figure 2).


Per your request, only 15 LEDs are shown, but it's easy enough to add the remaining five. The 100Ω pot is used to calibrate the voltmeter. If you don't have a suitable voltage reference for calibration, setting the pot to mid-range should provide 1% accuracy.