Two-Link Robot Arm Kinematics Calculator
Enter link lengths and joint angles to find where the gripper is, enter a target point to find both sets of joint angles that reach it, or enter link and payload masses to size the shoulder and elbow motors for holding torque.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Choose the calculation
Forward, inverse or torque.
- 2Enter link lengths
Metres.
- 3Enter angles or a target
Degrees or x, y.
- 4Enter masses
Links and payload.
- 5Read the results
Position, angles or torques.
Sobre aquesta eina
The two-link planar arm, a shoulder and an elbow moving in one plane, is the first robot most engineers study. It is also the core of SCARA robots, pick-and-place arms and many hobby and educational robots. Forward kinematics answers where the tool is for given joint angles. Inverse kinematics answers the harder question of which joint angles put the tool at a target point; for this arm, there are usually two answers, elbow up and elbow down. Static torque tells you how strong each motor must be to hold the arm and its load against gravity. This calculator handles all three.
Who this is for
Robotics students, makers building arms, automation engineers sizing SCARA axes and teachers.
Forward kinematics
With link lengths L1 and L2 and joint angles θ1 (from the x axis) and θ2 (relative to link 1): - Elbow: (L1 cos θ1, L1 sin θ1). - Tool: x = L1 cos θ1 + L2 cos(θ1 + θ2), y = L1 sin θ1 + L2 sin(θ1 + θ2). - Tool orientation: θ1 + θ2.
Inverse kinematics
cos θ2 = (x² + y² − L1² − L2²) / (2 L1 L2). If this is outside −1 to 1, the point is unreachable. Otherwise θ2 = ± acos(...), giving the two elbow configurations, and θ1 = atan2(y, x) − atan2(L2 sin θ2, L1 + L2 cos θ2). The reachable workspace is a ring between radii |L1 − L2| and L1 + L2. Points on the outer edge give a single, singular solution.
Static torques
Holding still, each joint must balance the moments of the weights beyond it. With link centres of mass at mid-length: - Elbow: τ2 = g (m2 L2/2 + mp L2) cos(θ1 + θ2). - Shoulder: τ1 = g [m1 L1/2 cos θ1 + m2 (L1 cos θ1 + L2/2 cos(θ1 + θ2)) + mp (L1 cos θ1 + L2 cos(θ1 + θ2))]. Torque is greatest with the arm horizontal. Add the torque for acceleration and a safety factor of 1.5-2 when choosing motors and gearboxes.
Worked example
With L1 = 0.4 m, L2 = 0.3 m, θ1 = 30° and θ2 = 45°, the tool is at (0.424, 0.490) m. Asked for that point, the inverse solution returns 30° and 45°, and the other elbow solution is 68.2° and −45°. Horizontal, with links of 2 and 1.5 kg and a 1 kg payload, the shoulder needs 18.9 N·m and the elbow 5.1 N·m.
Singularities
When θ2 is 0° or 180°, the arm is fully stretched or folded and loses the ability to move the tool in one direction: the Jacobian becomes singular. Near these poses, small tool movements demand very large joint speeds, so motion planners keep the arm away from them or slow down as it approaches.
Common mistakes
- Using atan instead of atan2, which loses the quadrant. - Mixing degrees and radians. - Forgetting joint limits: a mathematically valid solution may not be physically possible. - Sizing motors for static torque only; fast moves can need several times more.
Limits
Planar two-link arm with point payload and uniform links. This is not professional engineering advice.
Exemple resolt
L1 0.4 m, L2 0.3 m, 30° and 45°: tool at (0.424, 0.490) m.
En resum
- Categoria: Enginyeria i construcció
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: Planar two-link manipulator: forward kinematics x = L1·cos θ1 + L2·cos(θ1 + θ2), y = L1·sin θ1 + L2·sin(θ1 + θ2); inverse kinematics by the law of cosines with atan2; static gravity torques (Craig, Introduction to Robotics: Mechanics and Control, 4th ed.; Spong, Hutchinson and Vidyasagar, Robot Modeling and Control)
Preguntes freqüents
What is forward kinematics?
Finding the tool position from known joint angles.
What is inverse kinematics?
Finding joint angles that place the tool at a target.
Why are there two solutions?
The elbow can bend either way to reach the same point.
What can the arm reach?
A ring between |L1 − L2| and L1 + L2 from the shoulder.
When is motor torque highest?
With the arm stretched out horizontally.
Is my data stored?
Arm geometry is not collected or shared.
