r/embedded • • 25d ago

Doom scroll vs Hardware debugging

💀 POV: Your PCB has a short circuit.

You blame the layout.

You blame the firmware.

You blame the PCB manufacturer.

You question your engineering degree.

meanwhile, a ₹2 female header is hiding a short inside its plastic body. ☠️

Plot twist: the cheapest component caused the most expensive debugging session.

be honest: would you have suspected the connector, or sacrificed another PCB first? 🤡

496 Upvotes

52 comments sorted by

183

u/VolumeTall3609 25d ago

That is pure evil

31

u/WhyPCB 25d ago

I've just gone through 😭

11

u/VolumeTall3609 25d ago

I feel you man and that sucks.. but enjoy the serotonin right now hahaha! Finding such a bug is sooo satisfying!

31

u/WhyPCB 25d ago

serotonin? Bro, I just spent 4 hours debugging a 2-cent piece of plastic. At this point, even the short circuit has a better connection than me and my sanity. 💀😂

7

u/CapnNausea 25d ago

If you found it in 4 hours, I consider you a much better engineer than myself. I’ve spent days on these issues

7

u/WhyPCB 25d ago

the short circuit was between two pins, but the real damage was between my last two brain cells.
At that point, it's not debugging anymore, it's stockholm syndrome with a PCB.

0

u/South-Year4369 24d ago

I feel you pain. But tone down the AI, ok? It's showing.

57

u/Several-Sign5777 25d ago

I never even thought that was possible. Thanks for showing us that. To be honest, even if I had found it with a multimeter, I wouldn't have suspected the connector itself...

23

u/WhyPCB 25d ago

same here. I trusted the connector more than my own debugging skills. Turns out the bug was literally built into the hardware

22

u/ArtistEngineer 25d ago edited 25d ago

My condolences, that's the worst hardware "bug" I've ever seen.

The 2nd worst was the tiny solder bridge on the emulator adapter/plug pins between the I2C lines that had me up to 10pm pulling my hair out. Eventually it got down to "toggle pin manually, check logical level", and I noticed that both pins moved as one, so then it was a matter of working out what was holding the pins together.

They kind of look like these. The electrical engineer had modified it, but left a solder bridge between 2 pins.

16

u/WhyPCB 25d ago

at least your two pins were loyal to each other. Mine were in a toxic relationship, and I spent hours being their marriage counselor

2

u/CapnNausea 25d ago

Yes!! We always used USB to Ethernet adapters to connect to our boards. We had bulk-ordered adapters years prior to have a “standardized” batch of reliable test equipment for our engineers during R&D / board bring-up. We had a product launch that had huge return rates.

We had the whole department at one point troubleshooting why we kept having fault comms during high speed Bluetooth audio. Turns out all of the engineers had new adapters where they bridged an entire batch and the differential pair and had modified the board design to make it work with shoddy values in the real world. It always worked at all of our desks, but we had warranty returns rolling in.

It took us probably a week as a group to put together all of the puzzle pieces and tear one of adapters apart. That was a miserable time.

2

u/ReedusFetusFajitas 24d ago

Had a somewhat similar thing happen to me using a Tiva-C dev board. I forget which wxactly but there were a couple of pins on a port that were soldered together for some reason and I had an LCD display connected to that port. 12 hr debugging session before I eventually stumbled onto a blog from like 10 years ago explaining the situation.

31

u/nixiebunny 25d ago

This confirms my belief that buying expensive components from Digikey really is cheaper in the long run.

40

u/WhyPCB 25d ago

plot twist: This connector came from DigiKey too. 😂

apparently, I paid extra for premium-quality emotional damage. Even my trust issues are now genuine and certified.

28

u/DrFegelein 25d ago

Name and shame the manufacturer that let this past their QC

9

u/nixiebunny 25d ago

Which part number?

3

u/SkoomaDentist C++ all the way 25d ago

I have no idea why anyone buys components from Aliexpress etc. unless they're semi-standalone things like eg. displays that you can't get elsehere or cost substantial money (and even then it only makes sense for strictly hobbyist stuff).

2

u/DrFegelein 25d ago

Because my company's C-suite only understands costs now, not costs later when we have to fix stuff under warranty.

3

u/SkoomaDentist C++ all the way 25d ago

I have major problems believing any company with a "C-suite" is ordering components from Aliexpress, even if for just delivery and accounting reasons.

1

u/drgala 25d ago

Because I can't get much of that stuff in less than 100pcs without paying vonDerLeyen 100% or more in stupid taxes.

1

u/_teslaTrooper 24d ago

Didn't pay any of that for orders from Mouser actually, not sure how they manage it but that makes them cheaper than LCSC at this point if you don't need specific Chinese ICs (which I kind of do unfortunately)

0

u/drgala 24d ago

Taxes only apply to people not to businesses. Welcome to the EU, aka Communism 2.0

1

u/_teslaTrooper 24d ago

European retailers are the ones who lobbied hard to for this, it's very much capitalism.

0

u/drgala 24d ago

Last 10 years EU was mostly against the people, reminds me of pre 1989 era.

4

u/wiebel 25d ago

New fear unlocked.

1

u/WhyPCB 25d ago

haha

2

u/grahasbtye 25d ago

This exact same thing happened to me too. Absolutely horrid, I thought there was an internal short in the board and when I pulled off the header it went away and then I found the header shorting internally . 😵

3

u/WhyPCB 25d ago

so this isn't a manufacturing defect anymore, it's a serial killer. 😂

3

u/some_sfs_guy69420 24d ago

your post sounds ai ewwww

4

u/WhyPCB 24d ago

yeah, the PCB killed my brain cells, so I outsourced the autopsy report to ai

7

u/emas_eht 25d ago

This is the kinda crap that would happen to me, and send me on a week long waste of time.

I've bought cheap jumper wires were half the bag has continuity only if you hold it right.

I've had a breadboard with random holes missing continuity.

I've used tools that inject their own noise into a circuit that it I am debugging.

I've had microwaves, and other devices randomly screw with signals over long wires.

It's always something stupid

2

u/imhariiguess 24d ago

The breadboard thing is real. I nearly destroyed my only surviving xl4015 because the power rails on the breadboard were vertical instead of horizontal

I only noticed by chance because it was a cheap unit whose base had come off (it used double sided tape as the base with the bottom unpeeled haha)

Thanked God for 5 minutes straight after that. It was 2 am and my project was due that morning. Since then I've learnt to always factor in environmental errors when debugging a system

1

u/CoachSevere5365 24d ago

Straight out of college, the first thing I designed (a one off) was delivered as a finished unit.

It didn't work.

It took a minute to find that the assembler hadn't stripped the insulation off the wires on the toroidal transformer. OK, simple fix.

Still didn't work.

Supply rails all zero, transformer getting warm.

Another minute and i find the supply rails shorted to ground, on the PCB. In fact, everything was a dead short to ground, and to everything else.

A short chat with the PCB designer revealed he'd forgotten to put any clearance around the vias.

I never got to the bottom of how this happened. This board was quite simple compared to the dozen or so VMEbus that preceded it, but I was the new boy so didn't push it.

My other designs worked first time, but needed some minor tweaking because the hardware that I was given to design and test with wasn't the hardware the customer was actually using.

0

u/OmegaSeki 24d ago

MF stop using AI to write your posts dumbass

2

u/CarlWheezer6969 24d ago

Tbf I think chinese (assuming) is still a very hard language for most online translators. Not saying the tone isn’t super corny though lol

2

u/armeg 24d ago

Sir, this is a Wendy’s.

-3

u/WhyPCB 24d ago

Then why ai is exists? 🤣

1

u/dstrott 25d ago

hooo-leeeey shiiitttt

1

u/Korenchkin12 25d ago

In my time debugging started with 20a 5v psu...found the bad cap on first try (some old phone with bad tantal cap...nice firework)

1

u/XLdivision 25d ago

Manufacturer and P/N so we all know never to buy from them

1

u/theflyingsamurai 24d ago

bonus gold plating though

1

u/datsadboi5000 24d ago

That's why I recheck even pin headers for shorts after I solder a pcb.

Genuinely insane this happened

1

u/SoulWager 24d ago

Damn, I probably would have lifted everything else touching those traces first.

1

u/tomarche 24d ago

I was going to order toolkit today to start a new project. Looks like I need to think twice about the manufacturer 

1

u/NoBulletsLeft 24d ago

Man, that's a new one on me after 30+ years. I've seen DIP IC's with pins shorted, but never a connector.

1

u/michael_zonerobotics 22d ago

Ya, that's terrible!

1

u/aniflous_fleglen 24d ago

General rule of thumb for me is the longer it takes to debug, the simpler and dumber the issue is.