Judgment method for joint position of robot

By reading the encoder value when the robot restarts and calculating the number of overflow turns, combined with the reduction ratio to determine the actual joint angle, the problem of low accuracy and high cost in determining the robot's joint position is solved, and high-precision, low-cost joint position judgment and Simple calibration process.

CN118528326APending Publication Date: 2024-08-23ESTUN MEDICAL TECH (NANJING) CO LTD

Patent Information

Application Number
CN202410737267.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the robot joint position determination accuracy is low and the cost is high, mainly due to the installation accuracy limit of the joint shaft end and the inaccurate angle feedback caused by the encoder error.

Method used

By reading the encoder values ​​at the joint and motor ends when the robot restarts, the number of overflow turns of the motor is calculated and combined with the reduction ratio to determine the actual angle of the joint. Dual single-turn encoders are used for accurate judgment, which simplifies the calibration process and reduces the structural and Encoder accuracy requirements.

Benefits of technology

It achieves accurate determination of the joint end position when the mechanical structure and encoder accuracy are not high, reduces equipment production costs, improves robustness and simplicity of calibration, and can accurately locate joint positions within a single circle of motion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118528326A
    Figure CN118528326A
Patent Text Reader

Abstract

The invention discloses a robot joint position judgment method which comprises the following steps: step 1, reading an encoder value of a joint end and an encoder value of a motor end when a robot is restarted; 2, according to the encoder value of the joint end and the encoder value of the motor end read in the step 1, and the joint end and encoder value and the encoder value of the motor end in the initial state, the number of overflow turns of the motor is calculated; and 3, determining the actual angle of joint rotation according to the overflow turns of the motor calculated in the step 2. The method has the beneficial effects that 1, under the condition that the precision of a mechanical structure at a joint and the precision of the encoder are not high, the position of a joint end when equipment is started can be accurately judged by utilizing the double-single-ring encoder; 2, in the application, the joint encoder error range can be within 360 / (Rr * 2), the joint position can be accurately positioned, and the robustness is good; and 3, the equipment production cost can be reduced due to lower structural precision and encoder precision requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for determining a robot joint position, and belongs to the technical field of robots. Background Art

[0002] During the operation of the robot, a large amount of information is needed to feedback its actual operating status, among which joint position information is an important part. However, due to the limitations of joint shaft end installation accuracy and the influence of encoder errors and other factors, the real-time position of the motor fed back by the joint encoder may not be accurate. Therefore, a more accurate joint angle calculation method is needed to compensate for the angle feedback error caused by the above reasons.

[0003] The Chinese invention patent application with application publication number CN117325210A improves the position accuracy of motors and joints through a calibration system of motor and joint encoders. However, the calibration process requires multiple calibrations to obtain a calibration curve, and the calibration process is not streamlined enough.

[0004] The Chinese invention patent application with application publication number CN117663026A calculates the joint angle by the rotation angle of two gears with different numbers of teeth. However, in its actual structure, it is necessary to add an axis for installing the second encoder, that is, in addition to the motor and the joint end, another axis is required to measure the rotation angle. This solution not only makes the overall structure more complicated, but also increases the cost of the robot product. Summary of the invention

[0005] The purpose of the present invention is to provide a method for determining the joint position of a robot, so as to solve the technical defects of low accuracy and high cost in determining the joint position of a robot in the prior art.

[0006] To solve the above problems, the technical solution adopted by the present invention is: a method for determining the joint position of a robot, comprising the following steps:

[0007] Step 1, read the encoder value of the joint end and the encoder value of the motor end when the robot restarts;

[0008] Step 2, calculating the overflow number of the motor according to the encoder value of the joint end and the encoder value of the motor end read in step 1 and the encoder value of the joint end and the encoder value of the motor end in the initial state;

[0009] Step 3, determine the actual angle of joint rotation according to the overflow number of motor turns calculated in step 2.

[0010] As a further improvement of the present invention, step 2 comprises,

[0011] Step 2.1, calculate the angle of rotation of the motor relative to the initial position and the angle of rotation of the joint relative to the initial position,

[0012] θ_m=|A_m–A_m0|

[0013] θ_j=|A_j–A_j0|

[0014] Where θ_m is the angle of rotation of the motor relative to the initial position, A_m is the encoder value of the motor end when the device is restarted, A_m0 is the encoder value of the motor end in the initial state, θ_j is the angle of rotation of the joint relative to the initial position, A_j is the encoder value of the joint end when the device is restarted, and A_j0 is the encoder value of the joint end in the initial state;

[0015] Step 2.2, calculate the overflow number of the motor, Of_m,

[0016] Of_m=(θ_j) / (360 / Rr)

[0017] Where Rr is the reduction ratio between the motor end and the joint end, and Of_m takes the integer part of the calculated result.

[0018] As a further improvement of the present invention, when the encoder at the joint end has an error, step 2.2 includes,

[0019] Step 2.2.1, determine the error range of the overflow point and calculate the rough number of overflow circles i;

[0020] Step 2.2.2: Get the accurate overflow number of turns Of_m according to the motor position, where

[0021] Of_m=iθ_m<180

[0022] Of_m=i-1θ_m>180.

[0023] As a further improvement of the present invention, in step 2.2.1, the rough overflow number i is calculated according to the following conditions:

[0024] i*(360 / Rr)-θ_mer / 2≤θ_j≤i*(360 / Rr)+θ_mer / 2

[0025] Where θ_mer is the maximum error range of the set joint encoder, i is an integer, and i<360 / Rr.

[0026] As a further improvement of the present invention, the calculation formula of step 3 is

[0027] θ_jp=(360*Of_m+θ_m) / Rr

[0028] Where θ_jp is the actual angle of rotation of the robot joint.

[0029] In summary, the beneficial effects of the present invention are: 1. The present invention can make the use of dual single-turn encoders to accurately determine the position of the joint end when the device is started when the mechanical structure accuracy and encoder accuracy at the joint are not high; 2. In application, the present invention can achieve the joint encoder error range within 360 / (Rr*2) to accurately locate the joint position, and has good robustness; 3. The lower structural accuracy and encoder accuracy requirements of the present invention can reduce the production cost of the equipment; 4. The present invention has good versatility, as long as the joint range of motion is a single turn, this method can be used to calibrate the position of the joint when it is powered on; 5. The present invention has the simplicity of calibration, and only requires one calibration of the initial position of the joint. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of the motor-driven joint in the present invention.

[0031] Figure 2 It is a flow chart of joint angle determination in the present invention.

[0032] Figure 3 It is a flow chart of the overflow number calculation in the present invention.

[0033] FIG. 4( a ) and FIG. 4( b ) are schematic diagrams of joint rotation angles in the present invention. DETAILED DESCRIPTION

[0034] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings.

[0035] like Figure 1 The simplified diagram of the robot joint drive unit shown in the figure includes a joint end and a motor end. The motor end is connected to the joint end through a synchronous belt, and the motor end drives the joint end to rotate. Encoders are provided on both the motor end and the joint end. Figure 1 Point A and point B in the figure respectively represent two limit points for joint rotation, which limit the rotation angle of the joint within 360°. This application uses point A as the limit point for the initial position. When in use, the robot joint reciprocates on one side of the major arc formed between point A and point B. Due to the influence of the connection accuracy of the joint structure and the position accuracy of the encoder, there is a deviation between the joint angle measured by the encoder at the joint end and the actual angle. If the robot program requires accurate position feedback of the joint as a calculation parameter for robot motion control, the deviation will affect the calculation result and cause the robot to run incorrectly. The present invention obtains the accurate position of the robot joint by jointly calculating the encoder of the joint and the encoder of the motor.

[0036] like Figure 2 As shown, the method for determining the joint position of a robot of the present invention comprises the following steps:

[0037] Step 1, reading the encoder value of the joint end and the encoder value of the motor end when the robot is restarted. The robot restart of the present invention refers to starting the robot when the robot is used.

[0038] Step 2, calculating the overflow number of the motor turns according to the encoder value of the joint end and the encoder value of the motor end read in step 1 and the joint end and the encoder value and the encoder value of the motor end in the initial state; in the present invention, the joint end and the encoder value and the encoder value of the motor end in the initial state are stored in the robot memory when the robot leaves the factory.

[0039] Step 3, determine the actual angle of joint rotation according to the overflow number of motor turns calculated in step 2. The specific calculation method is: motor encoder overflow number of turns * 360 + motor rotation angle relative to the initial position) / reduction ratio.

[0040] The above steps use the accuracy of the motor encoder to determine the rotation angle of the joint. However, since the motor is a single-turn encoder and there is a reduction ratio Rr (Reduction Ratio) between the motor and the joint, Figure 1 As shown, when the joint rotates at an angle greater than 360 / Rr, the motor rotates more than one circle and an overflow of the number of circles occurs. At this time, the encoder value will overflow and start to increase from zero again. Because the encoder cannot work after power failure, it will lead to the fact that the accurate position of the joint cannot be obtained by restarting only with the motor encoder. If the motor encoder needs to be used to calculate the joint angle, it is necessary to use the encoders at the joint and motor end to calculate the overflow number of circles; the overflow number of circles in the present invention refers to the number of rotations of the motor after the joint rotates from the initial position.

[0041] The initial position of the present invention only needs to be calibrated once before the robot leaves the factory. Figure 2 The initial position calibration in the joint is to move the joint to the limit point A, and the motor moves to point A' at this time, and read the encoder values ​​of the joint end and the motor end at this position. These two values ​​are used to represent the initial position of the joint. At this time, the point A' position recorded by the motor is also the position where the number of circles overflows. In other words, after the motor rotates one circle and passes through point A', it means that the overflow number of circles is increased by 1, and the motor angle is calculated again from 0. In the present invention, the rotation angles of the motor and the joint will use these two points as the origin, and the encoder value of the motor and the encoder value of the joint at the initial position are respectively represented as A_m0 and A_j0, and these two values ​​will be stored in the device memory.

[0042] Step 2 of the present invention comprises:

[0043] Step 2.1, calculate the angle of rotation of the motor relative to the initial position and the angle of rotation of the joint relative to the initial position, specifically calculated by the following formula:

[0044] θ_m=|A_m–A_m0|

[0045] θ_j=|A_j–A_j0|

[0046] Where θ_m is the angle of rotation of the motor relative to the initial position, A_m is the encoder value at the motor end when the robot is powered off and restarted, θ_j is the angle of rotation of the joint relative to the initial position, and A_j is the encoder value at the joint end when the robot is powered off and restarted.

[0047] Step 2.2, calculate the overflow number of the motor, Of_m, using the following formula:

[0048] Of_m=(θ_j) / (360 / Rr) (1)

[0049] Where Rr is the reduction ratio between the motor end and the joint end. It should be noted that the overflow number can only be an integer, so the Of_m calculated by formula (2) will ignore its decimal value and only take the integer part.

[0050] The overflow number of turns calculated according to formula (1) is the ideal motor overflow number of turns, that is, the result when the joint encoder error is zero. However, in practical applications, due to the influence of the joint encoder error, especially when θ_j is near the motor turn overflow point, it is easy to make wrong judgments. This requires a new method for calculating the number of turns. The specific process is as follows: Figure 3 The present invention illustrates a specific calculation process of the number of turns, as shown in Figure 4 (a) and Figure 4 (b), which represent the angle range of joint rotation, and point A and point B also represent Figure 1 The small circle on the right represents the motor rotation angle, and point A' represents the initial position of the motor, which serves as the reference point for the motor rotation angle.

[0051] As shown in Figure 4(a), the arrow indicates the rotation position of the joint measured by the joint encoder, and the angle between it and A is the measured joint rotation angle. The gray area indicates the encoder error range θ_offset. The actual joint angle may be anywhere within this range, and the actual joint angle is unknown. Assuming that the reduction ratio between the motor and the joint is 4, the angle measured by the joint encoder is at the position indicated by the arrow. According to formula (1), the overflow number can be obtained as: Of_m=0, and the actual angle of the joint is θ_m / Rr. However, when the joint moves to the vicinity of the overflow point, the situation shown in Figure 4(b) will occur. The overflow number calculated by formula (1) for the actual measured angle is 0, but the actual joint position may have exceeded the overflow point, that is, the actual overflow number is 1, and the motor angle at this time is shown in (II) of Figure 4(b). Then the calculated angle at this time is (360*Of_m+θ_m) / Rr, which further increases the error. In order to deal with this situation, a calculation condition is added, that is, the dark gray area in the figure, which indicates the maximum error range θ_mer (Max error range), that is, the maximum range of the joint encoder measurement value relative to the actual angle. When the angle measured by the joint encoder enters this range, the program will enter a more detailed calculation. At this time, step 2.2 includes

[0052] Step 2.2.1, determine the error range of the overflow point according to formula (2), and calculate the rough overflow circle number i;

[0053] i*(360 / Rr)-θ_mer / 2≤θ_j≤i*(360 / Rr)+θ_mer / 2 (2)

[0054] Wherein i is an integer and i<360 / Rr.

[0055] Formula (2) means that the rotation angle is divided into different angle intervals. θ_j must be within a certain interval, so i can be calculated. Different intervals will not overlap, so the rough overflow circle number i is unique.

[0056] Step 2.2.2: Get the accurate overflow number of turns Of_m according to the motor position, where

[0057] Of_m = i θ_m<180 (3)

[0058] Of_m = i-1 θ_m>180 (4).

[0059] Formula (3) and Formula (4) indicate that if the actual position of the motor exceeds the overflow point, the motor position must also pass the overflow point. At this time, the motor angle must be in the light gray area (θ_m<180°). If the actual position of the motor does not exceed the overflow point, the motor position must be in the white area (θ_m>180). These results can accurately obtain the motor overflow number of turns Of_m.

[0060] The maximum error range in the present invention is related to the reduction ratio: θ_mer=360 / (Rr*2), that is, when the reduction ratio is 8, the maximum allowable error range is 22.5°, which has low requirements on the joint end structure and the joint end encoder accuracy. The present invention obtains the motor angle and the number of motor encoder overflows, and finally obtains the actual joint angle θ_jp (JointPosition), as shown in formula (5).

[0061] θ_jp=(360*Of_m+θ_m) / Rr (5).

[0062] The parts not specifically described in the above description are all prior art, or can be implemented by prior art. Moreover, the specific implementation cases described in the present invention are only preferred implementation cases of the present invention, and are not used to limit the scope of implementation of the present invention. That is, all equivalent changes and modifications made according to the content of the patent application scope of the present invention should be regarded as the technical scope of the present invention.

Claims

1. A method for determining the joint position of a robot, characterized in that: The following steps are included: Step 1, read the encoder value of the joint end and the encoder value of the motor end when the robot restarts; Step 2, calculating the overflow number of the motor according to the encoder value of the joint end and the encoder value of the motor end read in step 1 and the encoder value of the joint end and the encoder value of the motor end in the initial state; Step 3, determine the actual angle of joint rotation according to the overflow number of motor turns calculated in step 2.

2. The method for determining the joint position of a robot according to claim 1, characterized in that: Step 2 includes, Step 2.1, calculate the angle of rotation of the motor relative to the initial position and the angle of rotation of the joint relative to the initial position, θ_m=|A_m–A_m0| θ_j=|A_j–A_j0| Where θ_m is the angle of rotation of the motor relative to the initial position, A_m is the encoder value of the motor end when the device is restarted, A_m0 is the encoder value of the motor end in the initial state, θ_j is the angle of rotation of the joint relative to the initial position, A_j is the encoder value of the joint end when the device is restarted, and A_j0 is the encoder value of the joint end in the initial state; Step 2.2, calculate the overflow number of the motor, Of_m, Of_m=(θ_j) / (360 / Rr) Where Rr is the reduction ratio between the motor end and the joint end, and Of_m takes the integer part of the calculated result.

3. The method for determining the joint position of a robot according to claim 2, characterized in that: When the encoder at the joint end has an error, step 2.2 includes, Step 2.2.1, determine the error range of the overflow point and calculate the rough number of overflow circles i; Step 2.2.2: Get the accurate overflow number of turns Of_m according to the motor position, where Of_m=iθ_m<180 Of_m=i-1θ_m>180.

4. The method for determining the joint position of a robot according to claim 3, characterized in that: In step 2.2.1, the rough number of overflow circles i is calculated according to the following conditions: i*(360 / Rr)-θ_mer / 2≤θ_j≤i*(360 / Rr)+θ_mer / 2 Where θ_mer is the maximum error range of the set joint encoder, i is an integer, and i<360 / Rr.

5. The method for determining the joint position of a robot according to any one of claims 1 to 4, characterized in that: The calculation formula for step 3 is θ_jp=(360*Of_m+θ_m) / Rr Where θ_jp is the actual angle of rotation of the robot joint.

Citation Information

Patent Citations

  • Calibration method and calibration system for integrated joint double encoders of robot

    CN117325210A

  • Design method for rotation angle of double-encoder anchoring motor and stage lamp

    CN117663026A

Cited By

  • Absolute position determination method, system, equipment and medium

    CN120828414A