Part 7 of 7 · Testing

Test before you power: checking and debugging a soldered board

The scariest moment in electronics is plugging something in for the first time. This routine turns it from a gamble into a formality: look, beep, measure, then power up gently.

About 11 minutes to read · Written for beginners · New words? See the glossary

Why test before power?

A short between the supply rails can cook a regulator, a battery, a chip or a USB port in seconds, and a part in backwards can do the same more quietly. Engineers jokingly call the first power-up the "smoke test", from the days when that really was the test. Five minutes of checks first turns it into a non-event, and most faults are easier to find on a board that isn't powered anyway.

The routine at a glance

  1. Look

    Inspect every joint, gap and part under good light.

  2. Beep

    Check every connection with the meter's continuity mode.

  3. Measure the rails

    Resistance from the supply to ground, behind any protection diode: no shorts allowed.

  4. Power up gently

    Chips out, current limited, eyes open.

  5. Measure, then add the chips

    Check the voltages, power off, plug the chips in, and power up again.

The bench card has this routine on one page, to print and keep beside the board.

1. Look

Most faults are visible if you look properly. Use bright light, and a magnifier or your phone's camera zoomed in: a photo of the copper side, enlarged on a screen, is a superb inspection tool.

  • Every joint, against the joint doctor: nothing cold, starved or missed. It's easy to forget one, so count them.
  • Every gap between neighboring pads and strips: hold the board up to a light and look for bridges and copper whiskers.
  • Loose bits: shake the board and brush it. Lead clippings and solder balls love to hide under parts.
  • Every polarized part the right way round: diodes, LEDs, electrolytic capacitors, transistors, and chip sockets with pin 1 where the plan says.
  • Every cut on stripboard, and every part in the right holes against your plan.

2. Beep

Set your multimeter to continuity mode (the symbol like a sound wave or a diode; touch the probes together and it beeps). Then work through the circuit connection by connection: for each one on your plan, hold one probe on one pin and touch the other to every pin it should reach. Tick them off on a printout as you go.

  • Probe the component leads, not just the pads, so you test the joints too.
  • Test what shouldn't connect: beep neighboring pads and strips that should be separate, especially next to big joints.
  • Don't be fooled by parts. A meter can beep for a moment through a capacitor while it charges, and read through a diode one way round but not the other. If a reading puzzles you, check whether a part sits between the two points.
In Perfboard Designer

The Nets panel lists every connection on your layout, pin by pin, and File › Export PDF can print them, pin by pin, to check the finished board against with your meter, along with the solder side at true size.

3. Measure across the rails

Switch the meter to resistance and measure between the positive supply and ground, where the supply reaches the circuit. This single reading catches most of the disasters.

If the power comes in through a reverse-polarity diode, put the probes on the circuit side of it: across the bulk capacitor, or across a chip socket's power pins. At the connector you'd be measuring through the diode, and a dead short behind it wouldn't read 0 Ω: you'd see the diode instead, an odd reading one way round and open the other.

  • Close to 0 Ω: a short circuit. Don't power up. Find it first.
  • A reading that starts low and climbs: the board's capacitors charging from the meter. That's normal; wait for it to settle.
  • Anything else: think about what sits across the rails. A small circuit usually reads hundreds of ohms or more; a low reading you can't explain deserves a closer look.

If the board has more than one supply, measure each one to ground, and between them.

4. Power up gently

For the first power-up, take the chips out of their sockets. That way you test the board's power wiring without risking them.

With a bench power supply: set the voltage, set the current limit low (50 to 100 mA is plenty for most small circuits with the chips out), then connect. If the current jumps straight to the limit and the voltage collapses, there's a short: switch off and find it. A healthy board draws a little current and the voltage holds.

Without one: for the first try, put a resistor in series with the supply, such as 100 Ω rated at 2 W. At 12 V a dead short then draws only about 0.12 A, and the resistor, not your circuit, takes the heat. Measure the current with your meter in series, too. The resistor drops some voltage when the circuit draws current, so expect it to run a little starved: this test is about catching shorts, not about the circuit working yet. And don't count on a battery being gentle: even a 9 V battery can deliver enough current to cook a small circuit.

Watch out

A meter set to measure current is almost a short circuit between its probes. Only ever connect it in series, and move the red lead back to the volts socket as soon as you're done: touch a supply with the meter still on current, and you blow its fuse, or worse.

Keep a hand near the plug, and watch and sniff. Then feel for heat by holding a fingertip close to each part, without touching it: a shorted part can be hot enough to burn. Anything hot, any smoke, any smell: unplug first, think second.

5. Measure, then add the chips

  • Measure the supply voltage at each chip socket's power pins, not just at the connector. It proves the power reaches every chip, the right way round.
  • Check any regulator's output before anything depends on it.
  • Switch off. Plug the chips in, checking pin 1 against the socket's notch and your plan. Power up again with the same care, watching the current.
  • Now test what the circuit does, stage by stage, from input to output.

Worked example: testing the 555 blinker

Here's the whole routine on the 555 blinker from the layout guide, with the readings to expect. Print its nets from the editor first, so you can tick them off.

  1. Look

    D2's band away from the terminal; the stripes on C1 and C3 and the LED's flat side toward ground; the socket's notch at the top, by pin 1.

  2. Beep

    Every net against the printout. Then the near misses: the link under the socket joins pins 2 and 6, so it must not beep to pins 3 or 7 beside it.

  3. Measure the rails

    Across C3, behind D2, with the chip out: low at first, then climbing and climbing as the capacitors charge from the meter, since nothing else joins the rails. A reading that stays close to 0 Ω is a short.

  4. Power up gently

    Chip out, 9 V through 100 Ω or a 50 mA current limit: a little current while the capacitors charge, then almost none.

  5. Measure

    Red probe on socket pin 8, black on pin 1: a little under the battery's voltage, since D2 takes a few tenths of a volt (about 0.7 V once the chip draws current). Pin 4 reads the same, since reset is tied to +9 V.

  6. Add the chip

    Switch off, plug the 555 in with its notch matching the socket's, and power up: the LED flashes about once a second, on and off for about as long. The board draws about 15 mA, give or take a few.

The rate comes from the timing parts: 1.44 ÷ ((R1 + 2 × R2) × C1) = 1.44 ÷ (137 kΩ × 10 µF), about 1 Hz. If the LED stays on or off, check the link between pins 2 and 6 and which way round C1 is. If it never lights, check D1 and R3. If nothing works at all, check D2 and the battery clip. How the circuit works, and so what each reading means, is on the 555 LED blinker project page.

Bigger boards: build and test in stages

On a board with several sections, don't solder everything and hope. Build the power section first (the connector, the protection diode, the regulator and its capacitors) and run this routine on it. Then add the next stage, test again, and so on. When something goes wrong, it can only be in the part you just added.

Troubleshooting by symptom

SymptomUsual suspectsWhat to check
Nothing happensPower isn't reaching the circuitThe voltage at each chip's power pins; the power connector's joints; a battery clip or protection diode the wrong way round; a missing link
Current hits the limit, voltage collapsesA shortRail-to-rail resistance; solder bridges; an electrolytic capacitor or diode in backwards; a missing cut under a chip on stripboard
Something gets hotA short through a part, or a part in backwardsSwitch off first. Then check that part's orientation and the joints around it
Works only when you press or tap itA bad joint or a loose socketReheat suspect joints with a little flux; push the chips firmly into their sockets
Does something, but the wrong thingA wrong value, a wrong pin, or a connection that shouldn't be thereResistor color codes; the mirror-image trap; every connection beeped against the plan
Hums, whistles or glitchesMissing decoupling, or an input too close to an outputA 100 nF capacitor at each chip's power pins; the ground wiring; how far apart inputs and outputs are

Debugging habits

  • Divide and conquer: check the signal halfway along the chain, then halfway again, to find the stage where it goes wrong.
  • Measure at the pins of the parts, not at a rail somewhere else: that tests the joints on the way.
  • Compare with something that works: the breadboard version, a second channel, or the typical voltages in the datasheet.
  • Reheat, don't stare. If a joint looks doubtful, add a touch of flux and reheat it. Thirty seconds, and one suspect fewer.
  • Change one thing at a time, and write down what you changed.
  • Take a break. Fresh eyes find in a minute what tired ones missed for an hour.

Finishing the board

  • Clean the flux off with isopropyl alcohol and an old toothbrush, then let it dry. It looks better, and it makes the joints easier to inspect.
  • Trim any long leads you missed.
  • Mount it on standoffs (M3 screws and spacers through the corner holes), so the solder side can't touch anything.
  • In a metal box, put insulation under the board, and make sure no joint can reach the case.
  • Label it: the connectors, input and output, and the supply voltage and polarity. Future you will be grateful.
  • Keep the layout with the project, so you can repair or rebuild it later.

Frequently asked questions

How do I check a soldered board for short circuits?

With the power off, set your multimeter to resistance and measure between the supply and ground where it reaches the circuit, behind any protection diode: a reading near zero ohms is a short. Then inspect the gaps between pads and strips against a bright light, and beep neighboring connections that should be separate.

What should I do the first time I power up a new board?

Take the chips out of their sockets, then power the board through a current limit: a bench supply's current limit set low, or a series resistor or small fuse. Watch the current, check for heat, and measure the voltage at each chip socket before you plug the chips in.

Why does my circuit only work when I press on it?

Almost always a bad solder joint or a loose socket contact. Reheat the suspect joints with a little flux, and push the chips firmly into their sockets.

Further reading

The sources behind this guide, and good places to go deeper:

Plan your next board in Perfboard Designer

Free, in your browser, no sign-up: lay out perfboard or stripboard, check every connection, flip to the solder side and print it at true size.

Open the designer