Common Ground Pitfall: Why Servos & LEDs Go Crazy Without Shared GND
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!
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.
- Always link GND_1 (MCU) to GND_2 (external 5V/12V supply) with a dedicated black ground wire — NEVER tie the positive +5V/+12V rails together!
| Symbol | Component | Real-World Engineering Tip |
|---|---|---|
| GND_BUS | Common 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.