This is a simple crank-rocker mechanism (AKA four-bar linkage) simulation I did for a little project I'm working on. The mechanism has four links: a driver or crank link that, as you guessed, drives the entire thing; a coupler that transmits motion between intermediate links. The last link is the output link and is usually called follower. The distance between the driver and the follower is also considered a link, and is called frame.
The simulation uses direct kinematics to estimate the planar motion (rotations and translations) of each link, the only input variables are the driver’s angular position and link length, all links must have a defined length. These can be changed at run time, however, under certain configurations the mechanism can fail. This is called the Grashof condition and states the maximum total link length allowed for possible physical motion.
The demo renders the driver in blue, coupler in red, follower in green, and frame in gray. Should you decide to download it, you can use the following controls:
Angular Velocity: ‘w’/’s’ keys to increase/decrease the driver’s angular velocity.
Link Length: You’ll see two circles that plot the driver’s and follower’s current radii, click inside (or outside) each circle to increase/decrease each links’ length.
If you want to know a little bit more, here's a brief overview of the kinematic analysis of this mechanism. I'm using a vector component position-based analysis.
![Image](http://imageshack.com/a/img203/1120/yic.gif)