Automatic assembly detection device and method for charging equipment

Through the automatic assembly detection device, image acquisition and ranging sensors are used to automatically identify and position screw holes, and the dynamic programming algorithm is combined to calculate the optimal path, which solves the problem of low efficiency in the assembly and detection of charging equipment, and realizes efficient automated production and Reduced costs.

CN111015208BActive Publication Date: 2024-10-01JIEYANG QIATAILI ELECTRONICAL APPLIANCE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911247308.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-06
Publication Date
2024-10-01
Estimated Expiration
2039-12-06

AI Technical Summary

Technical Problem

In the existing technology, the assembly and testing process of charging equipment relies on manual operation, which is inefficient and costly. In particular, the positions of the screw holes are different, making it difficult to assemble with optimal efficiency manually, and the charging equipment requires offline power-on testing, which limits Improve assembly and inspection efficiency.

Method used

An automatic assembly detection device is designed, including X-axis, Y-axis, and Z-axis displacement mechanisms, image acquisition modules, screw gun modules, pressing mechanisms and detection modules. The image acquisition module is used to automate screw holes. Identification and positioning, combined with ranging sensors to realize automatic assembly and power-on detection, and dynamic programming algorithm to calculate the optimal path to improve assembly efficiency.

Benefits of technology

It realizes automated identification, positioning and automatic assembly of screw holes in charging equipment, improves assembly and inspection efficiency, reduces production costs, and meets actual production needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111015208B_ABST
    Figure CN111015208B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an automatic assembly detection device for a charging device, comprising an X-axis, Y-axis, and Z-axis displacement mechanism, an image acquisition module, a screw gun module, a clamping mechanism, and a detection module; the image acquisition module and the screw gun module are arranged on the Z-axis displacement mechanism; the clamping mechanism comprises a pressing plate, and a clamping drive mechanism for driving the pressing plate to swing and press against the accommodating seat; the detection module comprises a first detection mechanism, and the first detection mechanism comprises a slide, a slide shaft, a socket, and a mounting seat fixedly connected to the pressing plate, and at least one pair of test pins is inserted on the socket. The embodiment of the present invention also discloses a method for assembly and detection using the automatic assembly detection device for the charging device described above. The present invention realizes automatic identification, positioning, and automatic assembly of screw holes, and automatic power-on identification, thereby improving the assembly and detection efficiency of the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent production, and in particular to an automatic assembly detection device and method for charging equipment. Background Art

[0002] In the prior art, most small household appliances, toys, tools and other equipment need to be locked and assembled with screws, which is an indispensable and important process in production and manufacturing. In the prior art, screw assembly is often performed manually. With the invention of automatic screw guns, manual operation has become simpler, but it still relies on manual operation of the naked eye to screw in the screws, and the number and position of the screw holes to be assembled are different, making it difficult to assemble them manually with optimal efficiency. In addition, for charging equipment, it is also necessary to perform power-on detection offline after assembly. These two processes limit the efficiency of its assembly and detection, and the cost is still high. Summary of the invention

[0003] The technical problem to be solved by the embodiment of the present invention is to provide an automatic assembly detection device and method for charging equipment.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides an automatic assembly detection device for a charging device, including X-axis, Y-axis, and Z-axis displacement mechanisms, an image acquisition module, a screw gun module, a clamping mechanism, and a detection module;

[0005] The Z-axis displacement mechanism is slidably arranged on the X-axis displacement mechanism, and the image acquisition module and the screw gun module are arranged on the Z-axis displacement mechanism;

[0006] The image acquisition module includes a light source module, a camera module and a distance sensor;

[0007] A support plate is slidably arranged on the X-axis, a receiving seat is fixedly arranged on the support plate, and the pressing mechanism and the detection module are both arranged on the support plate;

[0008] The pressing mechanism includes a pressing plate and a pressing driving mechanism for driving the pressing plate to swing and press against the accommodating seat;

[0009] The detection module includes a first detection mechanism, which includes a slide, a sliding shaft, a socket, and a mounting base fixedly connected to the pressure plate. The slide has a pair of inclined grooves, the sliding shaft is slidably arranged between the pair of inclined grooves, the socket is slidably arranged on the mounting base up and down, and at least one pair of test pins is inserted into the socket. The slide is driven by a first driving mechanism to slide horizontally, and the sliding shaft is fixedly connected to the socket.

[0010] Furthermore, the socket is a pair of symmetrical conductive seats, the conductive seats have a slit, at least one pair of grooves for mounting the test needles are arranged in the slit, and a wedge block is arranged between the pair of conductive seats so that the test needles are clamped in the grooves.

[0011] Furthermore, the detection module also includes a second detection mechanism arranged at one end of the support plate, the second detection mechanism includes a vertically arranged fixed plate, a pair of conductive seats fixedly arranged on the fixed plate, the conductive seat has a slit, and at least one pair of grooves for installing the test needle are arranged in the slit, a wedge block is arranged between the pair of conductive seats so that the test needle is clamped in the groove, and the fixed plate is driven to slide by a second driving mechanism.

[0012] Furthermore, the clamping mechanism also includes a support, a rotating seat, and a connecting rod rotatably connected to the support, the middle part of the pressure plate is rotatably connected to the connecting rod, the end of the pressure plate is rotatably connected to the rotating seat, and the clamping drive mechanism is fixedly arranged on the support, and its output end is fixedly connected to the rotating seat.

[0013] Furthermore, the Z-axis displacement mechanism includes a screw pair and a motor driving the screw pair.

[0014] Furthermore, the screw gun module includes a side plate, a downward pressure cylinder fixedly arranged on the side plate, and a screw gun, wherein the screw gun has a fixing block, and a buffer spring is arranged between the output rod of the downward pressure cylinder and the fixing block.

[0015] Accordingly, an embodiment of the present invention further provides a method for assembling and testing using the automatic assembly and testing device of the charging device, comprising the following steps:

[0016] S1: By driving the X-axis and Y-axis displacement mechanisms, the image acquisition module scans the parts to be assembled in the receiving seat, splices them into an overall image, locates the positions of the screw holes, and calculates the mechanical coordinates in combination with the scanning starting point;

[0017] S2: Identify the positions of all the screw holes and the charging indicator lights, and use the distance measuring sensor to measure the Z coordinates of the screw holes and the charging indicator lights;

[0018] S3: Calculate the distance between the positions of the screw holes or the charging indicator lights according to the X, Y, and Z coordinates of the screw holes and the charging indicator lights, ;

[0019] S4: Assume that the number of screw holes and charging indicator lights is N+1, and divide the optimal path search process into N stages. arrive The distance generated in the Nth stage is ,

[0020]

[0021] The optimal path is , x 1 is the starting point, and the original problem is transformed into

[0022]

[0023]

[0024]

[0025] Furthermore, the step of positioning the screw hole comprises:

[0026] S11: Move the image acquisition module to the position of each screw hole and take photos again;

[0027] S12: Using Canny and a filter mask to detect the step edge, sub-pixel extraction of the screw hole contour is achieved, the screw hole contour is screened by the center of the circle, the optimal contour is found, and the contour is fitted into a circle to obtain the coordinates of the center of the circle.

[0028] Furthermore, the step of locating the position of the screw hole also includes: performing opening and closing operations on the entire image to remove excess gaps and excess burrs in the area, and then screening out the preliminary position of the screw hole through the roundness and the pixel width and height range of the screw hole.

[0029] The implementation of the embodiments of the present invention has the following beneficial effects: the screw holes required for assembly of the charging device can be automatically identified, positioned, and assembled, and automatic power-on identification can be performed, which can effectively improve the assembly and inspection efficiency of the product, improve the degree of automated production, reduce production costs, and meet actual production needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of the overall structure of the present invention;

[0031] Figure 2 This is a schematic diagram of the structure of the screw gun module;

[0032] Figure 3 This is a schematic diagram of the structure of the screw gun module;

[0033] Figure 4 This is a schematic diagram of the structure of the screw gun module;

[0034] Figure 5 is a structural schematic diagram of a first detection mechanism;

[0035] Figure 6 is a structural schematic diagram of a second detection mechanism;

[0036] Figure 7 It is a schematic diagram of the path planning process. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0038] Reference Figure 1 The structural diagram shown.

[0039] An automatic assembly detection device for a charging device according to an embodiment of the present invention includes an X-axis displacement mechanism 1, a Y-axis displacement mechanism 2, a Z-axis displacement mechanism 3, an image acquisition module 4, a screw gun module 5, a clamping mechanism 6, and a detection module 7.

[0040] The X-axis displacement mechanism 1, the Y-axis displacement mechanism 2, and the Z-axis displacement mechanism 3 can select common devices in the prior art, such as a screw pair transmission, an electric cylinder, etc. In this embodiment, a motor and a synchronous belt linkage implementation method is selected, and the Z-axis displacement mechanism 3 is preferably a motor and a screw pair transmission method.

[0041] The Z-axis displacement mechanism 3 is slidably disposed on the X-axis displacement mechanism 1 , and the image acquisition module and the screw gun module are disposed on the Z-axis displacement mechanism 3 . The Z-axis displacement mechanism 3 includes a screw pair 31 and a motor 32 for driving the screw pair.

[0042] The image acquisition module 4 includes a light source module 41 , a camera module 42 and a distance measuring sensor 43 .

[0043] like Figure 2 As shown, the screw gun module 5 includes a side plate 51, a downward pressure cylinder 52 fixedly arranged on the side plate 51, and a screw gun 53. The screw gun 53 has a fixed block 54, and the fixed block 54 has a sliding hole. The output rod 55 of the downward pressure cylinder 51 is slidably set in the sliding hole, and a limit block 56 is fixedly arranged on the output rod. A buffer spring 57 is arranged between the limit block 56 and the fixed block 54, so that the downward pressure cylinder 52 can press the screw gun 53 downward with a buffer to assemble the screws, and can protect the product.

[0044] For example Figure 1 A support plate 11 is slidably provided on the X-axis displacement mechanism 1, a receiving seat 12 is fixedly provided on the support plate 11, and a clamping mechanism 6 and a detection module 7 are both arranged on the support plate; the receiving seat 12 is determined according to the shape of the product, so that the product can be clamped on the receiving seat 12 by the clamping mechanism 6. In the present embodiment, taking the electric mosquito swatter product as an example, the receiving seat 12 is sufficient to place its handle.

[0045] like Figure 3 As shown, the clamping mechanism 6 includes a pressing plate 61, a support 62, a rotating seat 63, a connecting rod 64, and a clamping driving mechanism 65 that drives the pressing plate 61 to swing to clamp the product to be assembled in the accommodating seat 12. One end of the connecting rod 64 is rotatably set on the support 62, and the other end is rotatably connected to the middle part of the pressing plate 61. The end of the pressing plate 61 is rotatably connected to the rotating seat 63 through a rotating shaft 66. The clamping driving mechanism 65 is preferably a cylinder, which is fixedly set on the support 62, and its output end is connected to the rotating shaft 66. Under the drive of the clamping driving mechanism 65, the pressing plate 61 can swing to fix and press the product in the accommodating seat 12 to facilitate screw assembly.

[0046] like Figure 4 As shown, the detection module 7 includes a first detection mechanism 71 and a second detection mechanism 72. The detection module 7 is used to perform charging tests on charging products.

[0047] Recombination Figure 5 As shown, the first detection mechanism 71 includes a slide 711, a slide shaft 712, a socket 713, and a mounting seat 714 fixedly connected to the pressing plate 61. The slide 711 has a pair of inclined grooves 715. The slide shaft 712 is slidably disposed between the pair of inclined grooves 715. The socket 713 is slidably disposed on the mounting seat 714. At least one pair of test pins 716 is inserted into the socket 714. The slide 711 is driven by a first driving mechanism 717 to slide horizontally. The slide shaft 712 is fixedly connected to the socket 713. The first driving mechanism 717 is a cylinder.

[0048] In order to perform charging tests on plugs of different standards that are recycled into the product, in this embodiment, two pairs of test pins corresponding to the positions of two national standard plugs are preferably provided.

[0049] The socket 713 is a symmetrical pair of conductive seats 713A and 713B, each of which has a slit 713C. At least one pair of grooves for installing test needles is provided in the slit 714C. A wedge block 713D is provided between the pair of conductive seats. The wedge block 713D is used to apply pressure to the pair of conductive seats 713A and 713B on both sides thereof so that the test needle is clamped in the groove. This structure also facilitates the replacement of the test needle 716.

[0050] like Figure 6 The second detection mechanism 72 includes a vertically arranged fixed plate 721, a pair of conductive seats 722 fixedly arranged on the fixed plate, the conductive seats 722 have a slit 723, and at least a pair of grooves for mounting the test needle are arranged in the slit. A wedge block 724 is arranged between or on the pair of conductive seats to clamp the test needle in the groove. The fixed plate 721 is driven to slide by a second driving mechanism 725, and the second driving mechanism 725 is preferably a cylinder.

[0051] Through the cooperation of the first detection mechanism 71 and the second detection mechanism 72, the flip plug commonly found on the market and located at the bottom or end of charging products can be tested for power-on.

[0052] The embodiment of the present invention also provides a method for assembling and testing using the automatic assembly and testing device for the charging device.

[0053] The relative distances between the screw gun, camera module, and distance sensor are calculated through machine teaching.

[0054] Taking the electric mosquito swatter as an example, the screw hole at the tail of the electric mosquito swatter is used as the starting point. The camera module continuously scans to obtain 3×8 images, and the SUFT algorithm is used to achieve image splicing and fusion to obtain the overall image of the electric mosquito swatter. The spliced ​​image is used for processing, and image processing is used to obtain the preliminary positioning of the screw hole.

[0055] Threshold processing is performed to extract the area with a lower threshold in the image. The image opening and closing operations are used to remove the excess gaps and burrs in the area. Then, the initial position of the screw hole is screened out by the roundness and the pixel width and height range of the screw hole. The initial position is obtained by stitching the entire image of 3×8 images. Due to the existence of stitching errors, the exact position of the screw hole cannot be obtained, and it can only be used as a preliminary positioning. The mechanical coordinates are calculated by combining the scanning starting point and the pulse pixel conversion ratio obtained by calibration.

[0056] This is followed by precise screw hole position identification.

[0057] ① Move the camera module to the initial positioning position of each screw hole and take pictures again.

[0058] ② Use Canny’s “Gaussian derivative” filter (using filter mask) to detect the step edge and achieve sub-pixel extraction of the screw hole contour.

[0059] ③Filter by the centrality of the contour to find the optimal contour.

[0060] ④ Fit the contour into a circle and find the coordinates of the center of the circle.

[0061] ⑤ In order to eliminate interference from other screw holes, the screw hole closest to the center of the image is screened out in the re-photographed image, the pixel coordinates of a single screw hole are calculated, and the difference between the pixel coordinates and the image center is used to compensate for the rough positioning coordinates. The precise positioning of each screw hole is completed respectively, and the position of the screw hole is the precise positioning.

[0062] ⑥ The relative distance relationship between the screw gun, camera module, and ranging sensor obtained through machine teaching is used to convert the image coordinates and the height coordinates obtained by the ranging sensor into screwdriver coordinates.

[0063] Precise distance measurement of screw holes: To prevent the screw gun head from colliding during the screwing process and to keep the screwing height as low as possible, the distance sensor moves to the edge of each screw hole for distance measurement, which is then compared with the distance reference value obtained through teaching to compensate and determine the distance that the screw gun should be lifted when it moves to each screw hole.

[0064] Optimal path planning:

[0065] In addition to the automatic screwing of the electric mosquito swatter, the present embodiment also has a charging indicator light detection function. During the screwing process, it moves to the position of the charging indicator light to take a photo, and uses machine vision to identify whether the charging indicator light can light up normally, thereby achieving the shortest path, which is conducive to shortening the production time of a single product.

[0066] To ensure the stability of the electric mosquito swatter during the screwing process, the screw hole in the middle of the electric mosquito swatter is set as the starting point for screwing and the end point at the same time. After the screw is screwed in and the charging indicator light is detected, it returns to the middle screw hole of the electric mosquito swatter to prepare for the screwing of the next electric mosquito swatter. The dynamic programming reverse algorithm is used to calculate the shortest path traversing the screw holes to shorten the screwing time. The optimal path identification steps are as follows:

[0067] A. Identify the positions of all screw holes and charging indicator lights, calculate the X and Y coordinates of the screw holes and charging indicator lights, and use the distance measuring sensor to measure the Z coordinates of the screw holes and charging indicator lights;

[0068] B. According to the X, Y, and Z coordinates of the screw holes and the charging indicator lights, the distance between the two screw holes or the charging indicator lights of the electric mosquito swatter is ;

[0069] C. Assuming that the measured positions of screw holes and charging indicator lights are N+1 (the middle screw hole is used as the starting point and the end point), if the exhaustive method is used to calculate the optimal path, when there are many holes, it will lead to excessive calculation and long calculation time, or even impossible to calculate. Therefore, the dynamic programming inverse method is used to simplify the operation for solution.

[0070] The optimal path search process is divided into N stages, starting from the position arrive The distance generated in the Nth stage is ,

[0071]

[0072] The optimal path is , x 1 is the starting point, and the original problem is transformed into

[0073]

[0074]

[0075]

[0076] Decompose the original problem into several sub-problems.

[0077] For example: let the middle hole of the screw hole be the starting point A, as shown in the figure, assuming that the machine vision recognizes 4 positions A, B, C, and D: Figure 7 shown.

[0078] Starting from the fourth stage, the state variable x4 can take three states B, C, and D, and we can get f 1 (B->A), f 1 (C->A), f 1 (D->A).

[0079] The third stage is to obtain f 2 (B->A), f 2 (C->A), f 2 (D->A), with f Taking 2 (B->A) as an example, we get

[0080]

[0081] Similarly, we can obtain f 2 (C->A), f 2 (D->A).

[0082] The second stage is to obtain f 3 (B->A), f 3 (C->A), f 3 (D->A), with f Taking 3 (B->A) as an example, we get

[0083]

[0084] Similarly, we can obtain f 3 (C->A), f 3 (D->A).

[0085] The first stage is to obtain f 4(A->A), find

[0086]

[0087] Make f 4(A->A) is the shortest path.

[0088] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for assembling and testing a charging device, characterized in that: The automatic assembly detection device is implemented on the automatic assembly detection device, which includes X-axis, Y-axis, Z-axis displacement mechanisms, an image acquisition module, a screw gun module, a clamping mechanism, and a detection module; The Z-axis displacement mechanism is slidably arranged on the X-axis displacement mechanism, and the image acquisition module and the screw gun module are arranged on the Z-axis displacement mechanism; The image acquisition module includes a light source module, a camera module and a distance sensor; A support plate is slidably provided on the X-axis displacement mechanism, a receiving seat is fixedly provided on the support plate, and the clamping mechanism and the detection module are both provided on the support plate; The pressing mechanism includes a pressing plate and a pressing driving mechanism for driving the pressing plate to swing and press against the accommodating seat; The detection module comprises a first detection mechanism, which comprises a slide, a slide shaft, a socket, and a mounting seat fixedly connected to the pressure plate, the slide having a pair of inclined grooves, the slide shaft being slidably disposed between the pair of inclined grooves, the socket being slidably disposed on the mounting seat up and down, at least one pair of test pins being inserted into the socket, the slide being driven by a first driving mechanism to slide horizontally, and the slide shaft being fixedly connected to the socket; The steps implemented include: S1: By driving the X-axis and Y-axis displacement mechanisms, the image acquisition module scans the parts to be assembled in the receiving seat, splices them into an overall image, locates the positions of the screw holes, and calculates the mechanical coordinates in combination with the scanning starting point; S2: Identify the positions of all the screw holes and the charging indicator lights, and use the distance measuring sensor to measure the Z coordinates of the screw holes and the charging indicator lights; S3: Calculate the distance between the positions of the screw holes or the charging indicator lights according to the X, Y, and Z coordinates of the screw holes and the charging indicator lights, ; S4: Assume that the number of screw holes and charging indicator lights is N+1, and divide the optimal path search process into N stages. arrive The distance generated in the Nth stage is , The optimal path is , As the starting point, the original problem is transformed into 。 2. The method according to claim 1, characterized in that The socket is a pair of symmetrical conductive seats, each of which has a slit, in which at least one pair of grooves for mounting the test needle is arranged, and a wedge block is arranged between the pair of conductive seats so that the test needle is clamped in the groove.

3. The method according to claim 1, characterized in that The detection module also includes a second detection mechanism arranged at one end of the support plate, the second detection mechanism includes a vertically arranged fixed plate, a pair of conductive seats fixedly arranged on the fixed plate, the conductive seats have a slit, and at least a pair of grooves for installing the test needle are arranged in the slit. A wedge block is arranged between the pair of conductive seats so that the test needle is clamped in the groove. The fixed plate is driven to slide by a second driving mechanism.

4. The method according to claim 2 or 3, characterized in that: The clamping mechanism also includes a support, a rotating seat, and a connecting rod rotatably connected to the support. The middle part of the pressure plate is rotatably connected to the connecting rod, and the end of the pressure plate is rotatably connected to the rotating seat. The clamping drive mechanism is fixedly arranged on the support, and its output end is fixedly connected to the rotating seat.

5. The method according to claim 4, characterized in that The Z-axis displacement mechanism includes a screw pair and a motor driving the screw pair.

6. The method according to claim 4, characterized in that The screw gun module comprises a side plate, a downward pressure cylinder fixedly arranged on the side plate, and a screw gun. The screw gun has a fixing block, and a buffer spring is arranged between the output rod of the downward pressure cylinder and the fixing block.

7. The method according to claim 1, characterized in that The step of positioning the screw hole comprises: S11: Move the image acquisition module to the position of each screw hole and take photos again; S12: Using Canny and a filter mask to detect the step edge, sub-pixel extraction of the screw hole contour is achieved, the screw hole contour is screened by the center of the circle, the optimal contour is found, and the contour is fitted into a circle to obtain the coordinates of the center of the circle.

8. The method according to claim 7, characterized in that The step of locating the position of the screw hole also includes: performing opening and closing operations on the entire image to remove excess gaps and excess burrs in the area, and then screening out the preliminary position of the screw hole through the roundness and the pixel width and height range of the screw hole.