Ground, References, and Measurement Gotchas
Why 'Ground' Is Not Magic
Why it matters
“Ground” is just a reference point. Understanding this prevents measurement errors, floating circuits, and mysterious bugs.
The idea
What Is Ground?
Ground is just a reference point — voltage is always measured relative to something.
- In circuits, ground is usually 0V (the negative terminal of your power supply)
- It’s not “magic” — it’s just a convenient reference
- All voltages are measured relative to ground
Common Ground
All components in a circuit must share the same ground:
- ESP32 ground → power supply ground → sensor ground
- If grounds aren’t connected, the circuit won’t work
- This is the #1 cause of “it works on the breadboard but not in the enclosure”
Measurement Gotchas
- Floating measurements: If a circuit isn’t powered, multimeter readings are meaningless
- AC vs DC: Multimeters have separate modes — use DC for battery/microcontroller circuits
- Probe placement: Voltage is measured across components (parallel), current is measured through (series)
Why It Matters
Many bugs come from:
- Missing ground connections
- Measuring voltage with circuit powered off
- Using AC mode instead of DC mode
- Not understanding that voltage is relative
Demo
Ground is a concept, not a demo. Review this before troubleshooting circuits.
Key takeaways
- Ground is just a reference point (usually 0V)
- All components must share the same ground
- Voltage is always measured relative to ground
- Missing ground connections cause mysterious bugs
Going deeper
In AC power systems, ‘ground’ refers to earth ground (literally connected to the earth). In DC circuits, it’s just the negative terminal. In mixed-signal systems (analog + digital), you might have separate analog ground and digital ground connected at a single point to reduce noise coupling.
Math details
Voltage is always relative:
V_AB = V_A - V_B
If B is ground (0V):
V_AB = V_A - 0 = V_A
So "voltage at point A" means "voltage relative to ground"
Example:
Battery: 3.7V (positive terminal relative to negative)
ESP32: VCC = 3.3V (relative to GND pin)
If ESP32 GND connects to battery negative:
VCC pin = 3.3V relative to battery negative
Battery positive = 3.7V relative to battery negative
Difference = 0.4V (this is why you need a regulator!)
Implementation
Ground Checklist
- Verify all components share the same ground
- Check ground connections with multimeter continuity mode
- Use DC mode (not AC) for battery/microcontroller measurements
- Measure voltage across components (parallel), current through (series)
- Power on the circuit before measuring
Troubleshooting
Symptom: Circuit doesn’t work, but voltages look correct
Check: Is ground connected? Use continuity mode to verify.
Symptom: Readings jump around randomly
Check: Is circuit powered? Are you using DC mode?