A fully automatic FCT testing device
Through the design of a fully automatic FCT test device, the vacuum suction cup and image processing technology are used to dynamically adjust the suction cup grasping strength and identify the characteristic points of the circuit board, which solves the problem of insufficient flexibility and adaptability of the existing FCT test method in circuit board positioning. , achieving high-precision testing of diverse circuit boards.
Patent Information
- Application Number
- CN202311754814.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-12-20
AI Technical Summary
Existing FCT test methods have insufficient flexibility and adaptability in circuit board positioning. Especially when dealing with diverse and high-density circuit boards, it is difficult to adapt to circuit boards of different types and designs, resulting in increased positioning accuracy and cost.
A fully automatic FCT test device is designed, which uses a vacuum suction cup, a shooting component, a robotic arm, a sensor component, an image processing module and a data analysis module to dynamically adjust the grasping strength of the vacuum suction cup through fuzzy logic and membership functions, combined with image processing and perspective correction technology to identify and locate the characteristic points of the circuit board to achieve flexible adaptation to different circuit boards.
It improves the adaptability and accuracy of FCT testing, can effectively handle multiple models and complex circuit boards, reduces equipment costs, and improves the flexibility and accuracy of testing.
Smart Images

Figure CN117741400B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of FCT testing, and in particular to a fully automatic FCT testing device. Background Art
[0002] Functional Circuit Testing (FCT) is an important test process used in the field of electronic manufacturing to verify the functionality of printed circuit boards (PCBs). FCT testing ensures that all electronic components and circuits operate normally as designed by simulating actual working conditions. This includes voltage and current testing, signal integrity checks, and verification of specific functions.
[0003] However, existing FCT test methods have some limitations in circuit board positioning, especially for circuit boards of different models and designs. Existing technologies usually rely on complex mechanical positioning systems, which not only increase the cost and complexity of the equipment, but also limit the adaptability to different models of circuit boards. This method is particularly challenging when dealing with diverse and high-density circuit boards, because these circuit boards require more flexible and precise positioning systems to adapt to different designs and point layouts. Therefore, the existing FCT test method needs to be improved to increase its adaptability and flexibility, especially when dealing with multiple models and highly complex circuit boards. Summary of the invention
[0004] The invention provides a fully automatic FCT testing device, comprising: a vacuum suction cup, which is used for vacuum grasping and moving a first surface of a circuit board; a shooting component, which is used for photographing a second surface of the circuit board to obtain an image of the circuit board; a testing component, which comprises a mechanical arm and a testing head, which is arranged at the end of the mechanical arm, and is used for contacting a testing point on the second surface of the circuit board; a sensor component, which is used for real-time acquisition of circuit board characteristic data of the circuit board; a suction cup control module, which is used for dynamically adjusting the grasping force of the vacuum suction cup according to the circuit board characteristic data; an image processing module, which is used for identifying positioning points and testing points in the image after performing noise reduction processing on the image; a test control module, which is used for controlling the motion trajectory of the mechanical arm; and a data analysis module, which is used for processing data collected by the test head, including measurement of parameters such as circuit connectivity, resistance, voltage, etc., and judging whether the function of the circuit board is normal according to a preset standard.
[0005] Furthermore, dynamically adjusting the gripping force of the vacuum suction cup according to the circuit board characteristic data includes the following steps: based on fuzzy logic, converting the circuit board characteristic data into fuzzy values; processing the fuzzy values according to preset fuzzy logic rules to obtain the suction fuzzy output value required by the vacuum suction cup; based on a defuzzification process, converting the suction fuzzy output value into a suction setting value.
[0006] Further, the circuit board characteristic data includes weight data and surface roughness data, wherein the weight data is classified into light, medium and heavy, and the surface roughness data is classified into smooth, moderate and rough.
[0007] Furthermore, the sensor component includes a weight sensor and a laser scanning component, the weight sensor is used to obtain the weight data, and the laser scanning component is used to obtain the surface roughness data.
[0008] Furthermore, the circuit board characteristic data is converted into fuzzy values based on fuzzy logic, including: defining fuzzy sets of weight data and surface roughness data; designing a membership function for each fuzzy set based on multiple membership functions; and applying the membership function to calculate the membership of the weight data and surface roughness data in each fuzzy set.
[0009] Furthermore, after the image is subjected to denoising, the positioning points and test points in the image are identified, including: denoising the image to obtain a denoised image; based on the denoised image, identifying the positioning points, and judging whether the positioning points are located in a target area, and if not, controlling the vacuum suction cup to move the circuit board until the positioning points are located in the target area; based on the denoised image, identifying the test points, and calculating the spatial coordinates of each test point.
[0010] Further, the identifying of the positioning point according to the denoised image, and determining whether the positioning point is located in the target area, and if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area includes: performing perspective correction on the denoised image according to the denoised image to obtain a perspective-corrected image; identifying the positioning point based on a feature point detection algorithm according to the perspective-corrected image; acquiring the positioning coordinates of the positioning point, comparing the positioning coordinates with the target area, determining whether the positioning coordinates are within the coordinate range of the target area, and if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area.
[0011] Furthermore, the perspective correction is performed based on four screw holes on the circuit board.
[0012] Further, performing perspective correction on the denoised image to obtain a perspective-corrected image according to the denoised image includes: solving a perspective transformation matrix, performing perspective correction on the denoised image according to the denoised image and the solution of the transformation matrix to obtain a perspective-corrected image; wherein the equation group of the transformation matrix is:
[0013] ax1+by1+c-gx1x′1-hy1x′1=x′1
[0014] ax2+by2+c-gx2x′2-hy2x′2=x′2
[0015] ax3+by3+c-gx3x′3-hy3x′3=x′3
[0016] ax4+by4+c-gx4x′4-hy4x′4=x′4
[0017] dx1+ey1+f-gx1y1-hy1y′1=y′1
[0018] dx2+ey2+f-gx2y′2-hy2y′2=y′2
[0019] dx3+ey3+f-gx3y′3-hy3y′3=y′3
[0020] dx4+ey4+f-gx4y′4-hy4y′4=y′4
[0021] The solution to the system of equations is:
[0022] Among them, (x1, y1) are the horizontal and vertical coordinates of the center of the first screw hole on the circuit board, (x′1, y′1) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x2, y2) are the horizontal and vertical coordinates of the center of the second screw hole on the circuit board, (x′2, y′2) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x3, y3) are the horizontal and vertical coordinates of the center of the third screw hole on the circuit board, (x′3, y′3) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x4, y4) are the horizontal and vertical coordinates of the center of the fourth screw hole on the circuit board, (x′4, y′4) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, T is the transformation matrix, and the parameters a, b, c, d, e, f, g, and h are all elements in the perspective transformation matrix.
[0023] Further, identifying test points according to the denoised image and calculating the spatial coordinates of each test point includes: identifying test points according to the denoised image based on a test point recognition model and calculating the spatial coordinates of each test point. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The present invention will be further described in the form of exemplary embodiments, which will be described in detail by way of the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0025] Figure 1 is a flow chart of adjusting the gripping force of a vacuum suction cup in some embodiments of the present invention;
[0026] Figure 2 is a conversion flow chart of circuit board characteristic data in some embodiments of the present invention;
[0027] Figure 3 is a flow chart of identifying positioning points and test points in some embodiments of the present invention;
[0028] Figure 4 is a flow chart of a control circuit board of some embodiments of the present invention;
[0029] Figure 5 It is a specific flow chart for identifying positioning points in some embodiments of the present invention. DETAILED DESCRIPTION
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments.
[0031] The present invention provides a fully automatic FCT testing device, comprising:
[0032] A vacuum suction cup, the vacuum suction cup is used to vacuum grasp and move the first side of the circuit board; a shooting component, the shooting component is used to shoot the second side of the circuit board to obtain an image of the circuit board; a testing component, the testing component includes a mechanical arm and a test head, the test head is arranged at the end of the mechanical arm, and the test head is used to contact the test points on the second side of the circuit board; a sensor component, used to collect circuit board characteristic data of the circuit board in real time; a suction cup control module, the suction cup control module is used to dynamically adjust the grasping force of the vacuum suction cup according to the circuit board characteristic data; an image processing module, the image processing module is used to identify the positioning points and test points in the image after performing noise reduction processing on the image; a test control module, the test control unit is used to control the movement trajectory of the mechanical arm; a data analysis module, the data analysis module is used to process the data collected by the test head, including the measurement of circuit connectivity, resistance, voltage and other parameters, and to judge whether the function of the circuit board is normal according to preset standards.
[0033] The fully automatic FCT testing device is further described below with reference to the accompanying drawings.
[0034] Figure 1 is a flow chart of adjusting the gripping force of a vacuum suction cup in some embodiments of the present invention.
[0035] like Figure 1 As shown, dynamically adjusting the gripping force of the vacuum suction cup according to the circuit board characteristic data includes the following steps:
[0036] S110, converting the circuit board characteristic data into a fuzzy value based on fuzzy logic;
[0037] Further, the circuit board characteristic data includes weight data and surface roughness data, the weight data is classified into light, medium and heavy, and the surface roughness data is classified into smooth, moderate and rough.
[0038] Furthermore, the conversion can be performed through membership functions.
[0039] Figure 2 This is a flow chart of converting circuit board characteristic data in some embodiments of the present invention.
[0040] like Figure 2 As shown, step S110 includes:
[0041] S111. Define fuzzy sets of weight data and surface roughness data.
[0042] Furthermore, a fuzzy set of weight data may be defined, for example, weight data of a circuit board of 0-100g is defined as light, weight data of a circuit board of 80-200g is defined as medium, and weight data of a circuit board of 180g and above is defined as heavy.
[0043] Furthermore, a fuzzy set of the board surface roughness data of the circuit to be tested can be defined. For example, the surface roughness data of a circuit board with an Ra value of 0-0.5 is defined as smooth, the surface roughness data of a circuit board with an Ra value of 0.4-1.5 is defined as moderate, and the surface roughness data of a circuit board with an Ra value of 1.4 or above is defined as rough. Among them, the Ra value is the surface roughness.
[0044] S112. Based on multiple membership functions, design a membership function for each fuzzy set.
[0045] Furthermore, the triangular membership function can be used as the membership function of each fuzzy set of weight data. For example, for the fuzzy set light, the vertex of the triangular membership function is at 50g, and the base covers 0-100g; for the fuzzy set medium, the vertex of the triangular membership function is at 140g, and the base covers 80-200g; for the fuzzy set heavy, the base of the triangular membership function starts at 180g and extends upward without an upper limit.
[0046] Furthermore, the triangular membership function can be used as the membership function of each fuzzy set of surface concavity data. For example, for a smooth fuzzy set, the vertex of the triangular membership function is at Ra 0.25, and the bottom covers Ra 0-0.5; for a moderate fuzzy set, the vertex of the triangular membership function is at Ra 0.95, and the bottom covers Ra 0.4-1.5; for a rough fuzzy set, the bottom of the triangular membership function starts at Ra 1.4 and extends upward without an upper limit.
[0047] S113. Apply the membership function to calculate the membership of the weight data and the surface roughness data in each fuzzy set.
[0048] The degree of membership of weight data is calculated as follows:
[0049] (a) Calculation of light membership of fuzzy sets: When ω≤0 or ω≥100, μ 轻 (ω)=0; when 0<ω<50, When 50≤ω<100, Among them, μ 轻 (ω) is the membership degree of weight data in the fuzzy set light, and ω is the actual weight data of the circuit board.
[0050] (b) Calculation of medium membership of fuzzy sets: When ω≤80 or ω≥200, μ 中等 (ω)=0; when 80<ω<140, When 140≤ω<200, Among them, μ 中等 (ω) is the membership degree of weight data in the fuzzy set, and ω is the actual weight data of the circuit board.
[0051] (c) Calculation of fuzzy set re-membership: When ω≤180, μ 重 (ω)=0; when ω≥180, μ 重 (ω)=1. Among them, μ 重 (ω) is the membership degree of weight data in the fuzzy set weight, and ω is the actual weight data of the circuit board.
[0052] The calculation method of the membership degree of surface roughness data is as follows:
[0053] (d) The calculation formula of the smooth membership of the fuzzy set is:
[0054]
[0055] Among them, μ 平滑(Ra) is the membership of the surface roughness data in the fuzzy set smoothing, a1, b1, c1 are the positions of the three vertices of the triangular membership function, a1=0, b1=0.25, c1=0.5, and Ra is the actual surface roughness data of the circuit board.
[0056] (e) The calculation formula of the membership degree of the fuzzy set is:
[0057]
[0058] Among them, μ 适中 (Ra) is the membership of the surface roughness data in the fuzzy set smoothing, a2, b2, c2 are the positions of the three vertices of the triangular membership function, a2 = 0.4, b2 = 0.95, c2 = 1.5, and Ra is the actual surface roughness data of the circuit board.
[0059] (f) Calculation of rough membership of fuzzy sets:
[0060] When Ra<1.4, μ 粗糙 (Ra)=0, when Ra≥1.4, μ 粗糙 (Ra)=1
[0061] Among them, μ 粗糙 (Ra) is the membership degree of the surface roughness data in the fuzzy set smoothing, and Ra is the actual surface roughness data of the circuit board.
[0062] Furthermore, the FCT testing device further comprises a laser scanning component, which is used to obtain the surface concavity data. The laser scanning component may be a three-dimensional laser scanner, which can examine the three-dimensional map of the circuit board and calculate the actual surface concavity data of the circuit board.
[0063] S120, processing the fuzzy value according to a preset fuzzy logic rule to obtain a fuzzy output value of the suction force required by the vacuum suction cup;
[0064] Furthermore, the preset fuzzy logic rules may include:
[0065] If the circuit board is light and has a smooth surface, the suction force is set to low; if the circuit board is light and has a medium surface, or medium weight and has a smooth surface, the suction force is set to medium; if the circuit board is light and has a rough surface, or medium weight and has a medium surface, the suction force is set to high; if the circuit board is medium weight and has a rough surface, or heavy weight and has a medium surface, the suction force is set to very high; if the circuit board is heavy and has a rough surface, the suction force is set to extremely high.
[0066] Furthermore, processing the fuzzy value according to the preset fuzzy logic rules may include: generating a fuzzy output for each activated fuzzy logic rule.
[0067] Specifically, the activation degree of each rule depends on the membership of all the input variables involved. For example, if the rule is "If the weight is light and the surface is smooth, then the suction is set to low", then the activation degree of this rule will depend on the membership of the two conditions "the weight is light" and "the surface is smooth". If the membership of the weight in the light set is 0.7, and the membership of the surface in the smooth set is 0.8, according to the AND operation of fuzzy logic, the activation degree of this rule can be the minimum of these two memberships, that is, 0.7, then the contribution of this rule to the fuzzy set corresponding to "the suction is set to low" is 0.7.
[0068] S130 . Based on a defuzzification process, convert the suction fuzzy output value into a suction setting value.
[0069] Furthermore, the conversion can be performed based on the centroid method, and the calculation formula is:
[0070]
[0071] Among them, the activation degree is the activation degree of each fuzzy logic rule in the preset fuzzy logic rules; the candidate output value is the specific value of the suction corresponding to each fuzzy logic rule in the fuzzy logic rules; the suction setting value is the specific value of the grasping force output to the vacuum suction cup.
[0072] Figure 3 It is a flow chart of identifying positioning points and test points in some embodiments of the present invention.
[0073] like Figure 3 As shown, after the image is subjected to noise reduction processing, identifying the positioning points and the test points in the image includes the following steps:
[0074] S210: De-noise the image to obtain a de-noised image.
[0075] Further, noise reduction can be performed through a variety of image processing algorithms, such as Gaussian filtering, median filtering or more advanced algorithms such as wavelet transform and non-local mean filtering. These algorithms can effectively reduce random noise in the image while maintaining important image details.
[0076] S220, identifying a positioning point according to the noise reduction image, and determining whether the positioning point is located in a target area; if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area.
[0077] Figure 4 It is a flow chart of identifying positioning points and controlling circuit boards in some embodiments of the present invention.
[0078] like Figure 4 As shown, step S220 includes the following steps:
[0079] S221, according to the noise reduction image, perform perspective correction on the noise reduction image to obtain a perspective corrected image. Due to the camera angle or the uneven placement of the circuit board when the suction cup grabs it, a certain image distortion will occur. Through perspective correction, subsequent positioning point recognition and test point recognition can be made more accurate.
[0080] Perspective correction can be performed in a variety of ways. Furthermore, for different types of circuit boards, perspective correction can be performed on the circuit board based on common features, such as fixing screw holes, board corners or other standard components. For example, four screw holes on the circuit board can be selected as common features for perspective correction, including the following steps:
[0081] Solve the perspective transformation matrix, and its transformation matrix equation group is:
[0082] ax1+by1+c-gx1x′1-hy1x′1=x′1
[0083] ax2+by2+c-gx2x′2-hy2x′2=x′2
[0084] ax3+by3+c-gx3x′3-hy3x′3=x′3
[0085] ax4+by4+c-gx4x′4-hy4x′4=x′4
[0086] dx1+ey1+f-gx1y′1-hy1y′1=y′1
[0087] dx2+ey2+f-gx2y′2-hy2y′2=y′2
[0088] dx3+ey3+f-gx3y′3-hy3y′3=y′3
[0089] dx4+ey4+f-gx4y′4-hy4y′4=y′4
[0090] Solving for this yields:
[0091] Among them, (x1, y1) are the horizontal and vertical coordinates of the center of the first screw hole on the circuit board, (x′1, y′1) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x2, y2) are the horizontal and vertical coordinates of the center of the second screw hole on the circuit board, (x′2, y′2) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x3, y3) are the horizontal and vertical coordinates of the center of the third screw hole on the circuit board, (x′3, y′3) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x4, y4) are the horizontal and vertical coordinates of the center of the fourth screw hole on the circuit board, (x′4, y′4) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, and T is the transformation matrix. Parameters a, b, c, d, e, f, g, and h are all elements in the perspective transformation matrix, which are used to determine how to map points in the original image to points in the corrected image. Parameters a and e control the horizontal and vertical scaling of the image, parameters b and d control the rotation and tilt of the image, parameters c and f control the translation of the image, and parameters g and h control the degree of perspective of the image.
[0092] Apply perspective correction, which is:
[0093]
[0094]
[0095] Wherein, x and y are the horizontal and vertical coordinates of any point in the original image, respectively, and x' and y' are the horizontal and vertical coordinates of the corresponding point in the corrected image, respectively.
[0096] In this way, based on the perspective correction formula, the coordinates of each point in the denoised image are transformed to obtain a perspective corrected image.
[0097] S222: Identify positioning points according to the perspective-corrected image based on a feature point detection algorithm.
[0098] The positioning points may be various points with special shapes for positioning, such as cross points, triangle points, etc.
[0099] Figure 5 It is a specific flow chart for identifying positioning points in some embodiments of the present invention.
[0100] like Figure 5 As shown, the positioning point can be identified based on the scale-invariant feature transformation algorithm, including the steps of:
[0101] S2221. Construct a scale space and detect extreme values of the scale space.
[0102] Furthermore, the image can be blurred based on Gaussian blur to construct a scale space, and then local extreme points can be found in images of different scales. The blurring formula is:
[0103] L(x,y,δ)=G(x,y,δ)*I(x,y)
[0104] Among them, L is the scale space function, G is the Gaussian blur function, I is the original image, and δ is the scale parameter.
[0105] S2222. Find the exact location of the key point by interpolating the scale, position and proportion around the extreme point.
[0106] S2223. Assign a direction to each key point by calculating the gradient direction and magnitude of the area surrounding the key point.
[0107] S2224. Create a feature descriptor by considering the image area around the key point and converting it into a stable descriptor that can be used for matching.
[0108] S2225. Match key points between different images or between different parts of the same image to obtain positioning points.
[0109] S223, obtaining the positioning coordinates of the positioning point, comparing the positioning coordinates with the target area, and determining whether the positioning coordinates are within the coordinate range of the target area; if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area.
[0110] The target area is defined as the maximum positioning deviation range allowed during the board testing process. This range specifies the maximum deviation that a board can have from the ideal position before it is deemed suitable for functional testing. Further, the target area can be pre-set. The setting of the target area can be based on the premise of ensuring that the board can be accurately tested in the test equipment, taking into account the operational flexibility and precision limitations of the robot and test head, and determining the upper limit of the allowable deviation of the board placement.
[0111] Furthermore, the target area can be a rectangular range, which can be divided into two diagonal points (x min ,y min ) and (x max ,y max ) to represent the target area, if x min ≤x 定位 ≤x max , and y min ≤x 定位 ≤y max , then the positioning point is judged to be within the target area, otherwise, the positioning point is not within the target area.定位 ,y 定位 ) is the horizontal and vertical coordinates of the positioning point, (x min ,y min ) is the horizontal and vertical coordinates of the corner of the target area close to the origin of the coordinate axis, (x max , ymax ) is the horizontal and vertical coordinates of the corner of the target area away from the origin of the coordinate axis.
[0112] Furthermore, if the positioning point is not within the target area, it is necessary to calculate the distance and direction of the circuit board movement, using the movement vector Specifically, the moving vector The calculation formula is:
[0113]
[0114] Among them, (x 目标 ,y 目标 ) is the coordinate of the center of the target area or the desired positioning point, Δx is the distance the circuit board needs to move in the x-axis direction, and Δy is the distance the circuit board needs to move in the y-axis direction.
[0115] S230: Identify test points according to the noise reduction image, and calculate the spatial coordinates of each test point.
[0116] Further, the processor can identify the test points on the circuit board based on the test point recognition model. Further, the trained test point recognition model is used to perform in-depth analysis of the image to identify specific test points on the circuit board. Further, the test point recognition model can be a machine learning model, such as a convolutional neural network (CNN).
[0117] Furthermore, the test point recognition model is trained based on a large number of labeled training samples. These training samples contain images of various circuit boards, covering test points of different types and layouts. The training samples can be collected from historical data or obtained through other acquisition methods. The label of each training sample indicates the exact location of the test point in the image, and these labels can be annotated by automated image processing software or manually.
[0118] After training, the test point recognition model is deployed in the FCT test device. In the actual test process, the processor uses the test point recognition model to identify the test points in the circuit board image in real time. This not only improves the accuracy of the test process, but also greatly improves the efficiency of the test.
[0119] Furthermore, in order to further improve the accuracy and efficiency of recognition, image processing technology can also be used to assist the recognition process of the machine learning model, such as edge detection and image segmentation. These technologies help to more accurately identify the test points and ensure that each point can be correctly processed in the subsequent FCT test. Through this method of comprehensive application of machine learning and image processing technology, it can be ensured that each test point of the circuit board is accurately identified and measured, thereby ensuring the reliability and accuracy of the test results.
[0120] Furthermore, the processor is also responsible for calculating the spatial coordinates of the identified test points. The processor can convert the image coordinates into actual spatial coordinates on the circuit board based on the camera parameters. Further, the camera parameters include internal parameters and external parameters. For example, the internal parameters may include focal length and optical center, and the external parameters may include the position and angle of the camera.
[0121] Finally, it should be understood that the embodiments described in the present invention are only used to illustrate the principles of the embodiments of the present invention. Other variations may also fall within the scope of the present invention. Therefore, as an example and not a limitation, the alternative configurations of the embodiments of the present invention may be considered consistent with the teachings of the present invention. Accordingly, the embodiments of the present invention are not limited to the embodiments explicitly introduced and described in the present invention.
Claims
1. A fully automatic FCT testing device, characterized in that: include: A vacuum suction cup, the vacuum suction cup is used to vacuum grasp and move the first side of the circuit board; A photographing component, wherein the photographing component is used to photograph the second surface of the circuit board to obtain an image of the circuit board; A test assembly, the test assembly comprising a mechanical arm and a test head, the test head being disposed at the end of the mechanical arm, and the test head being used to contact a test point on the second surface of the circuit board; A sensor component, used for collecting circuit board characteristic data of the circuit board in real time; A suction cup control module, the suction cup control module is used to dynamically adjust the gripping force of the vacuum suction cup according to the circuit board characteristic data; An image processing module, wherein the image processing module is used to identify positioning points and test points in the image after performing noise reduction processing on the image; A test control module, the test control module is used to control the motion trajectory of the robotic arm; A data analysis module, which is used to process the data collected by the test head, including the measurement of parameters such as circuit connectivity, resistance, voltage, etc., and to determine whether the function of the circuit board is normal according to preset standards; The dynamically adjusting the gripping force of the vacuum suction cup according to the circuit board characteristic data comprises the following steps: S110, converting the circuit board characteristic data into a fuzzy value based on fuzzy logic; S120, processing the fuzzy value according to a preset fuzzy logic rule to obtain a fuzzy output value of the suction force required by the vacuum suction cup; S130, converting the suction fuzzy output value into a suction setting value based on a defuzzification process; The circuit board characteristic data includes weight data and surface roughness data, wherein the weight data is classified into light, medium and heavy, and the surface roughness data is classified into smooth, moderate and rough; The converting the circuit board characteristic data into a fuzzy value based on fuzzy logic comprises: S111, defining fuzzy sets of weight data and surface roughness data; S112. Based on a plurality of membership functions, design a membership function for each fuzzy set; S113, applying the membership function to calculate the membership of the weight data and the surface concavity data in each fuzzy set; Based on a variety of membership functions, membership functions are designed for each fuzzy set, including: The triangular membership function is used as the membership function of each fuzzy set of weight data, including: for the fuzzy set light, the vertex of the triangular membership function is 50g, and the base covers 0-100g; for the fuzzy set medium, the vertex of the triangular membership function is 140g, and the base covers 80-200g; for the fuzzy set heavy, the base of the triangular membership function starts at 180g and extends upward without an upper limit; The triangular membership function is used as the membership function of each fuzzy set of surface concavity data; including: for smooth fuzzy sets, the vertex of the triangular membership function is at Ra 0.25, and the bottom covers Ra 0-0.5; for centered fuzzy sets, the vertex of the triangular membership function is at Ra 0.95, and the bottom covers Ra 0.4-1.5; for rough fuzzy sets, the bottom of the triangular membership function starts at Ra 1.4 and extends upward without an upper limit; Apply the membership function to calculate the membership of weight data and surface roughness data in each fuzzy set, including: The degree of membership of weight data is calculated as follows: (a) Calculation of light membership of fuzzy sets: When ω≤0 or ω≥100, μ 轻 (ω)=0; when 0<ω<50, When 50≤ω<100, μ 轻 (ω)=; Among them, μ 轻 (ω) is the membership degree of weight data in the fuzzy set light, and ω is the actual weight data of the circuit board; (b) Calculation of medium membership of fuzzy sets: When ω≤80 or ω≥200, μ 中等 (ω)=0; when 80<ω<140, When 140≤ω<200, Among them, μ 中等 (ω) is the membership degree of weight data in the fuzzy set, and ω is the actual weight data of the circuit board; (c) Calculation of fuzzy set re-membership: When ω≤180, μ 重 (ω)=0; when ω≥180, μ 重 (ω)=1; where μ 重 (ω) is the membership degree of weight data in the fuzzy set weight, and ω is the actual weight data of the circuit board; The calculation method of the membership degree of surface roughness data is as follows: (d) The calculation formula of the smooth membership of the fuzzy set is: Among them, μ 平滑 (Ra) is the membership of the surface roughness data in the fuzzy set smoothing, a1, b1, c1 are the positions of the three vertices of the triangular membership function, a1 = 0, b1 = 0.25, C1 = 0.5, Ra is the actual surface roughness data of the circuit board; (e) The calculation formula of the membership degree of the fuzzy set is: Among them, μ 适中 (Ra) is the membership of the surface roughness data in the fuzzy set smoothing, a2, b2, c2 are the positions of the three vertices of the triangular membership function, a2 = 0.4, b2 = 0.95, C2 = 1.5, Ra is the actual surface roughness data of the circuit board; (f) Calculation of rough membership of fuzzy sets: When Ra < 1.4, μ 粗糙 (Ra) = 0. When Ra ≥ 1.4, μ 粗糙 (Ra) = 1 Among them, μ 粗糙 (Ra) is the degree of membership of the surface roughness data in the fuzzy set smoothing, and Ra is the actual surface roughness data of the circuit board; The sensor assembly includes a weight sensor and a laser scanning assembly, wherein the weight sensor is used to obtain the weight data, and the laser scanning assembly is used to obtain the surface concavity data; Based on the defuzzification process, the suction fuzzy output value is converted into a suction setting value; based on the centroid method, the conversion is calculated as follows: The activation degree is the activation degree of each fuzzy logic rule in the preset fuzzy logic rules; the candidate output value is the specific value of the suction force corresponding to each fuzzy logic rule in the fuzzy logic rules; the suction force setting value is the specific value of the gripping force output to the vacuum suction cup; After the image is subjected to noise reduction processing, identifying the positioning points and the test points in the image includes: S210, performing noise reduction on the image to obtain a noise-reduced image; S220, identifying a positioning point according to the noise reduction image, and determining whether the positioning point is located in a target area, and if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area; S230, identifying test points according to the noise reduction image, and calculating the spatial coordinates of each test point; The step S220 includes the following steps: S221, performing perspective correction on the denoised image according to the denoised image to obtain a perspective-corrected image; The perspective correction is performed based on four screw holes on the circuit board; The performing perspective correction on the denoised image according to the denoised image to obtain a perspective corrected image comprises: Solving a perspective transformation matrix, and performing perspective correction on the denoised image according to the denoised image and the solution of the transformation matrix to obtain a perspective-corrected image; Among them, the equation system of the transformation matrix is: ax1+by1+c-gx1x′1-hy1x′1=x′1 ax2+by2+c-gx2x′2-hy2x′2=x′2 ax3+by3+c-gx3x′3-hy3x′3=x′3 ax4+by4+c-gx4x′4-hy4x′4=x′4 dx1+ey1+f-gx1y′1-hy1y′1=y′1 dx2+ey2+f-gx2y′2-hy2y′2=y′2 dx3+ey3+f-gx3y′3-hy3y′3=y′3 dx4+ey4+f-gx4y′4-hy4y′4=y′4 The solution to the system of equations is: Wherein, (x1, y1) are the horizontal and vertical coordinates of the center of the first screw hole on the circuit board, (x′1, y′1) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x2, y2) are the horizontal and vertical coordinates of the center of the second screw hole on the circuit board, (x′2, y′2) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x3, y3) are the horizontal and vertical coordinates of the center of the third screw hole on the circuit board, (x′3, y′3) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, (x4, y4) are the horizontal and vertical coordinates of the center of the fourth screw hole on the circuit board, (x′4, y′4) are the horizontal and vertical coordinates of the center of the first screw hole in the corrected image, T is the transformation matrix, and the parameters a, b, c, d, e, f, g, and h are all elements in the perspective transformation matrix; Apply perspective correction, which is: Among them, x and y are the horizontal and vertical coordinates of any point in the original image, and x' and y' are the horizontal and vertical coordinates of the corresponding point in the corrected image; Based on the perspective correction formula, the coordinates of each point in the denoised image are transformed to obtain a perspective corrected image; S222, identifying positioning points based on the perspective-corrected image and a feature point detection algorithm; S223, obtaining the positioning coordinates of the positioning point, comparing the positioning coordinates with the target area, and determining whether the positioning coordinates are within the coordinate range of the target area; if not, controlling the vacuum suction cup to move the circuit board until the positioning point is located in the target area.
2. A fully automatic FCT testing device according to claim 1, characterized in that: The step of identifying test points according to the noise reduction image and calculating the spatial coordinates of each test point includes: According to the noise reduction image, based on the test point recognition model, the test points are identified, and the spatial coordinates of each test point are calculated.
Citation Information
Patent Citations
Full-automatic circuit board testing machine
CN111505485A
FCT test fixture and method
CN112986799A
Virtual reality spatial positioning feature point recognition system and recognition method
CN113239922A
Automatic adjustment vacuum chuck control method based on IGWO fuzzy PID
CN115933366A
Inspection method of control board for scanner apparatus
JP2006332783A
