The linkage builder of linkages: connect points and links, then check whether they move
Place points, connect them with links (rigid bars), and fix one of the points to create a planar linkage. Choose a link to rotate, and the calculation diagnoses whether it moves, does not move, or needs more input. If it moves, the experiment shows its range of motion.
Try mechanisms such as four-bar and six-bar linkages by simply entering values in the table.
Build and move a linkage
Example of a four-bar linkage. Enable JavaScript to edit the points and links and set the mechanism in motion.
How to use
- Start with an example Click one of “Four-bar linkage,” “Watt six-bar linkage,” “Five-bar linkage,” or “Triangle” to fill in the point and link tables. Other mechanisms on this site, such as straight-line mechanisms and Jansen's linkages, are available from the parts library.
- Edit the points Change the coordinates (mm) in the point table, and mark the points fixed to the ground as “Fixed.” Add points with “Add point.”
- Edit the links Choose the two points to connect in the link table. The link length is the distance between the two points at their current coordinates.
- Choose an input and a point to trace Choose an input from link angle, pushing a point along x or y, or pushing a point in a diagonal direction. The diagnosis appears, and if the mechanism moves, you can move it with “Play.”
- Check for plate interference In “Check plate interference,” enter the plate width and pin radius, then click “Check” to see how many layers can be used to arrange the plates without collisions over the full motion. Choose the layer for each plate yourself and click “Check at these layers” to see which plates collide and at what input values.
- Save Use “Save model (JSON)” to save the mechanism you built to a file and load it later (Saving and exporting).
Rules for building mechanisms
- Triangular platesConnecting 3 points with 3 links makes a rigid triangular plate (a link with 3 joints). If the 3 points lie in a straight line, they are treated as a straight bar with 3 holes (the middle point is fixed on the line of the bar).
- Choosing inputsThe usual approach is to rotate a link connected to a fixed point. Enter the direction for a diagonal push in the “Diagonal push direction” field, as an angle from the x-axis.
- Mechanisms that need 2 inputsSelect a second input and set its value to move the mechanism with the first input.
- Counting interferenceCheck layer arrangements after making the mechanism movable. Count a triangle as 1 plate.
To check example mechanisms in diagrams, use the Link width and layer interference page.
What the diagnoses mean
| Display | Meaning | Example |
|---|---|---|
| Can move | The number of inputs matches the mechanism's degrees of freedom. Shows whether the link being rotated makes a full revolution or the range of motion | Four-bar linkage, Watt six-bar linkage |
| Not enough input | Some points cannot be fully determined with just 1 rotating link (degrees of freedom are 2 or more) | Five-bar linkage |
| Does not move (structure) | No points can move (degrees of freedom 0) | Triangle |
| Cannot be assembled | The link lengths are inconsistent, so the loop cannot close | — |
Degrees of freedom are found from the rank of the Jacobian matrix, which describes how the constraint equations change, rather than from a counting formula. This allows the calculation to correctly handle mechanisms that a counting formula would classify as immovable, such as a parallelogram made by adding a parallel link (Degrees of freedom of mechanisms).
Example: Watt six-bar linkage
Extend the output link of a four-bar linkage into a triangular plate, then connect another pair of links to its corner. This makes a six-bar linkage consisting of 6 links, including the ground link.
- ConfigurationThis example is built from 7 points and 7 bars. The triangular plate is represented by 3 bars.
- MotionThis is a 1-degree-of-freedom mechanism whose motion is determined by 1 input. When the crank makes a full revolution, the end point moves in a way that a four-bar linkage alone cannot produce.
Curved slots and 3 or more inputs
Curved slots (fixed to the ground)
A point moves only along a smooth curve that passes through the specified points. The curve is a cubic spline, with continuous position, direction, and curvature. A closed slot forms a loop, while an open slot ends at both ends.
3 or more inputs
For mechanisms with 3 or more degrees of freedom, such as an arm with 3 joints, set and hold the values for the second input onward, then move the first input. Up to 5 inputs are available.
- Moving around a closed slotPut the end of a crank and bar into a bean-shaped closed slot, and the crank makes a full revolution while the end of the bar travels once around the slot.
- Stopping at the end of an open slotWith the same mechanism, make the slot a short curve with 3 points. The mechanism stops when the end of the bar reaches the end of the slot (in this example, from -89° to 50°).
- Arm with 3 jointsWith 2 inputs (holding at 36.9°), the diagnosis says “1 more input is needed.” Add a third input (holding at -33.7°) to make it move.
After editing the slot points, if a point is no longer on the slot, use “Snap point to slot” to move it onto the nearest part of the curve.
What this page does not cover
- This page supports planar linkages connected by pin joints (revolute joints), sliding joints (prismatic joints) where a point moves along a straight line (fixed guides and slots in moving links), curved slots fixed to the ground, and up to 5 inputs (link angle, point x or y, or a diagonal push on a point).
- Curved slots must be fixed to the ground. Curved slots on moving links are not supported (for a circular arc, placing a point at the center of the circle and connecting it with a link gives the same motion).
- Slot width, clearance, and contact between pins and slots are not included. Points move along the centerline of the slot.
- If there is more than 1 diagonal-push input, they all use the same direction. Inputs are not moved simultaneously; the second and later inputs are held while the first moves.
- The calculation covers planar rigid-body kinematics. Forces and strength are not computed.
- Link interference checks are limited to reporting the number of layers (plate thickness, pin heads, and frame shape are not considered). To check in diagrams, use the Link width and layer interference page.
- The range of motion is checked by moving the rotating link in 1° increments and finding the positions where the mechanism can be assembled. At a pose where two assembly configurations meet, as in a parallelogram (a change point), the mechanism passes through on the side that continues its motion so far (the angle at which it passes through is shown).
- At other singular poses or angles where the mechanism cannot be assembled, it stops.
How the values are calculated
The built mechanism is passed to a general-purpose constraint solver (Newton's method and singular value decomposition) as a set of point, fixed-position, and distance constraints. The solver finds the degrees of freedom and redundant constraints, and diagnoses whether the mechanism can be assembled with the input applied. During motion, the input is changed in 1° increments, and the solution is recalculated from the previous pose. When building this page, we checked the diagnoses for all 4 examples and verified that saved models can be loaded back into the same table. The calculation engine version is 0.1.0.