|
|
|
The Basics of This
tutorial explains the operating principles of diffuse and
specular laser triangulation sensors, along with their
advantages and drawbacks. William P. Kennedy, CyberOptics Corp.
being examined. Smooth surfaces, such as mirrors, are specular; others, such as anodized aluminum, are diffuse (see Figure 2). Smooth or shiny surfaces typically require a specular sensor (the laser illumination hits the target such that the primary reflected light is reflected into the receive optics), while surfaces that scatter light are easier to measure with a diffuse sensor. So the selection of sensor type is dictated by the surface of the object being examined. A measure of the received signal strength (more = better), or of the amount of time required to achieve a desired signal strength (less = better), is an indication that the right type of sensor has been chosen. Many surfaces, however, display both specular and diffuse characteristics and thus complicate the selection process. In those cases the user must experiment. (Often the sensor manufacturer will be happy to run an application study to help the end user decide which type of sensor is preferable.) Sensor
Subsystems
Transmitter. The transmitter, typically a laser diode with beam-shaping optics, projects a beam that illuminates the target object. The most popular transmitter at present is an inexpensive, low-power 670 nm laser diode with a visible beam. The optics used to manipulate the laser diode output creates a small spot at the standoff distance. The size of the spot is dictated by the optical design, and influences the overall system design by setting a target feature size detection limit. For instance, if the spot diameter is 30 µm it will be difficult to resolve a lateral feature <30 µm.
Keep in mind that the feature size limitation is the spatial lateral resolution, approximately equal to the spot diameter (see Figure 4). Where the beam diameter is larger than or the same size as the feature, the sensor has sufficient resolution; where the feature is smaller than the beam diameter, the resolution is inadequate for feature detection and measurement. Spot diameter is usually specified in the center of the working range, but the limitations of physical optics dictate that it will not remain that size throughout the working range. The beam-shaping optics forms a beam
waist at the standoff distance; at the extremes of the working range the beam diameter is larger (see Figure 5). The same rule of feature size detection holds true at the extremes of the working range, but the beam size is larger so the detectable feature size is larger also. The feature size detection limitations of the beam diameter may be an important consideration for some applications. Receiver. The receiver/detector subsystem gathers the light reflected off the target and images the light onto a detector. The detector then reports the spot position to the processor, which determines the range or height. Of the many types of optical detectors available, two are most commonly used for laser triangulation sensors: position-sensing detectors (PSDs), and pixelized array detectors, also known as arrays. Each type has limitations and capabilities. PSDs are analog detectors. PSD-type triangulation sensors use single-dimension detectors with electrical current outputs at each end. The amount of current
from each output is proportional to the spot's position on the detector. If the spot is in the middle of the detector, the two outputs will be equal; as it moves off center, the two outputs change and spot position can be calculated from the relative change (see Figure 6). One advantage of PSD-based systems is speedthe data rate can be on the order of 200 kHz. PSDs are efficient and the processing required to get an answer is simple. Another advantage is that an output will be given regardless of the intensity distribution of the spot. To an extent, this removes the effect of laser speckle from the system, albeit in a somewhat questionable manner. Speckle is an optical noise effect that limits the ability to determine true spot position. One disadvantage of PSDs is that the centroid of the spot is determined by the detector. If two spots are present the detector will report a single centroid of both spots. Another drawback is that PSD systems are very sensitive to spot intensity. This is inherent in the detector and can be accommodated by additional circuitry. The effect of this sensitivity is that if the spot intensity changes while the spot position remains the same, the calculated position of the spot may change.
Pixelized array detectors are referred to as digital detectors, not in the sense of 0s and 1s but rather because their output is composed of discrete voltages representing the amount of light on each element of the detector. A 256-element detector consists of 256 discrete samples that constitute the output signal (see Figure 7). Array detectors require more postprocessing than do PSDs, and the data rates are normally slower. Furthermore, array detectors are usually larger than PSDs, making for a larger sensor package that may present integration problems. Array detectors do, however, have a number of unique properties that make them of interest for triangulation sensors. The ability to "view"
the intensity distribution of the imaged spot allows the user to truly understand the nature of the material or part being examined. There are many cases, such as threads or transparent materials, where there will be multiple spots on the detector. Without a digital detector the user may be unaware of this. Observing the detector output on an element-by-element basis allows the user to better understand the application. The most important advantage of an array-based triangulation sensor is the ability to perform postprocessing on the signal. In the simplest form, the position of the spot is determined by performing a weighted centroid on the array data. If each pixel voltage is converted to an 8-bit digital word, the result is an array of 256 words ranging in intensity from 0 to 255. To calculate the centroid, use: Where: This equation yields the centroid of the spot position in pixels and allows the triangulation system user to determine the location of the center of the spot to a fraction of a pixel. Postprocessing. Processing electronics vary according to the type of detector used in the sensor. It should be apparent that the amount of postprocessing that can be performed depends on the amount of information available from the detector. PSDs provide two electrical current outputs that are proportional to the position of the imaged spot on the detector. These currents are converted first to a voltage, then to a digital word via an A/D converter. The equation in Figure 6 [(X2 X1) / (X2 + X1)] is used to determine the spot's position on the detector. The only other information that can be derived from the PSD is that the two outputs can be summed together to measure the total optical power on the detector. But there is no way to determine any of the characteristics of the spot distribution or even the total number of spots on the detector. On the other hand, an array detector provides a large amount of information for postprocessing. The user can observe and manipulate multiple reflections, perform thresholding, and execute specialized digital filtering. Thresholding. Thresholding is a technique used to selectively discard unwanted information. In the simplest case, thresholding can be
used to filter out spurious reflections and noise in the sensor system. In Figure 8, the small-intensity values in the pixels that are not part of the real spot will slightly shift the spot's calculated centroid. It would be more obvious if the spot were at one end or the other of the detector. The horizontal line in Figure 8 indicates where the threshold would be set to counteract the effect of noise. By setting the threshold above the noise, all pixel values equal to or less than the threshold value are set to zero before calculating the centroid. This removes most of the optical and electronic noise from the image, ensuring that the resulting centroid calculation will not be biased. Another application of thresholding is the suppression of secondary images. Figure 9 is typical of a transparent glass or plastic component where the
laser reflects not only from the top (first surface), but also from the underside of the material (second surface). There are two distinctly different spots separated by the thickness of the material. One spot has an amplitude greater than the other's because the amount of reflected light is greater from the first surface than the second surface. To determine the distance to the first surface, thresholding can be used to suppress the secondary spot; the result is that the centroid calculation is performed on the largest spot. If this measurement were made with a PSD detector system, the result would appear to position
Multiple Spot Images. Multiple spot images can be processed in a manner other than thresholding. This is useful for applications such as measuring the thickness of a glass or plastic component or a coating. Such images are composed of two spots (see Figure 10). Multiple spot postprocessing can be accomplished by effectively segmenting the image into a collection of single images, sometimes referred to as windows, and calculating the centroid of each image. The resulting centroids are subtracted to determine the thickness.
Linearization William P. Kennedy is an Optical Design Engineer, CyberOptics Corp., 5900 Golden Hills Dr., Golden Valley, MN 55416; 800-746-6315 or 612-331-5702, fax 612-331-3826, info@cyberoptics.com
|
||||||||||||||||||||||||
|
|