Electronic – Adding Debug LEDs to PCB

debuggingledpcbprobe

I'm working on the next revision of a prototype PCB board,
and from the first one I learned that LEDs would be very
helpful instead of having to probe each pin/wire for a
certain state.

In this regard I have a design question; how would you add
LEDs for debugging purposes to a PCB, such that they don't
interfere with or alter the voltages and currents, and still
keep the added components to a bare minimum.

As of right now my thought is placing a MOSFET gate on the
wires in question, and then let that control the LED. But I'd
like to know how you would do it, as I am no expert in electronics
and always looking to learn from more experienced people.

UPDATES:

· The signals being debugged are, of course, digital in nature.

· The LED's in question are going to be SMD, of course.

· If you have schematic examples that makes it so much easier to understand 😀

— Thanks in advance 🙂

Best Answer

The question is a bit general to be able to answer very well, but it isn't a bad one, in fact. I can make some suggestions.

First off it depends where I am in the design cycle. Early prototypes typically get more debug LEDs. Many might get removed as the design progresses.

Every power rail usually gets its own indicator LED. For these I typically use a LED with a series resistor and a zener, so that even if the rail is low the LED dies. For instance, on a 12V rail I would use something like a 9V1 zener and 470R with the LED.

For the rest it depends rather heavily on the type of circuit. Anything with a microcontroller usually has a LED to show the device is running, and i will often add a few unassigned LEDs if there are IO pins to spare.

I don't usually put debug LEDs on actual digital or analogue signals, unless they really say something very useful about the circuit state, or they are there for the user anyway (for instance a "SIG" or "OVERLOAD" led in an audio chain). For these I usually prefer test points.

As a general guideline, you need at least 1 or 2mA for a LED to be visible, and of course the effect of loading needs to be taken into account. As you say, a transistor could be added if needed. At this point though, I would ask myself how necessary this is.

Hope that helps.