How to implement a current controlled voltage source, or a comparator that trips once a certain current is reached?
Measure the voltage drop across a small (very small) resistor in series with the load using an instrumentation amplifier, and feed the output of the inamp into your comparator.







simulate this circuit &ndash; Schematic created using CircuitLab