Skip to content
Tactiverge

School/○ Innovator/Week 12

Modelling rotating parts: x = L cos θ, y = L sin θ

A windscreen wiper, a crane jib and a robot's first link all trace the same shape. Which equation draws all three?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Every revolute joint turns a link about a pivot. Its tip runs round a circle of radius L, and its position is the unit circle scaled up by L. This one model, used twice, is the whole of two-link forward kinematics next term: trigonometry is how a robot knows where its hand is.

  • ◇ Model the tip of a rotating part with x = L cos θ, y = L sin θ.
  • ◇ Recover a joint angle from tip coordinates with atan2.
  • ◇ Explain how the tip's speed depends on the length and the angular speed.

2.Discover

In the robot-arm lab, set the elbow to 0° so the arm is one straight link of length L1 + L2. Turn only the shoulder and read the hand position at 0°, 30°, 90°, 150°, 210°. For each, check x = L cos θ and y = L sin θ on a calculator. Then do the reverse: from the readout's (x, y), recover θ with atan2.

Explorer 01 — Robotic kinematics

From joint angles to a position, and back again

Forward kinematics turns joint angles into an end-effector position. Inverse kinematics asks the harder question: which angles put the tip where I want it?

REACH 35.0 CMHOLE 5.0J1J2(15.1, 26.4)

Fig. — 2-link planar arm · units cm · y up

Mode

Joint angles (relative)

35 °
60 °

Arm geometry

Links
20.0 cm
15.0 cm
End x
15.1 cm
End y
26.4 cm
Distance r
30.4 cm
workspace 5.0–35.0 cm
|sin θ2|
0.87
well-conditioned
Tip angle φ
95.0°

State

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

How to read this

The base sits at the centre (grid squares are 10 cm). Each thick bar is a link; circles are joints J1, J2. The shaded ring is the workspace: every point the tip can reach with unlimited joint travel. Its outer edge is L1 + L2; the inner hole appears when one link is longer than the others combined.

Arcs show each joint angle. θ1 is measured from the dashed horizontal; θ2 from the dashed extension of link 1. In inverse mode the square is the target (dashed and labelled unreachable when outside the ring), and the arm is solved with the law of cosines. Most targets have two solutions: elbow-up and elbow-down.

Assumptions & limitations
  • Ideal rigid links and revolute joints with no mass, friction, backlash, or flex.
  • Joints may rotate a full ±180°; real joints have hard limits that shrink the workspace, and links cannot pass through each other or the floor.
  • Kinematics only: nothing here says whether the motors are strong or fast enough to hold or reach a pose (that is dynamics).
  • Three-link inverse kinematics is made solvable by fixing the tool angle φ; real controllers choose among redundant solutions with extra goals.
  • Unreachable targets are projected onto the nearest edge of the reachable ring for display; a real controller would refuse or plan around them.
Can't use the interactive? Read a description instead

With the elbow straight, the robot-arm lab behaves as one link of length L1 + L2 turning about the shoulder. For a 0.8 m arm the hand reads (0.8, 0) at 0°, (0.693, 0.4) at 30°, (0, 0.8) at 90°, (−0.693, 0.4) at 150° and (−0.693, −0.4) at 210°.

3.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

A 0.4 m link at 30°. What is its tip's y coordinate, in metres?

m

4.Predict

A 0.5 m link rotates from 0° to 90° in 1 second. How far does its tip travel along its arc?

Guess first. Being wrong here is how the surprise works.

5.Understand

A link is a scaled unit circle

A link of length L at angle θ (from +x, anticlockwise) has its tip at x = L cos θ, y = L sin θ. It's the unit-circle point (cos θ, sin θ) stretched by L. If the pivot is not at the origin but at (px, py), add that offset: x = px + L cos θ, y = py + L sin θ.

Going back: angle from position

Given a tip position (x, y) relative to the pivot, the joint angle is θ = atan2(y, x) and the length is √(x² + y²). This is the seed of inverse kinematics: working backwards from where the tip is (or should be) to the angle that puts it there. atan2, not tan⁻¹, because joints swing through every quadrant.

How fast does the tip move?

If the joint turns at angular speed ω (rad/s), the tip moves along its circle at v = L·ω. Long links make fast tips: a 2 m crane jib turning at 0.5 rad/s moves its tip at 1 m/s. The tip's velocity points along the circle, perpendicular to the link: (−L ω sin θ, L ω cos θ).

Explain it another way

Hold a ruler by one end and swing it. The far end draws a circle. How far left-right it is: cos. How far up-down: sin. A longer ruler draws a bigger circle, and its end moves faster for the same swing.

Worked example 1

A crane jib 12 m long, pivoted 3 m above the ground, is raised to 40°. How high is its tip?

y = 3 + 12 sin 40° = 3 + 12 × 0.6428 ≈ 10.71 m. Its tip is 12 cos 40° ≈ 9.19 m out from the pivot.

Common mix-ups

  • x = L sin θ and y = L cos θ.
    ✓ With θ measured from the x axis, x uses cosine and y uses sine. (Swap them only if θ is measured from the y axis.)
  • Every point on a rotating link moves at the same speed.
    ✓ Speed is L·ω: points further from the pivot move faster.

6.Watch

→ Watch for how sine and cosine become coordinates; then imagine stretching the circle to radius L.

Defines sine and cosine as the coordinates of a point going round a circle, so they work for every angle, not just inside a triangle.

9 min 4 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A robot link 0.5 m long points at 300° (anticlockwise from +x). What is the x position of its tip, in metres? (3 decimal places)

m

Practice 3 · a fresh version every time

What is the direction of the vector (−3, 2), in degrees measured anticlockwise from the +x axis? Give a value from 0 to 360.

°

Practice 4

A 0.6 m link turns at 2 rad/s. How fast does its tip move, in m/s?

m/s

Practice 5

A wiper pivots at (0.2, 0) m and is 0.5 m long. Which gives its tip at angle θ?

8.Apply it

A robot's single-link arm (0.35 m) must touch points at (0.2, 0.287) m and (−0.35, 0) m. For each, decide if it lies on the tip's circle, and if so give the joint angle in degrees.

9.Reflect

10.Go further

Concepts: Angles and trigonometry · Forward kinematics