4R Mechanism

Slider crank mechanism
This html code uses "canvas" element, for which the positive x-axis is rightward (same as we usually draw on graphs), whereas positive y-axis is downward. Hence, in this system the positive angle is measured from positive x-axis clockwise. Similarly, positive angular velocity is clockwise and so does the positive angular acceleration.

Set the link lengths for the mechanism and see it moving.

Input the link lengths

Link 1 (Fixed link) ; Link 2 (Input link) ; Link 3 (Coupler) ; Link 4 (Follower)

Location of the point on the coupler

Distance from the point A ;
Distance from the point B ;
Above or below the line joining points A & B (1 or above; 0 for below) ;

Press the "Animate" button again to speed up the mechanism.