Sub topic 13
Converting current to voltage
This chapter assumes you can apply the virtual short and zero input current constraints with KCL, and that you know the inverting amplifier. If those feel shaky, review the inverting amplifier chapter first.
Why convert current to voltage
Many sensors produce a current, not a voltage. A photodiode is a common example. Light striking it generates a small current, often in the nanoampere to microampere range. Measuring that current directly is awkward, because most downstream circuits (ADCs, comparators, filters) expect a voltage.
A current-to-voltage converter, also called a transimpedance amplifier, produces an output voltage proportional to an input current. Its gain has units of ohms (volts per ampere), which is why it is called a transimpedance.
The circuit
Take the inverting amplifier and remove the input resistor. The current source drives the inverting input directly. A feedback resistor Rf connects the output to the inverting input. The non-inverting input is grounded.
Derivation
Use the analysis procedure from earlier chapters.
- The non-inverting input is at 0 V. By the virtual short, the inverting input node is also at 0 V.
- The ideal op amp draws no input current. The source current Is therefore has nowhere to go except through Rf.
- Write KCL at the inverting node. Current Is flows into the node, and the current through Rf leaves the node toward the output:
Is = (0 − Vout) / Rf
- Solve for the output:
Vout = −Is · Rf
The transimpedance is −Rf. A 1 µA input with Rf = 1 MΩ gives Vout = −1 V. The minus sign appears because the source current is defined as flowing into the node. If the current flows the other way, as with a reverse-biased photodiode wired with its cathode at the node, the output is positive.
Why the input looks like a short
The inverting node is held at 0 V, so the source sees an input resistance near zero. This matters. A real current source such as a photodiode has parasitic capacitance and finite shunt resistance. Holding its voltage at zero keeps the full signal current flowing through Rf, instead of leaking through the source's own shunt resistance.
A runnable check
def transimpedance_vout(i_in, rf):
"""Ideal output voltage of a current-to-voltage converter.
i_in is the current flowing into the inverting node, in amperes."""
return -i_in * rf
for i_in in (100e-9, 1e-6, 10e-6):
print(f"{i_in * 1e6:6.2f} uA -> {transimpedance_vout(i_in, 100e3):7.3f} V")With Rf = 100 kΩ, this prints −0.010 V, −0.100 V and −1.000 V for the three inputs.
Choosing Rf and watching the limits
- A larger Rf gives more output voltage per ampere, so it suits small currents.
- The output cannot exceed the supply rails. If Is · Rf is larger than the available swing, the output saturates and the linear analysis no longer applies.
- Large Rf values make the circuit more sensitive to input bias current and noise, which the ideal model ignores.
Common errors
- Putting a resistor in series with the current source. An ideal current source forces its current regardless, so a series resistor does nothing to the gain.
- Forgetting the sign. Vout = −Is · Rf for current flowing into the inverting node.
- Using the inverting amplifier gain formula. There is no Rin here, so −Rf/Rin does not apply.
Exercise
A sensor delivers 20 µA into the inverting node of an ideal current-to-voltage converter with Rf = 50 kΩ. The supplies are ±12 V. What is Vout? What is the largest input current that keeps the output unsaturated, ignoring the sign?
Show answer
Vout = −(20 µA)(50 kΩ) = −1.0 V. The output saturates near 12 V in magnitude, so the largest current is 12 V / 50 kΩ = 240 µA (slightly less in a real device, because outputs do not reach the rails exactly).
Exercise
You need 2 V of output magnitude from a 400 nA photodiode current. What Rf do you choose?
Show answer
Rf = 2 V / 400 nA = 5 MΩ.