I am struggling to design a 9v battery tester for university. It must use 4 LED's to indicate the voltage level of the battery. So far I have a working circuit on multisim using 4 resistors in parallel with eachother, each with an LED in series.
This works in theory as the different resistors limit the voltage to the LEDs, thus indicating the voltage.
However, in practice, the LED's can only support a maximum current of 5mA whilst the circuit is running much higher.
I think I need to incorporate an (or 4) inverting op-amps to reduce the current so as not to blow the LED's. But I'm not so sure and don't know how to do so effectively
I also believe I ought to utilise diodes to ensure I do not get back EMF but am not 100% certain.
Any help anybody could offer would be greatly appreciated, although I'm not looking for just the solution in diagram form I would greatly appreciate an explanation of why things go where so I can understand it for next time!
In the meantime I shall attempt to figure it out via trial and error on multisim.
I just threw together the circuit as a starting point for him to start at.
Opamps can be very confusing to work with and thought just a very basic circuit would perhaps help here, as the student appears to have no idea of how to use an opamp or the function of them.
That's not a good circuit to drive LEDs. Opamps are usually poor choices to drive any load that requires any appreciable current. Generally speaking, opamps are more comfortable driving loads of 2K or higher. A comparator with open collector outp[uts would be a better choice in your circuit. LM339 is an example. Using a comparator would still require a voltage divider at each input.
A much better choice would be the LM3914 LED driver IC. It's available from Digikey (www.digikey.com). The datasheet is here https://www.electro-tech-online.com/custompdfs/2011/01/LM3914.pdf. You just set up one voltage divider at the input and connect the LEDs to each output. It's a much better choice than using opamps or comparators.
So far I have a working circuit on multisim using 4 resistors in parallel with eachother, each with an LED in series. This works in theory as the different resistors limit the voltage to the LEDs, thus indicating the voltage.
That is where you are wrong. A resistor in series with an LED limits its current, not its voltage.
Your LEDs will all turn on at almost the same voltage but the ones with the lower resistance value will have more current and therefore will be brighter.
You need to limit the voltage with a pot like was shown, or with two resistors in a voltage divider that drives the LED driver circuit.
The circuit shown will blow up the opamps because their (-) input voltage is higher than their 5V supply voltage. They should have a voltage divider.