SensorCatalog
IEC 60381-1NAMUR NE 433-wire Active / Sink V-to-I Stage

Spannung-zu-4–20 mA Stromsender (OPV + Längstransistor)

Closed-Loop Precision Current Source · 12–36 V Loop + 0.4–2.0 V DAC

Ein OPV mit Längstransistor regelt die Spannung an Rset exakt auf Vin und erzeugt Iout = Vin / Rset (z. B. 0,4–2,0 V / 100 Ω = 4–20 mA) unabhängig vom Lastwiderstand innerhalb der Compliance-Grenze.

CLOSED-LOOP PRECISION: 1.20 V / 100 Ω = 12.00 mA (Headroom 19.8 V)

Virtual short keeps V(Rset) = 1.20 V regardless of Rload (250 Ω). Pass BJT dissipates 238 mW safely.

Normaler StromflussWarnung / BegrenzungFehler / ÜberstromGeschwindigkeit ∝ |I|
DAC Input1.20 V0.4–2.0 V+−U11 kΩQ1 (Pass)Vce=19.8VP = 238 mW100 ΩFeedback V(Rset) = 1.20 V0 V (GND)External Loop & Load+24.0 V250 Ω12.00 mAOPEN LOAD!⚠ COMPLIANCE CLIP!

Transmitted Loop Current

12.00 mA

Pass Transistor Headroom (Vce)

19.80 V

Pass Transistor Heat (PQ1)

238 mW

Max Compliance Rload

1858 Ω

Op-Amp Feedback LoopLOCKED (V− = Vin)
Pass Transistor Q1 ModeLINEAR ACTIVE (238 mW)
Sense Feedback V(Rset)1.20 V (Set 1.20 V)
Recommended Q1 PackageSOT-23 / TO-92 OK
V

0.4–2.0 V across Rset=100 Ω produces exact 4.0–20.0 mA!

Ω

I_out = Vin / Rset (use 0.1%, ≤25 ppm/°C thin-film metal resistor).

V

Higher Vloop drives larger Rload, but raises pass-transistor heat!

Ω

Typical PLC AI is 250 Ω; long cable + isolator can reach 500–750 Ω.

Vorgaben:

Live-Formelberechnung

1. Closed-loop voltage-to-current transfer

I_out = V_in / R_set = 1.20 V / 100 Ω

⇒ 12.00 mA (Actual 12.00 mA)

2. Pass transistor collector-emitter voltage & heat

P_Q1 = (V_loop − I_out · (R_load + R_set)) · I_out = 19.80 V × 12.00 mA

⇒ 238 mW

3. Maximum driveable external load

R_load(max) = (V_loop − 0.5 V) / I_out − R_set = (24.0 − 0.5) / 0.0120 − 100

⇒ 1858 Ω

Dynamische Stückliste (BOM)

Bez.BauteilDimensionierungStatus
U1Rail-to-Rail Single-Supply Op-AmpOPA333 / MCP6001 / LM358 (Vos ≤ 1 mV for <0.1% err)OK
Q1NPN Pass Transistor (or Logic N-MOSFET)MMBT3904 / 2N7002 (238 mW)OK
RsetPrecision Current-Setting Resistor100 Ω ±0.1%, ≤25 ppm/°C, ≥0.25 WOK

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.

Spannung-zu-4–20 mA Stromsender (OPV + Längstransistor) — SensorCatalog
U/I 4–20 mA SenderPNG 1200×630

2. Step-by-step: Building a precision 4–20 mA voltage-to-current transmitter

  1. 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.

  2. 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.

  3. 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.

  4. 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

SymptomUrsacheMultimeter-PrüfungAbhilfe
Output current reads ~1% lower than Vin / Rset across the entire rangeBJT 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-MOSFETReplace 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 cableCable inductance/capacitance plus MOSFET gate capacitance erodes op-amp phase marginProbe op-amp output pin with AC-coupled scope while field cable is attachedAdd 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

↑ ↓ wählen · Enter öffnen · Esc schließen