OHMYARD

DISCOVER · EXPERIMENT · BUILD

TRACK 9 · MAKER PITFALLS & SENSORS45/52
NOV 27, 2026
14:20:00
ESP32 / ARDUINOUSB 5V SUPPLYSIG: 3.3V PWMGND_1 (REF A)SERVO / STRIP⚠ RANDOM JITTER!EXT PSU5.0 VGND_2 (REF B)❌ MISSING COMMON GND! (CLICK TO CONNECT)
Drag or WASD to pan · Q / E to rotate · Scroll to zoom

Common Ground Pitfall: Why Servos & LEDs Go Crazy Without Shared GND

✓ Reviewed by Jason Guo (OhmYard Lab)· IEC & Datasheet Verified· Updated Nov 27, 2026
QUICK ENGINEERING ANSWER (TL;DR)

Voltage is always a difference between TWO points: your ESP32's 3.3 V PWM signal only means '3.3 V' relative to the ESP32's own GND pin. If a servo or LED strip runs on a separate 5 V/12 V power supply without a black wire linking both GNDs together, the signal has no return path and floats wildly!

V_signal_seen = V_GPIO − (V_GND_2 − V_GND_1) ⇒ Connect GND_1 ≡ GND_2 = 0.0 V

Without a common ground, V_GND_2 floats randomly relative to V_GND_1, causing the servo or WS2812B receiver to misread clean PWM pulses as random noise.

SymbolComponentReal-World Engineering Tip
GND_BUSCommon Ground Reference Wire (GND)Use star-grounding for high-current motors so motor current spikes don't inject noise into sensitive analog sensors.

Real-World Bench Scenario: 90% of 'my WS2812B strip flickers random rainbow colors' or 'my servo twitches nonstop' forum posts are fixed in 5 seconds by connecting one black jumper from external PSU − to Arduino/ESP32 GND.

Bench Challenge: Disconnect the black Common GND wire to see the servo twitch erratically, then reconnect it to lock the signal rock-solid.

Frequently Asked Questions

Why must I connect the grounds (GND) of my Arduino/ESP32 and an external 5V or 12V power supply?

You must connect the grounds (GND) of your microcontroller and external power supply so both devices share the exact same 0 V reference level and complete the signal return loop. Without a common ground, the external device cannot tell whether a 3.3 V or 5 V signal wire is HIGH or LOW, causing erratic twitching or flickering.

Continue Exploring Related 2.5D Labs
← All 52 Labs Hub26. WS2812B LED Strip →27. SG90 Servo PWM →1. Closed Loop & Faults →

OHMYARD · ALL 52 INTERACTIVE LABS & SIMULATORS

1. Closed Loop & Faults
/closed-loop
2. Ohm's Law & Thermal
/ohm-law
3. Series vs Parallel
/series-parallel
4. X-Ray Breadboard
/breadboard-simulator
5. LED Resistor & E24
/led-resistor-calculator
6. Voltage Divider & Load
/voltage-divider
7. Multimeter Trainer
/multimeter-simulator
8. RC & Oscilloscope
/rc-oscilloscope
9. 555 Timer Pulse Lab
/555-timer
10. Diode & Rectifier
/diode-rectifier
11. Transistor & Flyback
/transistor-switch
12. PWM Dimmer & Fan
/pwm-dimmer
13. Op-Amp Comparator
/opamp-comparator
14. H-Bridge & Shoot-Through
/h-bridge-motor
15. Buck vs LDO Power
/buck-converter
16. Digital Logic Gates
/logic-gates
17. Resistor Color Code
/resistor-color-code
18. ESP32 Pinout Guide
/esp32-pinout
19. Arduino Uno Pinout
/arduino-uno-pinout
20. Zener Voltage Clamp
/zener-diode-regulator
21. I2C Pull-Up Bus
/i2c-pullup-bus
22. Battery Life & Sleep
/battery-life-calculator
23. PCB Trace Width
/pcb-trace-width
24. Wheatstone Bridge
/wheatstone-bridge
25. Raspberry Pi GPIO
/raspberry-pi-pinout
26. WS2812B LED Strip
/ws2812b-led-strip
27. SG90 Servo PWM
/servo-pwm-control
28. HC-SR04 Ultrasonic
/ultrasonic-hcsr04
29. Opto Relay Module
/relay-optocoupler
30. 3.3V ⇄ 5V Shifter
/logic-level-shifter
31. 2N2222 Pinout
/2n2222-pinout
32. SMD Resistor Code
/smd-resistor-code-calculator
33. Distribution Board
/inside-distribution-board
34. Wire a 3-Pin Plug
/wire-a-three-pin-plug
35. Power Strip Overload
/power-strip-overload
36. RCD & Earthing Safety
/rcd-gfci-earth-leakage
37. Live & Neutral Wires
/mains-live-neutral
38. Inside an MCB Breaker
/mcb-trip-breaker-anatomy
39. Why Did It Trip?
/why-did-it-trip
40. Two-Way Staircase Switch
/two-way-staircase-switch
41. AC Transformer Core
/ac-transformer-step-down
42. Induction Hob & Eddies
/induction-cooktop-eddy
43. Kettle Bimetal Thermostat
/thermostat-bimetal-kettle
44. Rooftop Solar & Grid
/home-solar-inverter-grid
45. Common Ground Pitfall
/floating-ground-common-gnd
46. OLED SSD1306 I2C Lab
/oled-ssd1306-i2c-wiring
47. Stepper A4988 Vref Lab
/stepper-a4988-vref-calculator
48. 18650 & TP4056 Lab
/lipo-18650-tp4056-protection
49. DHT22 vs BME280 Lab
/dht22-bme280-sensor-wiring
50. Rotary Encoder & Bounce
/rotary-encoder-debouncing
51. Soil Moisture & Corrosion
/capacitive-soil-moisture-adc
52. ESP32 vs S3 vs C3 Lab
/esp32-s3-c3-pinout-comparison