1. Überblick & Funktionsprinzip
Converting a microcontroller DAC or conditioned sensor voltage (0.4–2.0 V or 0–3.3 V) into a rock-solid industrial 4–20 mA current output is one of the most requested analog design blocks in instrumentation.
The classic op-amp + pass transistor (BJT or N-MOSFET) voltage-to-current (V-to-I) circuit uses negative feedback to lock the voltage across a single precision resistor Rset equal to Vin, producing I_out = Vin / Rset with <0.1% accuracy independent of external PLC load resistance.
Closed-Loop Precision: The op-amp compares Vin (non-inverting +) with the voltage across Rset (inverting −). If external load resistance increases, the op-amp automatically boosts Q1’s base/gate drive to hold V(Rset) = Vin, keeping I_out rock-steady. Using an N-MOSFET (zero gate current) eliminates the ~0.5–1% BJT base-current error!
Thermal & Compliance Trade-off: At short-circuit or low Rload (50 Ω) and 20 mA from a 24 V rail, Q1 drops ~21 V × 20 mA = 420 mW (up to 660 mW on 36 V!) — enough to cook a tiny SOT-23 transistor. Conversely, at high Rload (1000 Ω), Vce collapses below 0.5 V and the output clips.

2. Step-by-step: Building a precision 4–20 mA voltage-to-current transmitter
1Choose Rset and DAC scaling (e.g. 0.4–2.0 V across 100 Ω)
Pick Rset = 100 Ω (±0.1%, ≤25 ppm/°C) so 0.400 V = 4.00 mA and 2.000 V = 20.00 mA (with 2.200 V available for 22 mA NAMUR NE 43 high alarm) using a standard 2.5 V or 3.3 V DAC.
2Use a zero-drift op-amp and an N-MOSFET (or high-beta BJT)
Select a single-supply op-amp whose input common-mode range includes GND (e.g. OPA333, MCP6001, LM358) and pair it with a SOT-223 N-MOSFET (e.g. BSP295) or BCP56 BJT to handle ≥ 0.6 W worst-case heat.
3Add loop stability compensation (Rgate + Ccomp) and open-load protection
Insert a 100 Ω–1 kΩ resistor between op-amp output and Q1 gate/base plus a 1 nF–10 nF feedback capacitor from op-amp output to inverting input (with 1 kΩ feedback resistor) to stop oscillation on long inductive field cables.
4Verify linearity across 0 Ω, 250 Ω, and 600 Ω loads
Command 4.00 mA and 20.00 mA while stepping a decade load box from 0 Ω to 600 Ω. Current should shift by < 0.02 mA (<0.1% FS) and Q1 temperature must stay comfortably below 75 °C at 0 Ω short-load.
3. Fehlersuche & Multimeter-Diagnose
| Symptom | Ursache | Multimeter-Prüfung | Abhilfe |
|---|---|---|---|
| Output current reads ~1% lower than Vin / Rset across the entire range | BJT base current flows through Rset but NOT through the collector load (I_C = I_E × β/(β+1)) | Measure base current or swap BJT for a low-threshold N-MOSFET | Replace BJT with an N-MOSFET (zero DC gate current) or calibrate out the fixed gain factor |
| Circuit oscillates at 50–500 kHz when connected to a long field cable | Cable inductance/capacitance plus MOSFET gate capacitance erodes op-amp phase margin | Probe op-amp output pin with AC-coupled scope while field cable is attached | Add 100 Ω gate resistor + 1 kΩ feedback resistor + 4.7 nF local compensation capacitor across op-amp |
4. Häufige technische Fragen (FAQ)
Why is an N-MOSFET more accurate than an NPN BJT in a V-to-I transmitter?
In a BJT, emitter current I_E = I_C + I_B flows through Rset, so the load misses the base current I_B (roughly 0.5–1% error that drifts with temperature). A MOSFET has virtually zero DC gate current, so I_D = I_S = Vin / Rset exactly.
Is this circuit a 2-wire loop-powered transmitter or a 3-wire active transmitter?
Because the op-amp and DAC share ground with the bottom of Rset, this basic topology is a 3-wire (or sink-type) transmitter. True 2-wire loop-powered transmitters float their entire local ground below 3.5 mA quiescent draw (like TI XTR115/XTR116).
How do I ground the load (PLC AI− at 0 V) instead of putting the load on the high side?
Use a high-side current source (op-amp + P-MOSFET referenced to +24 V, or a precision high-side V-to-I IC like XTR111) so the transmitter sources 4–20 mA cleanly into a grounded PLC AI terminal.
What happens if the output terminals are accidentally shorted to 0 Ω load?
The current stays regulated at 20 mA (no overcurrent!), BUT the full supply voltage drops across Q1 (e.g. 22 V × 20 mA = 440 mW). As long as Q1 is sized for ≥1 W (SOT-223 / TO-126), the circuit survives a continuous short indefinitely.
What op-amp specs matter most for a 0.1% accurate 4–20 mA transmitter?
Input offset voltage (Vos) and offset drift! On a 0.4–2.0 V span (1.6 V full scale), even a 3 mV LM358 offset causes a 0.19% zero error. Choosing a <0.1 mV chopper/precision op-amp (e.g. OPA333 / OPA197) keeps offset error below 0.01%.
How do I protect a DIY 4–20 mA transmitter from industrial surge and reverse polarity?
Add a series Schottky reverse-polarity diode on the loop terminal, a 30–36 V bidirectional TVS (SMBJ33CA) across the output connector, and a 100 pF–1 nF RF bypass capacitor to suppress fast EFT bursts.
5. Zugehörige Rechner, Leitfäden & weitere Schaltungen
- 4–20-mA-Umrechner
- Speisespannung und Bürde für 4–20 mA
- SPS-Analog-Skalierungsrechner
- 4–20 mA vs. 0–10 V: Welches Analogsignal ist richtig?
- 2-Leiter 4–20 mA Stromschleife & geschützter Empfänger
- 3-Leiter vs 4-Leiter Aktiver Analog-Messumformer (0–10 V)
- ±10 V & 0–10 V Analogskalierung mit 24-V-Fehlanschlussschutz
- PNP-Schaltausgang (3-Leiter, Plus-schaltend) — Schaltung & Simulator
- NPN-Schaltausgang (3-Leiter, Minus-schaltend) — Schaltung & Simulator
- NAMUR 2-Leiter Eigensicherheits-Schaltung (IEC 60947-5-6)
- Gegentakt (HTL/TTL Push-Pull) & Open-Drain Sensorausgang