Analyze four-bar and crank-slider mechanisms with real-time animation. Evaluate Grashof condition, transmission angle, and output link angular position, velocity, and acceleration using Freudenstein's equation.
Mechanism settings
Mechanism type
L1 fixed link
mm
L2 Crank
mm
L3 coupler
mm
L4 Rocker
mm
Crank length r
Connecting Rod Length l
RotationVelocity ω
rpm
0.00 s
0 / 5
Results
—
Grashof condition
—
Minimum transmission angle μ_min [°]
—
Output Stroke [°/mm]
—
Velocity ratio
Mechanism animation
Output angle & transmission angle
Theory & key formulas
$$s + l \leq p + q$$
Grashof condition (4-bar linkage): \(s\) shortest link, \(l\) longest link, \(p, q\) the other two links
Transmission angle (4-bar linkage): \(d_{BD}\) is the distance between crank pin B and fixed pivot D
What is a Crank-Slider Mechanism?
🙋
What exactly is a crank-slider mechanism? I see it in the simulator's "Mechanism type" buttons.
🎓
Basically, it's a classic machine that converts rotary motion into back-and-forth sliding motion, or vice-versa. In this simulator, when you press the "Crank-slider" button, you'll see a rotating crank connected to a piston-like slider. A common case is the piston inside a car engine.
🙋
Wait, really? So the "Crank length r" and "Connecting Rod Length l" sliders control the parts of that engine? What happens if I make the connecting rod really short?
🎓
Exactly! Try moving the "Connecting Rod Length l" slider way down while keeping the crank length moderate. You'll see the slider's motion become uneven—it will shoot forward quickly and return slowly. This is bad for engine smoothness. In practice, a typical ratio is $l/r \approx 3$ to $4$ for internal combustion engines.
🙋
That makes sense. And for the 4-bar linkage option, what's that "Grashof condition" check for?
🎓
Great question. The Grashof condition tells you if at least one link in your 4-bar design can rotate fully—a crucial feature for a driving crank. In the simulator, adjust the four link lengths (L1 to L4). If the condition is met, you'll get continuous rotation. If not, the mechanism might just rock back and forth. For instance, a car's windshield wiper needs a fully rotating input crank, so it must satisfy Grashof.
Physical Model & Key Equations
The core kinematics of the crank-slider mechanism is defined by the slider's horizontal position, x. It's derived from the geometry of the rotating crank and the connecting rod.
Where: $x$ = Slider displacement from the crank center. $r$ = Crank length (adjust via "Crank length r"). $l$ = Connecting rod length (adjust via "Connecting Rod Length l"). $\theta$ = Crank angle ($\theta = \omega t$, where $\omega$ is "RotationVelocity ω", entered in rpm).
For a 4-bar linkage, the fundamental design rule is the Grashof Condition. It determines the possible motion types based on link lengths.
$$s + l \leq p + q$$
Where: $s$ = Length of the shortest link. $l$ = Length of the longest link. $p, q$ = Lengths of the two intermediate links.
If true, at least one link can rotate fully (e.g., a crank). The transmission angle, critical for force efficiency, is calculated from the instant geometry of the links.
Frequently Asked Questions
If the Grashof condition (s + l ≤ p + q) is not satisfied, the input link cannot rotate continuously and will lock (deadlock) at a certain angle. In the simulation, this can be observed as the link reversing within that angular range or the animation stopping. When designing mechanisms, please adjust the link lengths to satisfy this condition.
If the transmission angle falls below 40°, excessive force is applied to the links, causing unstable motion, mechanical locking, or vibration. Ideally, maintain a transmission angle of 50° or more, and at least 40° or more when designing link lengths. This tool displays the transmission angle in real time.
In crank-slider mode this tool plots the slider displacement against the crank angle and reports the stroke (2r) and the ratio r/l. Velocity and acceleration time histories are not plotted, so evaluate inertia forces and impacts separately from the displacement formula.
First, check whether the Grashof condition is satisfied. If it is not, the input link will lock and the animation will stop. Also, check that you have not entered extreme values (negative numbers or zero) for link lengths, and that the crank length is not longer than the connecting rod length. Results update automatically as soon as a value changes; there is no update button.
Real-World Applications
Internal Combustion Engines: The piston-cylinder assembly is a direct application of the crank-slider. The simulator's parameters r and l directly model the crankshaft throw and connecting rod. Engineers analyze the slider's velocity and acceleration to balance the engine and minimize vibration.
Automotive Wiper Systems: Many windshield wipers use a 4-bar linkage of the "crank-rocker" type. The input motor is a crank, and the wiper arm is the rocker. The transmission angle must be kept optimal (usually >40°) to prevent jamming, which you can check in the simulator.
Press and Stamping Machines: These industrial machines often use a "double-crank" 4-bar linkage to transform constant rotary input into a precise, powerful pressing motion with a slow, forceful stroke and a quick return—exactly the kind of motion you can visualize by playing with the link lengths.
Robotic Grippers and Leg Mechanisms: 4-bar linkages provide constrained, predictable motion paths essential for robotics. By synthesizing link lengths in tools like this simulator, designers can create a gripper that closes parallel or a walking robot leg with a specific foot trajectory.
Common Misconceptions and Points to Note
First, there is a common tendency to think "if the Grashof condition is satisfied, everything is fine," but this is a major misunderstanding. Even if the condition is met, the actual motion may not be practical. For example, if the shortest link is made the crank, the transmission angle can become very small. For example, L1=100, L2=40, L3=140, L4=100 satisfies the Grashof condition (40+140=180 ≤ 100+100=200), yet by the transmission-angle formula most of the crank force is spent bending the rocker rather than turning it. In practice, you must remember that "moving" and "being usable" are two different things.
Next, do not ignore the units of link lengths. This tool only requires numerical input, but in actual design, you must decide on units like mm or inches. If you don't keep the units consistent across all length parameters, the calculation results are meaningless. A common beginner mistake is intending to input a crank length of 10 (mm) and a connecting rod length of 200 (mm), but actually mixing 10 (cm) and 200 (mm).
Finally, acceleration is not plotted here, but matters. Points where the angular acceleration—the rate of change of angular velocity—changes sharply indicate that large inertial forces are acting on the mechanism. For instance, in a crank-slider mechanism, if the connecting rod length l is set extremely short relative to the crank length r (e.g., l/r=1.2), the angular acceleration near the top and bottom dead centers becomes very large, causing vibration and noise. In engine design, optimizing this l/r ratio (connecting rod ratio) is extremely important.
Enter the four link lengths in mm: L1 fixed link (frame), L2 crank, L3 coupler, L4 rocker. The Grashof check and mechanism type update as soon as a value changes.
Read the output stroke, minimum transmission angle μ_min and velocity ratio in the Results cards; press play to animate the crank and use "Save Trajectory" to keep the coupler-midpoint path.
Switch to "Crank-slider" to enter crank length r and connecting-rod length l; the slider displacement x(θ) is plotted and the stroke 2r is reported.
Transmission angles below about 40° indicate poor force transmission; adjust the link lengths until μ_min is acceptable.
Worked Example
With the default values L1=100 mm (frame), L2=40 mm (crank), L3=120 mm (coupler) and L4=80 mm (rocker): shortest + longest = 40 + 120 = 160 mm, the other two sum to 100 + 80 = 180 mm, so the Grashof condition holds and, because the crank is the shortest link, the mechanism is a crank-rocker. Solving the loop-closure equation over one crank revolution gives a rocker stroke of 73.8° and a minimum transmission angle μ_min of 26.4°; because this is below 40°, the result card shows a ⚠ mark. Switching to "Crank-slider" with the defaults r=50 mm and l=150 mm gives a slider stroke of 2r = 100.0 mm and r/l = 0.333.
Practical Notes
Grashof condition determines the mechanism type: s + l ≤ p + q allows at least one link to rotate fully; if it is violated, no link can make a full turn and the input rocks between limit positions.
A small transmission angle (below about 40°) raises joint reaction forces and friction losses and can make the mechanism jam; the Results card marks μ_min below 40° with a warning.
Dead centers occur when the crank and coupler are collinear; a flywheel or a second driving mechanism is needed to carry the motion through them.
The coupler-midpoint path drawn with "Save Trajectory" is a coupler curve; such curves are used for dwell and intermittent-motion mechanisms.