Ground, References, and Measurement Gotchas
Why Zero Volts Is a Choice, Not a Place
The sensor board on your bench looks fine. Its LED blinks, the ESP32 prints logs, and the ADC pin reads a neat 2.0 V when you test the sensor by itself. Then you plug only the signal wire into the ESP32 board and the numbers go wild: 0.1 V, 3.4 V, 1.7 V, then a brownout reset. Nothing is wrong with the ADC. Nothing is wrong with the sensor.
The two boards simply do not agree on what zero means.
Voltage is not a property of a single point. Voltage is a difference between two points. "Ground" is the node you decide to call zero so the rest of the circuit has a common language. That word is useful, but it is also dangerous, because people use it for several different things: circuit common, chassis metal, earth safety ground, oscilloscope shell, ESD strap, power-supply negative. Mix those up and you get floating inputs, wrong measurements, noisy sensors, and sometimes a short made by your own probe.
By the end, you can
- Explain why voltage is always measured between two nodes, even when people say "voltage at a point"
- Distinguish circuit common, earth/chassis ground, scope ground, and ESD ground
- Predict what happens when two communicating boards do not share a reference
- Choose correct DMM and oscilloscope probe placement for voltage, current, resistance and continuity checks
- Debug missing-ground symptoms without creating a short through the measuring instrument
Intuition first
Think of voltage like height. Saying "this shelf is 1 meter high" is incomplete until you know what it is 1 meter above: the floor, the workbench, the street outside, or sea level. Electrical voltage works the same way. A node can be 3.3 V above one reference and 1.1 V above another reference at the same instant. The number is only meaningful after you name the second point.
Ground is that named point. It is not a magic sink for electrons and it is not always the literal earth. On a little battery circuit, ground is usually the battery negative node. On a bench supply, it is usually the black output terminal. On a mains-powered oscilloscope, the probe's ground clip is usually tied through the scope to the building earth. Same word, different hardware consequences.
Here is the mental model that saves you: voltage readings are agreements between two probes. The red probe asks "where is this node?" The black probe answers "relative to me." Move the black probe and the number can change without the circuit changing at all.
When a schematic labels one node GND, it is saying "let this node be ." Then "the voltage at A" is shorthand for:
The ground label is a convention. The copper is real.
The four grounds that get confused
Circuit common
Circuit common is the local reference node for the circuit. On a single breadboard, it is usually the blue rail or the battery negative. It becomes ground only because you connect every part that needs the reference to that same node.
Earth and chassis
Earth ground is a safety reference tied to the building wiring and, through it, the literal earth. Chassis ground is the metal enclosure or frame. In mains-powered equipment they are often bonded together so a fault current trips a breaker instead of energizing the case. In a battery robot or a USB gadget, earth may not exist at all inside the product.
Oscilloscope ground
Most benchtop oscilloscopes connect the probe ground clip to the scope chassis and to earth through the power cord. That means the little ground clip is not floating. Clip it to a live node that is not meant to be earth and the scope may short that node to earth for you.
ESD ground
An antistatic strap is also called ground, but it has a different job. It slowly bleeds charge from your body through resistance so you do not zap a MOSFET gate. It is not a power return path and it is not a signal reference.
A signal needs a return path
A signal wire carries information only relative to a reference. If a sensor outputs 2.0 V, that means "2.0 V above the sensor's own ground." An ESP32 ADC pin does not know or care what the sensor meant locally. It sees the voltage of that pin relative to the ESP32 ground.
So if the sensor ground floats 1.2 V above the ESP32 ground, the ESP32 sees:
The sensor still tells the truth locally. The ESP32 reads a different truth because the reference moved.
The ESP32 does not see the sensor's local 2.0 V. It sees signal plus the floating ground offset.
Tie the grounds together and the offset collapses to zero. The signal now has a return path and both boards use the same reference. This is why a UART, I2C sensor, SPI board, analog sensor, PWM input, or enable line almost always needs at least two connections: the signal and the reference. Differential buses like CAN and Ethernet are more tolerant because the receiver looks at the difference between two signal wires, but even those systems still need controlled common-mode range, protection, and sane return paths.
A sensor says its output is 1.8 V. Its ground is floating 0.9 V above the microcontroller ground. What does the microcontroller ADC pin see?
-
The 1.8 V number is local to the sensor. The ADC uses the microcontroller ground as its reference.
-
The ground offset changes the reference; it does not erase the signal.
-
Correct. The ADC sees 1.8 V plus the 0.9 V ground offset, so the pin is at 2.7 V relative to the microcontroller ground.
-
An untied ground can produce random or unsafe readings, but the pin voltage is not automatically zero.
Measuring without lying to yourself
The meter is honest only if you ask the right question.
Voltage is measured across
Put the meter in DC volts. Put the black probe on the reference node you care about and the red probe on the node you want to know. Across the battery, across a resistor, across a regulator output, across a sensor signal and ground: voltage is a two-point measurement.
If the black probe is on the wrong reference, the reading may still be precise, but it will answer the wrong question.
Current is measured through
To measure current with a DMM, the meter must become part of the path. You open the circuit and insert the meter in series so the current flows through it. Put a meter in current mode across a battery or power rail and you have built a short with a display attached. That is how fuses inside meters blow.
Resistance and continuity are powered off checks
Resistance mode injects a small current from the meter. Continuity mode does the same and beeps if the resistance is low enough. Use them on unpowered circuits. On a powered circuit they can lie, and in the worst case the circuit drives voltage back into the meter's ohms circuit.
Continuity is perfect for ground debug: with power off, put one probe on the supply negative or known GND pin, then touch the other probe to every ground point that should be common. If one point does not beep, you have found a missing return path.
You want to know whether an ESP32 ground pin and a sensor ground pin are actually connected on an unpowered breadboard. Which measurement is the right first check?
-
Correct. With power off, continuity or resistance tells you whether those two nodes are the same copper network.
-
Current mode across nodes is a shorting measurement. It is not how you check continuity.
-
That may show a voltage difference when powered, but it is not the safest first check for an unpowered wiring question.
-
For DC circuit common, AC mode is the wrong tool.
The oscilloscope trap
A DMM is usually floating from earth, at least within its rating. A benchtop scope is usually not. The BNC shells and probe clips are tied together and often tied to earth. That is convenient when measuring small low-voltage circuits referenced to earth, but it becomes a trap when you clip the ground lead to something that is not supposed to be earth.
The rule is simple: before clipping scope ground, ask where that clip is connected inside the instrument. On many scopes, every channel's ground clip is the same node. Clipping channel 1 ground to one side of a resistor and channel 2 ground to the other side does not measure across the resistor. It shorts the two sides together through the scope.
If you need a voltage between two non-ground nodes, use the right method: a proper differential probe, an isolated instrument rated for the job, or two channels with math subtraction only when both probe grounds can safely attach to the same circuit common. Lesson 26 will go deeper on common-mode limits and CMRR.
You clip a benchtop oscilloscope ground lead to a node in a powered circuit. What must be true for that to be safe?
-
Correct. The ground clip is usually bonded to the scope's ground system, so the clipped node must be safe to tie there.
-
Voltage magnitude alone is not enough. A low-voltage node can still be a switching node or a supply midpoint that must not be shorted to earth.
-
The high impedance is between probe tip and ground. The ground clip itself is a low-impedance connection.
-
AC coupling changes the signal path at the input. It does not isolate the ground clip.
A practical ground-debug ladder
When a circuit behaves as if it has a mind of its own, do not start with firmware. Start with references.
- Power off continuity: every module ground that should be common must beep to the supply negative or board GND pin.
- Power on DC check: measure each rail relative to its own intended ground.
- Ground difference check: with the system powered, measure between two "grounds" that you assumed were the same. A large DC or AC difference is a clue.
- Signal plus reference: measure the signal relative to the receiver's ground, not only relative to the transmitter's ground.
- Scope safety check: before attaching the ground clip, decide whether that node can be tied to the scope ground.
Why ground loops are real, but not magic either
A ground loop is not bad because it is shaped like a loop. It is bad when two or more return paths let unwanted current flow through a conductor that you are also using as a signal reference. That current drops voltage across the real resistance and inductance of the conductor, so different parts of the circuit no longer agree on zero. Audio systems hear it as hum. Fast digital systems see it as jitter or false edges. Motor systems see it as sensor noise.
The cure is not a superstition like "always star ground" or "always split analog and digital ground." The cure is to control where return current flows. Keep the signal and its return close, avoid sharing dirty power current with quiet measurement references, and connect domains at a point where the unavoidable current will not corrupt the measurement. In simple breadboard circuits that usually means one solid common rail. In real PCBs it means reference planes, short loops, and deliberate partitioning.
Key takeaways
- Voltage is always a difference: V_AB = V_A - V_B.
- Ground is the reference node you choose, not a magic place where electricity disappears.
- A signal wire without a shared reference gives the receiver an undefined or shifted voltage.
- Circuit common, earth/chassis, scope ground and ESD ground are different ideas that often share a name.
- DMM voltage goes across; DMM current goes through; resistance and continuity are powered-off checks.
- A benchtop scope ground clip can short a circuit node to earth or to another channel's ground clip.
A node called A is 4.8 V above node B. Node B is 1.1 V above the circuit common. What is node A relative to circuit common?
Show worked solution
relative to common is . The phrase "voltage at A" only becomes meaningful after you name the reference.
You connect a DMM across a resistor and read 0.6 V. The resistor value is 100 ohms. What current flows through the resistor, and do you need to put the meter in current mode to know it?
Show worked solution
Ohm's law gives , or 6 mA. You do not need to put the meter in current mode if you can safely measure voltage across a known resistance. That is often safer than opening the circuit and inserting the meter.
You want to measure the voltage across a 0.05 ohm current-sense resistor on the high side of a 24 V motor rail using a benchtop oscilloscope. Why is clipping one probe ground to each side of the resistor wrong, and what should you use instead?
Show worked solution
On most benchtop scopes the two probe ground clips are the same node internally and are often tied to earth. Clipping them to opposite sides of a high-side resistor shorts those two sides together through the scope ground system. Use a proper differential probe, an isolated instrument rated for the common-mode voltage, or a single safe ground reference with a measurement method that stays within the scope's limits.
Ground is not a spell you write on a schematic. It is the reference agreement that lets every voltage number mean something. Once you see that, many beginner mysteries become ordinary bookkeeping: the sensor was floating, the meter asked the wrong question, the scope clip became a wire, the breadboard rail was not actually common.
Next, we put charge into a component that makes time visible: the capacitor.