Skip to content
Tactiverge

Inside a Robotic Arm

Motors that spin fast and weak, gearboxes that make them slow and strong, and the trigonometry that turns joint angles into a place in space.

An industrial robot arm can place a part to within a fraction of a millimetre, thousands of times a day. It does not see where its hand is. It works it out, from the angle of every joint and the length of every link.

Conceptual only. Do not open real devices: they can hold mains voltage, charged capacitors, sharp edges or springs.

1Explode it

Pull the robotic arm apart.

fig. 06 · robotic arm, coming apart

Parts of the robotic arm, as a list

  1. Base. Bolts the arm to the floor and holds the first joint. Engineering idea: When the arm reaches out holding a load, it creates a large tipping torque, force times distance. The base must resist it without moving at all.
  2. Shoulder motor. An electric servo motor drives the shoulder joint. Engineering idea: Electric motors are happiest spinning fast with little torque. The controller sets their speed and torque by switching the supply on and off thousands of times a second (PWM).
  3. Gearbox. Reduces the motor's speed and multiplies its torque, often by 50 to 160 times. Engineering idea: Torque out ≈ torque in × gear ratio (minus losses). Special gearboxes with almost no backlash are used so the arm does not wobble when it changes direction.
  4. Upper arm. A stiff, hollow link from shoulder to elbow, with cables running inside. Engineering idea: Stiffness matters more than strength: a link that bends even a little moves the hand away from where the maths says it is.
  5. Elbow joint. A second motor and gearbox that bends the forearm. Engineering idea: Each joint adds one degree of freedom. Two joints in a plane let the hand reach any point inside a ring; six joints let it reach a point from almost any direction.
  6. Forearm. The second link, carrying the wrist and the tool. Engineering idea: Each link has its own coordinate frame. Chaining the frames from base to hand is how forward kinematics finds where the tool is.
  7. Joint encoder. Measures each joint's angle precisely. Engineering idea: A disc with a fine pattern passes a sensor as the joint turns; counting the pattern gives the angle. The joint controller compares that angle with the target and corrects the motor, many times a millisecond.
  8. Gripper. The tool at the end: here two fingers that close on a part. Engineering idea: Grip is friction: the squeeze force times the friction coefficient must exceed the part's weight. Too little and it slips; too much and it crushes, which is why some grippers sense force.

2Part by part

What every piece is for.

  1. 01

    Base

    Bolts the arm to the floor and holds the first joint.

    the idea →When the arm reaches out holding a load, it creates a large tipping torque, force times distance. The base must resist it without moving at all.

    Forces, torque and free-body diagrams

  2. 02

    Shoulder motor

    An electric servo motor drives the shoulder joint.

    the idea →Electric motors are happiest spinning fast with little torque. The controller sets their speed and torque by switching the supply on and off thousands of times a second (PWM).

    Motors, servos and steppersTimers and pulse-width modulation

  3. 03

    Gearbox

    Reduces the motor's speed and multiplies its torque, often by 50 to 160 times.

    the idea →Torque out ≈ torque in × gear ratio (minus losses). Special gearboxes with almost no backlash are used so the arm does not wobble when it changes direction.

    Gears, belts and sizing a drive

  4. 04

    Upper arm

    A stiff, hollow link from shoulder to elbow, with cables running inside.

    the idea →Stiffness matters more than strength: a link that bends even a little moves the hand away from where the maths says it is.

    Forward kinematicsJoints, degrees of freedom and workspace

  5. 05

    Elbow joint

    A second motor and gearbox that bends the forearm.

    the idea →Each joint adds one degree of freedom. Two joints in a plane let the hand reach any point inside a ring; six joints let it reach a point from almost any direction.

    Joints, degrees of freedom and workspace

  6. 06

    Forearm

    The second link, carrying the wrist and the tool.

    the idea →Each link has its own coordinate frame. Chaining the frames from base to hand is how forward kinematics finds where the tool is.

    Forward kinematicsCoordinate frames and transforms

  7. 07

    Joint encoder

    Measures each joint's angle precisely.

    the idea →A disc with a fine pattern passes a sensor as the joint turns; counting the pattern gives the angle. The joint controller compares that angle with the target and corrects the motor, many times a millisecond.

    Sensing position and motionProportional control

  8. 08

    Gripper

    The tool at the end: here two fingers that close on a part.

    the idea →Grip is friction: the squeeze force times the friction coefficient must exceed the part's weight. Too little and it slips; too much and it crushes, which is why some grippers sense force.

    Sensing force and touchFriction, grip and contact

3The system

How the parts talk to each other.

Almost every machine has the same shape: something senses, something decides, something acts on the world, and a measurement feeds back so the decision can improve.

Inputs(sense)

  • Target positionfrom a program
  • Joint encoders
  • Force sensorin the gripper

Controller(think)

  • Motion controllerinverse kinematics + PID

Actuators(act)

  • Joint motors
  • Gripper

The physical system(what changes)

  • Arm and load

Signals forward

  • Target position to Motion controllerwhere the hand should go
  • Motion controller to Joint motorstorque commands
  • Motion controller to Gripperopen / squeeze
  • Joint motors to Arm and loadjoint motion
  • Gripper to Arm and loadgrasp

Feedback: the loop closes here

  • Arm and load feeds back to Joint encodersjoint angles
  • Arm and load feeds back to Force sensorcontact force
  • Joint encoders feeds back to Motion controllermeasured angles
  • Force sensor feeds back to Motion controllermeasured grip

4The maths

Where is the hand?

Forward kinematics: add up each link as an arrow. The second link's direction is the sum of both joint angles, because the elbow is carried round by the shoulder.

the model

x = L1·cos θ1 + L2·cos(θ1 + θ2), y = L1·sin θ1 + L2·sin(θ1 + θ2)

x
0.424 m
y
0.49 m
Go deeper: the worked numbers

Symbols

L1, L2
link lengths (m)
θ1
shoulder angle from horizontal
θ2
elbow angle relative to the upper arm

Worked example

  1. 1.x = 0.4 × cos 30° + 0.3 × cos 75° = 0.346 + 0.078
  2. 2.y = 0.4 × sin 30° + 0.3 × sin 75° = 0.200 + 0.290
  3. 3.The hand is at about (0.424 m, 0.490 m)

5 · Your turn · Arm kinematics lab

Reach the target

In the Kinematics lab, set two joint angles to reach a target, then let the lab solve it backwards with inverse kinematics. Notice when there are two answers (elbow up and elbow down).

Start the challenge →

runs in your browser, nothing to unscrew