Why 4-20mA Became the Industrial Standard
Voltage signals - 0–5V, 0–10V - seem simpler, but they degrade over long cable runs. Resistance in the cable creates a voltage drop that the receiving device cannot distinguish from a real low reading. In a factory where sensor cables run 50–200 metres through conduit, this is a persistent source of error.
Current loops solve this by transmitting the measurement as a current level, not a voltage. The current is the same at the source end and the receiving end regardless of cable resistance. The 4–20mA range is not arbitrary: 0mA is unused so that a broken wire or disconnected sensor registers as 0mA - below the 4mA floor - and can be detected and alarmed immediately.
This makes 4-20mA intrinsically fail-safe: a healthy transmitter producing 4mA (0% of range) looks different from a dead or disconnected transmitter at 0mA. The control system or PLC knows the difference.
2-Wire vs 4-Wire Configurations
2-wire (loop-powered) transmitters draw their operating power from the loop current itself. The transmitter modulates the current between 4mA and 20mA to encode the measurement. Because it runs on 4mA minimum, the transmitter must consume less than 4mA to function - this limits processing power but suits simple sensors: pressure transducers, temperature transmitters, level sensors.
4-wire transmitters have separate power and signal connections. Two wires supply 24VDC power; two wires carry the 4–20mA signal. This configuration supports sensors with higher power demands - analysers, ultrasonic level meters, gas detectors - but requires a dedicated power supply at the field junction box.
| Configuration | Wires | Best for | Limitation |
|---|---|---|---|
| 2-wire (loop-powered) | 2 | Pressure, temperature, level sensors | Low transmitter power budget (<4mA self-consumption) |
| 4-wire (separately powered) | 4 | Analysers, ultrasonic, gas detectors | Needs field power supply; more complex wiring |
Failure Modes in Mining and Manufacturing Environments
Harsh industrial environments attack sensor wiring at every joint and termination. The most common failure modes seen in the field:
- ›Moisture ingress at cable gland entry points - accelerated by thermal cycling (day/night temperature swings) that pump air into conduit; leads to corrosion at terminals and current leakage that shifts readings
- ›Vibration damage - cyclic mechanical stress cracks conductor insulation at bends and terminations; common near pumps, compressors, and conveyor drives
- ›EMI from variable frequency drives (VFDs) - VFDs are everywhere in modern plants and generate significant high-frequency electrical noise; unshielded 4-20mA cables running parallel to VFD power cables will pick up this interference
- ›Ground loops - when the sensor and the receiving device are grounded at different points in the facility, a voltage difference between ground points drives parasitic current through the signal loop, shifting the reading
- ›Corrosion at screw terminals - stainless steel screws with copper cable lugs in a damp environment create galvanic corrosion; high-resistance joints introduce signal errors
Wiring Practices That Prevent Failures
The goal is to isolate the signal cable from mechanical stress, moisture, and electromagnetic interference simultaneously.
- ›Use shielded twisted-pair cable rated for the environment (mine-spec armored cable for underground, oil-resistant for outdoor surface installations); the twist reduces magnetic field pickup; the shield blocks electric field interference
- ›Ground the cable shield at one end only - typically the control panel end; grounding both ends creates a ground loop through the shield itself; leave the field end floating or use a drain resistor
- ›Route signal cables in separate conduit from power cables; if they must cross, cross at 90 degrees to minimise inductive coupling; never run 4-20mA signal cable alongside a VFD output cable
- ›Use IP68-rated cable glands with strain relief at every cable entry point; the gland seals against moisture and prevents vibration-induced movement at the conductor termination
- ›Crimp ferrules onto stranded conductors before inserting into screw terminals; bare stranded wire deforms under screw pressure and individual strands can contact adjacent terminals
- ›Install ferrite chokes on signal cables near VFDs and motors; these suppress high-frequency noise without affecting the DC-to-50Hz signal of interest
Connecting 4-20mA to a Microcontroller ADC
Microcontrollers (STM32, ESP32, Arduino) read voltage, not current. A precision resistor converts the loop current to a voltage the ADC can read: 250Ω gives 1–5V for a 4–20mA signal, which fits inside a 5V ADC range. For a 3.3V ADC (most modern MCUs), use 162Ω for approximately 0.65–3.24V, leaving headroom below the ADC rail.
ADC resolution matters. A 12-bit ADC across 3.3V resolves to 0.8mV per count. A 250Ω sense resistor gives 4V full-scale swing for the 4–20mA range, which means about 5000 usable counts across the span - roughly 0.02% resolution, more than adequate for most process variables.
Apply a first-order IIR (infinite impulse response) low-pass filter in firmware to suppress ADC noise: filtered = 0.9 × filtered + 0.1 × new_sample. The 0.1 coefficient gives a time constant of 10 samples. For a fast-changing variable (pressure transient), increase to 0.3; for a slow variable (temperature), decrease to 0.05.
Always protect the ADC input with a clamp diode or TVS diode to the ADC reference voltage. A wiring fault or sensor failure can push the loop voltage beyond the ADC input range and destroy the pin permanently.
Commissioning Checklist
Before connecting the transmitter to the receiving system, verify the loop on the bench with a precision multimeter in current mode (mA) in series with the loop. Apply power and confirm the transmitter reads 4.0mA at its minimum input (0% range) and 20.0mA at full-scale. Any deviation points to a calibration issue in the transmitter itself, not the wiring.
After installation, loop the field by disconnecting the transmitter and applying a known calibrated loop current (use a loop calibrator or a precision current source) to verify the signal reaches the control panel without degradation. A 4.0mA signal at the transmitter that reads 4.1mA at the panel indicates a ground loop or leakage current problem in the cable.