Board bring-up and debugging
A bring-up plan, the right instruments, and a systematic way to find faults.
Day 6 · 45 min
After this lesson
- You can write a bring-up checklist for a new board.
- You can use a multimeter, oscilloscope, logic analyzer and thermal camera appropriately.
- You can debug systematically: observe, hypothesize, test one thing.
Bring the board up in the order that protects it
A board that powers on has not passed anything. Bring-up is a staged plan in which each stage gives you evidence before the next one risks the hardware, and in which every surprise gets written down. The goal is to find faults while each is still a single fault.
The bring-up order
- Inspect. Under a loupe or microscope check polarity, pin 1, bridges and missing parts. The stripe on a moulded tantalum marks the positive end, the opposite of an aluminium electrolytic, and on a diode it marks the cathode.
- Power off, measure. Resistance from every rail to ground (hundreds of ohms to kilohms is normal, near zero is a short), rail to rail, and continuity of ground.
- Current-limited power-up. Set the bench supply to the battery voltage with the limit just above the expected idle: 100 to 150 mA for the motor board, motors unplugged. Raise the voltage from zero and watch the current.
- Rails. Check each rail against its tolerance (3.3 V within 3 % is 3.20 to 3.40 V), then look at ripple on a scope.
- Clocks and reset. Crystal running, reset line high.
- Programming. Read the chip ID with esptool before writing anything.
- Peripheral by peripheral. LED, buttons, UART, then the motor driver with a motor off the ground at 20 % PWM, then encoders and sensors. Add one thing at a time.
What the supply tells you
A bench supply is the cheapest diagnostic you own. In constant-current mode with the voltage collapsed, the ratio of the two is the apparent load resistance: 1.9 V at 0.8 A is 2.4 Ω, which is no working board. A healthy idle shows the full voltage and a small, steady current that matches your estimate. If the current creeps up over several seconds, something is heating and its resistance is falling. Remember the power, too: a supply limited to 1 V and 0.5 A can put at most 0.5 W into a shorted rail, and a real short drags the voltage down (0.5 A through 0.45 Ω is only 0.2 V), so the failed part itself dissipates about 0.1 W. That is enough to warm it for a thermal camera but far too little to damage the board.
Instruments and what each is for
A multimeter (10 MΩ input) is for DC voltage, resistance with the power off, continuity and the diode test, where a good silicon junction reads 0.5 to 0.7 V forward and open in reverse. Its current ranges add burden voltage in series, so fuse them and use them sparingly.
An oscilloscope shows shape. Pick a bandwidth of at least five times the highest clock; its rise time is 0.35 divided by its bandwidth, so a 100 MHz scope cannot show an edge faster than 3.5 ns. A 10× passive probe is 10 MΩ with about 10 pF, and its ground lead is the part most people get wrong. Set the 20 MHz bandwidth limit when you want ripple rather than noise, AC-couple a 3.3 V rail to read millivolts, and trigger single-shot on a falling edge just below the rail to catch a dip.
A logic analyzer records many digital channels at 24 to 500 MS/s and decodes I2C, SPI and UART. It tells you what bits were sent, not whether the edges were clean, so sample at least four times the bus clock and set the threshold for your logic level. A thermal camera turns a short into a picture: power the board from a current-limited supply and look for the hot part, remembering that bare copper and shiny solder have low emissivity (about 0.1) and read cold, while mould compound and solder mask (about 0.9) read true. Without a camera, a drop of isopropyl alcohol evaporates first on the hottest part, and freeze spray on the culprit makes the supply current change. A clamp-style current probe, or a sense resistor that is already in the circuit, shows pulsed currents without breaking it; a new series shunt has to be put in the path.
The usual suspects
Most first-article faults are boring: solder bridges on fine-pitch pins, opens from cold joints or tombstoned parts, rotated or flipped parts (diodes, tantalums and ICs), wrong values or footprints, brown-outs when a motor or the radio starts, and ESD damage that shows up as a leaky pin days later. A brown-out is a rail that dips below the MCU's threshold for a few microseconds, and only a single-shot trigger will catch it. Handle boards on a grounded mat, because ESD damage often appears days later as a leaky pin or an input that sticks. Probing artefacts account for the rest, which is why the ground lead matters.
A systematic method
Observe, hypothesise, change one thing, record. Split the system in half and ask which half the fault lives in. Compare a bad board with a known-good one at the same node. Never change two variables at once. Keep a bring-up log with the board serial and revision, firmware hash, supply settings, every reading with its units, scope screenshots with the probe point marked, and what you changed. Next week's you will need it.
Rework basics
Use a temperature-controlled iron (about 350 °C for lead-free) with fresh flux, spend no more than three to four seconds on a pad so it does not lift, and let it cool. Bridges come off by drag soldering with flux or wick. Small SMD parts lift by heating both ends. QFNs and SOICs need hot air at 350 to 380 °C with the board preheated. Clean flux residue with isopropyl alcohol and inspect again.
Interactive: debug the board, then hunt a short
First walk the decision tree for a symptom and see which instrument each step uses. Then take the find-the-short bench: power the board from the battery input and from the 3V3 rail, and notice which method gives the culprit away.
Debug decision tree: from a symptom to a measurement to a cause
Pick what you see on the bench, then answer each measurement. The chart on the left records your path; the card on the right says what to measure next and, at the end, what it probably is.
What is the board doing?
Every branch ends in a likely cause and a fix to try, never in a guess: each step names the instrument, what to probe and what the readings mean. Change one thing at a time and write it down.
Find the short: a simulated thermal camera and a millivolt probe
The 3V3 rail is shorted to ground by one part. Power the board two ways, look at the heat, hover or select a part for its millivolt reading, then desolder your suspect.
A new board is on the bench: the 3V3 rail reads well under 1 Ω to ground. Find the part causing the short and desolder it.
- Supply
- 0.9 V, drawing 0.50 A (limit)
- 3V3 rail
- 0.23 V, pulled to ground
- Regulator U3
- 46 °C
Hover over, tap or focus a part to read its temperature and its millivolt probe reading.
Simulation: each failed part dissipates P = I² × R, so with a 0.45 Ω short at 0.5 A it is only about 0.1 W, while a dead short of 0.02 Ω shows almost no heat. The regulator can easily run hotter than the culprit.
In practice
Practice
Write the bring-up checklist for the motor-driver board
The board has a P-FET reverse-polarity input from a 7.4 V pack, an AMS1117-3.3, an ESP32-WROOM-32 and a TB6612FNG. Write a numbered checklist with, for every step, the instrument and its setting, the reading you expect and what you do if it is wrong. Expected idle current with Wi-Fi off is the AMS1117's 5 mA of quiescent current (11 mA maximum) plus the module's 40 to 60 mA plus the LED: call it 60 to 80 mA.
Worked answer
- Inspect with a loupe: pin 1 of U1, U2 and U3, the stripe of C5 (the 22 µF tantalum) on the 3V3 side, Q1 oriented as drawn, no bridges on the TB6612FNG's 0.65 mm pins. Compare with the assembler's placement preview. Fix before any power.
- Resistance, power off. 3V3 to GND should read hundreds of ohms and rise as the capacitors charge; VM to GND should read kilohms. Under 5 Ω is a short: stop and use the thermal and millivolt methods.
- Power up from the bench supply: 7.4 V, limit 150 mA, motors unplugged, raising from 0 V. Expect 60 to 80 mA. If the current pins at the limit, power off.
- Q1 drop. Measure across Q1 with the board running: a few millivolts (50 mΩ at 70 mA is 3.5 mV). Near 0.6 V means the FET is not turning on.
- 3V3. Meter: 3.20 to 3.40 V. Scope with 20 MHz bandwidth limit and spring ground: under 50 mV peak to peak.
- EN and IO0. Both near 3.3 V; pressing BOOT takes IO0 to 0 V, and pressing EN holds EN at 0 V until you release it, after which it climbs back with a time constant of about 10 ms (10 kΩ and 1 µF).
- Programming. Adapter TX to RXD0, RX to TXD0, common ground, hold BOOT, tap EN and read the chip ID with esptool. If it fails, check the strapping pins and the wiring.
- LED and buttons from a blink sketch, then motor driver logic: STBY high, 20 % PWM, motor lifted off the ground. Free-running current of a small gearmotor is 100 to 300 mA; VM should dip under 0.3 V at start and 3V3 should not move.
- Encoders and sensors. Turn each wheel by hand and watch ENC A and B with a logic analyzer; scan I2C; ping the HC-SR04 with ECHO checked at 3.3 V; read the line sensors on the ADC.
- Log every reading with the board serial and photographs, and raise the supply limit step by step only after each stage passes.
Real-world scenario
Real-world scenario
New board draws 800 mA at idle
The first assembled motor-driver board arrives. The expected idle current is 60 to 80 mA. The bench supply is set to 7.4 V with its limit left at 0.8 A from an earlier job; the display shows 0.80 A and the voltage has collapsed to about 1.9 V, constant-current mode. The 3V3 rail reads 0.6 V instead of 3.3 V, and there is a faint smell near the regulator.
Symptoms
- The supply is pinned at its 0.8 A limit and the output voltage has collapsed to about 1.9 V
- The 3V3 rail reads 0.6 V; with power off, 3V3 to GND measures about 0.5 Ω
- The AMS1117 is warm but not hot, and a faint smell comes from beside it
- Replacing the regulator with a known-good one changes nothing
Interview questions
screenA new board arrives from the assembler. What do you do before you apply power?
screenHow do you measure a fast edge accurately with an oscilloscope?
deepThe board draws far more current than expected at first power-up. How do you find the cause?
screenWhen do you reach for a logic analyzer instead of a scope?
deepDescribe your systematic method for debugging an intermittent fault.
screenHow do you tell the polarity of a tantalum capacitor from an aluminium electrolytic?
Quiz
References and further reading
Where the ideas in this lesson come from, and what to read next. Books are the standard texts; papers are the original sources; standards are what employers work to.
- Documentationfree online
Espressif Systems (2025). ESP32 Hardware Design Guidelines: Schematic Checklist. docs.espressif.com.
Read: The EN RC delay (10 kΩ, 1 µF) behind the 10 ms time constant in the checklist.
- Documentationfree online
Advanced Monolithic Systems (2012). AMS1117: 1A Low Dropout Voltage Regulator (datasheet). advanced-monolithic.com (free PDF at advanced-monolithic.com/pdf/ds1117.pdf, http only).
Read: Quiescent current and thermal resistance for the idle-current and heat estimates.
- Book
Paul Horowitz and Winfield Hill (2015). The Art of Electronics. Cambridge University Press, 3rd edition.
Read: The chapter on instruments and measurement, and the probing advice.
- Book
Henry W. Ott (2009). Electromagnetic Compatibility Engineering. Wiley.
Read: The chapter on measurement and troubleshooting of noise.