1. Technical Field
Embodiments of the present disclosure relate to mechanical control technology, and particularly to a control computer and method for regulating a mechanical arm using the control computer.
2. Description of Related Art
Signal testing of components on an electronic device (e.g., a motherboard) is an important step in a manufacturing process of the components or the electronic device. In one example, testing of characteristic impedances of the components on the electronic device may be carried out using a time domain reflectometer (TDR). For example, movements of the TDR are automatic by means of a mechanical arm. However, such a mechanical arm has to be regulated manually. Therefore, a more efficient method for regulating the mechanical arm is desired.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The image capturing device 43 is positioned on the mechanical arm 33 by means of a mounting device 34. For example, the mounting device 34 may be a mounting bracket. The image capturing device 43 is used to capture images of objects under test. For example, the object may be a resistor of a printed circuit board (PCB) 60 on a test table 70, as shown in
In one embodiment, a regulating system 21 is installed in the control computer 20. The regulating system 21 is used to control the movements of the mechanical arm 33 such that an axial vector of a flange face of the mechanical arm 33 is perpendicular to a measurement plane determined by the objects under test. A detailed description follows.
The display device 22 may be a liquid crystal display (LCD) or a cathode ray tube (CRT) display, and the input device 24 may be a mouse, a keyboard, a touch screen, and/or a touchpad used for input.
In one embodiment, the regulating system 21 may include computerized instructions in the form of one or more programs that are executed by the at least one processor 25 and stored in the storage device 23 (or other memory).
In block S10, the first obtaining module 201 obtains regulating parameters, such as a focusing distance “H” of the image capturing device 43, the axial vector of the flange face of the mechanical arm 33 (hereinafter referred to as “axial vector of the mechanical arm”), and a distance between a first object and a second object on the PCB 60. In one embodiment, the focusing distance “H” and the axial vector of the mechanical arm 33 are pre-stored in the storage device 23. The first object and the second object are predetermined by a user, the distance between the first object and the second object is calculated according to coordinates of the two objects. The coordinates of the first object and the second object are pre-stored in the storage device 23. The focusing distance “H” of the image capturing device 43 is a distance between an object (e.g., the first object) under test and a lens module of the image capturing device 43. The axial vector of the mechanical arm 33 may include an angle from the vertical at which the end or facing flange of the mechanical arm 33 is aimed squarely at the center of the top surface of the object under test. Referring to
In block S11, the second obtaining module 202 moving the mechanical arm 33 such that the first object “p1” falls (e.g., visually falls) in an image plane of the image capturing device 43, and keeps the axial vector of the mechanical arm 33 unchanged. In one embodiment, the image capturing device 43 captures images of “p1” in a shallow depth of field. In another embodiment, the image capturing device 43 may capture images of “p1” in a large depth of field. In one embodiment, in optics, the depth of field (DOF) related to photography is a distance between the nearest and farthest objects in a scene that appear acceptably sharp (sharp enough to be recognizable) in an image.
In block S12, the second obtaining module 202 moving the mechanical arm 33 such that the first object “p1” falls in a depth of a field of the image capturing device 43, and obtains an optimized image of the first object “p1” by adjusting the focusing distance “H” of the image capturing device 43. For example, the optimized image may be a captured image having a definition value (or clarity value) being greater than a preset value (e.g., 480). In one embodiment, the second obtaining module 202 obtains the optimized image of the first object “p1” by controlling the image capturing device 43 to capture images of the first object “p1” until the definition value (or clarity value) of the first object “p1” in the captured image is greater than the preset value.
In block S13, the second obtaining module 202 determines an outline of the first object “p1” in the optimized image of the first object “p1”, and obtains a first center of area of the optimized image of the first object “p1.” Referring to
In block S14, the second obtaining module 202 moves the mechanical arm 33 along a direction of the image plane such that the first center “p” is coincident with a center of the image plane of the image capturing device 43.
In block S15, the second obtaining module 202 obtains an updated image of the first object “p1” by moving the mechanical arm 33, and obtains coordinates of a first position of the center of the image plane. In one embodiment, the definition value of the first object “p1” in the updated image of the first object “p1” is greater than the preset value. Referring to
In block S16, the second obtaining module 202 stores the updated image of the first object “p1” and the coordinates of the first position “a” of the center of the image plane in the storage device 23.
In block S17, the third obtaining module 203 moves the mechanical arm 33 according to a distance “L” between the first object “p1” and the second object “p2” such that the second object “p2” falls in the image plane of the image capturing device 43, and keeps the axial vector of the mechanical arm 33 unchanged.
In block S18, the third obtaining module 203 moves the mechanical arm 33 such that the second object “p2” falls in the depth of field of the image capturing device 43, and obtains an optimized image of the second object “p2” by adjusting the focusing distance “H” of the image capturing device 43. In one embodiment, the third obtaining module 203 obtains the optimized image of the second object “p2” by controlling the image capturing device 43 to capture images of the second object “p2” until the definition value of the captured image of the second object “p2” is greater than the preset value.
In block S19, the third obtaining module 203 determines an outline of the second object “p2” in the optimized image of the second object “p2”, and obtains a second center of area of the optimized image of the second object “p2.” Referring to
In block S20, the third obtaining module 203 moves the mechanical arm 33 along the direction of the image plane such that the second center “q” is coincident with the center of the image plane of the image capturing device 43.
In block S21, the third obtaining module 203 obtains an updated image of the second object “p2” by moving the mechanical arm 33, and obtains coordinates of a second position of the center of the image plane. In one embodiment, the definition value of the second object “p2” in the updated image of the second object “p2” is greater than the preset value. Referring to
In block S22, the third obtaining module 203 stores the updated image of the second object “p2” and the coordinates of the second position “b” of the center of the image plane in the storage device 23.
In block S23, the calculating module 204 calculates a movement vector from the first position “a” to the second position “b” according to the coordinates of the first position “a” and the second position “b”. Referring to
In block S24, the calculating module 204 calculates a regulating angle according to the movement vector “A” (vector “A”) and the axial vector “Z”. In detail, the calculating module 204 calculates an included angle between the vector “A” and the axial vector “Z,” and obtains the regulating angle by calculating a difference between ninety degrees and the included angle. Referring to
In block S25, the regulating module 205 moves the mechanical arm 33 according to the regulating angle “Φ” such that the axial vector “Z” is perpendicular to a measurement plane determined by the first object “p1” and the second object “p2”. In one embodiment, the measurement plane is coplanar with the PCB 60. The mechanical arm 33 is regulated by rotating the mechanical arm 33 in a clockwise direction with the regulating angle “Φ” such that the axial vector “Z” be parallel to a normal vector of the measurement plane. Referring to
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
100117894 | May 2011 | TW | national |