Grounding, Shielding, Ground Loops and Common-Mode Noise
You connect a thermocouple amplifier's output to a data logger and a hum of several millivolts appears. Unplug the laptop charger and it shrinks; touch the cable and it grows. Nothing in the circuit diagram explains it, because the problem is in the wires the diagram leaves out: the protective-earth conductors of two instruments, the stray capacitance to mains wiring, and the magnetic field of a nearby transformer. This lesson names the coupling paths, explains ground loops and common-mode noise, and gives the cures: differential and isolated measurement, shielding, twisting and a deliberate grounding plan.
Four ways interference gets in
| Path | Mechanism | Grows with | Cure |
|---|---|---|---|
| common impedance (ground loop) | a current from elsewhere flows in a conductor that is also part of your measurement return | loop current, shared resistance and inductance | break the loop (one ground path, isolation), or measure differentially |
| capacitive (electric field) | a varying voltage nearby couples through stray capacitance into a high-impedance node | , capacitance, node impedance | electrostatic shield connected to the reference, lower impedance, distance |
| inductive (magnetic field) | a varying field through the loop area of the measurement wiring induces an emf | , loop area | twisted pairs, small loops, distance, magnetic shielding at low frequency |
| radiated / conducted RF | radio-frequency energy picked up by cables and rectified in amplifier inputs | field strength, cable length | filtering at entry, shielded cable bonded at both ends, ferrites |
Ground loops
Two mains-powered instruments, each with its chassis connected to protective earth, and a signal cable whose screen or ground wire joins their grounds: the protective-earth wiring and the cable ground form a loop. Magnetic fields from building wiring induce a voltage around it, and leakage currents (filters, power supplies) flow in it. Part of the loop is the measurement's own return conductor, so a voltage adds in series with the signal of a single-ended measurement: through of cable screen is , more than a hundred times a type K thermocouple's per kelvin.
Never cure a ground loop by removing a protective earth (lifting the earth pin of an instrument or using a "cheater" adapter): the earth is what makes a fault safe. Use instead:
- Differential inputs: measure across the sensor, so the ground voltage appears as common mode and is rejected by the CMRR.
- Isolation: a battery-powered or isolated-input instrument, an isolation amplifier, or a digital isolator, so there is no conductive loop at all.
- Single-point (star) grounding of a system's signal grounds, with power returns kept separate from signal returns.
CMRR is only as good as the balance of the source and cable: an impedance imbalance in one lead, against the common-mode impedance of each input to ground (cable capacitance), converts common mode into a differential error of about . That often limits the effective rejection more than the amplifier does.
Worked example: hum in a data-logging setup
Given: a ground loop that puts of between the sensor's ground and the logger's ground; a logger with differential inputs of CMRR; a sensor with in one lead (a protection resistor) and of cable capacitance per input.
Find: the hum in a single-ended and in a differential measurement, and the effective CMRR with the imbalance.
Solve:
Check: the imbalance turns an instrument into a system: of hum, still times better than single-ended but worse than the datasheet promises. Balance the leads (put matching resistors in both) or reduce the cable capacitance. The program adds the capacitive and magnetic coupling estimates:
import numpy as np
w = 2 * np.pi * 50.0 # mains frequency as the interference source
# 1. Ground loop: 100 mA of 50 Hz current in a shared return of 50 mohm
V_loop = 0.100 * 0.050
print(f"ground loop: {1e3 * V_loop:.1f} mV in series with a single-ended measurement")
for cmrr_db in (60, 80, 100):
print(f" differential input, CMRR {cmrr_db} dB: {1e6 * V_loop / 10 ** (cmrr_db / 20):.3f} uV")
# 2. CMRR is spoiled by source-impedance imbalance: 10 kohm in one lead, 1 nF of cable capacitance per input
Zcm = 1 / (1j * w * 1e-9) # common-mode impedance to ground at 50 Hz (capacitive)
dR = 10e3
conv = abs(dR / (dR + Zcm)) # fraction of V_cm converted to a differential error
print(f"10 kohm imbalance with 1 nF per input: effective CMRR {-20 * np.log10(conv):.0f} dB at 50 Hz")
# 3. Capacitive (electric-field) coupling: 230 V mains wiring, 1 pF to a 10 kohm node (calculation only)
Vn = 230 * w * 1e-12 * 10e3
print(f"capacitive pickup on a 10 kohm node: {1e3 * Vn:.2f} mV; on 1 Mohm: {1e3 * 230 * w * 1e-12 * 1e6:.0f} mV")
# 4. Magnetic coupling: 10 uT at 50 Hz through a loop of 10 cm^2 vs a twisted pair (residual 0.1 cm^2)
for area_cm2 in (10.0, 0.1):
emf = w * 10e-6 * area_cm2 * 1e-4
print(f"magnetic pickup, loop {area_cm2:4.1f} cm^2: {1e6 * emf:.2f} uV")ground loop: 5.0 mV in series with a single-ended measurement
differential input, CMRR 60 dB: 5.000 uV
differential input, CMRR 80 dB: 0.500 uV
differential input, CMRR 100 dB: 0.050 uV
10 kohm imbalance with 1 nF per input: effective CMRR 50 dB at 50 Hz
capacitive pickup on a 10 kohm node: 0.72 mV; on 1 Mohm: 72 mV
magnetic pickup, loop 10.0 cm^2: 3.14 uV
magnetic pickup, loop 0.1 cm^2: 0.03 uV
Simulation. Vs is the sensor ( DC, no AC part) sitting on a remote ground g2; Vgl is the ground-loop voltage between the two grounds, at in this AC analysis. A single-ended input reads node s against the logger's ground 0: the full of hum. A differential input, E1, reads s against g2 into node d: zero hum. Slide the loop voltage.
Shielding and twisting
- Electric-field shields (braid, foil, a grounded box) intercept the displacement current that stray capacitance would inject into a node. Connect a shield to the reference of the circuit it protects, at one point, for low-frequency measurements: grounding it at both ends turns the screen into part of a ground loop. At radio frequencies, bond it all round at both ends (a connection), because there the shield's job is to carry RF currents away from the conductor.
- Magnetic fields at pass through copper shields almost unhindered (the skin depth of copper at is about ). Reduce the loop area instead: twisted pairs make adjacent half-twists cancel, and routing go and return conductors together does the same. High-permeability (mu-metal) shields help at low frequency for very sensitive sensors.
- Guarding drives a shield at the same potential as the signal conductor, so no current flows through the insulation or stray capacitance between them; it is used for picoampere measurements and high-impedance sources, and it is the idea behind the guard terminal of insulation testers (Four-Wire Resistance).
The oscilloscope is the most common ground-loop maker on the bench: its probe ground is earthed, so clipping it to a circuit that is itself earthed through another instrument closes a loop, and clipping it to a node that is not at ground potential shorts that node to earth. Use a differential probe, two channels in A − B mode for small low-frequency signals, or a battery-powered circuit (Probes).
Guided lab: make and break a ground loop
Hand calculation. A thermocouple's means of hum is of apparent temperature noise; is .
Simulation. The netlist lab and the program with your own cable lengths and imbalances.
What you would measure. Use a mains-powered scope or logger and a mains-powered signal generator set to output, connected by a BNC cable; also connect a second cable or wire between their chassis grounds (all equipment correctly earthed and unmodified). On the scope's most sensitive range, at , look at the "zero" signal: expect a few hundred microvolts to millivolts of (and harmonics), varying with the cable's routing. Move the cable to enclose a larger area near a mains cable (without touching any mains conductors): the hum changes. Then replace the generator with a cell and a divider (no earth connection): the loop disappears and the hum drops to the scope's own noise.
Hazards and safe setup. All equipment stays connected to protective earth exactly as supplied; never lift or bypass earth pins, and never open mains cords or extension leads. Signals stay at generator level.
Pitfalls
- Lifting an instrument's earth to "fix" hum.
- Grounding a cable screen at both ends for a microvolt-level low-frequency measurement.
- Trusting an amplifier's CMRR when the source leads are unbalanced.
- Running sensor cables in the same bundle as motor or mains cables.
Practice
- A sensor cable encloses near a cable that creates at . Estimate the induced voltage, and the effect of twisting (residual ).
- A differential amplifier with CMRR sees of common-mode . What is the error referred to the input?
Answer
- ; twisted, .
- .
Test yourself
The safe way to break a ground loop between two earthed instruments is
- remove one instrument's earth connection
- use a differential or isolated measurement
- add a longer cable
- ground the shield at both ends
A copper shield is most effective against
- 50 Hz magnetic fields
- electric-field (capacitive) coupling
- ground loops
- thermal EMFs
Twisting a signal pair reduces
- capacitive coupling only
- magnetic (inductive) pickup by cancelling the loop area
- the cable resistance
- the CMRR
Unequal source resistances in the two leads of a differential measurement
- improve CMRR
- convert common-mode voltage into a differential error
- have no effect
- only matter at DC