logo elektroda
logo elektroda
X
logo elektroda

Schematic for 4-20mA Current Loop Driver with Adjustable Potentiometer and 24V Supply

300 17
Best answers

How can I build a 4-20 mA current loop driver from a 24 V supply using a potentiometer to set the output current?

You can build it as a voltage-to-current converter: use an op-amp driving an NPN transistor, and feed the op-amp a pot-derived voltage so the loop current is I = Vin+/R3 [#21663691] For the op-amp, Steve suggested LM358AP or LM324, and for the transistor a small-signal NPN such as 2N5088, 2N3904, PN2222A, or similar with Vceo above 24 V [#21663693][#21663699] Choose R3 to set the current scale; for example, R3 = 1 kΩ gives 4–20 mA if the control voltage spans about 4–20 V, but at 20 mA it drops 20 V so a 24 V supply leaves only about 4 V headroom [#21663697] If you need more headroom, lower R3, but note that MC33078N needs about 2 V minimum common-mode voltage so R3 cannot be too low; LM358 can go to 0 V input, making smaller R3 values possible [#21663697][#21663695] Because pots can be off by 20–30%, add trimmers if you need accurate 4 mA and 20 mA endpoints [#21663691][#21663701] If the supply is unstable, Steve recommended regulating it with an LM7818 or an LM317 set to about 20 V instead of a zener/2N3055 regulator [#21663703]
Generated by the language model.
ADVERTISEMENT
  • #1 21663689
    Frank rre
    Anonymous  
  • ADVERTISEMENT
  • #2 21663690
    Steve Lawson
    Anonymous  
  • #3 21663691
    Steve Lawson
    Anonymous  
  • #4 21663692
    Frank rre
    Anonymous  
  • #5 21663693
    Steve Lawson
    Anonymous  
  • ADVERTISEMENT
  • #6 21663694
    Frank rre
    Anonymous  
  • #7 21663695
    Steve Lawson
    Anonymous  
  • #8 21663696
    Frank rre
    Anonymous  
  • ADVERTISEMENT
  • #9 21663697
    Steve Lawson
    Anonymous  
  • #10 21663698
    Frank rre
    Anonymous  
  • ADVERTISEMENT
  • #11 21663699
    Steve Lawson
    Anonymous  
  • #12 21663700
    Frank rre
    Anonymous  
  • #13 21663701
    Steve Lawson
    Anonymous  
  • #14 21663702
    Frank rre
    Anonymous  
  • #15 21663703
    Steve Lawson
    Anonymous  
  • #16 21663704
    Frank rre
    Anonymous  
  • #17 21663705
    Steve Lawson
    Anonymous  
  • #18 21663706
    zoe waqar
    Anonymous  

Topic summary

✨ The discussion centers on designing a 4-20mA current loop driver powered by a 24V supply with an adjustable output controlled by a potentiometer. The circuit is essentially a voltage-to-current converter where the output current is set by the voltage across a resistor (R3) controlled by an op-amp. Key considerations include selecting appropriate op-amps and transistors, managing potentiometer tolerances, and ensuring sufficient voltage headroom for the current loop. Suggested op-amps include the LM358AP and MC33078N, with the LM324 as an alternative quad op-amp. Transistor recommendations include 2N5088, PN2222A, and 2N3904, with a Vceo rating above 24V. Potentiometer tolerance can be as high as ±20%, so trimmers are advised for fine adjustment. The resistor R3 value affects voltage drop and loop headroom; typical values range from 200Ω to 1kΩ depending on the op-amp's input voltage range. For voltage regulation, LM317 or LM7818 regulators are preferred over discrete zener-transistor circuits for stability and simplicity. Multiple identical circuits can be powered from a single supply for multi-channel applications. The design aims to provide a stable 4mA to 20mA output corresponding to the potentiometer position, suitable for PLC analog inputs and noise-immune current signaling.
Generated by the language model.

FAQ

TL;DR: Build a 4–20 mA loop from a 24 V supply using a V‑to‑I op‑amp stage; potentiometers can vary 20–30%, and “keep the voltage across R3 the same as the voltage on its non‑inverting '+' input.” [Elektroda, Steve Lawson, post #21663691]

Why it matters: This FAQ helps PLC and instrumentation users quickly design, choose parts, and calibrate a stable 4–20 mA driver with an adjustable pot.

Quick Facts

How does the op‑amp 4–20 mA driver actually work?

It’s a voltage‑to‑current converter. The op‑amp forces the voltage across R3 to match its non‑inverting input (Vin+). Loop current I = Vin+/R3. Select R3, then choose R4–R6 to generate Vin+ that maps your pot travel to 4–20 mA. “The op‑amp will keep the voltage across R3 the same as the voltage on its non‑inverting '+' input.” [Elektroda, Steve Lawson, post #21663691]

Which op‑amp should I pick for a 24 V loop?

Use LM358 for simple single‑supply designs. For four channels, LM324 is convenient and designed for single‑supply with inputs/outputs reaching ground. That eases low‑end compliance and calibration. [Elektroda, Steve Lawson, post #21663699]

Can I use MC33078N instead of LM358/LM324?

Yes, it can work. A datasheet review indicated it meets the needed ranges for this circuit. Verify common‑mode limits against your chosen R3 to maintain regulation. [Elektroda, Steve Lawson, post #21663695]

What transistor should I use in the loop driver?

Pick a high‑beta NPN such as 2N5088. PN2222A or 2N3904 also work. Ensure Vceo exceeds 24 V, preferably 30 V, for margin. “Use a high beta transistor.” [Elektroda, Steve Lawson, post #21663691]

How do I size R3 and what headroom do I need?

At 20 mA, R3 drops 20 mA × R3. With R3 = 1 kΩ, that’s ~20 V, leaving ~4 V from a 24 V supply for wiring, sensor, and transistor. Reduce R3 to increase loop headroom. [Elektroda, Steve Lawson, post #21663697]

What’s the lowest R3 I can use with MC33078N?

Respect its minimum common‑mode input voltage. Keep about 2 V across R3 for regulation. That implies ~500 Ω minimum at 20 mA. Going lower risks loss of control. [Elektroda, Steve Lawson, post #21663697]

How do I map a potentiometer to exactly 4–20 mA?

Add trimmers to the reference network (R4–R6). Use one trimmer to set 4 mA at one end and another to set 20 mA at the other. Pot tolerance can be 20–30%, so trim is essential. [Elektroda, Steve Lawson, post #21663691]

Are cheap ±20% pots repeatable enough?

Tolerance affects nominal resistance, not the position repeatability. A 10 kΩ ±20% pot may measure 8–12 kΩ total, yet its wiper is proportionally consistent. Calibrate endpoints with trimmers. [Elektroda, Steve Lawson, post #21663701]

How do I power multiple 4–20 mA channels from one supply?

Use one supply sized for worst case: channels × 20 mA plus the circuits’ quiescent current. For four channels, budget at least 80 mA plus overhead. A quad LM324 simplifies layout. [Elektroda, Steve Lawson, post #21663699]

Is 4–20 mA really less “jumpy” than 0–10 V?

Current loops tolerate wiring resistance and contact aging better. Keep extra headroom for noise and corrosion. Ensure your loop voltage can cover wiring drops and device compliance. [Elektroda, Steve Lawson, post #21663697]

How can I stabilize an unstable input supply for the loop?

Regulate it. Use LM7818 or an LM317 set near 20 V. They provide tighter control and fewer parts than a zener with a pass transistor like 2N3055. [Elektroda, Steve Lawson, post #21663703]

What’s the simplest LM317 parts count to set a fixed voltage?

Two resistors set the output voltage. You can swap one resistor for a trimmer to fine‑tune. Keep wiring short and add standard bypass capacitors per datasheet. [Elektroda, Steve Lawson, post #21663705]

How do I compute an example 4–20 mA range?

Example: R3 = 1 kΩ; choose R4–R6 so Vin+ spans 4–20 V. That yields 4–20 mA (I = Vin+/R3). Verify headroom: R3 drops up to ~20 V at 20 mA, leaving ~4 V from 24 V. [Elektroda, Steve Lawson, post #21663697]

How many op‑amps and transistors per loop do I need?

Use one op‑amp channel and one NPN transistor per 4–20 mA loop. For four loops, a single LM324 covers all op‑amp channels. [Elektroda, Steve Lawson, post #21663699]

Any quick steps to calibrate 4 mA and 20 mA?

  1. Set the 4 mA trimmer so loop current reads 4.00 mA with the pot at its low end.
  2. Set the 20 mA trimmer so current reads 20.00 mA at the high end.
  3. Repeat steps 1–2 once more to converge. [Elektroda, Steve Lawson, post #21663691]

What’s an edge case that can break regulation?

If R3 is too low with an op‑amp requiring ≥2 V common‑mode at its inputs, the loop loses control near 4 mA. Keep R3 high enough. [Elektroda, Steve Lawson, post #21663697]
Generated by the language model.
ADVERTISEMENT