Sei sulla pagina 1di 5

Parallel Processing Machine Vision System

for Bare PCB Inspection

Ji-joong Hong, Kyung-ja Park, Kyung-gu Kim


LG Production Engineering Research Center
19-1 Cheongho-R Pyungtaik-City Kyunggi-Do, 45 1-713, Korea
E-mail :jhong@lge.co.kr

Abstract - In this paper, new real time bare PCB During etching process, the anomalies occuring on bare
inspection system and the inspection methods are PCB could be largely classified in two categories : the one
presented. After a brief introduction of classical is excess of copper and the other one is missing copper.
inspection methods, the outline of our new automatic The incomplete etching process leaves unwanted
optical inspection(A0I) system configurations and conductive materials and forms defects like short, extra
inspection methods are described. hole, protrusion, island, small space and so on. And the
The goal of our inspection system is the real time excessive etching makes open, pin hole, nick(mousebite),
inspection without a lot of computing power thin pattern and something like that. In addition to the
consumption. Because the design-rule verification defects metioned above, some other defects may exist on
process directly to the image patterns is a time bare PCB, for example, missing holes (due to tool break),
consuming process, its not appropriate to get real time scratch (due to handling mistake), cracks and so forth. In
inspection speed. Instead of that, we chose the Fig.2. (b), there are shown some kinds of defects. In recent
reference comparison method and overcame the years, the pattern width and space become smaller and
disadvantages of it. This makes the inspection system smaller to increase the integration rate of electrical
more cheaper, practical and efficient to realize the components per unit area of PCB. This means the size of
real time inspection system. The design and defect is also minute and actually may be less than 30
development of our prototype of new A01 system is micron. This defects are not easily detected by the human
discussed and the test results are presented to show the eyes and takes too much inspection time even though it is
effectiveness of the developed inspection algorithm. possible. In this reason, the automatic optical inspection
systems are needed.

I. INTRODUCTION So far, many approaches for automatic bare PCB


inspection have been tried and proposed in the
The bare PCB means the printed circuit board before literature[11. Below, a brief advantages and disadvantages
the insertion or placement of components and the of those methods are described and compared each other.
soldering process, Following a material from Siemens
(Fig.l), the cost of bare PCB is just less than 8.7 ?LOof a A . DRC(Design Rule Checking)
electrical goods. If a PCB having some faults is assembled
with many other components to complete a electric As a kind of automatic inspection algorithm for bare
product which is surely judged to inferior goods by final PCB, the design rule checking has been proposed and well
electrical test, we should waste the total spent cost. So, its known to the A01 system manufacturers. DRC method
by all means required to inspect the bare PCB at the checks if all patterns and spaces of PCB surface meet or
foremost step to produce electrics goods. violate common knowledge which is called the design
rule. Because a simple algorithm is applied directly to
achieved image, the implementation of this algorithm is
Wound comparatively easy. This means it does not require severe
DPD Compon alignment and adjustment of a mechanical part to get non-
lntegrat
distorted image. However, this method is very time
ed
consuming process and a great computing power is needed
Circuits to meet users requirement of inspection time. And much
time is taken to register the proper rules in every model
changing time.
Consum Fig.2 is to show the concept of the morphological
able
Material s ,5.90%
inspection which is one of the representative DRC
S 6.50% algorithm. Fig.2 (b) is the artificially made bitmap image
which some kinds of defects are added on. Fig.2 (a) is the
original good image. If erosion and dilation of image (b)
Fig. 1 Cost constitution of electrical products is carried out alternately, then the result image subtracted

0-7803-4503-7/98/$10.00 1998 IEEE 1346


from original image (a) represents the defect image (d). At depending method requiring a great computing power and
a glance, the defect image (d) may be seen as a good cost..
result. But, even when we applied this algorithm to the
good image (a), some unwanted defects are detected at the
sharp edge of semi circle pattern and we call this false
alarm. This false alarms exist also on image (d). This is a
critical disadvantage of morphological inspection method
because a few of sharp patterns which exist on inner layer
can not be inspected correctly.

a) R e f e r e n c e I m a g e b) T a r g e t PCB Image

a ) Good Image b) D e f e c t s I m a g e

c ) S u b t r a c t e d Image dl
( D e c i r ion A p p l i e d )

Fig.3 Reference comparison method

d) Defects i n c l u d i n g
c ) False Alarm by
F a l s e A l a r m by 11. AUTOMATIC INSPECTION SYSTEM
Morphological
Morphological
Processing
Processing
The inspection system proposed in this paper is
Fig.2 Design Rule Checking PCB inspection method by basically adapting a reference comparison method. Three
morphological processing main goals that we are pursueing are 1) the just on time
processing which means the total inspection would be
B. Reference comparison method finished simultaneously as the scanning is finished to
attain the real time inspection and the efficiency of
This method is very simple in aspect of idea. As shown memory, 2) the single pass processing system not refering
in Fig.3, a target image (b) is subtracted from good the past information of PCB image to save the inspection
reference image (a) to generate the difference image (c). It time and 3) to allow some misalignment which makes the
means the point-to-point comparison. The reference data mechanism cheaper and easer. To overcome the several
is achieved from a good board which is sometimes called a disadvantages arising in the reference comparison
golden board or from CAD data[2] generated in the method, some unique methods are proposed as described
former process. Because the algorithm is very simple, we below.
can get high inspection speed compared to DRC method.
However, as the amount of bitmap reference data is A . Overview of proposed parallel processing bare PCB
hundreds of megabytes per each layer, to be compared inspection system
with multi layer boards, the inspection system is troubled
to store the reference data. Besides, as shown in Fig.3 (c), In Fig.4, there is shown the block diagram of the
we cant avoid from too many small differences between proposed bare PCB inspection system. From the CAD data
the reference image and the target image on account of the (here Gerber Data) which is output of artwork for PCB
etching factor, misalignment of vision grabbing system, patterns, the reference data is generated in the form of
the distortion of optical lens and so on. So, there must be a MRL,C(Modified Run-Length Code) which is special
special algorithm to distinguish these differences from compressed data type of image. Each layer of MLB(mu1ti
defects. layer board) is produced by exposure, developing, and
etching processes. A number of digital line scan cameras
C. Hybrid methods grab and send the PCB images to frame grabbers and the
machine vision hardwares. Then, after certain pre-
Nowadays, considering the state of affairs of a processings like shading compensation, thresholding and
inspection system, the combined inspection methods are MRLC generation, the comparison between reference data
used. This hybrid type merged the advantages of the and target data is processed. And then, the decision if
reference comparison method and the DRC method to clustered defect candidates are real defects or not.
overcome the weakeness of each methods. But, because This camera and vision hardware units are multiply
this is just focused on the reliability of detecting used condidering the maximum resolution and the PCB
capability, it is also a time consuming and hardware size. Now maximum 8 cameras are established and the

0-7803-4503-7/98/$10.00 1998 IEEE 1347


maximum inspection area is 600 x 600 mm2 for the referece and target data. The conventional run-length code
resolution of 10 micron. The defects of each cameras are has a value information -white or black- and the length
gathered and sent to the verification system to necessarily that how long the value runs (Fig.6).
identify the defect and repair the faults.

A n
P W 1 1 1 W

3 Fig.6 The concept of Run-Length Code

To be utilized at the comparison of inspection, several


flag informations like end of line, direction of patterns and
hole flags are inserted to the conventional run-length
code. The 2 bytes form of proposed modified run-length
code is shown in Fig.7.

Fig.4 Block diagram of proposed bare PCB inspection value of run unused
system

2Bytes
Linear camera has 4096 pixels and maximum line rate
of 7.4 KHz. The vision hardware were developed by end of line flag directionflag Length
ourselves using TI C40 processors. It is constituted with 4 (1bit) (1bit) (12 bits)
modules : the digital line image grabber module to achieve
an image and store to SRAM (static random access Fig.7 Modified Run-Length Code
memory), the preprocessing module for thresholding,
shading compensation and run-length coding, the power
processing module for the main inspection, and display As shown in Fig.8, the experimental result shows that
module to show the result image on a monitor and 120 Mhytes bitmap image data can be compressed to only
communicate with PC host. Especially, the pre-processing 4 Mbytes by means of MRLC method.
hardware was developed by Arcobel Graphics Japan using
Imagin Chips. More detail data flow are shown in Fig.5.

(16bits format)
120 Mbyte Data 4 Mbyte Data
Fig8 Compressingbitmap image data to MRLC

. .

Fig.5 Vision hardware C. Generation of Reference data

The reference data which is compressed MRLC form is


B. MRLC (1ModiJiedRun-Length Code) getting by the CAD interface program. This program
converts the CAD output data like RS-274X or Gerber to
As described at the introduction of the reference MRLC. To do so, at first it generate bitmap or vector
comparison inspection methods, the amount of bitmap image to analyse the plotting information of CAD data
reference data is over hundreds of megabytes. The and then calculate the lengths of values. The flags
reference data must be stored to S R A M for high access described at the above section are found in this step.
speed not on the hard disk. If we consider the 500 x 600 After the original Gerber or RS-274X file is converted
mm area of PCB to be inspected and the resolution of 10 to bitmap image, considering the optimal manufacturing
micron, though the image is binarized and compressed to condition, many operations change the original CAD data
1 bit for 1 pixel, the size of memory to store reference to dispose the unit PCBs on the panel. So the last output
image is over 375 Mbytes. It increases the system cost too after panel editting must be converted to the MRLC
high. Besides, if we compare pixel-to-pixel, due to the reference data. Fig.9 shows the editting process to be
redundant parts of small difference at edge of patterns, we modified in manufacturing site.
should suffer from the increase of inspection time and too
many false alarms.
By these reason, the run-length code is used to store the

0-7803-4503-7198/$10.00 1998 IEEE 1348


I Original Data I
m reference

a
Panel
Editing
C
I target
Fig. 11 Defect candidates arising in pattern

Step 2 : Decision of defect candidates

When a MRLC difference is registered to defect


candidates, it generates a descriptor structure which
Fig.9 CAD data editting process includes several informations, for example, length and
size, pointing index of the previous and next descriptors.
D.Real-time inspection algorithm So, if the defect candidates were arised in vertical
patterns or spaces (Fig.12 a), the left and right MRLC are
The inspection process is devided into two steps : the examined to judge if the candiates are real defects or not.
one is clustering of defect candidates and the second one In the same way, the defect candidates on the horizontal
is decision of the clustered candidates. patterns or spaces (Fig.12 b) are judged from the upper
and lower relationships.
Step 1 : Clustering of defect candidates

The lines in the Fig.10 are representing the profiles of


reference and target patterns. The thick line A is the
reference profile which is type of MRLL!. The line A and
A are indivisually the profiles of expanded and reduced
target patterns. The light part (yellow) is indicating
copper pattern and the dark part (gray) is substrate. The
direct comparison of reference and target will leave the dl
marginal differences which are represented by dashed
rectangles. But, if we compare the length of them, the
small differences in edge part can be ignored because it is
not a defect but just expansion or contraction due to Fig. 12 Defects candidates on Vertical(a) and
etching conditions. Of course, the large differences to Horizontal@)patterns
violate the defect specifications would be classified into a
candidate of defects like B in Fig. 11.
111. RESULTS AND CONCLUSION

In Fig.2, there was shown the inspection result using


morphological DRC method. There, we found the
expanded target unwanted defects, false alarms. In contrast with the result,
the inspection result using MRLC comparison method,
shown in Fig.13, has no false alarm. Red rectangles are
surrounded to the found defects to display the inspection

1 reduced target results. T h s image was artificially made with size of 512
x 512 pixels. The inspection times is only 10 msec while
the time for morphological processing is 2.8 sec for the
Fig. 10 Small difference of patterns in edge same size image. Of course, this image is so simple and
clean that makes the processing time short.
As in Fig. 11, when the target profile is compared to the The result that same MRLC comparison method was
reference profile, the differences B and C are classified applied to the real image is shown in Fig.14. To be seen
into the candidates of defects. In contrast with the defects clearly, the parts were cut out from the whole image. In
on patterns, the defects on space could be applied to the the normal patterns, no defect is not found although the
same situation. In this case, the value of space profiles are target pattern thickness (white) is slightly differenct from
converted to 0 and the defects would be 1. the reference pattern (orange color).

0-7803-4503-7/98/$10.00 1998 IEEE 1349


Fig. 13 Defects detected by MRLC comparison
(simulation)

1lil
ROTRUSIOI
NICK

Fig. 14 Inspection result of MlUC comparison algorithm


(real image)

The experimental results are found to be very effective.


This approach is found to handle all kinds of defects that
normally exist in bare printed circuit boards. Currently
there is no single full scale automated inspection system
that successfully inspects all kinds of defects that can exist
in a PC board. The method presented here is by no means
limited to this particular application or defect types.

IV. REFERENCES

[l] M.Moganti, F.Erca1, C.H.Dagli, and Shou


Tsunekawa, Automatic PCB Insection Algorithms:
A Survey, Computer Vision and Image
Understanding, Vol. 63, No.2, March 1996.

[2] Hideaki Doi, Yasuhiko Hara, Automated Inspection


of Printed Circuit Board Patterns Referenced to CAD
data, IAPR Workshop in Machine Vision
Applications, Dec.7-9, 1992

0-7803-4503-7/98/$10.00 1998 IEEE 1350

Potrebbero piacerti anche