Ellipse compass (trammel): how a point on a rod sliding in perpendicular slots traces an ellipse
The ends of a rod of length L slide in two perpendicular slots. A point P along the rod traces an ellipse. If it is p from end A, the radii are L − p horizontally and p vertically.
The initial values are L = 100 mm and p = 30 mm. In the experiment below, you can compare measurements of the path with the values from the equation.
Move the ellipse compass and see the point's path
Position for the initial values (L 100, p 30 mm). Enable JavaScript to change the dimensions and set the mechanism in motion.
Three things to try
- Change the pencil position p As you move p from 30 toward 50 mm (the rod midpoint), the ellipse becomes rounder. At the midpoint, it becomes a circle with radius 50 mm. Swapping p and L − p produces the same ellipse rotated by 90°.
- Set p to 0 The pencil moves to end A, and the ellipse collapses to a vertical radius of 0. The point only moves back and forth in the horizontal slot over a distance of 200 mm (2L).
- Set p greater than L Extend the pencil beyond the rod to 140 mm, and it traces a vertically elongated ellipse with horizontal and vertical radii of 40 mm and 140 mm. The radii follow the same equation (|L − p| and p).
Why it forms an ellipse
Let φ be the angle between the rod and the horizontal slot. End A is at x = L cos φ, and end B is at y = L sin φ. Point P is located p / L of the way from A to B along the rod.
In the experiment, the engine's general-purpose solver finds the point's position from the conditions that both ends lie in their slots and the rod has length L.
The ellipse equation is used only to check the result. We verify each time we build the page that the difference from the equation is at most 8e-13 at every point on the path.
Applications
- Drafting and woodworkingIt is used in drafting tools for drawing ellipses (ellipse compasses) and in woodworking jigs for making ellipses.
- An example of a sliding-slot mechanismLike the Scotch yoke, this mechanism uses a sliding slot. It is an example of how the motion of a point sliding in a slot can form a circle or an ellipse.
What this page does not cover
- It calculates the kinematics of planar rigid bodies. It does not calculate errors caused by friction between the slots and rod or by play in the clearances.
- It covers only cases where the two slots intersect at a right angle.
How the values are calculated
The intersection of the slots is fixed to the ground. A is placed on the horizontal line and B on the vertical line. The general-purpose solver is given the condition that AB has length L, and the rod is rotated through one revolution in 360 steps. We recalculate and verify that the path is an ellipse, the midpoint traces a circle, and the end traces a line segment along the slot when we build this page. The calculation engine version is 0.1.0.