Your Raspberry Pi reboots itself at 3am. The garden camera drops offline when it’s windy. The LED strip flickers if you walk past the shelf it’s mounted on.
You’ve checked the power supply. You’ve checked the code. You’ve read the forum threads about undervoltage warnings and bought a beefier adapter. Still happens.
It’s probably the barrel jack.
A connector family that isn’t a family
That little cylindrical DC plug — the one on almost every wall wart, router and hobby board — isn’t one connector. It’s a loose collection of sizes that all look identical from two feet away.
The common ones are 5.5 × 2.1 mm and 5.5 × 2.5 mm. Same outer diameter, different pin bore. A 2.1 mm socket won’t take a 2.5 mm pin, but the reverse goes in happily: put a 2.5 mm socket on a 2.1 mm pin and it feels connected. It’s touching a fraction of the contact area it should be, and it’ll work perfectly right up until something vibrates.
Then there’s 3.5 × 1.35 mm, 4.0 × 1.7 mm, 5.5 × 2.8 mm and a handful of others. Nothing is marked.
Three more things wrong with it
Nothing holds it in. A barrel jack stays put on spring friction alone. No thread, no latch, no click. Tug the cable, or let it hang off a shelf edge for six months, and it works its way out. Often not all the way out, which is worse — an intermittent contact resets your board over and over instead of just failing cleanly and telling you what’s wrong.
Polarity isn’t standardised. Centre-positive is the common convention. Centre-negative exists, mostly on older guitar pedals and some regional adapters. Plug a centre-negative supply into a centre-positive device.
It runs hot under load. The contact patch is small and the spring pressure is light. At half an amp that’s irrelevant. At the 4 or 5 A a decent LED run wants, contact resistance turns into heat, heat oxidises the contact, and oxidation raises resistance further. It’s a feedback loop, and it’s slow, which is exactly why the failure shows up months after you installed the thing and stopped thinking about it.
What to use instead
For anything outdoors, anything load-bearing, or anything you’d be annoyed to have to reboot, use a circular connector with a locking mechanism — the M12-style or aviation-style connectors that industrial equipment has used for decades.
They fix all four problems at once. Threaded or bayonet coupling means the joint physically can’t vibrate loose. Keyed shells mean it only goes in one way, so polarity is decided by geometry instead of by your memory. The contacts are proper pin-and-socket pairs rated for real current. And most of them are sealed, which starts mattering the moment the thing lives outside.
The trade-off is cost and homework. Circular connectors come in a lot of shell sizes and pin counts, and you have to match the shell to your cable diameter and the pin count to what you’re actually running. Manufacturers like Verchil publish shell size, pin count and current rating per contact for each series, and that’s the table you want to read before ordering rather than after.
If a rebuild isn’t happening this weekend
Two things help immediately and cost nothing.
Strain-relieve the cable. A zip tie anchoring it to the enclosure, an inch back from the plug, takes almost all the mechanical stress off the joint. This alone fixes a surprising number of “random” reboots.
Buy plugs and sockets as a matched pair from one source. Mixing a random plug with a random socket is where most size mismatches come from in the first place.
Neither is a real fix. Both will get you through the winter.
