Machines you have met

The lamp that stays where it is put

A desk lamp that stays wherever it is left is balanced, not held: its springs store exactly the energy its weight gives up, at every pose. For one arm that takes a spring with no free length, fixed above the pivot, whose energy has a cos θ term that cancels the weight's to 10⁻¹⁵. A spring with a free length L₀ leaves an unbalance of exactly L₀/s of the weight's torque, and a stiffness a fraction ε off leaves 2ε of its moment. For two arms it takes a parallelogram: without one, the upper spring sees the angle between the arms and the lamp's energy varies by twice the head's moment; with one, both springs sit at the base and the lamp is flat everywhere.

Assumes A parallelogram carries an angle, and only so far and Four bars and four pins.

A balanced-arm desk lamp can be pushed to any position within its reach and let go, and it stays there. It is not held there by stiff joints — its joints turn freely — and it is not locked. It is balanced: at every pose the springs store exactly the energy the weight of the arms and head has given up, so the lamp’s total potential energy is the same everywhere and no pose is downhill from any other. A machine that stays where it is put is a machine whose potential energy is a constant function of its configuration.

Like the horsehead on a pumping unit, where a shape was chosen so that a force’s arm came out right at every angle rather than at one, it is a design for a whole range rather than a point. And it is a kinematic statement about an energy, and the whole design follows from two geometric facts: what makes one arm’s spring energy exactly the reverse of its weight’s, and what lets two arms be balanced without interfering. The first is a spring’s length squared. The second is a parallelogram, the linkage that a parallelogram carries an angle found transmits an orientation from one place to another unchanged — the same property that keeps a delta robot’s platform flat, and that the site’s first essay on the four-bar meets as the special case whose opposite links are equal.

A two-arm lamp balanced at every poseA two-arm desk lamp: a lower arm 0.4 m long pivoted on its base, an upper arm carrying a 0.8 kg head 0.35 m out. A parallelogram — the lower arm, a short crank at the base, a link parallel to the lower arm, and the upper arm's first few centimetres — keeps the base crank parallel to the upper arm, so the upper arm's spring can run from a post above the base pivot to that crank and see the upper arm's angle alone. The lower arm's spring runs from the same post to the lower arm. Both springs have no free length and stiffnesses matched to their arms' weights. At every pose the lamp's total potential energy is the same: here it differs from the pose with both arms upright by 3e-16 of the head's moment, and the joint torques are 0 and 0 N·m — rounding. Dragging swings the lamp.springs of no free lengththe same energy at every pose
Fig. 1 A two-arm lamp with a parallelogram and two springs of no free length. Dragging swings it through its working range; at every pose its total energy is the same.

One arm, one spring, one cosine

Take one arm pivoted at its base, at an angle θ\theta from the upward vertical, carrying a weight mgmg at distance ll. The weight’s potential energy is mglcos⁡θmgl\cos\theta: highest with the arm upright, lowest hanging down, varying as a cosine.

Now fix a spring between a point a distance aa above the pivot and a point a distance bb along the arm. The spring’s length ss follows from the triangle they make with the pivot, s2=a2+b2−2abcos⁡θs^2 = a^2 + b^2 - 2ab\cos\theta. If the spring has no free length — if its tension is proportional to its whole length rather than to its stretch beyond some natural length — its energy is 12ks2\tfrac12 k s^2, and that is

12k (a2+b2)−k a bcos⁡θ.\tfrac12 k\,(a^2 + b^2) - k\,a\,b\cos\theta.

A constant, and a cosine with the opposite sign to the weight’s. Choose k a b=mglk\,a\,b = mgl and the two cosines cancel: the total energy is a constant, at every angle, with no approximation anywhere.

Two energies that cancel at every angle. One arm carrying 1.2 kg at 0.45 m, with a spring of no free length from a point 0.08 m above the pivot to a point 0.12 m along the arm, of stiffness m·g·l/(a·b) = 551.8 N/m. The weight's energy runs as cos θ and the spring's as its length squared, a² + b² − 2ab·cos θ, so its angle-dependent part is exactly the weight's reversed. Both are drawn relative to their values with the arm horizontal and scaled by the weight's moment — one rises as the other falls; the total, the thick line, varies by 1e-15 of it across half a turn. A spring five per cent stiffer leaves a spread of 0.10.
Fig. 2 One arm’s weight energy and spring energy across half a turn, and their sum, for the spring stiffness that balances it.

For an arm carrying 1.2 kg at 0.45 m, with the spring fixed 0.08 m above the pivot and attached 0.12 m along the arm, the balancing stiffness is 551.8 N/m. Measured over half a turn, the total energy varies by 10−1510^{-15} of the weight’s moment mglmgl — nothing. A spring five per cent stiffer leaves a spread of 0.10 of it.

The fixing point has to be directly above the pivot, and the same arithmetic says why. Fix the spring’s end on a line at an angle φ\varphi from the vertical instead and its length squared becomes a2+b2−2abcos⁡(θ−φ)a^2 + b^2 - 2ab\cos(\theta - \varphi), which expands into a cos⁡θ\cos\theta term and a sin⁡θ\sin\theta term. The weight has no sin⁡θ\sin\theta term to cancel it, so a tilted post leaves an unbalance proportional to sin⁡φ\sin\varphi at every angle. The lamp’s post is vertical for the same reason its springs have no free length.

A zero-length spring sounds like an idealisation, and it is what a lamp’s springs are. A coil spring wound with an initial tension — the coils pressed together so that it takes a definite force before it starts to open — behaves, once open, as if its natural length were shorter than its closed length. Wind in an initial tension of kk times the closed length and the spring’s force is kk times its whole length over its entire working range. The other common construction runs a cord from the spring’s end over a small pulley, so that the geometric point the energy depends on is where the cord leaves the pulley, and the spring itself can have any length.

What a free length costs

A real spring with a free length L0L_0 stores 12k(s−L0)2\tfrac12 k(s - L_0)^2, which is the zero-length energy less kL0 skL_0\,s plus a constant. The extra term is not a cosine. Differentiated, it gives a leftover torque kL0 ds/dθ=kL0 absin⁡θ/skL_0\,ds/d\theta = kL_0\,ab\sin\theta/s, and since the weight’s torque is mglsin⁡θ=kabsin⁡θmgl\sin\theta = kab\sin\theta,

unbalanced torqueweight’s torque=L0s.\frac{\text{unbalanced torque}}{\text{weight's torque}} = \frac{L_0}{s}.

The unbalance is the spring’s free length over its current length, at every angle, and it acts in the weight’s direction: a spring with a free length under-balances, and the arm droops.

A spring's free length is an unbalance of L₀/s. The same arm with springs of free length 5 mm, 10 mm, 20 mm, 40 mm, each at the zero-length stiffness: the torque left over, as a fraction of the weight's torque at that angle, measured by differencing the energy (dots), against the free length divided by the spring's current length (lines). They agree to 2e-9. The leftover acts with the weight — a spring with free length under-balances — and it is worst where the spring is shortest, near the arm pointing up at the spring's fixing point. Above 0.6 the curves are cut off.
Fig. 3 The torque left over, as a fraction of the weight’s torque, for springs of four free lengths at the zero-length stiffness: measured from the energy, and L0/sL_0/s.

The law is checked by differencing the total energy numerically at every ten degrees, for free lengths of 5, 10, 20 and 40 mm, and it agrees with L0/sL_0/s to 2×10−92 \times 10^{-9}. What the figure shows is where it bites. The spring is shortest when the arm points up towards its fixing point, and there a 20 mm free length on a spring only 44 mm long leaves nearly half the weight’s torque unbalanced; with the arm horizontal the same spring leaves 14%, and hanging down 10%. A lamp balanced with an ordinary spring would stay put near the horizontal, if its joints had a little friction, and sag when raised — which is exactly how a badly made one behaves.

Where to hang the spring

The balance fixes only the product abab — how far above the pivot the spring is fixed, times how far along the arm it is attached. How that product is split is free, and the split decides everything else about the spring.

The spring’s length runs from ∣a−b∣|a - b|, with the arm pointing straight up at its fixing point, to a+ba + b, with it hanging straight down. So the split sets the spring’s working range, and with it the range of force it has to deliver, kk times each end. For the arm here, with ab=0.0096 m2ab = 0.0096\ \text{m}^2 and k=551.8k = 551.8 N/m: split as 0.08 and 0.12 m, the spring works between 40 and 200 mm and pulls between 22 and 110 N; split as 0.06 and 0.16, between 100 and 220 mm and 55 to 121 N; split as 0.04 and 0.24, between 200 and 280 mm and 110 to 155 N. Each balances the arm exactly. The more unequal the split, the less the spring’s length and force vary — and the higher its lowest force, which the zero-length construction has to supply from initial tension.

The split also decides how much a free length costs, because L0/sL_0/s is worst where the spring is shortest, at s=∣a−b∣s = |a - b|. With a 10 mm free length the worst unbalance is a quarter of the weight’s torque on the first split, a tenth on the second and a twentieth on the third. And a split with aa and bb nearly equal — 0.096 and 0.1 m, the same product — lets the spring shrink to 4 mm with the arm upright, where no real spring can go and a 10 mm free length leaves it slack altogether. That is the design rule a lamp maker works to without stating it: hang the spring so that its shortest working length is large against whatever free length it cannot be rid of.

What a stiffness error costs

The other departure a real lamp has is a spring of the wrong rate. With the stiffness off by a fraction ε\varepsilon, the spring’s cosine term is (1+ε)(1+\varepsilon) times the weight’s, and the one left over is ε mglcos⁡θ\varepsilon\,mgl\cos\theta, which swings from +ε mgl+\varepsilon\,mgl to −ε mgl-\varepsilon\,mgl over half a turn.

What a spring-rate tolerance costs. The single arm with its spring's stiffness off by up to ten per cent either way: the spread of the total energy over half a turn of the arm, as a fraction of the weight's moment. It is 2|ε| exactly — 0.200 at -10%, 0.100 at -5%, 0.040 at -2%, 0.020 at -1%, 0.020 at 1%, 0.040 at 2%, 0.100 at 5%, 0.200 at 10% — because a stiffness error leaves a term ε·m·g·l·cos θ behind, which swings from +1 to −1. A five per cent spring leaves a tenth of the weight's moment to be held by friction at the joint.
Fig. 4 The spread of the arm’s total energy over half a turn against the error in the spring’s stiffness.

So the spread is exactly 2∣ε∣2|\varepsilon| of the weight’s moment, to 3×10−163 \times 10^{-16} across errors from −10% to +10%. A five per cent spring leaves a tenth of the moment unbalanced, and the joint’s friction has to hold it. That makes the design rule concrete in a way “a well-balanced lamp” is not: a lamp meant to stay put with a joint friction of, say, 5% of the head’s moment needs its springs matched to ±2.5%\pm 2.5\% and their free lengths under a twentieth of their shortest working length.

Two arms, and why the second spring needs the parallelogram

A lamp with one arm reaches along a circle. A useful lamp has two arms — a lower one pivoted on the base and an upper one pivoted at the elbow carrying the head — and two angles, θ1\theta_1 and θ2\theta_2, each measured from the vertical.

The weight is easy to account for. The head’s height is l1cos⁡θ1+l2cos⁡θ2l_1\cos\theta_1 + l_2\cos\theta_2, so its energy is a cosine in each angle separately, with the head’s weight counted at the elbow for the lower arm’s term. Two springs, each balancing one cosine, would do — if each spring’s energy depended on one angle only.

That is where the obvious construction fails. The natural place to fix the upper arm’s spring is on the lower arm, a little above the elbow, and run it to a point on the upper arm. But a spring fixed on the lower arm sees the angle between the two arms, θ2−θ1\theta_2 - \theta_1, and its energy is a cosine of the difference. No spring anywhere can cancel cos⁡(θ2−θ1)\cos(\theta_2 - \theta_1) against cos⁡θ2\cos\theta_2 at every pair of angles.

Without the parallelogram the two balances fight. The two-arm lamp's total potential energy over its working range — lower arm from −60° to 60° across, upper arm from −10° to 150° up — for the design in which the upper arm's spring is fixed on the lower arm instead of being carried to the base by a parallelogram. It then sees the angle between the arms rather than the upper arm's own, its energy has a cos(θ₂ − θ₁) term that no spring at the base cancels, and the energy varies by 2.00 times the head's moment across the range: shaded from pale at the lowest to dark at the highest. With the parallelogram the same map is uniform, its spread 1e-15 — the lamp would stay where it is put at every pose.
Fig. 5 The two-arm lamp’s total energy over its working range, for the design with the upper spring fixed on the lower arm.

Measured over the working range — lower arm from −60° to 60°, upper arm from −10° to 150° — the lamp with its upper spring fixed on the lower arm has a total energy that varies by 2.00 times the head’s moment.

The parallelogram removes the difference. Add a short crank at the base, pivoted on the same axis as the lower arm, and a link from its end parallel to the lower arm, to a point on the upper arm the same distance from the elbow. The four points form a parallelogram, so the crank at the base stays parallel to the upper arm at every pose — a parallelogram carries an angle — and the upper arm’s spring can run from a post above the base pivot to that crank. It then sees θ2\theta_2 alone, its energy is −k2a2b2cos⁡θ2-k_2 a_2 b_2\cos\theta_2 plus a constant, and it cancels the head’s cos⁡θ2\cos\theta_2 term exactly as the single arm’s did. The lower arm’s spring, from the same post to the lower arm, cancels the cos⁡θ1\cos\theta_1 term, which carries the lower arm’s own weight and the head’s weight at the elbow.

With the parallelogram, the energy spread over the same working range is 10−1510^{-15} of the head’s moment.

The parallelogram brings one restriction of its own, and it is a kinematic one. A parallelogram is the four-bar that sits exactly on the walls between the eight kinds of four-bar, and it has change points: positions where its four links lie in a line and it can pass from the parallelogram into the crossed, anti-parallelogram assembly. Here that happens when the upper arm lines up with the lower one, so that the base crank lies along the lower arm. A lamp that let its elbow straighten fully would reach that point, and past it the base crank would no longer follow the upper arm. So the lamp’s working range keeps the elbow bent — the swings drawn here keep the upper arm at least twenty degrees from the line of the lower — and the balance holds everywhere inside that range. The energy map above includes elbow angles outside it, as a calculation; a real lamp cannot get there. The two balances no longer interfere, because the parallelogram has moved the second spring to where it can only see the second angle.

The torques a bad lamp would feel

The energy map is the complete answer, but the joint torques are what a user feels when letting go.

The torques that would move the lamp. Swinging the lamp from folded (lower arm −30°, upper 150°) to reaching (55°, 80°): the torque each joint would feel, as a fraction of the head's moment 2.75 N·m, for the design without the parallelogram. Both joints are pushed by up to 1.00 of it, which is the lamp sagging or springing up wherever it is let go. With the parallelogram both torques are nought along the whole swing, at most 9e-10 N·m.
Fig. 6 The torque at each joint along a swing from folded to reaching, as a fraction of the head’s moment, without the parallelogram.

Along a swing from folded to reaching, lower arm from −30° to 55° and upper from 150° to 80°, the design without the parallelogram pushes each joint with a torque of up to the whole of the head’s moment — 2.75 N·m for a 0.8 kg head 0.35 m out — which is the lamp springing up or sagging wherever it is released. The design with the parallelogram leaves both joints at nought along the whole swing, to 10−910^{-9} N·m, which is the error of differencing the energy numerically.

A balance, not a lock

It is worth separating this from the site’s other way of making a mechanism stay put. Locked on purpose parked a toggle a few degrees past its dead centre, where the linkage cannot be back-driven because its output is second order in its input; the mechanism is held in one position and resists being moved from it. A balanced lamp does the opposite. It resists nothing — the smallest push moves it — and it has no preferred position at all, because every position is equally preferred.

The two are different answers to different requirements. A toggle holds a load against disturbance, by driving the transmission angle to nought so that the load cannot turn the input; a balance lets a light hand move a heavy thing and then leaves it alone. What they share is that each is a fact about a function of the configuration — a transmission ratio going to nought for the toggle, a potential energy going flat for the balance — and each is exact in the idealisation and has a measurable departure in practice.

That departure, for the lamp, is the design’s two tolerances. The free length and the stiffness each leave a small cosine or a small L0/sL_0/s torque behind, and joint friction covers them. And a parallelogram a micron wrong is a reminder that the parallelogram itself has tolerances too: a crank not quite the length of the upper arm’s matching segment carries the angle with a small periodic error, and the upper spring then sees a slightly wrong angle.

What the balance leaves out

Only the potential energy. The lamp is balanced statically. Swung quickly, its inertia carries it on; the balance says only that it will come to rest wherever friction stops it.

Other arms that carry things. The same two ideas — a spring whose energy is a cosine, and a parallelogram that carries an angle to where the spring is — are what hold up camera-support arms and the stands of surgical microscopes, where the load is heavier and the tolerance on the balance tighter. Nothing here depends on the load being a lamp.

Masses as points. The arms’ own weight is lumped at a point on each arm, and the springs are massless. A distributed arm mass adds to the same cosine terms and is balanced the same way; a spring’s own mass is not.

The balance’s range. The zero-length law holds while the spring is in tension. A spring wound with initial tension opens only once the load exceeds that tension, and a lamp folded so far that a spring would have to push rather than pull is outside the balance.

Still open: balancing a head that tilts

A real lamp’s head also tilts on the end of the upper arm, and its weight’s position then depends on three angles. A third spring could balance the tilt if its energy depended on the head’s angle alone — which, by the argument here, means carrying that angle to the base through a second parallelogram in series with the first, as some drafting-machine arms do.

The distinct argument would be whether that chain of parallelograms is the only way. A head’s weight moment about the tilt joint is a cosine of the head’s absolute angle, and there are three ways to give a spring that angle alone: a second parallelogram to the base, a spring mounted on the upper arm acting through a mechanism that subtracts the arm’s angle, or a spring on the head itself working against a point that moves with the upper arm’s parallelogram. The measurement would take each and ask the same question as here — how flat the total energy is over a three-angle working range — and whether any of them balances exactly without the parts count of a full second parallelogram.

What this makes readable

Essays that name this one as a prerequisite.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

The 8 of 9 essays linking to this one that name the most of the same objects.

The objects this essay names

Each one links to every other essay that touches it.

ApproximationDesign ruleFour-barMechanical advantageParallelogramParallelogram linkageSensitivityTolerance