Automated Optical Inspection (AOI) is a machine vision system that examines assembled PCBs for defects by comparing high-resolution camera images against a reference model. AOI catches solder defects, missing components, wrong polarity, and misalignment at production speeds without human fatigue. For Indian electronics manufacturers, AOI is becoming a standard quality control step, available from most assembly houses for orders above 100 units. This guide explains how AOI works, what it catches, its limitations, and how to design PCBs for optimal AOI inspection.
Table of Contents
- How AOI Works
- Defects AOI Can Detect
- Limitations of AOI
- 2D vs 3D AOI
- SPI — Solder Paste Inspection
- Design for AOI
- Cost and ROI
- Frequently Asked Questions
How AOI Works
An AOI machine captures images of the PCB from multiple angles using high-resolution cameras and structured lighting. It then compares these images against a reference (either a “golden board” image or CAD data) using pattern matching and machine learning algorithms.
- The PCB is transported into the machine on a conveyor
- Multiple cameras capture images from top-down and angled perspectives
- Structured light (coloured LEDs at different angles) reveals 3D surface features like solder fillet height
- The software analyses each component location, comparing against expected shape, colour, and position
- Defects are flagged with their location, type, and confidence level
- An operator reviews flagged defects and confirms or dismisses each one
Modern AOI machines inspect a full panel in 5-15 seconds, achieving throughput of 200-400 components per second.
Defects AOI Can Detect
| Defect Type | AOI Detection | Confidence |
|---|---|---|
| Missing component | Excellent | 99%+ |
| Wrong component (size/colour mismatch) | Good | 90-95% |
| Component misalignment/rotation | Excellent | 98%+ |
| Tombstoning (component standing on end) | Excellent | 99%+ |
| Solder bridge (short between pads) | Good to excellent | 90-98% |
| Insufficient solder | Moderate (2D) / Good (3D) | 70-90% |
| Excess solder | Moderate (2D) / Good (3D) | 70-90% |
| Wrong polarity | Good (if marking visible) | 85-95% |
| Solder ball | Good | 85-95% |
| Lifted lead | Moderate | 70-85% |
Limitations of AOI
AOI is not a complete quality solution — it has significant blind spots:
- Cannot see under components: BGA and QFN solder joints are hidden beneath the package. Use X-ray inspection for these
- Cannot test electrical function: AOI verifies physical appearance, not electrical connectivity. A visually perfect solder joint can still be electrically open (cold joint)
- Cannot read component values: AOI verifies component presence and size but typically cannot read resistor/capacitor markings accurately. It cannot distinguish a 10kΩ from a 100kΩ resistor in the same 0603 package
- False calls: AOI generates false positives (flagging good boards as defective) at rates of 1-10% depending on programming quality. An operator must review each flag
- Solder mask colour affects performance: Green solder mask provides the best contrast. Black solder mask significantly degrades AOI performance due to low contrast between pads and mask
2D vs 3D AOI
| Feature | 2D AOI | 3D AOI |
|---|---|---|
| Technology | Flat image comparison | Structured light / laser height measurement |
| Solder joint evaluation | Colour and shape only | Height profile of solder fillet |
| Coplanarity check | Limited | Measures component height above board |
| False call rate | Higher (5-10%) | Lower (1-3%) |
| Cost | Lower — machines from $30K | Higher — machines from $80K |
| Board warpage handling | Poor — warped boards cause focus issues | Good — compensates for warpage |
3D AOI is becoming the industry standard for production volumes above 10,000 units. For lower volumes, 2D AOI is adequate when combined with visual spot-checking by trained operators.
SPI — Solder Paste Inspection
Solder Paste Inspection (SPI) is performed after stencil printing but before component placement. It measures the volume, height, and area of solder paste deposits on each pad:
- Catches insufficient paste, excess paste, bridging, and misalignment before components are placed
- Prevents 70-80% of assembly defects at the earliest possible stage
- Feedback loop: SPI data adjusts stencil printer settings in real-time for continuous process improvement
- Cost: usually included by assembly houses that have SPI machines — no additional charge per board
The combination of SPI (pre-placement) + AOI (post-reflow) catches the vast majority of manufacturing defects without the cost of ICT fixtures.
Design for AOI
Optimise your PCB design for effective AOI inspection:
- Use green solder mask: Highest contrast for camera systems. Avoid black or dark-coloured masks for production boards
- Add fiducial marks: Three global fiducials (1mm circle with 2mm mask opening) at board corners for AOI alignment. Add local fiducials near fine-pitch components
- Consistent component orientation: Align all polarised components in the same direction — AOI learns one template and applies it to all instances
- Adequate pad exposure: Solder mask openings should fully expose pads. Mask encroaching on pads confuses AOI algorithms
- Reference designators: Clear silkscreen labels near each component help operators quickly locate flagged defects during AOI review
- Avoid components near board edges: AOI cameras need 2-3mm board edge clearance for proper imaging
Cost and ROI
| Volume | AOI Cost per Board | ROI |
|---|---|---|
| 100-500 units | ₹15-30 | Catches 5-15% defect rate typical for new assemblies |
| 500-5,000 | ₹8-15 | Prevents field returns worth 10-50x the AOI cost |
| 5,000+ | ₹5-10 | Essential — defect cost at volume makes AOI mandatory |
A single field return (customer complaint, shipping, replacement, reputation damage) costs 10-100x the manufacturing cost of the defective board. AOI is one of the cheapest insurance policies in electronics manufacturing.
Frequently Asked Questions
Does JLCPCB include AOI with assembly?
Yes, JLCPCB includes AOI as part of their SMT assembly service at no extra cost. They use 2D AOI machines for standard orders and 3D AOI for premium orders. PCBWay also includes AOI in their assembly pricing.
Can AOI replace manual visual inspection?
For production volumes, yes — AOI is faster and more consistent than human inspectors. However, a trained human is better at catching unusual defects that the AOI was not programmed to detect. The best approach is AOI for 100% inspection plus periodic human audit of random samples.
How do I interpret AOI results?
AOI reports list each defect with: board ID, component reference designator, defect type, defect image, and confidence score. Review flagged defects in the AOI software — click each flag to see the actual image alongside the reference image. Accept real defects for rework, dismiss false calls. Track false call rates — if a specific component or pad consistently generates false calls, adjust the AOI programme.
Is AOI necessary for through-hole assemblies?
AOI is optimised for SMD assemblies. For pure through-hole boards, visual inspection is usually sufficient because through-hole solder joints are large and visible. For mixed assemblies (SMD + through-hole), AOI inspects the SMD side and visual inspection covers the through-hole side.
Get soldering supplies, test equipment, and assembly tools at Zbotic Soldering Tools — delivering across India.
Add comment