I need a circuit that senses a current and outputs a voltage, but in inverse proportion.
In my case: When the current is around 0A, the voltage source should be around 18V (my Vcc). And when the current is around 8mA, the voltage source should be 5V.
Can this be done ? Opamps ? Transistors ?
It's just for a simulation. No worry about part count. But generic parts are preferred.
Is it even possible ?
All I can do is thanks. No reputation to upvote.
The following is a directly proportional current controlled voltage source. A small illustration of the idea. All I need is to reverse the proportion.
Edit 1: To make this thread short, I removed the part where I explain the impedance requirements. This can still be seen in the edit history.
The user Transistor understood correctly my necessities.
I "ommitted" the following information to make the opening thread short, but that choice is creating gaps:
This whole circuit is a brief and partial model of the LM7805.
This IC has a quiescent current (as the datasheet calls) of 8mA leaving the control pin towards the GND. In this scenario, the regulator does its job and outputs clean 5V.
Now, if I interrupt this control current, the output approaches the Vcc of the supply.
I intend to control this current with a transistor, and this control should take into account the output voltage (so not to break the closed loop).
A voltage divider quite does the job, but the output voltage is much below the input Vcc. I know that a transistor will increase the minimum voltage much above 5V, but that's not a problem.
I don't have available LM317, by the way.
To "generate" this 8mA in the simulator I'll not use a current source, but a Vcc and a resistor.