GlossaryAutomated optical inspection
Automated optical inspection
Automated optical inspection (AOI) is a machine-vision check that photographs a board's parts and solder joints and compares them with programmed rules or a reference board. It flags missing, shifted, rotated or poorly soldered components.
How it works
The board passes under one or more cameras with controlled lighting. 2D systems take top-down images, often with colored or angled lights that make solder fillets show up as distinct shapes. 3D systems add height measurement by projecting light patterns, which shows lifted leads, coplanarity and fillet volume. Software compares each part and joint with the inspection program, which is built from the CAD data, the BOM and a known good board.
Each flagged location goes to an operator, who reviews the image and calls it a real defect or a false call. Real defects go to rework. The images and calls are saved against the board's serial number for traceability.
A false call is a good joint the machine flags as a defect. An escape is a real defect the machine passes. In statistical terms, NIST describes these as type I and type II errors, and tightening one loosens the other. A program tuned to flag everything buries operators in false calls, and they start to wave real defects through. A program tuned too loose lets escapes reach test or the field. Tracking both rates per part and location shows where the program needs tuning.
Many systems add deep-learning models trained on labeled images of good and defective joints. They classify flagged locations and cut manual review, and IPC has published guidance on applying AI to AOI, including the work of deploying it on a production floor.
AOI runs at a few points on a line. The most common is after reflow, to check final joints and placement. Some lines also inspect after placement and before reflow; the printed paste itself is checked by solder paste inspection (SPI).
AOI vs X-ray inspection
AOI sees what is visible from above and at angles. X-ray inspection sees through parts to joints hidden under BGAs, QFNs and connector bodies, including voids inside joints. AOI is fast and runs on every board. X-ray is slower and often runs on samples and first articles. More detail is on the X-ray inspection page.
Why it matters
A placement or solder defect caught right after reflow costs a few minutes of rework. The same defect found at functional test costs debug time, and found in the field it costs a return. Some defects are also easy for a camera to see and hard for an electrical test to explain. A tombstoned 0402 decoupling capacitor often does not change any test reading, but AOI sees it standing on end.
AOI also gives fast feedback on the process. When the same location gets flagged across many boards, the cause is in the stencil, the footprint or the profile, and the line can fix it before the rest of the lot.
How to get it right
- Design for the camera. Clear polarity marks, pin 1 marks and uncluttered silkscreen give both the machine and the operator a clear reference. Tall parts can shadow neighbors.
- Do not treat AOI as a complete test. AOI checks that a board looks right. Hidden joints need X-ray. Electrical function needs in-circuit test, flying probe or functional test.
- Review the first-article images. The machine is only as good as its program. Confirm the reference board and tolerances match what you will accept during first article inspection.
- Watch the false-call and escape rates. A program that flags too much trains operators to wave defects through. Tune by part and location, and recheck after each program change.
AOI in robotics and drone hardware
Robot controllers and drone flight boards pack many small passives, fine-pitch ICs and connectors into small areas. AOI is the practical way to check every joint on every board in those lots. It catches a rotated connector that plugs a sensor in backward, or a missing pull-up that leaves a motor driver disabled, before the board gets anywhere near a robot. For small, frequent lots, a fast program build from CAD data matters as much as the inspection itself.