A missing component or a reversed part found at functional test costs far more to fix than one caught on the line. This guide compares PCB inspection methods and explains how to set up vision checks on an electronics line. For complete inspection stations, see our machine vision inspection page.
What Is PCB Inspection?
PCB inspection is a set of checks on circuit boards and electronic assemblies that finds missing, misplaced or faulty parts and poor joints before the product ships. It combines camera, X-ray and electrical methods.
Wikipedia describes the most common automated method:
“Automated optical inspection (AOI) is an automated visual inspection of printed circuit board (PCB) (or LCD, transistor) manufacture where a camera autonomously scans the device under test for both catastrophic failure (e.g. missing component) and quality defects (e.g. fillet size or shape or component skew).”
How Does a Machine Vision Inspection System Work?
A machine vision inspection system takes a picture of each part, measures what it needs from the image and sends a pass or fail to the line. Every system has the same five parts:
- Lighting: Makes the feature stand out from the background.
- Lens: Sets the field of view and the working distance.
- Camera: Captures the image when a sensor or the PLC triggers it.
- Software: Finds, measures, reads or compares the feature against limits.
- Output: Sends the result to the PLC, a reject device or a database for traceability.
Against manual inspection, a vision system checks every part at line speed with the same limits on every shift and can keep an image of each result.
What Are the Main PCB Inspection Methods?
Each method finds different faults. Most lines combine several.
| Method | What it checks | Where it fits |
|---|---|---|
| Manual visual inspection | Obvious defects, by eye or microscope | Low volume, rework, final check |
| Solder paste inspection (SPI) | Paste height, area, volume and position on each pad | After stencil printing, before placement |
| Automated optical inspection (AOI) | Solder joints, missing and misplaced components | After paste printing and reflow on SMT lines |
| X-ray inspection | Hidden joints under BGAs and inside connectors | Boards with hidden solder joints |
| Electrical test | Shorts, opens, component values and function | In-circuit and functional test stations |
| Custom vision station | Connector pins, labels, codes, assembly steps, robot guidance | Assembly lines beyond the SMT section |
AOI machines are standard products for the SMT line. Custom vision stations cover the assembly steps after it, such as fitting connectors, housings and labels.
What Defects Does PCB Inspection Find?
PCB inspection finds three groups of defects: component defects, solder defects and board defects. Each group needs a different method, so the defect list decides the inspection plan.
| Group | Typical defects | Methods that find them |
|---|---|---|
| Component | Missing, wrong value, reversed polarity, misaligned, tombstoned, lifted leads | AOI, custom vision, electrical test |
| Solder | Bridges, opens, insufficient or excess solder, cold joints, voids, head-in-pillow | SPI, AOI, X-ray |
| Board | Scratches, contamination, lifted pads, damaged traces, delamination | Manual inspection, AOI, X-ray for internal faults |
Imagineering, a circuit board maker, lists component and solder defects by inspection method in its guide, including tombstoning and head-in-pillow joints.
Where Does Each Inspection Sit on an SMT Line?
PCB inspection on a surface-mount line runs at fixed points, each one catching faults before the next process adds cost. A typical sequence runs:
- SPI after printing: Measures the paste on every pad. A poor print is cleaned and reprinted before parts are placed.
- AOI before reflow: Optional check of placement, before the solder fixes the parts in place.
- AOI after reflow: Checks solder joints, missing parts and polarity on the finished board.
- X-ray: Samples or checks every board with hidden joints, such as BGAs.
- Electrical test: In-circuit or flying probe test, then functional test of the finished assembly.
- Assembly vision: Custom stations check connectors, housings, labels and codes after the board leaves the SMT section.
A fault caught at SPI costs a reprint. The same fault found at functional test costs diagnosis, rework and a retest.
Which Vision Checks Run on an Electronics Line?
Five checks come up on most electronics assembly lines:
- Presence, position and polarity: Each component is there, in place and the right way round. Diffuse or dome lighting reduces glare from parts and solder.
- Connector pins: Bent or missing pins show in a 2D image. Pin height, or coplanarity, needs 3D measurement. Our guide to 2D vs 3D machine vision explains the choice.
- Dimensions: Hole positions, gaps and edge offsets measured with high-resolution cameras and telecentric lenses.
- Code reading and grading: The camera reads each Data Matrix code and grades its print quality under ISO/IEC 15415. The serialization page covers grading on a packaging line.
- Vision guidance: The camera finds a part or board and sends its position to a robot. Our guide to the SCARA robot covers robots on electronics lines.
How Do Electrical Tests Compare?
Electrical tests confirm that the circuit works, which a camera cannot see. Two fixture styles are common:
| Flying probe test | Fixture-based in-circuit test | |
|---|---|---|
| How it works | Moving probes touch test points in turn | A bed of nails touches all test points at once |
| Setup cost | Low, programmed from design data | High, a custom fixture for each board |
| Test time per board | Long | Short |
| Best fit | Prototypes and low volume | High volume, stable designs |
A vision station and an electrical test cover different faults. A board can pass electrical test with a cracked housing clip or a smudged label, and a board can pass vision with a wrong-value resistor.
Which Standard Sets the Pass Criteria?
IPC-A-610, the acceptability standard for electronic assemblies, sets pass and fail criteria for solder joints and components in three classes:
- Class 1: General electronic products, where the main need is that the product works.
- Class 2: Dedicated service products that need long life and reliable performance.
- Class 3: High-performance products where downtime is not acceptable, such as medical and aerospace equipment.
The class agreed with the customer sets the limits programmed into AOI and vision stations. A Class 3 board needs tighter limits and higher image resolution on solder fillets than a Class 1 board.
How Do You Size Camera Resolution?
Start from the smallest feature you must find and work back to the camera:
- Feature size: Note the smallest defect or feature, such as a 0.1 mm gap.
- Field of view: Set the area the camera must see, such as a 100 mm wide board.
- Pixels needed: Divide the field of view by the pixel count to get the pixel size on the part.
- Choose the camera: Pick a sensor that puts enough pixels across the feature, then prove it in a trial.
The table works the arithmetic for a 0.1 mm feature:
| Field of view width | Sensor width | Pixel size on the part | Pixels across 0.1 mm |
|---|---|---|---|
| 100 mm | 2,448 px | 0.041 mm | 2.4 |
| 100 mm | 4,096 px | 0.024 mm | 4.1 |
| 200 mm | 4,096 px | 0.049 mm | 2.0 |
| 200 mm | 5,472 px | 0.037 mm | 2.7 |
| 400 mm | 5,472 px | 0.073 mm | 1.4 |
A large board with a small feature needs a larger sensor, several images or a line-scan camera. Our guides to the machine vision camera and the machine vision lens cover the choice.
Pro Tip: Check depth of field on warped boards. A high magnification keeps a narrow band in focus, and the edges of a warped panel can fall outside it.
Which Lighting Should You Use?
Lighting decides what the camera can see. Dome or diffuse light suits shiny components and solder. Backlight shows pin outlines and holes. Low-angle light shows scratches and raised edges. Our guide to LED lighting for machine vision explains how to trial each type on real parts.
How Does the Vision System Connect to the PLC and Robot?
The vision system and the machine exchange a few clear signals:
- Trigger: The PLC tells the camera the part is in place.
- Result: The camera returns pass, fail or invalid image, tied to the part serial number.
- Position: For guidance, the camera sends a position offset in the robot’s coordinates.
- Recipe: The PLC selects the inspection program for each product.
A missing result or a camera fault rejects the part, never passes it. Our comparison of smart camera vs PC vision covers where the processing runs.
Which Vision Platform Fits?
Choose the platform for the part and the task. Our comparison of Cognex vs Keyence looks at two common platforms. Trained models suit defects that vary in look, covered in our guide to AI visual inspection. Our guide to machine vision vs computer vision explains how factory vision differs from general image software.
Rule of Thumb: Choose the lighting and camera before the software. A clear image makes a simple tool work.
How Do You Prove a Vision Check Before You Buy?
A feasibility study shows whether your defects can be found before the station is built:
- Send samples: Good boards or parts and examples of every defect.
- Image trial: Test lighting, lens and camera on the samples.
- Set limits: Set pass and fail limits and compare them with your inspectors.
- Station design: Design the part handling, camera mounting and machine connection around the result.
Electronics Vision Stations We Build in Singapore
Machine vision uses Keyence and other platforms selected for the part and the inspection task. We design vision inspection and vision-guided stations for electronics assembly lines, from presence and polarity checks to code grading and robot guidance. See our electronics and semiconductor automation page for the wider range.
Vision checks on medical device lines follow the same methods, covered on our medical device automation page. For a medical device manufacturer we have delivered vibratory bowl feeders, an orientation proof of concept, an indexing conveyor with reject and bowl vision inspection. We design and build dedicated test equipment for the part, and automate loading, handling and data around laboratory testing machines our customers own.
Adding vision to an electronics line? Send us sample boards or parts with examples of each defect, the features to check, the cycle time and how parts reach the station.