I want to turn an LED indicator on when current is flowing through a path. If there's no current the LED will be off, and when there's current, the LED would turn on.
I've been experimenting with placing a shunt resistor in series with the measured load, and the voltage reading indeed relates to the current load, on the mV scale around 6 to 60 mV's. I'd like to turn a LED on when there's any voltage on either side of the shunt resistor. For this I've unsuccessfully tried to amplify the voltage with a 741 op-amp by "supposedly" measuring the difference between the voltage and setting a gain of 1000's so that the output saturates the maximum voltage available for the op-amp. Here's an overview of what's going into the op-amp according to pinout:
- V+ : +5v
- V- : -5v
- +op : One side of the shunt resistor
- -op : The other side of the shunt resistor
Output: Always 4.5v no mater what load the line with the shunt resistor has.
So what would I need to do for the 741 to return 4.5v when pins across the shunt resistor measures "any" voltage and 0v when there's no voltage across the shunt resistor. In programming style:
if (shuntdifferential > 0)
output = 4.5v (anything that would emit light from LED)
else
output = 0v (anything less than what would emit light from a LED)
The question is: How can I set up the amplifier to do this? I've got +12, +5, 3.3, 0v -5v, -12v from my power supply available. Note that I'd like to know if it's possible to read current from any rail from the psu with the same circuit. Also, maybe I'm looking into some weird solution when there could be a simpler solution for my purpose, recommendations?
Please don't be harsh on me if I'm doing something wrong, the reason I'm asking for help is because i want to learn. Thanks for your time and help :)