AOI inspection (automated optical inspection)
AOI inspection (automated optical inspection) uses cameras and image processing to check assembled PCBs for missing, shifted or wrong-polarity components and visible solder defects. An AOI machine compares each board with a reference programmed from the design data. It runs after reflow on most SMT lines, but it cannot see joints hidden under BGAs or QFNs.
How AOI inspection works
An AOI system lights the board from several angles and captures images with one or more high-resolution cameras. Software then compares what it sees with a reference: a library model of each component, the placement data for the board and the expected shape of each solder joint. Anything outside the programmed tolerance is flagged for an operator to review.
On an SMT line, AOI inspection is most often placed after reflow soldering, where it can check both placement and solder joints. Some lines also inspect before reflow, to catch placement errors while they can still be corrected without rework. Solder paste inspection (SPI) is a related step that measures the printed paste before components are placed.
Typical defects found by AOI inspection:
- Missing, extra or wrong components, where the body size or marking differs from the library
- Shifted, skewed or rotated parts, and tombstoning
- Wrong polarity on diodes, polarised capacitors and ICs
- Solder bridges, insufficient or excess solder and lifted leads on visible joints
- Damaged components and foreign material on the board
AOI is also used in bare-board fabrication. There, etched copper layers are compared with the CAM data to find opens, shorts and nicks before lamination. This page focuses on AOI in PCB assembly; for the full test sequence, see our guide to PCB testing and inspection methods.
AOI has limits. It only sees what is visible from above, so joints under BGA and QFN packages need X-ray inspection. It also checks appearance, not function: an unmarked capacitor with the wrong value or a faulty IC needs electrical testing, such as ICT or functional testing.
When AOI inspection matters
AOI inspection matters on almost every SMT assembly, because manual visual inspection cannot keep up with modern part sizes and placement counts. It becomes more important as boards get denser: small passives such as 0201s, fine-pitch ICs and double-sided placement all add places where a small shift or bridge can occur.
For prototypes, AOI gives fast feedback on the first boards of a new design. In series production, AOI data also shows trends, such as a feeder that starts to misplace parts or a print process that drifts, so the cause can be fixed before it produces scrap.
AOI only adds value if the program is tuned. Too tight, and operators spend time on false calls; too loose, and real defects pass. Clear polarity marks, consistent footprints and fiducial marks on the board make programming easier and the results more reliable. For high-reliability products built to IPC-A-610 Class 3, AOI is normally combined with X-ray and electrical testing rather than used alone.
2D vs 3D AOI, and AOI vs X-ray inspection
2D AOI judges the board from top-down images. That works well for presence, position and polarity, but height-related defects such as lifted leads are harder to judge. 3D AOI adds height measurement, usually with projected light patterns or lasers, so it can measure solder fillets and component coplanarity and tends to give fewer false calls. X-ray inspection does not replace AOI: it is slower and is normally used for the parts AOI cannot see.
AOI inspection in your quote request
In your quote request, state whether AOI is required on every board, and whether 3D AOI is needed for fine-pitch parts. If the board has BGAs, QFNs or other bottom-terminated packages, also say whether X-ray inspection is required and on how many boards. Include the IPC-A-610 class, a pick-and-place file and an assembly drawing with clear polarity marks, so the inspection program can be built correctly. If you need AOI reports or images with the delivery, mention it.
Need boards assembled? Send your Gerber files and BOM for a free turnkey quote from the right assembly partner.
PCB assembly →FAQ about AOI inspection
What is AOI inspection?
AOI inspection (automated optical inspection) is a camera-based check of a PCB. An AOI machine captures images of the board and compares them with a programmed reference to find missing, shifted or wrong-polarity components and visible solder defects. In PCB assembly it usually runs after reflow; in bare-board fabrication it checks the etched copper layers.
What is the difference between 2D and 3D AOI?
2D AOI inspects top-down images, which show whether parts are present, correctly placed and the right way round. 3D AOI also measures height, so it can judge solder fillet shape, lifted leads and component coplanarity more reliably. 3D systems generally give fewer false calls on fine-pitch parts, while 2D remains common on simpler boards.
What is the difference between AOI and AXI?
AOI uses light and cameras, so it only inspects surfaces it can see. AXI (automated X-ray inspection) uses X-rays that pass through components, so it can inspect joints hidden under BGAs, QFNs and other bottom-terminated packages, including voids. Many assembly lines use AOI on every board and X-ray only on boards with hidden joints.
Can AOI replace electrical testing?
No. AOI checks how the board looks, not how it works. It cannot confirm the value of unmarked components, detect a faulty IC or verify that the circuit performs as designed. Electrical tests such as ICT or flying probe, followed by a functional test, are still needed to confirm that the board works.
Related terms
- X-ray inspection
PCB X-ray inspection uses X-rays to look through components and the board, revealing solder joints that cameras cannot see. It is the standard way to check BGAs, QFNs and other bottom-terminated packages for bridges, opens, voids and head-in-pillow defects. Automated X-ray inspection (AXI) systems can run the check in production without damaging the board.
- Functional testing
PCB functional testing (FCT) powers up an assembled board and checks that it behaves as specified: voltages, currents, signals, communication and firmware responses. Unlike ICT or flying probe, which look for manufacturing defects in individual components and joints, a functional test checks the board as a whole. It is usually the last test before shipping.
- ICT
ICT (in-circuit test) is an electrical test for assembled PCBs that checks individual components and connections. A bed-of-nails fixture contacts test points across the board, and the tester measures for shorts, opens, wrong or missing components, wrong values and incorrect orientation, without needing the board to run its intended function.
- Fiducial marks
PCB fiducial marks, or fiducials, are small exposed copper dots that assembly machines use as reference points. Cameras in the stencil printer and pick-and-place machine locate the fiducials and correct for the board's position, rotation and stretch before printing paste and placing parts. A typical fiducial is a 1 mm round pad with a clear area around it.
- IPC-A-610
IPC-A-610 is the IPC standard that defines visual acceptance criteria for electronic assemblies. It describes what acceptable and defective solder joints, component placement, cleanliness and damage look like on a populated PCB, using photographs and illustrations, across three product classes. It is the most widely used inspection standard in PCB assembly.
- Reflow soldering
Reflow soldering is the process used to solder surface-mount components to a PCB. Solder paste is printed onto the pads, components are placed on the paste, and the board passes through an oven that follows a controlled temperature profile. The paste melts, wets the pads and leads, and forms solder joints as it cools.
