AOI Testing in PCB Assembly — How Automated Optical Inspection Works
AOI testing in PCB assembly uses cameras, controlled lighting, and inspection software to evaluate visible features on a PCBA. It can flag missing or shifted components, polarity errors, tombstoning, visible solder bridges, and other programmed conditions. It does not electrically power or probe the board. It also cannot see through opaque component packages.
The term “AOI testing” is common in search and purchasing discussions. Technically, automated optical inspection is a non-contact inspection method. Its coverage depends on what the optics can see and what the program is designed to evaluate.
What Is AOI Testing?
AOI checks the visible surface of a printed circuit board assembly. Cameras capture images under selected colors, angles, and lighting patterns. Software then evaluates component and solder features against approved limits.
The reference is not always one “golden board” image. A system may use centroid or CAD data, component libraries, approved samples, and programmed measurements. Some platforms also use statistical models or AI-assisted classification. The inspection result is only as useful as the input data, criteria, and verification process.
AOI is different from electrical testing. It may see the surface sign of an open or poor joint, but it does not measure continuity. It cannot confirm firmware, interfaces, signals, or complete product behavior.
How AOI Inspection Works
- Create the program: Engineers load the correct board revision, placement data, BOM details, component rules, and inspection criteria.
- Align the assembly: The system locates board edges or fiducials and registers the real PCBA to the inspection program.
- Capture optical data: Cameras record the board under controlled illumination. Angled views or structured light may add side or height information.
- Evaluate features: Software compares position, shape, color, marking, brightness, or height with the programmed limits.
- Review and record: Suspect locations are flagged for verification. Confirmed results can support repair decisions and process feedback.
A good program needs first-article validation and ongoing control. False calls waste review time, while an escape leaves a defect undetected. The Global Electronics Association lists IPC-9716A as the current automated inspection process-control standard. Passing one AOI cycle still does not prove complete assembly compliance.
What AOI Can Flag and What Needs Another Method
AOI can flag the visible conditions below when the feature and program support the check. The table also shows when another inspection or test method is needed.
| Defect or Condition | AOI Visibility | Typical Follow-Up Action |
|---|---|---|
| Missing component | Usually visible when the correct variant and population rules are programmed. | Confirm the call, check placement data, and rework when required. |
| Misalignment or rotation | Often visible within programmed X-Y position and rotation limits. | Confirm the offset, review the placement process, and rework if needed. |
| Polarity or orientation | Detectable when a taught mark, notch, shape, or pin-one feature is visible. | Compare with approved assembly data and confirm manually. |
| Tombstoning or billboarding | Usually visible on exposed chip components. Height data may improve detection. | Confirm under magnification and review placement, paste, and reflow conditions. |
| Lifted lead | May be flagged when the lead and fillet are accessible. Three-dimensional data can help. | Confirm visually and add an electrical check when the risk requires it. |
| Visible solder bridge | Often visible when adjacent exposed pads or leads are not shadowed. | Confirm, rework, and inspect neighboring joints. |
| Visible insufficient or excess solder | May be flagged from exposed shape or area. Capable 3D systems add height or profile data. | Confirm visually and add X-ray or electrical testing as the risk requires. |
| Wrong component | May be distinguishable by a visible body, package, text, or code. | Check the BOM and feeder data, then confirm the exact part. |
| Surface debris or damage | May be visible when its size and appearance meet programmed limits. | Confirm the condition, then clean, quarantine, or rework as approved. |
| Hidden BGA, QFN, or LGA joint | AOI cannot directly see a concealed solder interface, void, or internal bridge. | Use X-ray or AXI under the agreed inspection plan. |
| Electrical or functional fault | Surface appearance does not prove continuity, component value, firmware, or operation. | Use ICT, flying probe, boundary scan, or functional testing as applicable. |
AOI findings should be verified before disposition. Reflections, shadows, board color, warpage, and normal component variation can create false calls. A trained reviewer should separate a true defect from an acceptable variation.
What AOI Cannot See or Verify Reliably
Optical cameras cannot inspect solder hidden beneath BGA, CSP, LGA, or many QFN packages. They also cannot measure an internal void through an opaque component. Viscom explains how X-ray and AOI can be combined for visible and concealed joints. Benlida’s PCB X-ray inspection guide covers hidden BGA and QFN conditions in more detail.
AOI cannot prove a resistor value, net continuity, firmware operation, communication interface, or system response. A visually correct PCBA can still fail electrically. ICT, flying probe, boundary scan, or functional testing may be needed for those risks. Benlida’s PCB functional testing methods guide compares these roles.
AOI also has limited coverage for internal cracks, intermittent faults, and problems that appear only under power, load, heat, or vibration. No optical program should be presented as complete test coverage.
2D AOI vs 3D AOI
Two-dimensional AOI analyzes flat images. It evaluates color, brightness, edges, shape, markings, and X-Y position. This approach works well for presence, orientation, rotation, readable polarity marks, and many visible solder conditions.
Three-dimensional AOI adds Z-axis height and surface-profile data. Systems may use structured light or multi-angle projection. This data can improve checks for tombstoning, lifted leads, coplanarity, component height, and visible solder geometry. Koh Young’s 3D AOI guide describes height, volume, and coplanarity measurements.
Many modern systems combine 2D and 3D information. Three-dimensional AOI is not automatically the best answer for every board. The decision depends on packages, shadows, reflections, board warpage, cycle time, false-call risk, and required records. It still cannot see hidden solder or replace an electrical test.
Where AOI Fits in the PCB Assembly Process
Inspection points should follow the product and agreed control plan. SPI may check solder paste after printing and before placement. Omron’s inspection overview separates SPI, AOI, and X-ray roles. These methods answer different questions.
Optional pre-reflow AOI checks component presence, position, and orientation after placement. Post-reflow AOI is common because it can also assess visible solder features formed during reflow. A THT process may use another optical check for visible components, leads, bridges, or solder-side conditions.
The exact route is not universal. The PCB assembly process may add X-ray, ICT, flying probe, or functional testing according to package visibility and project risk. Confirm inspection stages, sampling, acceptance criteria, records, and failed-board handling before production.
How to Define AOI Requirements for a PCBA Order
Start with the released PCB and assembly revisions. Provide the BOM, centroid file, assembly drawings, and variant rules. Mark critical packages, polarity features, allowed process options, and customer-specific workmanship requirements.
- Inspection point: State whether the project needs pre-reflow, post-reflow, solder-side, or another agreed optical inspection.
- Board coverage: Define the side, area, components, joints, and production quantity or sampling plan to be inspected.
- Acceptance criteria: Identify the approved standard, revision, class, customer drawing, limits, and permitted deviations.
- Complementary methods: Identify hidden joints that need X-ray and electrical risks that need ICT, flying probe, or functional testing.
- Records and disposition: Agree on defect images, review responsibility, rework approval, traceability, and record-retention needs.
A design or revision change may require program updates and first-article verification. Confirm who controls those changes before the build starts.
AOI Testing FAQ
What defects can AOI inspection detect?
AOI can detect programmed, visible conditions such as missing or shifted parts, wrong orientation, tombstoning, lifted leads, and exposed solder bridges. Some systems also evaluate visible solder area, height, shape, or volume. Coverage depends on optical access, equipment, resolution, lighting, and program validation.
What is the difference between 2D and 3D AOI?
Two-dimensional AOI evaluates flat image features such as color, shape, markings, and X-Y position. Three-dimensional AOI adds height and surface-profile information. This can improve coplanarity, lifted-lead, tombstone, and visible solder checks. Neither method sees through opaque packages.
Can AOI detect problems under BGA components?
No. AOI can check the visible package body, position, orientation, and nearby surface features. It cannot inspect hidden solder balls under a BGA. X-ray is better suited to concealed bridges, voids, and other internal joint conditions.
Is AOI testing included in standard PCB assembly?
AOI is common, but it is not included with the same scope in every order. The inspection stage, coverage, sampling plan, criteria, and record retention should be agreed before production. Do not assume that “AOI included” means every component and solder joint is fully covered.
Define AOI Coverage for Your PCBA Quote
When requesting PCB and PCBA quality control, identify the board revision, component packages, assembly sides, target defects, acceptance criteria, and required records. State whether you need pre-reflow AOI, post-reflow AOI, X-ray, electrical testing, or functional testing. The supplier should confirm the equipment, program, coverage, sampling, and quotation scope.
Send the Gerber files, BOM, centroid data, assembly drawings, quantities, and inspection requirements. Ask for a project-specific process and test plan before release.