A robotic arm system based on two-dimensional code recognition control and control method thereof
Through the control method based on QR code identification and rolling bearings and planetary wheel transmission components, the existing robotic arm system has been solved, and low-cost and efficient robotic arm control and ease of use have been achieved.
Patent Information
- Application Number
- CN202010200619.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-20
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-03-20
AI Technical Summary
The existing robotic arm system has high cost and is difficult to popularize small and medium-sized enterprises because it has computers and programmable controllers. The servo control system relies on computer data transmission and is complex in operation.
Using the control method based on QR code recognition, the position information of the object to be clamped is obtained through the scanning device, and the controller controls the robotic arm for clamping, which simplifies the system structure, reduces the cost, and improves the rolling bearing and planetary wheel transmission assembly. The rotation accuracy and stability of the robotic arm.
It realizes low-cost and efficient robot arm control, reduces operational complexity, improves the ease of use of the system and the transmission accuracy and stability of the robot arm.
Smart Images

Figure CN111300427B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a robot arm system and a control method thereof, and in particular to a robot arm system and a control method thereof based on two-dimensional code recognition control. Background Art
[0002] With the development of the Internet, Industry 4.0 has entered people's horizons, and intelligent manufacturing has become the focus of social attention. Since the development of intelligent manufacturing is an inevitable trend, the importance of industrial robots will increase day by day. Especially when the demographic dividend of many manufacturing powers is gradually disappearing and labor costs are rising, industrial robots have become the main key for these manufacturing powers to maintain their manufacturing competitiveness. However, most of the existing robotic arms are equipped with a series of control systems such as computers and programmable controllers. The cost of a single unit is expensive, and the servo control system relies on computer data transmission to read the code. For small and medium-sized enterprises that need robotic arm systems, the purchase cost and operating cost are too high, making it difficult to popularize. Summary of the invention
[0003] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a robotic arm system based on two-dimensional code recognition control and a control method thereof.
[0004] The purpose of the present invention can be achieved by the following technical solutions:
[0005] A robotic arm system based on two-dimensional code recognition control is used to clamp an object to be clamped according to a two-dimensional code storing position information of the object to be clamped. The system includes a robotic arm, a code scanning device and a controller. The robotic arm and the code scanning device are respectively connected to the controller. The code scanning device obtains a two-dimensional code image storing the position information of the object to be clamped. The controller recognizes the position information of the object to be clamped and controls the robotic arm to clamp the object to be clamped.
[0006] The robotic arm includes a base, a rotating motor, a large motor, an elbow arm, an elbow joint motor, a connecting arm, a third joint motor, a second joint motor, a first joint motor and a mechanical claw. The rotating motor is fixedly arranged in the base, the output shaft of the rotating motor is fixedly connected to the bottom of the large motor, one end of the elbow arm is fixedly connected to the output shaft of the large motor, the other end of the elbow arm is fixedly provided with an elbow joint motor, one end of the connecting arm is connected to the output shaft of the elbow joint motor, the other end of the connecting arm is fixedly connected to the third joint motor, the output shaft of the third joint motor is fixedly connected to the second joint motor, the output shaft of the second joint motor is fixedly connected to the first joint motor, and the output shaft of the first joint motor is fixedly connected to the mechanical claw.
[0007] Preferably, the controller includes a first processing chip for identifying a two-dimensional code and a second processing chip for controlling the movement of the robotic arm, the first processing chip is connected to the code scanning device, and the second processing chip is connected to the robotic arm.
[0008] Preferably, the code scanning device includes a first code scanning camera and a second code scanning camera, the first code scanning camera and the second code scanning camera are fixed on a base, and the first code scanning camera and the second code scanning camera are respectively connected to the first processing chip.
[0009] Preferably, the code scanning device further comprises a handheld code scanning device, and the controller further comprises a wireless connection module, and the handheld code scanning device is connected to the first processing chip via the wireless connection module. When the first code scanning camera and the second code scanning camera fail to capture the QR code, the handheld code scanning device scans the QR code of the object to be clamped to obtain the corresponding position information of the object to be clamped.
[0010] Preferably, the first code scanning camera and the second code scanning camera are both wide-angle cameras. Specifically, the first scanning camera and the second scanning camera are respectively fixed on both sides of the bottom of the base, and can perform 360-degree shooting around the robotic arm to ensure the integrity of the QR code acquisition.
[0011] Preferably, the mechanical claw includes a swivel joint, a claw connecting part, a clamping motor and a mechanical claw clamp. The swivel joint is fixedly connected to the output shaft of the first joint motor, one end of the claw connecting part is fixedly connected to the swivel joint, and the other end is fixedly connected to the mechanical claw clamp. The claw connecting part is provided with a clamping motor for driving the mechanical claw clamp to clamp.
[0012] Preferably, the robotic arm also includes a rolling bearing, the outer ring of the rolling bearing is fixedly connected to the top of the base, and the inner ring of the rolling bearing is fixedly connected to the output shaft of the rotating motor. The bearing structure can improve the smoothness of the rotation movement of the robotic arm base and the rotating motor, reduce the friction coefficient during movement and improve the rotation accuracy.
[0013] Preferably, the robotic arm system also includes a planetary gear transmission assembly, which includes a first planetary gear set and a second planetary gear set. The third joint motor drives the second joint motor to rotate via the first planetary gear set, and the second joint motor drives the first joint motor to rotate via the second planetary gear set. The use of a planetary gear transmission assembly can improve the transmission ratio of the motor.
[0014] A control method for a robotic arm system based on two-dimensional code recognition control comprises the following steps:
[0015] S1: The first barcode scanning camera and the second barcode scanning camera take pictures in real time and transmit the pictures to the controller;
[0016] S2: The controller determines whether there is a QR code in the photo, if yes, it goes to step S4, otherwise it goes to step S3;
[0017] S3: The handheld barcode scanner scans the QR code and transmits it to the controller, and then proceeds to step S4;
[0018] S4: The controller identifies and obtains the position information of the object to be clamped stored in the QR code, wherein the position information of the object to be clamped includes the current position and the destination position of the object to be clamped;
[0019] S4: The controller determines whether the position of the object to be clamped and the destination position are both within the moving range of the robot arm. If so, it proceeds to step S5, otherwise, the clamping is terminated;
[0020] S6: The controller controls the robot arm to move to the position of the object to be clamped, and clamps it, and then moves to the destination position to complete the clamping.
[0021] Compared with the prior art, the present invention has the following advantages:
[0022] (1) The present invention only uses a code scanning device and a controller to achieve the position acquisition of the object to be clamped and the control of the robotic arm, which reduces the cost of the robotic arm. The movement of the robotic arm is controlled by two-dimensional code recognition, which is easy to use;
[0023] (2) The base of the robot arm of the present invention is assisted in rotation by bearings, which reduces the friction coefficient during movement and improves the rotation accuracy;
[0024] (3) The second joint motor and the third joint motor of the robot arm of the present invention are driven by a planetary gear transmission assembly, which improves the stability and service life of the motor and achieves a larger transmission ratio;
[0025] (4) The code scanning device of the present invention includes a code scanning camera and a handheld code scanner. When in use, different code scanning methods can be used to control the robotic arm, thereby improving the usability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural schematic diagram of the mechanical arm of the present invention;
[0027] Figure 2 It is a schematic diagram of the side structure of the mechanical arm of the present invention;
[0028] Figure 3 It is a schematic diagram of the structure of the mechanical claw of the present invention;
[0029] Figure 4 It is a schematic structural diagram of the planetary gear assembly of the elbow arm of the present invention;
[0030] Figure 5It is a working schematic diagram of the present invention when used;
[0031] Figure 6 It is a schematic diagram of the working principle of the present invention;
[0032] Figure 7 It is a flow chart of the working method of the present invention;
[0033] Among them, 1. mechanical claw, 2. claw connector, 3. rotary joint, 4. first joint motor, 5. second joint motor, 6. third joint motor, 7. connecting arm, 8. elbow joint motor, 9. elbow arm, 10. large motor, 11. rotating motor, 12. rolling bearing, 13. base, 14. first code scanning camera, 15. second code scanning camera, 16. clamping motor, 17. sun gear, 18. planetary gear, 19. ring gear, 20. mechanical arm, 21. object to be clamped, 22. controller, 23. first processing chip, 24. second processing chip, 25. wireless connection module. DETAILED DESCRIPTION
[0034] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. Note that the following embodiments are merely illustrative in nature, and the present invention is not intended to limit its applicable objects or uses, and the present invention is not limited to the following embodiments.
[0035] Example 1
[0036] A robotic arm system based on QR code recognition control includes a robotic arm 20, a code scanning device and a controller 22. When in use, the code scanning device obtains a QR code image storing position information of an object to be clamped, and the controller 22 recognizes the position information of the object to be clamped and controls the robotic arm 20 to clamp the object 21 to be clamped.
[0037] like Figures 1 to 3As shown, specifically, the robotic arm 20 includes a rolling bearing 12, a base 13, a rotating motor 11, a large motor 10, an elbow arm 9, an elbow joint motor 8, a connecting arm 7, a third joint motor 6, a second joint motor 5, a first joint motor 4 and a robotic claw 1. The rotating motor 11 is fixedly arranged in the base 13, the output shaft of the rotating motor 11 is fixedly connected to the bottom of the large motor 10, one end of the elbow arm 9 is fixedly connected to the output shaft of the large motor 10, the other end of the elbow arm 9 is fixedly provided with the elbow joint motor 8, one end of the connecting arm 7 is connected to the output shaft of the elbow joint motor 8, the other end of the connecting arm 7 is fixedly connected to the third joint motor 6, the output shaft of the third joint motor 6 is fixedly connected to the second joint motor 5, the output shaft of the second joint motor 5 is fixedly connected to the first joint motor 4, the output shaft of the first joint motor 4 is fixedly connected to the robotic claw 1, the outer ring of the rolling bearing 12 is fixedly connected to the top of the base 13, the inner ring of the rolling bearing 12 is fixedly connected to the output shaft of the rotating motor 11, the smoothness of the rotation action of the robotic arm base and the rotating motor is improved, the friction coefficient during movement is reduced and the rotation accuracy is improved. The mechanical claw 1 includes a swivel joint 3, a claw connecting part 2, a clamping motor 16 and a mechanical claw clamp. The swivel joint 3 is fixedly connected to the output shaft of the first joint motor 4, one end of the claw connecting part 2 is fixedly connected to the swivel joint 3, and the other end is fixedly connected to the mechanical claw clamp. A clamping motor 16 is arranged in the claw connecting part 2 to drive the mechanical claw clamp to clamp.
[0038] like Figure 6 As shown, the controller 22 includes a wireless connection module 25, a first processing chip 23, and a second processing chip 24, wherein the first processing chip 23 is used to identify the QR code, and the second processing chip 24 is used to control the movement of the robotic arm. The code scanning device is connected to the first processing chip 23, and the second processing chip 24 is connected to the robotic arm 20. The first processing chip 23 and the second processing chip described in this embodiment both adopt STM32 single-chip microcomputers, and the wireless connection module 25 is a ZigBee wireless connection module.
[0039] like Figure 1 , Figure 2 As shown, the code scanning device includes a first code scanning camera 14, a second code scanning camera 15 and a handheld code scanning device. The first code scanning camera 14 and the second code scanning camera 15 are fixed on the base 13, and the first code scanning camera 14 and the second code scanning camera 15 are respectively connected to the first processing chip 23. The handheld code scanning device is connected to the first processing chip 23 through a wireless connection module 25. Specifically, the first code scanning camera 14 and the second code scanning camera 15 are both wide-angle cameras. The first code scanning camera 14 and the second code scanning camera 15 are relatively arranged on the base, and the shooting range covers 360 degrees around the robotic arm 20 to ensure the integrity of the two-dimensional code recognition.
[0040] like Figures 5 to 7As shown, a control method of a robotic arm system based on two-dimensional code recognition control comprises the following steps:
[0041] S1: The first barcode scanning camera 14 and the second barcode scanning camera 15 take pictures in real time and transmit the pictures to the controller 22;
[0042] S2: The controller 22 determines whether there is a QR code in the photo, and if so, proceeds to step S4, otherwise, proceeds to step S3;
[0043] S3: The handheld barcode scanner scans the QR code and transmits it to the controller 22, and then proceeds to step S4;
[0044] S4: The controller 22 identifies and obtains the position information of the object 21 to be clamped stored in the QR code, wherein the position information of the object 21 to be clamped includes the current position and the destination position of the object 21 to be clamped;
[0045] S4: The controller 22 determines whether the position of the object 21 to be clamped and the destination position are both within the moving range of the robot arm 20. If so, it proceeds to step S5, otherwise, the clamping is terminated;
[0046] S6: The controller 22 controls the robot arm 20 to move to the position of the object 21 to be clamped, and clamps it, and then moves to the destination position to complete the clamping.
[0047] Example 2
[0048] The difference between this embodiment and embodiment 1 is that Figure 4 As shown, the robot arm system also includes a planetary gear transmission assembly, which includes a first planetary gear set and a second planetary gear set. The third joint motor 6 drives the second joint motor 5 to rotate through the first planetary gear set, and the second joint motor 5 drives the first joint motor 4 to rotate through the second planetary gear set. Figure 4 As shown, the first planetary gear assembly and the second planetary gear assembly both include a sun gear 17, a planetary gear 18 and a ring gear 19, the sun gear 17 drives the planetary gear 18 to rotate along the ring gear 19, the rotating shaft of the third joint motor 6 drives the sun gear 17 of the first planetary gear assembly to rotate, the planetary gear 18 of the first planetary gear assembly is rotationally connected with the second joint motor 5, and the third joint motor 6 drives the second joint motor 5 to rotate through the first planetary gear assembly; the rotating shaft of the second joint motor 5 drives the sun gear 17 of the second planetary gear assembly to rotate, the planetary gear 18 of the second planetary gear assembly is rotationally connected with the first joint motor 4, and the second joint motor 6 drives the first joint motor 4 to rotate through the second planetary gear assembly. The second joint motor 5 and the third joint motor 6 of this embodiment use a planetary gear transmission assembly, which can improve the stability and service life of the motor and achieve a larger transmission ratio.
[0049] The above embodiments are merely examples and do not limit the scope of the present invention. These embodiments can also be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the technical concept of the present invention.
Claims
1. A robotic arm system based on two-dimensional code recognition control, used for gripping an object (21) to be gripped according to a two-dimensional code storing position information of the object to be gripped, characterized in that: The system comprises a mechanical arm (20), a code scanning device and a controller (22), wherein the mechanical arm (20) and the code scanning device are respectively connected to the controller (22), the code scanning device acquires a two-dimensional code image storing position information of an object to be clamped, the controller (22) identifies the position information of the object to be clamped and controls the mechanical arm (20) to clamp the object to be clamped (21), The mechanical arm (20) comprises a base (13), a rotating motor (11), a large motor (10), an elbow arm (9), an elbow joint motor (8), a connecting arm (7), a third joint motor (6), a second joint motor (5), a first joint motor (4) and a mechanical claw (1), wherein the rotating motor (11) is fixedly arranged in the base (13), the output shaft of the rotating motor (11) is fixedly connected to the bottom of the large motor (10), one end of the elbow arm (9) is fixedly connected to the output shaft of the large motor (10), the other end of the elbow arm (9) is fixedly arranged with the elbow joint motor (8), one end of the connecting arm (7) is connected to the output shaft of the elbow joint motor (8), the other end of the connecting arm (7) is fixedly connected to the third joint motor (6), the output shaft of the third joint motor (6) is fixedly connected to the second joint motor (5), the output shaft of the second joint motor (5) is fixedly connected to the first joint motor (4), and the output shaft of the first joint motor (4) is fixedly connected to the mechanical claw (1); The code scanning device comprises a first code scanning camera (14) and a second code scanning camera (15), wherein the first code scanning camera (14) and the second code scanning camera (15) are arranged opposite to each other on the base (13), the first code scanning camera (14) and the second code scanning camera (15) are both wide-angle cameras, and the first code scanning camera (14) and the second code scanning camera (15) are respectively connected to a first processing chip (23); The code scanning device further comprises a handheld code scanner, and the controller (22) further comprises a wireless connection module (25), and the handheld code scanner is connected to the first processing chip (23) via the wireless connection module (25); The system also includes a planetary gear transmission assembly, the planetary gear transmission assembly includes a first planetary gear set and a second planetary gear set, the third joint motor (6) drives the second joint motor (5) to rotate via the first planetary gear set, the second joint motor (5) drives the first joint motor (4) to rotate via the second planetary gear set, the first planetary gear set and the second planetary gear set both include a sun gear (17), a planetary gear (18) and a ring gear (19), the sun gear (17) drives the planetary gear (18) to rotate along the ring gear (19) in meshing.
2. A robotic arm system based on two-dimensional code recognition control according to claim 1, characterized in that: The controller (22) comprises a first processing chip (23) for identifying a two-dimensional code and a second processing chip (24) for controlling the movement of the robotic arm; the first processing chip (23) is connected to the code scanning device, and the second processing chip (24) is connected to the robotic arm (20).
3. A robotic arm system based on two-dimensional code recognition control according to claim 1, characterized in that: The mechanical claw (1) comprises a swivel joint (3), a claw connecting member (2), a clamping motor (16) and a mechanical claw fixture. The swivel joint (3) is fixedly connected to the output shaft of the first joint motor (4). One end of the claw connecting member (2) is fixedly connected to the swivel joint (3), and the other end is fixedly connected to the mechanical claw fixture. The claw connecting member (2) is provided with a clamping motor (16) for driving the mechanical claw fixture to clamp.
4. The robotic arm system based on two-dimensional code recognition control according to claim 1, characterized in that: The mechanical arm (20) further comprises a rolling bearing (12), the outer ring of the rolling bearing (12) being fixedly connected to the top of the base (13), and the inner ring of the rolling bearing (12) being fixedly connected to the output shaft of the rotating motor (11).
5. A control method for a robotic arm system based on two-dimensional code recognition control, based on a robotic arm system based on two-dimensional code recognition control according to any one of claims 1 to 4, characterized in that: The steps include: S1: The first barcode scanning camera (14) and the second barcode scanning camera (15) take pictures in real time and transmit the pictures to the controller (22); S2: The controller (22) determines whether there is a QR code in the photo, and if so, proceeds to step S4, otherwise, proceeds to step S3; S3: The handheld barcode scanner scans the QR code and transmits it to the controller (22), and then proceeds to step S4; S4: the controller (22) identifies and obtains the position information of the object to be clamped (21) stored in the QR code, wherein the position information of the object to be clamped (21) includes the current position and the destination position of the object to be clamped (21); S5: The controller (22) determines whether the position of the object to be clamped (21) and the destination position are both within the moving range of the robot arm (20). If so, the process proceeds to step S6; otherwise, the clamping is terminated. S6: The controller (22) controls the robot arm (20) to move to the position of the object to be clamped (21), and clamps it, and then moves to the destination position to complete the clamping.
