İçeriğe atla
İçgörüler
Yazan Evie Zhang

How PCBs Are Tested: AOI, X-Ray, ICT & Functional Testing

AOI, X-ray, in-circuit testing, and functional testing each catch different faults. Here's what every method finds, its blind spots, and when to use it.

How PCBs Are Tested: AOI, X-Ray, ICT & Functional Testing

Key Takeaways

  • PCBs are tested with four main methods: automated optical inspection (AOI) for surface defects, X-ray for hidden joints, in-circuit testing (ICT) for component-level electrical checks, and functional testing (FCT) to confirm the board does its job.
  • No single method catches everything. AOI can't see under a BGA, ICT can't tell you if firmware boots, and functional test won't pinpoint which of 400 joints is cold.
  • X-ray inspection is the only practical way to inspect solder joints hidden under bottom-terminated parts like BGAs and QFNs.
  • Inspection criteria are graded against IPC-A-610, currently Revision J (March 2024), which sorts every condition as Acceptable, Process Indicator, or Defect across Class 1, 2, and 3.
  • The right test mix depends on volume, board complexity, and reliability class, not on buying the most expensive machine.

Building hardware means answering one blunt question: does the board work, and how do you know? This guide is for hardware founders, design engineers, and sourcing managers who need to understand how PCBs are tested before trusting a contract manufacturer with a production run. PCBs are tested through a layered chain of inspection and electrical checks: optical and X-ray inspection catch assembly defects, then in-circuit and functional testing confirm the board is electrically sound and behaves as designed. Each layer catches what the previous one misses.

Why PCBs Need More Than One Test Method

A modern PCB can carry hundreds of components and thousands of solder joints, and a single defect, like a tombstoned resistor or a void under a power FET, can kill the whole board. No single test sees every failure mode, so manufacturers stack complementary methods. Inspection finds physical defects; electrical test finds functional ones.

Think of it as a funnel. Optical inspection screens obvious surface problems fast and cheap. X-ray digs into what optics can't see. Electrical tests then verify the board does what the schematic promised. A defect that slips past one stage gets caught at the next, which is the point of layering. This sits at the back end of the broader pcb assembly process, after reflow and before the board ships.

Automated Optical Inspection (AOI)

Automated optical inspection uses high-resolution cameras and structured lighting to photograph a populated board and compare it against a known-good reference. AOI inspection runs in seconds per board and flags missing parts, wrong components, offset placement, tombstoning, bridges, and insufficient or excess solder. It's the fastest, most common defect screen on any SMT line.

A good AOI system catches the defects that are visible from above:

  • is the part there, and is it the right way around?
  • shifted, rotated, or skewed parts.
  • bridges, insufficient solder, and tombstoning.
  • verified by package and marking.

Where AOI is run

Many lines run AOI twice: once as solder paste inspection (SPI) right after the stencil printer, and again after reflow. Catching a paste error before parts are placed is far cheaper than scrapping a finished board. Post-reflow AOI confirms everything survived the oven.

The blind spot

AOI is line-of-sight. It cannot see a solder joint hidden under a component body. A ball-grid array (BGA) hides every joint under the package, and a QFN tucks its thermal pad out of sight. For those, optics aren't enough, which is where X-ray comes in.

X-Ray Inspection

X-ray PCB inspection sends radiation through the board so denser materials, mainly solder, show up clearly, letting inspectors see joints hidden under component bodies. It's the only practical method for checking BGAs, QFNs, and other bottom-terminated parts, and it reveals voiding, head-in-pillow defects, opens, shorts, and internal cracks that no camera can reach.

Two formats are common on the production floor:

Method What it does Best for
2D X-ray Top-down density image Quick BGA void and bridge checks
Automated X-ray (AXI) Inline, automated fault calls High volume, hidden-joint heavy boards
3D CT X-ray Cross-sectional reconstruction Failure analysis, deep void grading

What an X-ray inspector looks at on a BGA: ball roundness, bridging between adjacent balls, head-in-pillow (where the ball and pad don't merge), and voiding. Voids are graded as a percentage of joint area, because a small void is normal but a large one under a thermal or power ball compromises heat transfer and current capacity. IPC-A-610 and the IPC-7095 series give the acceptance criteria.

X-ray is slower and pricier per board than AOI, so it's usually targeted at high-risk parts rather than every joint. On a board with no BGAs or QFNs, you may not need it at all.

In-Circuit Testing (ICT)

In-circuit testing makes electrical contact with individual nets on the board, usually through a bed-of-nails fixture, and measures each component in place. ICT verifies resistor and capacitor values, diode and transistor orientation, opens, shorts, and missing parts at the component level. It's a powerful electrical screen, but it needs test-point access and a custom fixture.

The mechanics matter. A bed-of-nails fixture is a tray of spring-loaded pins that press onto dedicated test pads, then the tester powers and probes each net to confirm the part is present, correct, and connected. Because it checks components individually, ICT pinpoints exactly which part or joint failed, something functional test usually can't do.

The tradeoffs

ICT's strength is also its cost. The fixture is custom to one board layout and can take weeks to build, so ICT only pays off at meaningful volume. It also depends on your layout: without enough probe-able test points, large parts of the circuit are unreachable. Coverage decisions like this are made early, alongside the workmanship targets in IPC-A-610, not bolted on later.

For lower volumes, flying-probe testing offers a fixtureless alternative. A few fast-moving probes touch each net in sequence instead of a fixed bed of nails. It's slower per board but needs no custom fixture, making it the sensible choice for prototypes and small runs.

Functional Testing (FCT)

Functional testing powers up the finished board and exercises it the way the end product will, confirming it actually performs its intended job. Where ICT checks parts in isolation, FCT checks the system: does it boot, output the right voltages, talk to its sensors, and respond to inputs? It's the closest thing to using the real product, and it catches faults that only appear when the board is live.

A functional test fixture is built around your specific product. It might apply input signals, read outputs, flash firmware, run a self-test routine, and check communication buses. For a motor controller, the rig spins a load and confirms current and speed; for an IoT sensor, it checks the radio and the analog front end. This is the last gate that maps directly to whether your customer will be happy.

The limitation is diagnostic resolution. FCT usually gives you a pass or fail, not a precise location. If a board fails, you often need AOI data, X-ray, or ICT results to track down the root cause. That's why these methods work as a set rather than as competitors.

How to Choose the Right Test Mix

The right combination depends on three things: production volume, board complexity, and your reliability class under IPC-A-610. Paying for ICT on a 50-unit prototype run is as wasteful as skipping X-ray on a BGA-heavy industrial board.

Use this as a starting frame:

  1. It's fast, cheap, and catches the bulk of assembly defects. SPI before reflow is worth it on fine-pitch designs.
  2. BGAs, QFNs, and bottom-terminated parts effectively require it. No such parts, no hard requirement.
  3. when you need component-level coverage and your layout has the test points to support it. Use flying probe for prototypes and small batches.
  4. for anything where "it works" is non-negotiable, which is nearly everything.

If you outsource pcb assembly china, ask your manufacturer to spell out which methods they run by default and which cost extra. At Faradine, every board is functionally tested before it ships, and your dedicated project manager can walk you through the exact test plan for your design.

Frequently Asked Questions

What's the difference between AOI and X-ray inspection?

AOI uses cameras to inspect visible surfaces, so it catches missing parts, misplacement, bridges, and bad fillets quickly and cheaply. X-ray sees through the board to inspect joints hidden under component bodies, like BGA balls and QFN thermal pads. AOI is your broad first screen; X-ray targets the hidden, high-risk joints AOI physically cannot see.

Do I need in-circuit testing for a small production run?

Usually no. ICT needs a custom bed-of-nails fixture that can take weeks to build and only pays off at higher volumes. For prototypes and small batches, flying-probe testing gives similar component-level coverage without a fixture, just more slowly. As volumes grow and the per-board test time matters more, dedicated ICT starts to make economic sense.

Is functional testing enough on its own?

Functional testing confirms the board does its job, but it typically reports only pass or fail, not where a fault is. On its own it can let subtle assembly defects through that haven't yet caused a failure. Pairing functional test with AOI and, where needed, X-ray gives you both confirmation that it works and the diagnostic data to fix what doesn't.

What standard defines PCB inspection criteria?

IPC-A-610, Acceptability of Electronic Assemblies, is the most widely used visual acceptance standard. The current revision is J, published in March 2024. It classifies every condition as Acceptable, Process Indicator, or Defect across three product classes, from general consumer electronics (Class 1) to high-reliability hardware (Class 3). Soldering process requirements are covered by the companion standard IPC J-STD-001.

How are BGA solder joints tested if they're hidden?

BGA joints sit underneath the package, so cameras can't see them. X-ray inspection is the standard answer: it penetrates the board and images the solder balls directly. Inspectors check ball shape and spacing, look for bridging and head-in-pillow defects, and grade voiding as a percentage of joint area against IPC criteria such as IPC-7095.

Does more testing always mean better quality?

No. Quality comes from matching the test mix to the board's complexity, volume, and reliability class, not from running every method on every board. Over-testing a simple, low-volume board wastes money and time without reducing real risk. The goal is coverage of the failure modes your specific design and application actually face.

Get a Test Plan Built Around Your Board

Knowing how PCBs are tested is the easy part; matching the right methods to your design, volume, and reliability target is where it gets real. If you want a clear, written test plan before committing to a production run, talk to the Faradine team and we'll map AOI, X-ray, ICT, and functional test to what your project needs.