Four-Bar Linkage Mechanism Simulator Back
Mechanism Analysis

Four-Bar Linkage Mechanism Simulator

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
m
L2 Crank
m
L3 coupler
m
L4 Rocker
m
RotationVelocity ω
rad/s
0.00 s
0 / 5

Grashof condition(4-barLink):

$$s + l \leq p + q \quad \text{(s: shortest, l: longest, p,q: intermediate links)}$$

Crank-slider SliderDisplacement:

$$x = r\cos\theta + l\sqrt{1 - \left(\frac{r}{l}\right)^2\sin^2\theta}$$

Transmission angle(4-barLink):

$$\cos\mu = \frac{L_3^2 + L_4^2 - d_{BD}^2}{2 L_3 L_4}$$
Results
Grashof condition
Minimum transmission angle μ_min [°]
Output Stroke [°/mm]
Velocity ratio
Link
Link

Related Tools

Flywheel Inertia & Energy Calculator
Calculate flywheel moment of inertia, stored energy, and speed fluctuation rate
Gear ratio・Rotation speed・TorqueCalculator
Calculate gear ratio, output speed, output torque, and efficiency for spur and helical gears
Additive Manufacturing (3D Print) Process Calculator
Calculate build time, material usage, and support material cost for FDM, SLA, and SLS
Weld Heat Input and Cooling Rate
Calculate thermal cycle T(t) and HAZ width using Rosenthal analytical solution

What is a Crank-Slider Mechanism?

🙋
What exactly is a crank-slider mechanism? I see it in the simulator's "Mechanism type" dropdown.
🎓
Basically, it's a classic machine that converts rotary motion into back-and-forth sliding motion, or vice-versa. In this simulator, when you select "Crank-slider" from the dropdown, 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.

$$x = r\cos\theta + \sqrt{l^2 - (r \sin\theta)^2}$$

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").

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.
Yes, this tool displays not only the displacement of the slider relative to the crank rotation angle but also the velocity (first derivative) and acceleration (second derivative) in real-time graphs. This allows evaluation of inertial forces and impacts in piston motion. The formulas are derived from the crank length and connecting rod length.
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. After inputting values, you need to press the '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, it can become a "non-Grashof mechanism" where the transmission angle becomes extremely small. Specifically, a combination like L1=10, L2=50, L3=10, L4=40 satisfies the Grashof condition, but if you simulate its motion, you'll find the output link moves very sluggishly, transmitting almost no force. 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, how to read the "angular acceleration" graph. 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.