Circuit board detection device and method
By designing a circuit board detection device including a transmission mechanism and camera components, the problems of low efficiency and poor accuracy of traditional circuit board detection methods are solved, and more efficient and accurate circuit board detection is achieved.
Patent Information
- Application Number
- CN202411952217.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-08
AI Technical Summary
Traditional circuit board detection methods rely on artificial visual inspection, are inefficient and susceptible to human factors, affecting the accuracy of the detection results.
A circuit board detection device is designed, including a transmission mechanism and a camera assembly. The transmission mechanism consists of multiple transverse guide rails, screws and longitudinal guide rails. By adjusting the position of the screws and longitudinal guide rails, the distance between the transverse guide rails is ensured to be consistent, thereby ensuring the consistency of depth of field during detection of the circuit board by the camera assembly.
It improves the accuracy and efficiency of circuit board detection, reduces the influence of human factors, and ensures the reliability of the detection results.
Smart Images

Figure CN119780124A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of circuit board detection, and in particular to a circuit board detection device and method. Background Art
[0002] With the rapid development of the electronics industry, circuit boards, as a key component of electronic equipment, have a quality that is directly related to the performance and reliability of the entire electronic product. Therefore, the inspection of circuit board quality is becoming increasingly important. Traditionally, circuit board inspection mainly relies on manual visual inspection, however, this method is inefficient and easily interfered by human factors, thus affecting the accuracy of the inspection results. Summary of the invention
[0003] The main purpose of this application is to provide a circuit board detection device and method, aiming to improve the accuracy of circuit board detection.
[0004] To achieve the above-mentioned purpose, the circuit board detection device proposed in this application includes:
[0005] Transfer agencies, including:
[0006] A plurality of transverse guide rails, the plurality of transverse guide rails are arranged in parallel; the plurality of transverse guide rails are used to fix the circuit board and enable the circuit board to move along the transverse guide rails;
[0007] A screw rod is arranged perpendicularly to the transverse guide rails and is threadedly connected to the plurality of transverse guide rails; the screw rod is used to adjust the distance between the plurality of transverse guide rails;
[0008] A longitudinal guide rail is arranged perpendicularly to the transverse guide rail and is slidably connected to the plurality of transverse guide rails; the longitudinal guide rail is used to move the plurality of transverse guide rails along the longitudinal guide rail to adjust the distance between the plurality of transverse guide rails;
[0009] A camera assembly is arranged corresponding to the transverse guide rail to detect the circuit board.
[0010] In one embodiment, a first limiting portion is provided on a side surface of the longitudinal guide rail, and a second limiting portion corresponding to the first limiting portion is provided on the transverse guide rail.
[0011] In one embodiment, the transverse guide rail includes a plurality of guide rail mounting members, and the plurality of guide rail mounting members are fixedly connected in sequence; wherein the plurality of guide rail mounting members are machined parts.
[0012] In one embodiment, the transmission mechanism further comprises:
[0013] A position detection mechanism is arranged on the transverse guide rail; the position detection mechanism detects whether the circuit board reaches a preset position;
[0014] A blocking mechanism is arranged on the transverse guide rail; the blocking mechanism is used to actuate when the circuit board reaches a preset position to prevent the circuit board from continuing to move;
[0015] The clamping mechanism is arranged on the transverse guide rail; the clamping mechanism is used to clamp the circuit board to fix it after the blocking mechanism blocks the circuit board.
[0016] In one embodiment, the camera assembly includes a camera and a telecentric lens, and the telecentric lens is connected to the camera.
[0017] In one embodiment, the circuit board detection device further includes:
[0018] A first light source, the first light source is disposed in the camera assembly and corresponding to the transverse guide rail;
[0019] a second light source, the second light source being disposed on the camera assembly and corresponding to the transverse guide rail;
[0020] The first light source is used to emit light with a wavelength range of 620nm to 750nm, the second light source is used to emit light with a wavelength range of 450nm to 500nm, and the first light source is arranged on a side of the second light source away from the transverse guide rail.
[0021] The present application also proposes a circuit board detection method, which is based on the circuit board detection device and includes:
[0022] Acquire a circuit board image based on a camera assembly;
[0023] Processing the circuit board image to extract multiple edge points;
[0024] Fit multiple edge points into multiple target straight lines;
[0025] Based on the plurality of target straight lines, the size of the circuit board is determined.
[0026] In one embodiment, after the step of fitting the plurality of edge points into a plurality of target straight lines, the method further comprises:
[0027] Obtaining distances between a plurality of edge points and corresponding target straight lines;
[0028] When the distance between the edge point and the corresponding straight line exceeds a preset distance, it is determined that the circuit board has a defect.
[0029] In one embodiment, before the step of acquiring the circuit board image based on the camera assembly, the method further includes:
[0030] Get preset circuit board parameter information;
[0031] The distances between the plurality of transverse guide rails are adjusted based on the preset circuit board parameter information.
[0032] In one embodiment, the transmission mechanism further includes a position detection mechanism, a blocking mechanism, and a clamping mechanism; after the step of adjusting the distance between the plurality of transverse guide rails based on the preset circuit board parameter information, the method further includes:
[0033] Controlling the circuit board to move along the transverse guide rail;
[0034] When the circuit board moves to a preset position, the detection mechanism triggers a corresponding position detection signal to control the blocking mechanism to block the circuit board from continuing to move, and controls the clamping mechanism to clamp the circuit board to fix it.
[0035] The circuit board detection device of the present application includes a transmission mechanism and a camera assembly, wherein the transmission mechanism includes a plurality of transverse guide rails, a screw rod and a longitudinal guide rail, wherein the plurality of transverse guide rails are arranged in parallel, the screw rod is arranged perpendicularly to the transverse guide rails and is threadedly connected to the plurality of transverse guide rails, the longitudinal guide rail is arranged perpendicularly to the transverse guide rails and is slidably connected to the plurality of transverse guide rails, and the camera assembly is arranged correspondingly to the transverse guide rails. Based on the above structure, the present application can adjust the distance between the plurality of transverse guide rails by adjusting the screw rod so that the plurality of transverse guide rails move along the longitudinal guide rails. In this way, the screw rod and the longitudinal guide rail cooperate to avoid the inconsistent height of the transverse guide rails caused by the bending of the screw rod during the adjustment of the transverse guide rails, thereby ensuring the consistency of the depth of field when the camera assembly detects the circuit board on the transverse guide rail, thereby improving the accuracy of the detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0037] Figure 1 A schematic diagram of the structure of an embodiment of a circuit board detection device of the present application;
[0038] Figure 2 for Figure 1 A partial enlarged view of the middle A;
[0039] Figure 3 for Figure 1 A partial enlarged view of point B in the middle;
[0040] Figure 4A schematic diagram of a method flow chart provided for an embodiment of a circuit board detection method of the present application;
[0041] Figure 5 A schematic diagram of a method flow chart provided for another embodiment of the circuit board detection method of the present application;
[0042] Figure 6 A schematic diagram of a method flow chart provided for another embodiment of the circuit board detection method of the present application;
[0043] Figure 7 A schematic diagram of a method flow chart of another embodiment of the circuit board detection method of the present application is provided.
[0044] Description of Figure Numbers:
[0045] 11. lateral guide rail; 111. second position limiting portion; 112. position detecting mechanism; 113. blocking mechanism; 114. clamping mechanism; 12. screw rod; 13. longitudinal guide rail; 131. first position limiting portion; 20. camera assembly; 21. camera; 22. telecentric lens; 31. first light source; 32. second light source.
[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0049] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0050] This application proposes a circuit board detection device, referring to Figure 1 The circuit board detection device includes a transmission mechanism and a camera assembly 20, the transmission mechanism includes a plurality of transverse guide rails 11, a screw rod 12 and a longitudinal guide rail 13, the plurality of transverse guide rails 11 are arranged in parallel; the plurality of transverse guide rails 11 are used to fix the circuit board and move the circuit board along the transverse guide rails 11; the screw rod 12 is vertically arranged with the transverse guide rails 11 and is threadedly connected with the plurality of transverse guide rails 11; the screw rod 12 is used to adjust the distance between the plurality of transverse guide rails 11; the longitudinal guide rail 13 is vertically arranged with the transverse guide rails 11 and is slidably connected with the plurality of transverse guide rails 11; the longitudinal guide rail 13 is used to move the plurality of transverse guide rails 11 along the longitudinal guide rail 13 to adjust the distance between the plurality of transverse guide rails 11.
[0051] In this embodiment, the number of transverse rails 11 can be an even number such as two, four, six, eight, etc., so as to form a circuit board transmission channel between every two rails. The circuit board to be inspected can be moved along the transverse rails 11 in the circuit board transmission channel to be placed in the corresponding position of the camera assembly 20, so as to facilitate the camera assembly 20 to inspect the circuit board. The specific number of transverse rails 11 can be determined according to the number and type of circuit boards to be inspected, and is not limited here.
[0052] It is understandable that the length and width of different types of circuit boards will be different, so the spacing of the transverse guide rails 11 needs to be able to adapt to circuit boards of different sizes. By adjusting the screw rod 12, the distance between the transverse guide rails 11 can be changed to adapt to circuit boards of different sizes. It is understandable that when adjusting the distance between the two transverse guide rails 11, one of them can be kept fixed and only the other can be moved along the screw rod 12, or the two transverse guide rails 11 can be moved at the same time to adapt the distance between the two transverse guide rails 11 to the circuit board of the corresponding size. The specific adjustment method is not limited here.
[0053] It can also be understood that in the production process of the screw rod 12, due to the influence of factors such as the unevenness of the material itself, the limitations of the processing technology and the heat treatment, the screw rod 12 may produce a slight deformation in the length direction, that is, it will cause the screw rod 12 to have a certain bending, and then after the distance between the transverse guide rails 11 is adjusted by the screw rod 12, the heights of different transverse guide rails 11 are inconsistent, and then when it transmits the circuit board, it will cause the heights of the two sides of the circuit board to be inconsistent. When the camera assembly 20 detects the circuit board, it cannot guarantee the consistency of the depth of field of the detection, thereby affecting the accuracy of the detection.
[0054] In this embodiment, the longitudinal guide rail 13 is vertically arranged with the transverse guide rail 11, and is slidably connected with the plurality of transverse guide rails 11, so that the transverse guide rail 11 always maintains the same relative height with the longitudinal guide rail 13 in the vertical direction. When the longitudinal guide rail 13 is arranged on the same horizontal plane, it can also ensure that the transverse guide rail 11 is on the same horizontal plane before and after adjustment, thereby ensuring the consistency of the depth of field when the camera assembly 20 detects the circuit board. Based on the above structure, the circuit board detection device can effectively solve the problem of inconsistent height of the transverse guide rail 11 caused by the bending of the screw rod 12, and ensure the detection accuracy while meeting the detection requirements of circuit boards of different sizes.
[0055] In this embodiment, the circuit board detection device includes a transmission mechanism and a camera assembly 20, the transmission mechanism includes a plurality of transverse guide rails 11, a screw rod 12 and a longitudinal guide rail 13, the plurality of transverse guide rails 11 are arranged in parallel, the screw rod 12 is arranged perpendicularly to the transverse guide rails 11 and is threadedly connected to the plurality of transverse guide rails 11, the longitudinal guide rail 13 is arranged perpendicularly to the transverse guide rails 11 and is slidably connected to the plurality of transverse guide rails 11, and the camera assembly 20 is arranged corresponding to the transverse guide rails 11. Based on the above structure, the present application can adjust the distance between the plurality of transverse guide rails 11 by adjusting the screw rod 12 so that the plurality of transverse guide rails 11 move along the longitudinal guide rail 13, so that the screw rod 12 and the longitudinal guide rail 13 cooperate to avoid the height inconsistency of the transverse guide rail 11 caused by the bending of the screw rod 12 during the adjustment of the transverse guide rail 11, and ensure the consistency of the depth of field when the camera assembly 20 detects the circuit board on the transverse guide rail 11, thereby improving the accuracy of the detection.
[0056] In a feasible embodiment, the circuit board detection device is provided with a first drive device, which is in transmission connection with the transverse guide rail 11 and is used for the circuit board to move along the transverse guide rail 11. The first drive device can be a stepper motor or other types of motors, which cooperate with corresponding transmission mechanisms, such as gears, belts, etc., to achieve accurate positioning and movement control of the circuit board. Through the precise control of the first drive device, the circuit board detection device can quickly and accurately detect the circuit board. In addition, the circuit board detection device can also include a second drive device, which is in transmission connection with the longitudinal guide rail 13 and is used to control the movement of the transverse guide rail 11 along the longitudinal guide rail 13. The second drive device can also use a stepper motor or other types of motors, which cooperate with corresponding transmission mechanisms to achieve accurate adjustment of the position of the transverse guide rail 11. Through the coordinated work of the first drive device and the second drive device, the circuit board detection device can flexibly adapt to circuit boards of different sizes and types, and realize an efficient and accurate detection process. In practical applications, the circuit board detection device can also be equipped with an automatic calibration system to automatically detect and calibrate the relative positions of the transverse guide rail 11 and the longitudinal guide rail 13 regularly or before detection, so as to ensure that the detection accuracy is not affected by the bending of the screw rod 12 or other factors.
[0057] In one possible implementation, reference Figure 2, a first limiting portion 131 is provided on the side of the longitudinal guide rail 13, and the transverse guide rail 11 is provided with a second limiting portion 111 corresponding to the first limiting portion 131. In this embodiment, the first limiting portion 131 can be a slide groove, a slider or other forms of positioning structures, and the second limiting member can be a protrusion, a groove or other forms of positioning structures that cooperate with the first limiting member. In this embodiment, a plurality of transverse guide rails 11 are arranged in the same plane, and the side of the longitudinal guide rail 13 is the side perpendicular to the horizontal plane where the plurality of transverse guide rails 11 are located. In this embodiment, the longitudinal guide rail 13 includes two side surfaces perpendicular to the horizontal plane where the plurality of transverse guide rails 11 are located, and the first limiting portion 131 is provided on both side surfaces, and the transverse guide rails 11 are provided with corresponding second limiting portions 111 corresponding to the first limiting portions 131 on the two side surfaces. Through the cooperation between the first limit portion 131 and the second limit portion 111, it can be ensured that the second limit portion 111 of the transverse guide rail 11 always maintains precise alignment with the first limit portion 131 of the longitudinal guide rail 13 during the movement, so that in the process of adjusting the distance between the transverse guide rails 11, the height of the transverse guide rails 11 can always be kept in the same horizontal plane, further ensuring the consistency of the depth of field when the camera assembly 20 detects the circuit board, thereby improving the detection accuracy.
[0058] In a feasible implementation, the transverse guide rail 11 includes a plurality of guide rail mounting parts, and the plurality of guide rail mounting parts are fixedly connected in sequence; wherein the plurality of guide rail mounting parts are machined parts. In this embodiment, the machined parts are parts of the required shape and size obtained by removing excess material from the raw material or blank by mechanical processing means such as turning, milling, drilling, and grinding, so that the machined parts have higher precision and surface finish. By fixing the guide rail mounting parts in sequence, the surface of the transverse guide rail 11 can be made smoother, which not only makes the transverse guide rail 11 more precise and more stable in the process of transmitting the circuit board, but also ensures the rigidity and strength of the entire transverse guide rail 11, reduces the displacement caused by mechanical vibration or external impact, and thus improves the stability and reliability of the circuit board detection device. In addition, the use of machined parts is also convenient for subsequent maintenance and replacement. When a certain guide rail mounting part is worn or damaged, it can be replaced separately without replacing the entire transverse guide rail 11, which saves costs and shortens maintenance time.
[0059] In one possible implementation, reference Figure 1 , Figure 3The transmission mechanism also includes a position detection mechanism 112, a blocking mechanism 113 and a clamping mechanism 114. The position detection mechanism 112 is arranged on the transverse guide rail 11; the position detection mechanism 112 detects whether the circuit board reaches the preset position; the blocking mechanism 113 is arranged on the transverse guide rail 11; the blocking mechanism 113 is used to actuate when the circuit board reaches the preset position to prevent the circuit board from continuing to move; the clamping mechanism 114 is arranged on the transverse guide rail 11; the clamping mechanism 114 is used to clamp the circuit board to fix it after the blocking mechanism 113 blocks the circuit board.
[0060] In this embodiment, the preset position can be a position where the camera assembly 20 can directly capture the image of the circuit board through the lens or a position where the camera assembly 20 can capture the image of the circuit board after the position is adjusted by the corresponding position adjustment mechanism. The position detection mechanism 112 can be a photoelectric sensor, a proximity switch or other types of sensors, which can accurately detect the position information of the circuit board. When the circuit board moves to the preset position, the position detection mechanism 112 sends a signal to trigger the action of the blocking mechanism 113. The blocking mechanism 113 can be an electromagnetic, pneumatic or mechanical blocking device, which is used to prevent the circuit board from further moving by extending a blocking block or a blocking plate when the circuit board reaches the preset position. The clamping mechanism 114 can be a pneumatic clamp or an electric clamp, which ensures that the circuit board remains stable during the detection process by clamping the circuit board after the blocking mechanism 113 is activated. Based on the above structure, the circuit board detection device can accurately control the positioning and fixation of the circuit board, provide a stable detection environment for the camera assembly 20, and thus improve the accuracy and efficiency of the detection.
[0061] In a feasible implementation, the camera assembly 20 includes a camera 21 and a telecentric lens 22, and the telecentric lens 22 is connected to the camera 21. In this embodiment, the camera 21 can specifically be a line scan camera 21. In addition, the camera assembly 20 can also use other types of industrial cameras 21. The specific type of the camera 21 can be selected according to the actual detection requirements and is not limited here. The telecentric lens 22 can provide an image with almost no distortion, and maintain a constant magnification between the camera 21 and the object being photographed. Even if the object moves on the focal plane of the lens, the size of the image will not change, so that the camera assembly 20 can obtain high-precision and high-consistency images when detecting the circuit board, thereby further improving the accuracy and reliability of the detection. In addition, the use of the telecentric lens 22 is also conducive to the accurate measurement and detection of tiny components and features on the circuit board. Through the combination of the telecentric lens 22 and the camera 21, the circuit board detection device can realize the accurate identification and measurement of various complex features on the circuit board, meeting the needs of high-precision detection in modern electronic manufacturing.
[0062] In a feasible implementation, since the number of the transverse rails 11 can be an even number such as two, four, six, or eight, so as to form a circuit board transmission channel between every two rails, the circuit board to be inspected can move along the transverse rails 11 in the circuit board transmission channel. Therefore, the circuit board inspection device further includes a position adjustment mechanism, which is connected to the camera assembly 20, and the position adjustment mechanism is used to adjust the position of the camera assembly 20, so that the camera assembly 20 can inspect the circuit boards between different transverse rails 11.
[0063] In a feasible implementation, the camera assembly 20 is provided in plurality corresponding to the number of transverse rails 11. For example, when there are four transverse rails 11, two camera assemblies 20 are provided, and each camera assembly 20 is provided above two transverse rails 11; when there are six transverse rails 11, three camera assemblies 20 are provided, and each camera assembly 20 is provided above two transverse rails 11. In this way, it can be ensured that the camera assembly 20 covers all transverse rails 11, realizing synchronous detection of multiple circuit boards, and improving the applicability and detection efficiency of the detection device.
[0064] In a feasible embodiment, the circuit board detection device also includes a first light source 31 and a second light source 32, the first light source 31 is arranged on the camera assembly 20 and corresponds to the transverse guide rail 11, and the second light source 32 is arranged on the camera assembly 20 and corresponds to the transverse guide rail 11; wherein, the first light source 31 is used to emit light in a wavelength range of 620nm to 750nm, and the second light source 32 is used to emit light in a wavelength range of 450nm to 500nm, and the first light source 31 is arranged on the side of the second light source 32 away from the transverse guide rail 11.
[0065] In this embodiment, the first light source 31 and the second light source 32 are arranged so that the camera assembly 20 can obtain illumination of different wavelength ranges when detecting the circuit board, thereby enhancing the recognition ability of different materials and features on the circuit board. The light of the wavelength range of 620nm to 750nm emitted by the first light source 31 corresponds to the red spectrum, which has a strong penetrating power. Therefore, it is arranged on the side of the second light source 32 away from the transverse guide rail 11, that is, it is arranged above the second light source 32, and can pass through the OC glue on the surface of the circuit board and illuminate the characteristics of specific materials such as the substrate and silver paste under the OC glue. The light of the wavelength range of 450nm to 500nm emitted by the second light source 32 corresponds to the blue spectrum. It is arranged on the side of the first light source 31 close to the transverse guide rail 11, that is, it is arranged below the first light source 31, and can illuminate from the side of the object at a lower angle, so that the flat part of the circuit board forms a dark field due to reflection, and the uneven part will reflect messy light into the camera 21, forming a bright area, so as to clearly present the edge of the OC glue and internal impurities, bubbles, etc. Through this dual light source configuration, the camera assembly 20 can more accurately identify defects and features on the circuit board, such as solder joints, circuits, components, etc., thereby improving the accuracy and efficiency of detection. In addition, by adjusting the brightness and angle of the light source, the detection effect can be further optimized to ensure that clear images can be obtained under different detection environments. The reasonable layout and use of the light source not only improves the accuracy of the detection, but also reduces the dependence on ambient light, so that the circuit board detection device can work stably under various lighting conditions.
[0066] In this embodiment, the circuit board detection device includes a transmission mechanism and a camera assembly 20, the transmission mechanism includes a plurality of transverse guide rails 11, a screw rod 12 and a longitudinal guide rail 13, the plurality of transverse guide rails 11 are arranged in parallel, the screw rod 12 is arranged perpendicularly to the transverse guide rails 11 and is threadedly connected to the plurality of transverse guide rails 11, the longitudinal guide rail 13 is arranged perpendicularly to the transverse guide rails 11 and is slidably connected to the plurality of transverse guide rails 11, and the camera assembly 20 is arranged corresponding to the transverse guide rails 11. Based on the above structure, the present application can adjust the distance between the plurality of transverse guide rails 11 by adjusting the screw rod 12 so that the plurality of transverse guide rails 11 move along the longitudinal guide rail 13, so that the screw rod 12 and the longitudinal guide rail 13 cooperate to avoid the height inconsistency of the transverse guide rail 11 caused by the bending of the screw rod 12 during the adjustment of the transverse guide rail 11, and ensure the consistency of the depth of field when the camera assembly 20 detects the circuit board on the transverse guide rail 11, thereby improving the accuracy of the detection.
[0067] The present application also proposes a circuit board detection method, which is based on the circuit board detection device. The specific structure of the circuit board detection device refers to the above embodiment. Since the circuit board detection method is based on the circuit board detection device, that is, the circuit board detection method adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here. Figure 4 The circuit board detection method includes steps S100 to S400, wherein:
[0068] Step S100 , acquiring a circuit board image based on the camera assembly 20 .
[0069] In this embodiment, the process of acquiring the circuit board image is performed by the camera 21 in the camera assembly 20. The camera 21 can be a line scan camera 21 or an area array camera 21 or other types of industrial cameras 21. By setting a telecentric lens 22 in the camera assembly 20, the high accuracy and consistency of the circuit board image are ensured, thereby providing high-quality image data for subsequent image processing and analysis.
[0070] Step S200: Process the circuit board image to extract multiple edge points.
[0071] In this embodiment, by analyzing the polarity of the gray value of the circuit board image, the gradient threshold, smoothing and other parameters, the edge points on the circuit board can be effectively identified. The extraction of edge points is achieved by an image processing algorithm, such as using the Canny edge detection algorithm, which can detect the edges in the image and mark the positions of the edge points.
[0072] Step S300: Fitting multiple edge points into multiple target straight lines.
[0073] In this embodiment, the fitting process can be implemented by a mathematical algorithm, such as the least square method, to ensure that the error between the fitted target straight line and the actual edge point is minimized. The fitted target straight line can represent the contour of a specific feature on the circuit board, providing a basis for subsequent feature matching and positioning. Through precise fitting, the accuracy and efficiency of circuit board detection can be improved, and the possibility of misjudgment and missed detection can be reduced.
[0074] Step S400: determining the size of the circuit board based on the plurality of target straight lines.
[0075] In this embodiment, the process of determining the size of the circuit board involves the analysis of the fitted straight lines to identify the edges and key dimensional parameters of the circuit board. By calculating the distance and angle between these straight lines, the key dimensions of the circuit board, such as the length, width, and hole position, can be accurately measured. In addition, by comparing these measured values with the preset standard dimensions, it can be determined whether the circuit board meets the design specifications. If there is a deviation, the system can automatically record this data and provide it to the subsequent manufacturing process as a reference to ensure the production quality of the circuit board. Through such a detection method, the dimensional deviation of the circuit board can be effectively identified, thereby ensuring that the quality of the final product meets industry standards.
[0076] In one possible implementation, reference Figure 5 After step S300, the method further includes steps S500 to S600, wherein:
[0077] Step S500: obtaining distances between a plurality of edge points and corresponding target straight lines.
[0078] Step S600: When the distance between an edge point and a corresponding straight line exceeds a preset distance, it is determined that the circuit board has a defect.
[0079] In this embodiment, defects on the circuit board can be effectively identified by detecting the distance between the edge point and the target straight line. If the distance between the edge point and the corresponding target straight line exceeds the set threshold, this usually means that there is some defect on the circuit board, such as bending, breaking or dimensional deviation. In this way, the circuit board can be more carefully controlled to ensure that each circuit board meets the production standards. In practical applications, the preset distance threshold can be adjusted according to the specific requirements and production standards of the circuit board to meet different detection needs. In addition, the detection method can also record the location and type of defects through software to provide data support for subsequent defect analysis and quality improvement. Through the above-mentioned automated detection process, production efficiency can be greatly improved and the errors and costs of manual detection can be reduced.
[0080] In a feasible implementation manner, before step S100, the method further includes steps S010 to S012, wherein:
[0081] Step S010, obtaining preset circuit board parameter information.
[0082] In this embodiment, the preset parameter information may include key data such as the size of the circuit board, the distribution of hole positions, and feature marks. The parameter information of the above-mentioned circuit board determines the size and position of the area that the camera assembly 20 needs to cover during the detection process. Therefore, by obtaining these parameter information, it can be ensured that the camera assembly 20 can accurately locate the key feature area of the circuit board when detecting the circuit board. The acquisition of preset parameters can be achieved by interfacing with the circuit board design data, such as through database query, file reading or other data exchange methods. After obtaining these parameter information, the system will automatically configure the parameters of the camera assembly 20, such as focal length, exposure time, etc., to meet the detection requirements of different circuit boards.
[0083] Step S020: adjusting the distance between the plurality of transverse guide rails 11 based on the preset circuit board parameter information.
[0084] In this embodiment, according to the preset circuit board parameter information, the transverse guide rail 11 can be moved along the longitudinal guide rail 13 by adjusting the screw rod 12, and the distance between the transverse guide rails 11 can be changed, so that the transverse guide rail 11 can adapt to the width of circuit boards of different sizes. In addition, adjusting the distance of the transverse guide rails 11 also ensures that the circuit board can be stably placed within the field of view of the camera assembly 20 during the detection process, thereby ensuring the accuracy and consistency of image acquisition. In actual operation, the adjustment process can be automatic, with the movement of the guide rails controlled by software, or semi-automatic, requiring the operator to manually adjust the position of the guide rails according to preset parameters. Regardless of the method used, the adjustment process should ensure that the camera assembly 20 maintains an appropriate distance from the circuit board so that the transverse guide rail 11 can stably transmit the circuit board so that the camera assembly 20 can obtain clear and accurate image data.
[0085] In addition, in order to further improve the flexibility and adaptability of the detection device, step S010 and step S020 may also include the function of classifying and identifying different types of circuit boards. Through the pre-set parameter information, the detection device can automatically identify the type of circuit board and automatically adjust the spacing of the transverse guide rails 11 according to the identification result to meet the detection requirements of different circuit boards. In this way, not only the detection efficiency is improved, but also the need for manual intervention is reduced, making the entire detection process more automated and intelligent.
[0086] In a feasible implementation manner, after step S020, the method further includes steps S030 to S040, wherein:
[0087] Step S030 , controlling the circuit board to move along the transverse guide rail 11 .
[0088] In this embodiment, the precise movement of the circuit board can be achieved by using a stepper motor or a servo motor. The moving speed and direction of the circuit board can be programmed and controlled according to the detection requirements to ensure that the circuit board can pass through the detection area at a stable speed when the camera assembly 20 performs image acquisition.
[0089] Step S040, when the circuit board moves to the preset position, the detection mechanism triggers a corresponding position detection signal to control the blocking mechanism 113 to block the circuit board from continuing to move, and controls the clamping mechanism 114 to clamp the circuit board to fix it.
[0090] In this embodiment, the preset position can be a position where the camera assembly 20 can directly capture the image of the circuit board through the lens or a position where the camera assembly 20 can capture the image of the circuit board after the position is adjusted by the corresponding position adjustment mechanism. The position detection mechanism 112 can be a photoelectric sensor, a proximity switch or other types of sensors, which can accurately detect the position information of the circuit board. When the circuit board moves to the preset position, the position detection mechanism 112 sends a signal to trigger the action of the blocking mechanism 113. The blocking mechanism 113 can be an electromagnetic, pneumatic or mechanical blocking device, which prevents the circuit board from further moving by extending a blocking block or a blocking plate when the circuit board reaches the preset position. The clamping mechanism 114 can be a pneumatic clamp or an electric clamp, which ensures that the circuit board remains stable during the detection process by clamping the circuit board after the blocking mechanism 113 is activated. Through the above method, the circuit board detection device can accurately control the positioning and fixation of the circuit board, provide a stable detection environment for the camera assembly 20, and thus improve the accuracy and efficiency of the detection.
[0091] In an embodiment of the present application, the circuit board detection device includes a transmission mechanism and a camera assembly 20, the transmission mechanism includes a plurality of transverse guide rails 11, a screw rod 12 and a longitudinal guide rail 13, the plurality of transverse guide rails 11 are arranged in parallel, the screw rod 12 is arranged perpendicularly to the transverse guide rails 11 and is threadedly connected to the plurality of transverse guide rails 11, the longitudinal guide rail 13 is arranged perpendicularly to the transverse guide rail 11 and is slidably connected to the plurality of transverse guide rails 11, and the camera assembly 20 is arranged correspondingly to the transverse guide rails 11. Based on the above structure, the present application can adjust the distance between the plurality of transverse guide rails 11 by adjusting the screw rod 12 so that the plurality of transverse guide rails 11 move along the longitudinal guide rail 13, so that the screw rod 12 and the longitudinal guide rail 13 cooperate to avoid the height inconsistency of the transverse guide rail 11 caused by the bending of the screw rod 12 during the adjustment of the transverse guide rail 11, and ensure the consistency of the depth of field when the camera assembly 20 detects the circuit board on the transverse guide rail 11, thereby improving the accuracy of the detection.
[0092] The above description is only an exemplary embodiment of the present application and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A circuit board detection device, characterized in that: The circuit board detection device comprises: Transfer agencies, including: A plurality of transverse guide rails, the plurality of transverse guide rails are arranged in parallel; the plurality of transverse guide rails are used to fix the circuit board and enable the circuit board to move along the transverse guide rails; A screw rod is arranged perpendicularly to the transverse guide rails and is threadedly connected to the plurality of transverse guide rails; the screw rod is used to adjust the distance between the plurality of transverse guide rails; A longitudinal guide rail is arranged perpendicularly to the transverse guide rail and is slidably connected to the plurality of transverse guide rails; the longitudinal guide rail is used to move the plurality of transverse guide rails along the longitudinal guide rail to adjust the distance between the plurality of transverse guide rails; A camera assembly is arranged corresponding to the transverse guide rail to detect the circuit board.
2. The circuit board detection device according to claim 1, characterized in that: A first limiting portion is disposed on the side surface of the longitudinal guide rail, and a second limiting portion corresponding to the first limiting portion is disposed on the transverse guide rail.
3. The circuit board detection device according to claim 1, characterized in that: The transverse guide rail includes a plurality of guide rail mounting parts, and the plurality of guide rail mounting parts are fixedly connected in sequence; wherein the plurality of guide rail mounting parts are machined parts.
4. The circuit board detection device according to claim 1, characterized in that: The transmission mechanism also includes: A position detection mechanism is arranged on the transverse guide rail; the position detection mechanism detects whether the circuit board reaches a preset position; A blocking mechanism is arranged on the transverse guide rail; the blocking mechanism is used to actuate when the circuit board reaches a preset position to prevent the circuit board from continuing to move; The clamping mechanism is arranged on the transverse guide rail; the clamping mechanism is used to clamp the circuit board to fix it after the blocking mechanism blocks the circuit board.
5. The circuit board detection device according to claim 1, characterized in that: The camera assembly comprises a camera and a telecentric lens, and the telecentric lens is connected to the camera.
6. The circuit board detection device according to claim 1, characterized in that: The circuit board detection device also includes: A first light source, the first light source is disposed in the camera assembly and corresponding to the transverse guide rail; a second light source, the second light source being disposed on the camera assembly and corresponding to the transverse guide rail; The first light source is used to emit light with a wavelength range of 620nm to 750nm, the second light source is used to emit light with a wavelength range of 450nm to 500nm, and the first light source is arranged on a side of the second light source away from the transverse guide rail.
7. A circuit board detection method, characterized in that: The circuit board detection method is based on the circuit board detection device according to any one of claims 1 to 6, comprising: Acquire a circuit board image based on a camera assembly; Processing the circuit board image to extract multiple edge points; Fit multiple edge points into multiple target straight lines; Based on the plurality of target straight lines, the size of the circuit board is determined.
8. The circuit board detection method according to claim 7, characterized in that: After the step of fitting the plurality of edge points into a plurality of target straight lines, the method further comprises: Obtaining distances between a plurality of edge points and corresponding target straight lines; When the distance between the edge point and the corresponding straight line exceeds a preset distance, it is determined that the circuit board has a defect.
9. The circuit board detection method according to claim 7, characterized in that: Before the step of acquiring the circuit board image based on the camera assembly, the method further includes: Get preset circuit board parameter information; The distances between the plurality of transverse guide rails are adjusted based on the preset circuit board parameter information.
10. The circuit board detection method according to claim 9, characterized in that: The transmission mechanism further includes a position detection mechanism, a blocking mechanism and a clamping mechanism; after the step of adjusting the distance between the plurality of transverse guide rails based on the preset circuit board parameter information, the method further includes: Controlling the circuit board to move along the transverse guide rail; When the circuit board moves to a preset position, the detection mechanism triggers a corresponding position detection signal to control the blocking mechanism to block the circuit board from continuing to move, and controls the clamping mechanism to clamp the circuit board to fix it.
Citation Information
Patent Citations
Automatic overlapping and assembling and positioning guide rail for iron core
CN110589365A
Screw rod detection device and method
CN111678415A
Lithium battery pole piece size detection method and device, equipment and storage medium
CN114723942A
Linear guide rail for assembly machine for positioning sliding rail
CN115355249A
Double-sided AOI detection mechanism for PCB circuit board
CN118641558A