What are the degrees of freedom of a mechanism? The difference between the value from Grübler’s equation and how many ways it can really move
The degrees of freedom of a mechanism are the number of inputs needed to determine the configuration of the entire mechanism. However, an equation that only counts them can give the wrong result when the dimensions have a special relationship.
For planar mechanisms, the number of links n (including the ground link) and the number of pin and sliding joints j give the count from Grübler’s equation, F = 3(n − 1) − 2j. In the experiments below, you can compare the counted degrees of freedom with the actual degrees of freedom found by calculation, and see what happens when the number of inputs does not match.
Compare the counted degrees of freedom with the actual degrees of freedom calculated
Diagram of a four-bar linkage with 1 input. Enable JavaScript to switch the mechanism and number of inputs and see it move.
Comparison of 6 mechanisms
| Mechanism | Links n | Joints j | Counted F | Calculated degrees of freedom | Redundant constraints |
|---|---|---|---|---|---|
| Four-bar linkage | 4 | 4 | 1 | 1 | 0 |
| Slider-crank | 4 | 4 | 1 | 1 | 0 |
| Five-bar linkage | 5 | 5 | 2 | 2 | 0 |
| Triangle | 3 | 3 | 0 | 0 | 0 |
| Parallelogram with added parallel crank | 5 | 6 | 0 | 1 | 1 |
| Same, with a 2 mm offset between pivots | 5 | 6 | 0 | 0 | 0 |
Try these 3 things
- Use 2 inputs on a four-bar linkage If you use both the crank and output link as inputs on a four-bar linkage (n = 4, j = 4, F = 1), you get “too many inputs.” This is because two inputs chosen independently are usually incompatible.
- Use 1 input on a five-bar linkage With just one crank, a five-bar linkage (n = 5, j = 5, F = 2) cannot determine the position of the center point, so it reports “one input is missing.” It moves with 2 inputs (like a 2-degree-of-freedom robot).
- Compare a parallelogram with “offsetting a pivot by 2 mm” Both “parallelograms with an added parallel crank” have F = 0 according to the equation. If the dimensions are exactly parallel, it moves with 1 degrees of freedom. Offset a pivot by just 2 mm, and it really will not move.
How Grübler’s equation works
In a plane, a free rigid body has 3 degrees of freedom: 2 positions and 1 orientation. There are 3(n − 1) degrees of freedom for n − 1 links, excluding the ground link.
Pin and sliding joints each stop 2 motions, so we subtract 2 for each joint. A pin stops position in 2 directions, while a sliding joint stops position in the transverse direction and rotation.
A slider-crank has 4 links: the ground link, crank, connecting rod, and slider. It also has 3 pins and 1 sliding joint.
It is a 1-degree-of-freedom mechanism, like a four-bar linkage, and can be thought of as a four-bar linkage with an infinitely long output link.
Why the equation can be wrong, and how this site calculates the result
The equation assumes that “the motions being stopped do not overlap.” If you add a parallel link to a parallelogram, the motion that the link stops is the same motion already stopped by another link.
In other words, it does not actually stop anything (redundant constraint), so the actual degrees of freedom are 1 greater than the value from the equation. If the dimensions are off by even a small amount, the constraint is no longer redundant, and the mechanism cannot move.
This site’s calculation engine does not use a simple counting equation. It constructs the Jacobian matrix, which represents how the constraint equations change with the position of each point, and uses singular value decomposition to find its rank (the number of independent equations).
Actual degrees of freedom
Number of unknowns − number of independent equations
Number of redundant constraints
Number of equations − number of independent equations
The rank can drop when the configuration happens to be in a special position (such as a straight line), so the calculation is also checked at a slightly offset configuration.
What this means in practice
- There are redundant constraints. The mechanism moves if the dimensions match exactly, but it is prone to binding due to manufacturing errors or expansion from heat. The connecting rods that link the driving wheels of a steam locomotive are an example of a parallelogram with redundant constraints.
- There are too many inputs. The inputs push against each other. When using 2 motors, first check whether the mechanism has 2 degrees of freedom.
- There are too few inputs. Some points move freely under their own weight or due to external forces.
What this page does not cover
- This page covers planar mechanisms. For spatial mechanisms, a rigid body has 6 degrees of freedom, and the equation also changes (Kutzbach’s equation).
- This page calculates kinematics. It does not calculate the forces that arise in mechanisms with redundant constraints or how much error they can tolerate while still moving.
How the values are calculated
The 6 mechanisms are represented using constraints for points, fixed positions, distances, sliding, and attachments to rigid bodies. They are assembled with a general-purpose constraint solver (Newton’s method and singular value decomposition). The degrees of freedom and number of redundant constraints are determined using the method above. The result of connecting inputs is determined by comparing the assembly with the number of inputs.
To animate a mechanism, the calculation for each configuration is repeated as the input values change in small increments. The values and claims in the text are recalculated and checked when the page is created. The calculation engine version is 0.1.0.
References: R. L. Norton, “Design of Machinery” (Grübler-Kutzbach equation, overconstrained mechanisms); J. J. Uicker, G. R. Pennock, and J. E. Shigley, “Theory of Machines and Mechanisms.”