I want to build a circuit based on 10 leds & pot
My question is how can I make all those leds to light up acording to the potentiometer.
When I have the pot set to minimum i want all leds down,when is set to middle only first 5 leds to be lit & when all leds are lit pot is set to maximum
Anyway i think u get the idea.I want to build such a circuit because i want to include it in my amp.
Anyone knows such a circuit, ICs or links to all this?
I do not need a vu-meter or anything like this.I just want make a circuit in such way, when i rotate the potentiometer to maximum those 10 leds has to be lit to the last and when turn the potentiometer to 0 all leds i want to be off
U got the ideea? I keep searching for several months over the net and I found nothing or maybe I do't know how to search
u will definitely need a potential divider ckt..
which u can make with trans&diodes or with opamps+resistor , or as electro said use bar display ics, which has an advantage of low component count
I do not need a vu-meter or anything like this.I just want make a circuit in such way, when i rotate the potentiometer to maximum those 10 leds has to be lit to the last and when turn the potentiometer to 0 all leds i want to be off
U got the ideea? I keep searching for several months over the net and I found nothing or maybe I do't know how to search
As already suggested, bar graph IC's do EXACTLY what you want, try looking at the LM3914 which has linear steps, which is what you want, the LM3915 has log steps (for VU use) and wouldn't be suitable.
You could also do it with a PIC, but it hardly seems worth it when exactly the right IC for the job is freely available - and simple to use!.
Hi Daniels,
Nice try, but an LM3914 doesn't work like that:
1) Your extremely high value pot has an odd value and its resistance is much too high.
2) The battery voltage changes as the battery voltage runs down, and if the pot is connected to the battery then the display to also change.
3) With the voltage reference's output connected to the adjust pin, the reference voltage is 1.25V and since the RH is connected to the 1.25V then your display would indicate max for most of the rotation of the pot.
4) A resistor is not needed at the lower pin of the pot.
5) A resistor is not needed in parallel with the pot.
Instead, it should be connected like this:
1) Any linear pot can be used from 10k to 1M.
2) The pot is connected to the 1.25V regulated reference voltage that doesn't change.
3) The pot will control the display linearily, from zero to max.
Hi Daniels,
160 ohms is a standard 5% value.
You are clever to use 20 steps in your bar-graph circuit. :lol:
Your sim isn't smart enough to know:
1) The voltage of the battery will drop over its life and since a divided version of the battery voltage feeds the RH and RL terminals of both LM3914 ICs in series, but the pot's voltage is regulated, then the display will read too high as the battery voltage falls.
2) You have the OUT terminals of both ICs connected together with a 1k load resistor common to both. Therefore the IC with a slightly higher reference voltage will be bright because it will have current in the 1k resistor but the other IC with the slightly lower reference voltage won't have any current and will be extremely dim.
You should have only one IC supplying a regulated 1.25V to the pot and the series'd RH and RL like this:
Hee, hee. :lol: Because your stupid sim program is smarter than me! :lol:
I forgot that the top bar lights only when the SIG voltage exceeds the voltage on the upper IC's RH pin.
Since the total resistance of both dividers is 24k and the max input offset voltage is 15mV, and the switching between bars needs another 5mV for them to be bright, then 390 ohms added in series with the divider will provide the required 20mV.
Do you want it to display an external signal's level? It won't perform very well with a music signal:
1) The LM3914 has equal linear steps between its LED thresholds. The LM3915 is more suitable to display music levels because its steps are spaced logarithmically, like your hearing.
2) The display is instantaneous, so it will flicker dimly all over the place. For it to display the levels of music clearly then you should add the Precision Half-wave Peak Detector circuit (or the full-wave one) to the input as shown in the datasheet for the LM3915.