Bench note
Bypass capacitors sized for the transient you measured
The transient no one measures
You've placed 100nF ceramics beside every IC because the internet said so. Then your microcontroller resets during servo pulses or your ADC readings drift when the relay clicks. The datasheet asked for bulk and bypass capacitors, but it didn't specify values for your particular load transient.
Measure the current spike at the power pins during your worst-case switching event—motor start, transmit burst, whatever draws current faster than your bulk capacitor can respond. A current probe or even a small series resistor into a scope will show you the peak and duration. That transient shape tells you which capacitor values actually matter.
ESR and resonance you can't ignore
Low-ESR ceramics handle high-frequency content; electrolytics provide charge for slower, larger transients. If your scope shows a 200mA spike lasting 10µs, a 10µF ceramic close to the IC will supply that charge with minimal voltage sag. A 100nF cap alone stores only 5µC at 5V—enough for 25µs at 200mA if the ESR cooperates, but not enough if the transient is wider or your trace inductance fights you.
Parallel capacitors cover different frequency ranges. A 10µF and 100nF pair handles both the initial sharp edge and the slower bulk demand. Check your scope's FFT or calculate the self-resonant frequency; you want coverage from DC to the highest switching edge in your circuit. If decoupling caps where the datasheet actually wants them already live on your board, sizing them correctly is the second half of the job.
Placement and loop area
Shorter traces mean lower inductance and faster response. Place your bypass capacitor's ground pad directly opposite the IC's ground pin if the layout allows; the resulting tight loop minimizes the impedance your transient current sees. A 10mm detour adds tens of nanohenries—enough to let a fast transient ring or sag your rail.
If you're debugging an existing board, tack a known-good capacitor directly across the power pins with short leads and measure again. If the transient shrinks, your original value or placement was the problem. Update the BOM and the layout notes so the next board doesn't repeat the mistake.
When 100nF isn't wrong, just incomplete
Sometimes the generic 100nF works because your transient is gentle or your bulk capacitor is close enough. But if you've traced a glitch to a power rail sag during switching, measure the transient and size the capacitor to match. Your scope will confirm whether the fix holds, and your bill of materials that ships with the repo will document why you chose 10µF instead of blind ritual.