Background of the Invention
The present invention is generally related to component placement apparatus and more particularly to an improved circuit location sensor for use in robotic component placement apparatus.
In the prior art, location sensors for robots typically include a camera and a digital image processor in order to determine the position of circuitry on a printed circuit board. The camera scans the printed circuit board, while the digital image processor receives and processes each pixel in successive video frames to determine location-offset information. Use of camera location sensors incurs a substantial cost penalty in terms of equipment and software.
Alternatively, location-offset information may be manually entered into component placement programs to compensate for dimensional tolerances in printed circuit boards. This alternative is both time consuming and costly since manual labor is required. Accordingly, there is a need for a circuit location sensing apparatus and process that automatically determines location-offset information for printed circuit boards and compensates therefor.
Summary of the Invention
Accordingly, it is an object of the present invention to provide improved and inexpensive circuit location sensing apparatus for use in component placement apparatus.
It is another object of the present invention to provide improved circuit location sensing apparatus for use in component placement apparatus that automatically determines location-offset information for printed circuit boards and compensates therefor.
Briefly described, the present invention encompasses sensing apparatus for component placement apparatus including a robot arm for placing components on a circuit board having circuit elements thereon. The component placement apparatus is responsive to a control signal for positioning the robot arm and producing a strobe signal when the robot arm is positioned. The improved sensing apparatus comprises: sensing circuitry attached to the robot arm and including a light source for illuminating the circuit board and a light sensor for producing an output signal having a magnitude proportional to the reflected light from the illuminated circuit board; a converter coupled to the sensor for converting the sensor output signal to a digitized signal in response to the strobe signal; a processor for producing the control signal to step said sensing means across a pre-selected circuit element and processing the digitized signal produced at each step for detecting the location of a pre-selected circuit element on the circuit board.
Brief Description of the Drawings
FIG. 1 is a block diagram of a component placement robot 100 and a personal computer 152 that may advantageously utilize the present invention.
FIG. 2 is a detailed circuit diagram of the A/D converter circuitry 104 and sensor 110 in FIG. 1.
FIG. 3 is a section of printed circuit board 350 including metalized circuit runner 300 on the surface of the printed circuit board.
FIG. 4 shows waveforms 404 and 406 of the output of sensor 110 in FIG. 1 as it is moved between points A and B in FIG. 3.
FIG. 5 is a flow chart for the process used by the robot computer 102 in FIG. 1 for running a component placement program on robot 100.
FIG. 6 is another section of printed circuit board 350 including a circular metalized circuit pad 310 and a ring shaped metalized circuit pad 311 on the surface of the printed circuit board.
Description of the Preferred Embodiment
In FIG. 1, there is illustrated a component placement robot 100 and a personal computer 152 that may advantageously utilize the present invention. Personal computer 152 may be any commercially available computer that has a data link 154 for running a component placement program on computer 102 of robot 100. In the preferred embodiment of the present invention, personal computer 152 is an IBM personal computer. Robot 100 may be any commercially available component placement robot that, under program control, automatically picks and places surface-mount components on a printed circuit board 350. Robot 100 includes arm 116 with end effector 108 for accessing and placing surface-mount components. In the preferred embodiment of the present invention, robot 100 is an Accusembler Model SSR-H414-HS.
Accoring to the present invention, bracket 112 and sensor 110 are coupled to robot arm 116 for sensing the precise location of metalized circuit runners 300-301 or metalized circuit pads 310-313 on printed circuit board 350. Bracket 112 may include an air cylinder for extending sensor 110 toward printed circuit board 350 when taking measurements. Sensor 110 is coupled to A/D converting circuitry 104 which converts the sensor output to an 8-bit digitized signal. Sensor 110 preferably includes a commercially available bar-code sensor which includes a light source, a light sensor and a transistor for producing an output whose magnitude is proportional to the amount of light reflected from printed circuit board 350. In the preferred embodiment of the present invention, sensor 110 is a Hewlett Packard HBCS-1100 high-resolution optical reflective sensor.
Referring to FIG. 3, sensor 110 may be positioned over circuit elements, such as runner 300 or pad 310, and stepped across it to determine the precise location of that circuit element. Robot computer 102 produces a control signal for positioning and stepping robot arm 116 across circuit runner 300. As sensor 110 is stepped across circuit runner 300, the amount of reflected light detected by sensor 110 increases due to the greater reflectivity of the circuit artwork pattern. The output signal of sensor 110 has a magnitude proportional to the amount of reflected light. The output signal of sensor 110 is converted to a digitized signal by A/D converter circuitry 104 in response to a strobe signal from robot computer 102, inputted into robot computer 102, and processed by robot computer 102 into location-offset information for correcting dimensional locations. Robot computer 102 uses the digitized signal to calculate location offsets for the component placement program to be run also by robot computer 102. The calculated location offsets compensate for variations introduced in the manufacture of printed circuit boards 350. By utilizing the present invention, variations in each printed circuit board 350 may be compensated for automatically prior to placement of surface-mount components thereon. The circuit location sensor and process of the present invention may be advantageously utilized in any component placement robot simply by coupling unique sensor 110 to the robot arm and A/D converting circuitry to the robot computer.
A section of printed circuit board 350 including circuit runner 300 has been expanded in FIG. 3 to illustrate the circuit location sensing process of the present invention. Circuit runner 300 may vary in position on different printed circuit boards 350. For example, on another printed circuit board 350, circuit runner 300 may be in positioned as shown by dashed lines 302. Sensor 110 is positioned by robot 100 initially at point A and stepped along Y-axis to point B along path 304, and then back to point A along path 306. For maximum reflectance, sensor 110 is positioned between 4.07 and 4.27 millimeters from printed circuit board 350. Sensor 110 is stepped in increments of 0.03 millimeters. At each step, the output of sensor 110 is digitized by A/D converter circuitry 104 in response to a strobe signal from robot computer 102 and stored in the memory of robot computer 102 for processing. Once the Y-axis scanning of circuit runner 300 is completed, sensor 110 is similarly stepped between points A and C along the X-axis of circuit runner 300. The foregoing process is then repeated at the opposite end of printed circuit board 350 for circuit runner 301.
Referring next to FIG. 4, there are illustrated waveforms of the output of sensor 110 in FIG. 1 as it is moved beween points A and B in FIG. 3. Solid-line waveform 404 is for the path 304 from point A to B, and dashed-line waveform 406 is for the path 306 from point B to A. To find the midpoint X of circuit runner 300, rising edges E11 and E21 are calculated and averaged for the rising portions of waveforms 404 and 406, respectively, and falling edges E12 and E22 are calculated and averaged for the falling portions of waveforms 404 and 406, respectively. That is, rising edge E11 is the value of Y for which rising portion of waveform 404 has a value of 1/2(V1+V3). Similarly, falling edge E12 is the value of Y for which falling portion of waveform 406 has a value of 1/2(V1+V3). Rising edge E21 is the value of Y for which rising portion of waveform 406 has a value of 1/2(V2+V3). Similarly, falling edge E22 is the value of Y for which falling portion of waveform 404 has a value of 1/2(V2+V3). Then, the rising edge midpoint XR is calculated by taking the average of rising edges E11 and E21. Similarly, the falling edge midpoint XF is calculated by taking the average of falling edges E12 and E22. If XR and XF do not agree within 0.0005 inches, the process is repeated. The calculated values of XR and XF for circuit runners 300 and 301 are then used to offset the selected component placement program. Note that thresholds V1 and V2 may differ due to misalignment of sensor 110. The use of both rising edges and both falling edges to calculate midpoints XR and XF, respectively, compensates for misalignment of sensor 110. In the preferred embodiment of the present invention, the foregoing calculations are performed by robot computer 102 in accordance with the computer program in the Appendix hereinbelow. For other robots, where the ability to run programs is limited, the sensor data collection and location-offset correction activities may be performed by personal computer 152.
Referring to FIG. 5, there is illustrated a flow chart for the process used by the robot computer 102 in FIG. 1 for running a component placement program on robot 100. Start block 502 is entered upon selection via the keyboard of personal computer 152 of a component placement program. Proceeding to block 504, sensor 110 is moved to point A of the first runner 300. Next, at block 506, sensor 110 is stepped to point B while storing the sensor ouptut for each step. Then, at block 510, sensor 110 is rotated by 180.degree.. Next, at block 508, sensor 110 is stepped back to point A while storing the sensor output for each step. The average rising midpoint XR and falling midpoint XF is then calculated at block 512.
Next, at decision block 511, a check is made to determine if the Y-axis offset has been calculated. If not, NO branch is taken back to repeat blocks 506,508, 510 and 512 for the path between points A and C. If the Y-axis offset has been calculated, YES branch is taken from decision block 511 to decision block 514, where a check is made to determine if second circuit runner 301 has been done. If not, NO branch is taken to block 516 where sensor 110 is moved to point A of second circuit runner 301. Thereafter, blocks 506, 508, 510 and 512 are repeated for points A, B and A,C for circuit runner 301. If second circuit runner has been done, YES branch is taken from decision block 514 to block 518 where the offset is computed using the calculated midpoints of the first and second circuit runners 300 and 301. Next, at block 520, the computed offset is added to the selected component placement program. Lastly, at block 522, the selected component placement program is executed by robot computer 102. Thereafter, program control returns to other tasks at done block 524.
Referring to FIG. 6, there are illustrated a circular metalized circuit pad 310 and a ring shaped metalized circuit pad 311 that likewise can be sensed by the circuit location process of the present invention. For locating each of pads 310 and 311. sensor 110 is first positioned by robot 100 at point A and stepped along the Y-axis to point B. This allows determination of falling edge midpoint XF (see FIG. 4). Sensor 110 is then positioned by robot 100 at point C and stepped along the Y-axis to point D. This allows determination of rising edge midpoint XR. Similar measurements can be taken along the X-axis to determine rising edge midpoint YR.
The diameters of the circular pads 310-313 are generally greater than the width of the circuit runners 300-301. Positioning sensor 110 at each of two successive locations A and C allows sensor 110 and robot 100 to sense the circular pad 310-311 in fewer steps, and less time, than required to step across the entire circuit runner 300 as explained hereinabove with respect to FIG. 3. Positioning the sensor 110 at each of two locations A, B, and C,D in FIG. 6 avoids the necessity of using additional rising edge and falling edge paths which would occur at the void in the center of pad 311.
Referring next to FIG. 2, there is illustrated a detailed circuit diagram of the A/D converter circuitry 104 and sensor 110 in FIG. 1. A/D converter circuitry 104 includes optical coupler 202, A/D converter 206, clock oscillator 204, buffer amplifier 212, buffer gates 208 and voltage regulator 210. Optical coupler 202 couples a strobe signal from robot computer 102 to A/D converter 206 for initiating a conversion of a sample of the output of sensor 110. Robot computer 102 produces the strobe signal after each step of the robot arm 116. Buffer amplifier 212 conditions the output of sensor 110 for application to A/D converter 206. Clock oscillator 204 generates a clock signal for A/D converter 206. Voltage regulator 210 generates the -5.2 V voltage for A/D converter circuitry 104 and sensor 110. Buffer gates 208 couple the 8-bit output of A/D converter 206 to robot computer 102. In the preferred embodiment, optical coupler 202 is a Motorola type 6N135 optical coupler, A/D converter 206 is a Motorola type MC6108 A/D converter, clock oscillator 204 is a Motorola type RASC02 oscillator, buffer amplifier 212 is a Motorola type MC3403 amplifier, buffer gates 208 are Motorola type 7407 buffer gates, and voltage regulator 210 is a Motorola type MC34063 voltage regulator.
In summary, a unique circuit location sensor has been described that may be advantageously utilized in component placement robots. The unique sensing apparatus illuminates a circuit board and senses reflected light to determine the location of pre-selected circuit elements on the circuit board and calculate location offsets for the component placement programs subsequently run on the component placement robot. The location sensing apparatus of the present invention may be advantageously utilized in any component placement robot where accurate placement of the components is necessary. Therefore, while a particular embodiment of the present invention has been shown and described, it should be understood that the present invention is not limited thereto since other embodiments may be made by those skilled in the art without departing from the true spirit and scope thereof.
Appendix
The following computer program is coded into SPEL programming language, Version 1.0, marketed by Accusembler. SPEL is a programming language similar to Microsoft BASIC programming language, but is compatible only with Accussembler robots. SPEL may be run on IBM personal computers or IBM compatible personal computers used with Accusembler robots. The following computer program provides a detailed description of the computer instructions utilized by robot computer 102 for scanning circuit runners and/or pads and calculating offsets for the placement computer program to be run thereafter.
The present invention encompasses any and all such embodiments covered by the following claims: