Automatic screw locking method, device, computer device and storage medium
By establishing a coordinate system on the positioning mechanism of digital products and calculating the screw hole coordinates, precise control of screw fastening was achieved, solving the problems of product damage and low yield caused by screw fastening deviation and improving product quality.
Patent Information
- Application Number
- CN202510083769.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2045-01-20
AI Technical Summary
In the existing technology, the screw-locking process in the PACK production of digital products has significant deviations, resulting in low product yield and potential product damage.
By positioning the screw hole on the base of the positioning mechanism and establishing a coordinate system, the screw hole position coordinate data is calculated using image acquisition and processing, and the screw-locking device is precisely controlled to lock the screw.
This improved the precision of screw fastening, prevented product damage caused by deviations, and increased product yield.
Smart Images

Figure CN119839617B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the technical field of manufacturing new energy digital products, and in particular to an automatic screw-locking method, apparatus, computer equipment, and storage medium. Background Technology
[0002] With the rapid development of the new energy sector, the variety and functions of digital products are constantly increasing, especially those with plastic casings. Plastic-cased digital products occupy a significant market share, making their manufacturing quality a major concern, particularly in the PACK production process. The PACK production process for digital products includes screw-locking technology.
[0003] The screw-locking process in the PACK production of digital products using related technologies has led to significant deviations in the automatic screw-locking process, which can even damage the digital products and result in a low product yield. Summary of the Invention
[0004] The purpose of this disclosure is to overcome the shortcomings of the prior art and provide an automatic screw fastening method, apparatus, computer equipment, and storage medium with a high product yield.
[0005] The purpose of this disclosure is achieved through the following technical solution:
[0006] An automatic screw-locking method, comprising:
[0007] Place the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism to position the digital product.
[0008] A coordinate system is established with the center of the machine base to which the base is connected to the screw-locking device as the origin;
[0009] Determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system;
[0010] The image of the digital product to be locked after positioning is acquired and processed to obtain actual image data;
[0011] The hole coordinate data corresponding to the screw hole of the digital product to be locked is calculated based on the actual image data.
[0012] The screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the hole coordinate data.
[0013] In one embodiment, the base has a plurality of fixing holes, each fixing hole being used to insert a fixing member so that the base is fixedly connected to the machine tool; the area enclosed by the line connecting the centers of the plurality of fixing holes is a fixing area;
[0014] The specific steps for establishing a coordinate system with the center of the machine base connected to the screw-locking device as the origin are as follows: establish the coordinate system with the center point of the fixed area as the origin.
[0015] In one embodiment, the step of placing the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism includes:
[0016] The digital product to be screwed is placed on the base, which is provided with a first fixing block and a second fixing block;
[0017] The connection position between the adjustable limiting block of the positioning mechanism and the base is adjusted so that the adjustable limiting block pushes the digital product to be locked toward the first fixing block until the first side of the digital product to be locked abuts against the first positioning surface of the first fixing block.
[0018] The positioning component of the positioning mechanism is controlled to move, thereby pushing the digital product with the screw to be locked toward the second fixing block until the second side of the digital product with the screw to be locked abuts against the second positioning surface of the second fixing block; the first positioning surface, the second positioning surface and the plane where the clamping and fixing area is located are perpendicular to each other.
[0019] In one embodiment, the positioning component includes a positioning drive and an abutment block, the abutment block being connected to the power output shaft of the positioning drive;
[0020] The specific steps for controlling the positioning component of the positioning mechanism are as follows: controlling the positioning drive to drive the abutment block to move toward the second fixed block; the adjustable limit block is provided with a third positioning surface on the side facing the first fixed block, and the abutment block is provided with a fourth positioning surface, the first positioning surface, the second positioning surface, the third positioning surface and the fourth positioning surface together form the clamping and fixing area.
[0021] In one embodiment, the step of controlling the positioning drive to drive the abutment block to move toward the second fixing block specifically involves: when the sensor identifies the digital product to be locked with screws, controlling the positioning drive to drive the abutment block to move toward the second fixing block.
[0022] In one embodiment, the side of the first fixing block facing away from the base is a reference surface, and the reference surface is parallel to the plane where the clamping and fixing area is located; the distance between the center point of the screw hole of the digital product to be locked and the first positioning surface is L1, the distance between the center point of the screw hole of the digital product to be locked and the second positioning surface is L2, and the distance between the center point of the screw hole of the digital product to be locked and the reference surface is L3; the step of calculating the hole position coordinate data corresponding to the screw hole of the digital product to be locked based on the actual image data includes:
[0023] Based on the actual image data, the ratio of the length of L1 to the length of the first fixed block is calculated as b, the ratio of the length of L2 to the length of the first fixed block is calculated as d, and the ratio of the length of L3 to the length of the first fixed block is calculated as h.
[0024] The hole position coordinate data corresponding to the screw hole of the digital product to be locked is obtained by calculating based on b, d, h, the length of the first fixing block, and the reference coordinates of the reference point of the reference surface; wherein, the reference point of the reference surface is one of the vertices of the first fixing block on the reference surface.
[0025] In one embodiment, the actual screw hole position of the digital product to be locked is also determined based on actual image data;
[0026] Determine whether the actual screw hole position of the digital product to be locked is equal to the target screw hole position;
[0027] If not, the screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the target screw hole position.
[0028] An automatic screw-locking device is provided for screwing digital products using the method described in any of the above embodiments. The automatic screw-locking device includes:
[0029] The positioning module is used to place the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism to position the digital product.
[0030] A coordinate construction module is used to establish a coordinate system with the center of the machine base where the base is connected to the screw-locking device as the origin;
[0031] An electric screwdriver coordinate module is used to determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system.
[0032] The image acquisition module is used to acquire and process images of the digital product to be locked after positioning, so as to obtain actual image data;
[0033] The hole position coordinate module is used to calculate the hole position coordinate data corresponding to the screw hole of the digital product to be locked based on the actual image data.
[0034] The screw-locking module is used to control the screw-locking device to lock the screws in the screw holes of the digital product to be screwed, based on the hole position coordinate data.
[0035] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any of the above embodiments.
[0036] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any of the above embodiments.
[0037] Compared with the prior art, this disclosure has at least the following advantages:
[0038] The aforementioned automatic screw-locking method first places the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism to position the digital product so that the hole position coordinates can be accurately calculated based on the actual image data. Then, a coordinate system is established with the center of the base connected to the screw-locking device's machine base as the origin. Next, the coordinate data of the electric screwdriver for the screw-locking device is determined based on the coordinate system. Then, the positioned digital product to be screwed is image-acquired and processed to obtain actual image data. Next, the hole position coordinates corresponding to the screw holes of the digital product to be screwed are calculated based on the actual image data. Finally, the screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the hole position coordinates. This ensures that the screw-locking device accurately locks the screws in the screw holes of the digital product to be screwed, improving the accuracy of screw hole locking, avoiding large deviations in automatic screw-locking, and even preventing damage to the digital product, thus improving product yield. Attached Figure Description
[0039] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this disclosure and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a flowchart illustrating the steps of an automatic screw-locking method according to one embodiment;
[0041] Figure 2 for Figure 1 The diagram shows the positioning mechanism and the installation of the industrial camera in the automatic screw-locking method.
[0042] Figure 3 for Figure 2 The diagram shows the establishment of a coordinate system on the positioning mechanism.
[0043] Figure 4 for Figure 1 The flowchart of step S101 of the automatic screw fastening method shown is shown.
[0044] Figure 5 for Figure 3 The diagram shown is a partial schematic of the positioning mechanism.
[0045] Figure 6 This is a schematic diagram of the screw-locking device;
[0046] Figure 7 for Figure 2 Another schematic diagram showing the installation of the positioning mechanism and industrial camera;
[0047] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0048] To facilitate understanding of this disclosure, a more complete description will be given below with reference to the accompanying drawings, which illustrate preferred embodiments of the present disclosure. However, this disclosure can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure.
[0049] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly attached to the other element or there may be an intervening element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intervening element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only and do not represent the only possible implementation.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0051] This disclosure provides an automatic screw-locking method, comprising: placing a digital product to be screwed in the clamping and fixing area of the base of a positioning mechanism to position the digital product; establishing a coordinate system with the center of the machine base of the screw-locking device connected to the base as the origin; determining the electric screwdriver coordinate data of the screw-locking device according to the coordinate system; acquiring and processing an image of the positioned digital product to be screwed to obtain actual image data; calculating the hole position coordinate data corresponding to the screw holes of the digital product to be screwed according to the actual image data; and controlling the screw-locking device to screw the screws into the screw holes of the digital product to be screwed according to the hole position coordinate data.
[0052] The aforementioned automatic screw-locking method first places the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism to position the digital product so that the hole position coordinates can be accurately calculated based on the actual image data. Then, a coordinate system is established with the center of the base connected to the screw-locking device's machine base as the origin. Next, the coordinate data of the electric screwdriver for the screw-locking device is determined based on the coordinate system. Then, the positioned digital product to be screwed is image-acquired and processed to obtain actual image data. Next, the hole position coordinates corresponding to the screw holes of the digital product to be screwed are calculated based on the actual image data. Finally, the screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the hole position coordinates. This ensures that the screw-locking device accurately locks the screws in the screw holes of the digital product to be screwed, improving the accuracy of screw hole locking, avoiding large deviations in automatic screw-locking, and preventing damage to the digital product, thereby improving product yield.
[0053] To better understand the technical solutions and beneficial effects of this disclosure, the following detailed description is provided in conjunction with specific embodiments:
[0054] like Figure 1 As shown, an embodiment of an automatic screw-locking method is used to lock screws into screw holes of a digital product. Further, the automatic screw-locking method includes some or all of the following steps:
[0055] S101, the digital product to be screwed is placed in the clamping and fixing area of the base of the positioning mechanism to position the digital product to be screwed.
[0056] See also Figure 2 and Figure 3In this embodiment, the digital product to be screwed is placed in the clamping and fixing area 99 of the base 100 of the positioning mechanism 10 to position the digital product. The clamping and fixing area 99 is located on the upper surface of the base 100. There are two screws. The projected area of the clamping and fixing area 99 on the base 100 varies depending on the size of the digital product. By fixing and positioning the digital product to be screwed using the positioning mechanism 10, the inaccurate alignment or displacement of the digital product during image acquisition is avoided, thus improving the accuracy of image acquisition.
[0057] like Figure 4 As shown, in one embodiment, step S101 of placing the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism includes:
[0058] S1012, Place the digital product to be screwed on the base.
[0059] See also Figure 2 and Figure 3 In this embodiment, the base 100 is provided with a first fixing block 110 and a second fixing block 120. Both the first fixing block 110 and the second fixing block 120 are detachably connected to the base 100 to facilitate regular maintenance. For example, regularly replacing, cleaning, or applying wear-resistant materials to the first fixing block 110 and the second fixing block 120 improves their positioning accuracy. Furthermore, both the first fixing block 110 and the second fixing block 120 are fixed to the base 100 by fixing screws (not shown), allowing them to be detachably connected to the base 100. Specifically, both the first fixing block 110 and the second fixing block 120 have positioning holes 112, and the base 100 has threaded holes 107, through which the fixing screws are screwed into the threaded holes. Of course, in other embodiments, the first fixing block 110 and the second fixing block 120 are not limited to being detachably connected to the base 100. For example, the first fixing block 110 and the second fixing block 120 are both welded to the base 100.
[0060] S1014, Adjust the connection position between the adjustable limiting block of the positioning mechanism and the base.
[0061] See also Figure 2 and Figure 3 In this embodiment, the connection position between the adjustable limiting block 130 of the positioning mechanism 10 and the base 100 is adjusted so that the adjustable limiting block 130 pushes the digital product to be locked toward the first fixing block 110 until the first side of the digital product to be locked abuts against the first positioning surface 113 of the first fixing block 110.
[0062] It is understood that the first side of the digital product to be screwed abuts against the first positioning surface 113 of the first fixing block 110, so that the first side of the digital product to be screwed abuts against the first positioning surface 113. In other embodiments, it is not limited to pushing the digital product to be screwed toward the first fixing block 110 by the adjustable limiting block 130. For example, when the digital product is placed on the base 100, the first side of the digital product is aligned with the first positioning surface 113, and then the connection position of the adjustable limiting block 130 and the base 100 is adjusted so that the adjustable limiting block 130 abuts against the side of the digital product opposite to the first side. See also Figures 4 to 5 Furthermore, the adjustable limit block 130 has a slotted hole 132, and the base 100 has a locking hole 102. The positioning mechanism 10 also includes a locking fastener (not shown in the figure), which is screwed into the locking hole 102 through the slotted hole 132, thereby fixing the adjustable limit block 130 to the base 100. In this embodiment, the locking fastener is a screw or a stud. When it is necessary to adjust the relative connection position between the adjustable limit block 130 and the base 100, the locking fastener is loosened to adjust the connection position between the adjustable limit block 130 and the base 100; after the connection position between the adjustable limit block 130 and the base 100 is adjusted, the locking fastener is tightened. In this way, the adjustment of the connection position between the adjustable limit block 130 and the base 100 is achieved.
[0063] S1016, control the positioning component of the positioning mechanism to move, so as to push the digital product to be locked toward the second fixing block until the second side of the digital product to be locked abuts against the second positioning surface of the second fixing block.
[0064] See also Figure 2 and Figure 3 In this embodiment, the positioning component 140 of the positioning mechanism 10 is controlled to move, so as to push the digital product to be locked toward the second fixing block 120 until the second side of the digital product to be locked abuts against the second positioning surface 122 of the second fixing block 120. The planes where the first positioning surface 113, the second positioning surface 122 and the clamping fixing area 99 are located are perpendicular to each other.
[0065] See also Figure 2 and Figure 3In one embodiment, the positioning component 140 includes a positioning drive 142 and an abutment block 144. The abutment block 144 is connected to the power output shaft of the positioning drive 142, so that the positioning drive 142 drives the abutment block 144 to move relative to the second fixing block 120, thereby causing the abutment block 144 to push the digital product to be screwed toward the second fixing block 120 until the second side of the digital product to be screwed abuts against the second positioning surface 122 of the second fixing block 120.
[0066] Further, the specific steps for controlling the positioning component 140 of the positioning mechanism 10 are as follows: controlling the positioning drive 142 to drive the abutment block 144 to move toward the second fixing block 120; the adjustable limiting block 130 has a third positioning surface on the side facing the first fixing block 110, and the abutment block 144 has a fourth positioning surface; the first positioning surface 113, the second positioning surface 122, the third positioning surface, and the fourth positioning surface together form the clamping and fixing area 99. In this embodiment, the third positioning surface is parallel to the first positioning surface 113, and the fourth positioning surface is opposite to the second positioning surface 122.
[0067] S103, establish a coordinate system with the center of the machine base connected to the screw-locking device as the origin.
[0068] like Figure 3 , Figure 6 As shown, in this embodiment, a coordinate system is established with the center of the machine base 32 to which the base 100 is connected to the screw-locking device 30 as the origin O. The base 100 has multiple fixing holes 103, each of which is used to pass through a fixing member (not shown in the figure). That is, the fixing member fixes the base 100 to the machine base 32 through the fixing hole 103, thus fixing the base 100 to the machine base 32. Further, the base 100 is detachably connected to the machine base 32 of the screw-locking device, for example, the fixing member is a bolt or screw. Specifically, there are multiple fixing members, and the machine base 32 has multiple threaded holes, which correspond one-to-one with the multiple fixing holes 103. Each fixing member is screwed into the corresponding threaded hole through the corresponding fixing hole 103. The area enclosed by the line connecting the centers of the multiple fixing holes 103 is the fixing area 103a.
[0069] like Figure 3As shown, further, the step of establishing a coordinate system with the center of the base 100 connected to the screw-locking device platform 32 as the origin is specifically as follows: the coordinate system is established with the center point of the fixed area as the origin. In this embodiment, the center of the fixed area is the center of the fixed area enclosed by the line connecting the centers of the multiple fixing holes 103, i.e., the center of the base 100 connected to the screw-locking device platform 32. Specifically, there are four fixing members, and the base 100 has four fixing holes 103. The four fixing members are inserted one-to-one through the four fixing holes 103, and the centers of the four fixing holes 103 are connected sequentially to form a rectangular fixed area. The coordinate system is established with the center point of the fixed area as the origin, i.e., the intersection point of the two diagonals of the fixed area.
[0070] like Figure 3 As shown, the method for establishing the coordinate system is as follows: the X-axis is the length direction parallel to the base 100, the Y-axis is the width direction parallel to the base 100, and the Z-axis is the height direction perpendicular to the surface of the base 100. It can be understood that the coordinates of any point on the base 100 relative to the origin can be determined based on the distances and relative positions of each point on the base 100 to the origin along the X, Y, and Z axes (i.e., the X, Y, and Z axes). Similarly, the coordinates of each vertex of the first fixed block 110 relative to the origin can be determined based on the distances and relative positions of each vertex of the first fixed block 110 to the origin along the X, Y, and Z axes.
[0071] In other embodiments, the fixed area is not limited to a rectangular area, but can also be a triangular area or a hexagonal area, etc.
[0072] S105, Determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system;
[0073] like Figure 3 , Figure 6 As shown, in this embodiment, the electric screwdriver coordinate data of the initial position of the electric screwdriver 34 of the screw-locking device 30 is determined based on the distance and relative position of the electric screwdriver action point of the electric screwdriver 34 of the screw-locking device 30 relative to the origin in the X, Y, and Z axis directions, so that the relative displacement of the electric screwdriver of the screw-locking device can be determined after the screw hole position coordinate data is determined.
[0074] S107, The image of the digital product to be locked after positioning is acquired and processed to obtain actual image data.
[0075] like Figure 2 and Figure 7As shown, in this embodiment, an industrial camera 200 photographs the positioned digital product containing screws to be locked, thereby acquiring and processing images of the positioned digital product containing screws to be locked to obtain actual image data. The actual image data includes image data of the screw holes of the digital product and the positioning mechanism 10. Furthermore, a mounting bracket 160 is provided on the base 100, and the industrial camera 200 is mounted on the mounting bracket 160, positioned above the base 100, enabling the industrial camera 200 to reliably photograph the positioned digital product containing screws to be locked. Furthermore, the mounting bracket 160 includes a support rod 161, a fixing adjustment block 162, a fixing rod 163, and a mounting block 164. One end of the support rod 161 is fixedly connected to the base 100. The fixing adjustment block 162 has a first through hole 1622 and a second through hole 1624. The support rod 161 passes through the first through hole 1622 and is connected to the fixing adjustment block 162. The fixing rod 163 passes through the second through hole 1624 and is connected to the fixing adjustment block 162. There is an angle between the fixing rod 163 and the support rod 161. The mounting block 164 has a third through hole 1642. The fixing rod 163 also passes through the third through hole 1642 and is connected to the mounting block 164. The industrial camera 200 is mounted and fixed to the mounting block 164, so that the industrial camera 200 is mounted on the mounting bracket 160. In this embodiment, the connection position between the fixing adjustment block 162 and the support rod 161 is adjustable. Specifically, the fixed adjusting block 162 has a first tightening slot 1623 communicating with the first through hole 1622. The fixed adjusting block 162 also has a first through hole 1625 and a first threaded adjusting hole 1626, both of which communicate with the first tightening slot 1623. A fixing pin (not shown) is screwed into the first threaded adjusting hole 1626 through the first through hole 1625. When adjusting the connection position between the fixed adjusting block 162 and the support rod 161, the fixing pin is loosened, increasing the first tightening slot 1623. After adjusting the connection position between the fixed adjusting block 162 and the support rod 161, the fixing pin is tightened, decreasing the first tightening slot 1623, thereby fixing the fixed adjusting block 162 and the support rod 161 in a relatively fixed connection. Furthermore, the connection position between the fixed adjusting block 162 and the fixing rod 163 is adjustable, and the connection position between the mounting block 164 and the fixing rod 163 is also adjustable. In this embodiment, the connection method between the fixed adjustment block 162 and the fixed rod 163, and the connection method between the mounting block 164 and the fixed rod 163 are the same as the connection method between the fixed adjustment block 162 and the support rod 161.
[0076] S109, calculate the hole coordinate data corresponding to the screw hole of the digital product to be locked based on the actual image data.
[0077] like Figures 2 to 3As shown, in this embodiment, the side of the first fixing block 110 facing away from the base 100 is a reference surface, and the reference surface is parallel to the plane where the clamping and fixing area 99 is located; the distance between the center point of the screw hole of the digital product to be locked and the first positioning surface 113 is L1, the distance between the center point of the screw hole of the digital product to be locked and the second positioning surface 122 is L2, and the distance between the center point of the screw hole of the digital product to be locked and the reference surface is L3; the step of calculating the hole position coordinate data corresponding to the screw hole of the digital product to be locked based on the actual image data includes:
[0078] S1091, calculate the ratio of the length of L1 to the length of the first fixed block 110 as b based on the actual image data, calculate the ratio of the length of L2 to the length of the first fixed block 110 as d, and calculate the ratio of the length of L3 to the length of the first fixed block 110 as h. In this way, the ratios b, d, and h are calculated based on the values of L1, L2, and L3 respectively.
[0079] S1093, based on b, d, h, the length of the first fixing block, and the reference coordinates of the reference point of the reference surface, the hole position coordinate data corresponding to the screw hole of the digital product to be locked is obtained, that is, the hole position coordinate data of the center point of the screw hole of the digital product to be locked relative to the origin is obtained. In this embodiment, the length of the first fixing block is Lc; the reference point of the reference surface is one of the vertices of the first fixing block on the reference surface; the reference coordinates of the reference point are the coordinates of the first fixing block at one of the vertices of the reference surface, that is... Figure 3 The coordinates of vertex A are shown below; after establishing the coordinate system, the coordinates of vertex A are determined based on the distance of vertex A relative to the origin in the X, Y, and Z axis directions.
[0080] S111, based on the hole position coordinate data, control the screw-locking device to lock the screws in the screw holes of the digital product to be screwed.
[0081] In this embodiment, the step of controlling the screw-locking device to lock the screws in the screw holes of the digital product according to the hole position coordinate data includes: firstly, calculating the target movement displacement based on the hole position coordinate data and the electric screwdriver coordinate data; then, controlling the electric screwdriver's action point of the screw-locking device to move into the screw hole of the digital product according to the target movement displacement; and controlling the electric screwdriver's action point of the screw-locking device to lock the screws in the screw hole of the digital product improves the accuracy of screw-locking the screw holes and avoids the problem of large deviations in automatic screw-locking, or even damage to the digital product.
[0082] The aforementioned automatic screw-locking method first places the digital product to be screwed in the clamping and fixing area 99 of the base 100 of the positioning mechanism 10 to position the digital product so that the hole position coordinate data can be accurately calculated based on the actual image data. Then, a coordinate system is established with the center of the base 100 connected to the screw-locking device's machine base 32 as the origin. The electric screwdriver coordinate data of the screw-locking device is then determined based on the coordinate system. Next, the positioned digital product to be screwed is image-acquired and processed to obtain actual image data. Then, the hole position coordinate data corresponding to the screw holes of the digital product to be screwed is calculated based on the actual image data. Finally, the screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed based on the hole position coordinate data. This ensures that the screw-locking device accurately locks the screws in the screw holes of the digital product to be screwed, improving the accuracy of screw hole locking, avoiding large deviations in automatic screw locking, and even preventing damage to the digital product, thereby improving product yield.
[0083] like Figure 2 As shown, the abutment block 144 is further shaped, allowing the positioning drive component 142 to drive the abutment block 144 to better abut against the digital product. In this embodiment, the positioning drive component 142 is a hydraulic cylinder. Furthermore, the abutment block 144 is detachably connected to the positioning drive component 142, allowing for the replacement of appropriate abutment blocks 144 for different specifications of digital products, thus improving the versatility and adaptability of the automatic screw-locking method. In this embodiment, the abutment block 144 is fixedly connected to the drive shaft of the positioning drive component 142 by connecting screws. Specifically, the abutment block 144 has a connecting hole, and the end of the drive shaft of the positioning drive component 142 has a connecting screw hole. The connecting screw is screwed into the connecting screw hole through the connecting hole, thus fixing the abutment block 144 to the drive shaft of the positioning drive component 142 by connecting screws. Of course, in other embodiments, the end of the drive shaft of the positioning drive component 142 and the abutment block 144 are not limited to being fixed by connecting screws; they can also be fixed by snap-fit.
[0084] In one embodiment, the step of controlling the positioning drive 142 to drive the abutment block 144 toward the second fixing block 120 specifically involves: when the sensor detects the digital product to be screwed, controlling the positioning drive 142 to drive the abutment block 144 toward the second fixing block 120, so that the positioning drive 142 can automatically drive the abutment block 144 toward the second fixing block 120. In this embodiment, the sensor is a photoelectric sensor.
[0085] In one embodiment, the actual screw hole positions of the digital product to be screwed are also determined based on actual image data, that is, the number of screw holes of the digital product to be screwed is determined so that the automatic screw-locking method can sequentially screw the screw holes of the digital product; then it is determined whether the actual screw hole positions of the digital product to be screwed are equal to the target screw hole positions; if not, the screw-locking device is controlled to screw the screw holes of the digital product to be screwed according to the target screw hole positions, thereby improving the intelligence and accuracy of the automatic screw-locking method.
[0086] Furthermore, the step of determining the actual screw hole position of the digital product to be locked based on the actual image data includes: outputting the actual image data as screw hole position data of the digital product to be locked.
[0087] Further, the step of determining whether the actual screw hole position of the digital product to be screwed is equal to the target screw hole position, and if not, controlling the screw-locking device to tighten the screws at the screw holes of the digital product to be screwed according to the target screw hole position, includes: first, determining whether the actual screw hole position of the digital product to be screwed is equal to the target screw hole position; if not, displaying the actual screw hole position of the digital product to be screwed; then, replacing the actual screw hole position of the digital product to be screwed with the target screw hole position; and then, controlling the screw-locking device to tighten the screws at the screw holes of the digital product to be screwed according to the target screw hole position. In this embodiment, the actual image data is output and displayed as screw hole position data of the digital product to be screwed, so as to facilitate manual verification of whether the actual screw hole position of the digital product to be screwed is equal to the target screw hole position, and to facilitate manual confirmation of whether it is correct.
[0088] Furthermore, the step of replacing the actual screw hole position of the digital product to be screwed with the target screw hole position specifically involves: modifying and adding the actual screw hole position of the digital product to be screwed and updating the database, so that the modified actual screw hole position of the digital product to be screwed is equal to the target screw hole position, thereby improving the accuracy of screw fastening. In this embodiment, the step of modifying and adding the actual screw hole position of the digital product to be screwed and updating the database can be performed manually or automatically by the system.
[0089] Of course, in other embodiments, if the actual screw hole position of the digital product to be locked is not equal to the target screw hole position, the actual screw hole position of the digital product to be locked is not displayed. After the system intelligently determines that the actual screw hole position of the digital product to be locked is incorrect, it directly replaces the actual screw hole position of the digital product to be locked with the target screw hole position. No manual confirmation is required in the middle, which improves the intelligence of the automatic screw locking method.
[0090] Furthermore, before determining whether the actual screw hole position of the digital product to be screwed is equal to the target screw hole position, the automatic screw-locking method also includes: establishing a hole position database that corresponds one-to-one with multiple digital products and multiple target screw hole positions, so as to enable the automatic screw-locking method to intelligently determine and compare whether the actual screw hole position of the digital product to be screwed is incorrect, thereby improving the intelligence and applicability of the automatic screw-locking method.
[0091] Furthermore, before the step of controlling the screw-locking device to lock the screws in the screw holes of the digital product to be screwed according to the hole position coordinate data, the automatic screw-locking method also includes: establishing a parameter database that corresponds one-to-one with multiple digital products and multiple screw-locking parameters, so as to retrieve the corresponding screw-locking parameters for different models of digital products during screw-locking operations, thereby improving the intelligence and applicability of the automatic screw-locking method. In this embodiment, the screw-locking parameters are the number of screw-locking turns, rotation speed, and torque of the electric screwdriver, to ensure that the screws are in place and to avoid the problem of stripping the screw threads.
[0092] Furthermore, before placing the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism, the automatic screw-locking method also includes: establishing a drive database that corresponds one-to-one between multiple digital products and multiple positioning drive parameters. This avoids insufficient force of the abutment block 144 against the digital product to be screwed, causing the product to shake during screw-locking, or excessive force of the abutment block 144 against the digital product to be screwed, causing the product to lift during screw-locking. This ensures that the positioning drive component 142 reliably drives the abutment block 144 to abut against the digital product to be screwed, while also improving the applicability of the positioning drive component 142. In this embodiment, the positioning drive parameters are the parameters of the positioning drive component. Specifically, the positioning drive parameters are the pressure and stroke of the hydraulic cylinder.
[0093] Furthermore, before placing the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism, the automatic screw-locking method also includes: obtaining the model number of the digital product to be screwed and outputting and displaying the model number of the corresponding abutment block 144 so that the corresponding abutment block 144 can be quickly replaced by manual reference, thereby improving ease of use.
[0094] Furthermore, before placing the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism, the automatic screw-locking method also includes: establishing a database of abutment blocks with a one-to-one correspondence between multiple digital products and multiple abutment blocks 144, so that after the model of the digital product to be screwed is manually input, the system can intelligently output and display the corresponding abutment block 144, improving ease of use and applicability. In this embodiment, different models of digital products are selected with corresponding abutment block 144 models so that reliable abutment positioning can be achieved for different models of digital products.
[0095] Furthermore, before the step of controlling the screw-locking device to lock the screw holes of the digital product to be screwed according to the hole position coordinate data, the automatic screw-locking method further includes: establishing a hole position coordinate database that corresponds one-to-one with the target screw hole coordinate data of multiple digital products and multiple screw holes, so as to check whether the hole position coordinate data of the screw holes of the current digital product to be screwed has a large deviation after step S109, and to ensure the accuracy of coordinate acquisition. Even further, after step S109, the automatic screw-locking method further includes: comparing the actual hole position coordinate data with the target screw hole coordinate data; if the difference between the actual hole position coordinate data and the corresponding dimension coordinate data of the target screw hole coordinate data in any dimension of the XYZ axis is greater than a preset threshold, then the actual hole position coordinate data is updated to the hole position coordinate database. In this embodiment, the step of updating the actual hole position coordinate data to the hole position coordinate database specifically involves: checking whether the product is warped or not accurately positioned; if not, the actual hole position coordinate data is updated to the hole position coordinate database, improving the accuracy of subsequent screw-locking.
[0096] Furthermore, the step of controlling the screw-locking device to lock the screws in the screw holes of the digital product according to the hole position coordinate data includes: controlling the screw-locking device to lock the screws in the screw holes of the digital product according to the hole position coordinate data, simultaneously acquiring images of the entire screw-locking process and providing feedback on the scene image data; if a screw falls off the electric screwdriver or a screw is missed in a screw hole, an alarm is triggered to remind the worker to resolve the issue promptly, improving ease of use. Furthermore, if the actual screw-locking parameters of the electric screwdriver deviate significantly from the actual screw-locking parameters, an alarm is triggered to remind the worker to resolve the fault promptly, further improving ease of use.
[0097] This application also provides an automatic screw-locking device for screwing digital products using the method described in any of the above embodiments. The automatic screw-locking device includes a positioning module, a coordinate construction module, an electric screwdriver coordinate module, an image acquisition module, a hole position coordinate module, and a screw-locking module. The positioning module is used to place the digital product to be screwed in the clamping and fixing area of the base of the positioning mechanism to position the digital product. The coordinate construction module is used to establish a coordinate system with the center of the machine base connected to the screw-locking device as the origin. The electric screwdriver coordinate module is used to determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system. The image acquisition module is used to acquire and process images of the positioned digital product to be screwed to obtain actual image data. The hole position coordinate module is used to calculate the hole position coordinate data corresponding to the screw holes of the digital product to be screwed according to the actual image data. The screw-locking module is used to control the screw-locking device to screw the screws in the screw holes of the digital product to be screwed according to the hole position coordinate data.
[0098] In this embodiment, the digital product to be screwed is first placed in the clamping and fixing area of the base of the positioning mechanism to position the digital product so that the hole position coordinate data can be accurately calculated based on the actual image data. Then, a coordinate system is established with the center of the machine base connected to the screw-locking device as the origin. Then, the electric screwdriver coordinate data of the screw-locking device is determined according to the coordinate system. Then, the image of the positioned digital product to be screwed is acquired and processed to obtain the actual image data. Then, the hole position coordinate data corresponding to the screw holes of the digital product to be screwed is calculated according to the actual image data. Then, the screw-locking device is controlled to screw the screws in the screw holes of the digital product to be screwed according to the hole position coordinate data. This makes the screw-locking device accurately screw in the screw holes of the digital product to be screwed, improving the accuracy of screw hole screwing, avoiding large deviations in automatic screw-locking, and even damage to the digital product, thereby improving the product yield.
[0099] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The database stores data such as electric screwdriver coordinate data, positioning drive parameters, and screw-locking parameters. The network interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a battery mass production configuration monitoring method.
[0100] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0101] In one embodiment, this application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0102] In one embodiment, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method embodiments.
[0103] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0104] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this patent disclosure should be determined by the appended claims.
Claims
1. An automatic screw-locking method, characterized in that, include: Place the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism to position the digital product. A coordinate system is established with the center of the machine base to which the base is connected to the screw-locking device as the origin; Determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system; The image of the digital product to be locked after positioning is acquired and processed to obtain actual image data; The hole coordinate data corresponding to the screw hole of the digital product to be locked is calculated based on the actual image data. The screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the hole coordinate data. The base is provided with a first fixing block and a second fixing block. The first side of the digital product to be screwed abuts against the first positioning surface of the first fixing block, and the second side of the digital product to be screwed abuts against the second positioning surface of the second fixing block. The first positioning surface, the second positioning surface and the plane where the clamping and fixing area is located are perpendicular to each other. The side of the first fixing block facing away from the base is a reference surface, which is parallel to the plane where the clamping and fixing area is located; the distance between the center point of the screw hole of the digital product to be locked and the first positioning surface is L1, the distance between the center point of the screw hole of the digital product to be locked and the second positioning surface is L2, and the distance between the center point of the screw hole of the digital product to be locked and the reference surface is L3. The steps for calculating the screw position coordinates of the digital product to be locked based on the actual image data include: Based on the actual image data, the ratio of the length of L1 to the length of the first fixed block is calculated as b, the ratio of the length of L2 to the length of the first fixed block is calculated as d, and the ratio of the length of L3 to the length of the first fixed block is calculated as h. The hole position coordinate data corresponding to the screw hole of the digital product to be locked is obtained by calculating based on b, d, h, the length of the first fixing block, and the reference coordinates of the reference point of the reference surface; wherein, the reference point of the reference surface is one of the vertices of the first fixing block on the reference surface.
2. The automatic screw-locking method according to claim 1, characterized in that, The base has multiple fixing holes, each of which is used to insert a fixing component to fix the base to the machine tool; the area enclosed by the line connecting the centers of the multiple fixing holes is the fixing area. The specific steps for establishing a coordinate system with the center of the machine base connected to the screw-locking device as the origin are as follows: establish the coordinate system with the center point of the fixed area as the origin.
3. The automatic screw-locking method according to claim 1, characterized in that, The steps for placing the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism include: Place the digital product with the screws to be locked onto the base; The connection position between the adjustable limiting block of the positioning mechanism and the base is adjusted so that the adjustable limiting block pushes the digital product to be locked toward the first fixing block until the first side of the digital product to be locked abuts against the first positioning surface of the first fixing block. The positioning component of the positioning mechanism is controlled to move, thereby pushing the digital product to be locked toward the second fixing block until the second side of the digital product to be locked abuts against the second positioning surface of the second fixing block.
4. The automatic screw-locking method according to claim 3, characterized in that, The positioning component includes a positioning drive and an abutment block, the abutment block being connected to the power output shaft of the positioning drive; The specific steps for controlling the positioning component of the positioning mechanism are as follows: controlling the positioning drive to drive the abutment block to move toward the second fixed block; the adjustable limit block is provided with a third positioning surface on the side facing the first fixed block, and the abutment block is provided with a fourth positioning surface, the first positioning surface, the second positioning surface, the third positioning surface and the fourth positioning surface together form the clamping and fixing area.
5. The automatic screw-locking method according to claim 4, characterized in that, The specific steps of controlling the positioning drive to drive the abutment block to move toward the second fixed block are as follows: when the sensor recognizes the digital product to be locked with screws, the positioning drive is controlled to drive the abutment block to move toward the second fixed block.
6. The automatic screw-locking method according to claim 3, characterized in that, The actual screw hole position of the digital product to be locked is also determined based on the actual image data. Determine whether the actual screw hole position of the digital product to be locked is equal to the target screw hole position; If not, the screw-locking device is controlled to lock the screws in the screw holes of the digital product to be screwed according to the target screw hole position.
7. The automatic screw-locking method according to claim 6, characterized in that, Before determining whether the actual screw hole position of the digital product to be screwed is equal to the target screw hole position, the automatic screw-locking method further includes: establishing a hole position database that corresponds one-to-one with multiple digital products and multiple target screw hole positions.
8. An automatic screw-locking device, characterized in that, The automatic screw-locking device comprises: (The method described in any one of claims 1 to 7 is used to fasten screws on a digital product.) The positioning module is used to place the digital product to be screwed into the clamping and fixing area of the base of the positioning mechanism to position the digital product. A coordinate construction module is used to establish a coordinate system with the center of the machine base where the base is connected to the screw-locking device as the origin; An electric screwdriver coordinate module is used to determine the electric screwdriver coordinate data of the screw-locking device according to the coordinate system. The image acquisition module is used to acquire and process images of the digital product to be locked after positioning, so as to obtain actual image data; The hole position coordinate module is used to calculate the hole position coordinate data corresponding to the screw hole of the digital product to be locked based on the actual image data. The screw-locking module is used to control the screw-locking device to lock the screws in the screw holes of the digital product to be screwed, based on the hole position coordinate data.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Motion compensation method and device, electronic equipment, storage medium and screw driving method
CN115100297A
Automatic locking method, device and equipment and storage medium
CN117444602A