Structured-light measurement turns an ordinary camera into a 3D instrument. It is the principle behind most modern solder paste inspection systems and a great many other non-contact gauges. The idea is simple, and understanding it helps in judging what a system can and cannot do.
Triangulation: the basic principle
Shine a line of light onto a flat surface at an angle and look at it from directly above. The line appears straight. Put an object in its path and the part of the line falling on the object shifts sideways. The taller the object, the larger the shift. Because the projection angle is known, the sideways shift can be converted into height by simple geometry. This is triangulation.
From a line to a pattern
A single line gives height along one profile. To measure an area, either the line is scanned across it or a whole pattern of lines is projected at once. That pattern is the “structure” in structured light. A camera records how the pattern is distorted by the surface, and software converts the distortion at every pixel into a height value. The result is a height map: an image in which each pixel holds a height instead of a brightness.
Phase shifting: where the precision comes from
Locating the edge of a projected line is limited by the size of a camera pixel. To do better, many systems project a pattern whose brightness varies smoothly, like a sine wave, and capture several images with the pattern stepped sideways a fraction of its period each time. From the way each pixel’s brightness changes across those images, the software calculates the phase of the pattern at that pixel very precisely, far finer than the spacing of the lines themselves. This is why a system with pixels several microns across can resolve height to a micron or better.
From height map to measurement
- Find the reference surface: the board or pad around the deposit.
- Separate the deposit from the background using height.
- Height is the distance from the reference plane to the top of the deposit.
- Area is the number of pixels in the deposit multiplied by the pixel area.
- Volume is the sum of the heights of all those pixels multiplied by the pixel area.
Because volume is summed from the measured profile, it reflects the true shape of the deposit, including slumped edges, peaks and hollows.
What limits accuracy
- Shadows: a tall feature can block the projected light from reaching the area behind it. Projection angle and multiple projection directions address this.
- Reflections: shiny surfaces can bounce light into the camera from the wrong place.
- Reference plane: the height of a deposit is only as good as the estimate of the surface it sits on. On a warped board the reference has to be found locally.
- Focus: the pattern and the camera must both be in focus over the height range being measured.
- Calibration: the conversion from pattern shift to height depends on geometry that must be calibrated against a known standard.
White light, infrared and lasers
The light source affects how surfaces respond. White LED light gives a color image alongside the height data. Infrared can give more consistent returns from some board materials and solder masks. A laser stripe is bright and sharp, and is often used for a fast focus or height reference. Systems may combine more than one.
Why it suits solder paste
Wet paste is soft, so it cannot be touched. Deposits are tens to hundreds of microns high, which is the range where structured light is at its best. And there are thousands of them on a board, so measuring an entire field of view in a fraction of a second is essential. The same properties make the method suitable for adhesive beads, ball grid arrays and other small features.