Design overview
Key specifications and signal flow at a glance
Block diagram
The MCU sets a DAC voltage which the op-amp converts into a precise loop current. A sense resistor closes the feedback loop; the same two wires carry power and signal.
Bill of materials
Select the lines you need and send them to RFQ in one click
Tick the lines you need, then copy the list, download a CSV, or open the RFQ form. Part numbers are common catalogue items; equivalents are acceptable.
| # | Function | Suggested part | Key spec | Qty | |
|---|---|---|---|---|---|
| 1 | DAC | DAC7311IDCKT | 12-bit, SPI, SC-70-6 | 1 | |
| 2 | Op-amp | OPA333AIDBVT | Zero drift, 2.7-5.5 V, SOT-23-5 | 1 | |
| 3 | LDO | MCP1700T-3302E | 3.3 V, 200 mA, SOT-23 | 1 | |
| 4 | MOSFET | BSS138 | N-channel, 50 V, SOT-23 | 1 | |
| 5 | TVS diode | SMBJ36CA | 36 V bidirectional, SMB | 2 | |
| 6 | MCU | STM32G031K8T6 | Cortex-M0+, 64 KB flash, 32-pin | 1 | |
| 7 | Sense resistor | CRCW2512100RFKEG | 100 Ohm, 0.1%, 2512 | 1 | |
| 8 | Resistor | CRCW040210K0FKED | 10 kOhm, 1%, 0402 | 12 | |
| 9 | Decoupling cap | GRM155R71C104KA88D | 100 nF, X7R, 25 V, 0402 | 8 | |
| 10 | Voltage reference | LM4040A30IDBZ | 3.0 V, 0.1%, SOT-23 | 1 |
Design notes
Engineering choices and common pitfalls
Loop-powered operation
A two-wire transmitter draws its own supply from the loop. The total current must never fall below 4 mA, which sets the minimum quiescent current for all electronics. Choose an LDO and op-amp with low quiescent current.
V-I converter accuracy
The V-I stage relies on a stable sense resistor and a low-offset op-amp. A 0.1% 2512 resistor and a zero-drift amplifier keep drift low over temperature. Avoid trace resistance errors by using Kelvin sensing at the resistor.
Protection on the loop
Industrial loops can pick up surges and reversed wiring. Place a bidirectional TVS across the loop terminals and a series diode for reverse protection. Keep the TVS capacitance low enough not to distort the analog signal.
Calibration and trim
Use the 4 mA point as zero and the 20 mA point as full scale. A precision reference improves repeatability. Store calibration constants in flash rather than relying on trim potentiometers that can drift.
Frequently asked questions
What is a 4-20 mA transmitter?
A device that converts a sensor measurement into a current between 4 and 20 mA. The 4 mA live zero makes broken wires easy to detect.
Why use a two-wire loop?
Power and signal share the same two wires, reducing wiring cost in industrial installations. The transmitter must operate within the 4 mA floor.
How accurate can a 4-20 mA loop be?
With a 12-bit DAC, a 0.1% sense resistor and a zero-drift op-amp, +/-0.5% of full scale is achievable over a wide temperature range.