Don’t Forget the Test Points
AI summary AI-generated, may contain mistakes
The author describes wasting an hour debugging a project before finally hooking up a test harness, which quickly revealed all the problems. The lesson is that test points should be added to hardware designs from the start, whether by soldering wires onto key signals or littering a PCB with dedicated test points. Though it takes a bit of extra time upfront, doing so saves far more time during inevitable debugging.
Key takeaways
- Add easily accessible test points to your design first, even for quick-and-dirty builds.
- PCB test points are essentially free, costing only a tiny bit of board space.
- Test-worthy locations include data buses, crucial power rails, and spare GPIOs.
- Place test points at the boundaries of functional blocks, and use zero-ohm resistors or jumpers to make sections separable.
- Test points are like clear code comments: a small upfront investment that pays off during debugging.
I just spent an hour awkwardly debugging a project before I gave in and hooked up a test harness to it. And of course, once I did so, all of the problems were found in short order, proving once again that once you build the test harness, you don’t need it, and carrying an umbrella prevents it from raining.
But seriously, this is a lesson that I seem to learn over and over again. (Or is that fail to learn?) Even if you’re just lashing together something quick and dirty, take a second to make sure that all of the places that you’re going to want to probe later are easily accessible. If this means soldering scrap wire onto important signals like ground and the analog voltage coming in from the microphone, and leaving the op-amp, by all means do it first. You might not need it later, but if you do, you’ll be that much closer to figuring out the glitches. Doing so would have saved me an hour tonight.
If you’re ordering a PCB, even if you are an infallible designer, the corollary is to litter it with test points. They are essentially free, taking up only a tiny bit of board space, and they are just so handy down the road, when you need to figure out what’s wrong with the I2C bus, or with the battery charging circuit.
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.