Converting Rotation to Rotary and Linear Reciprocating Motion
Input: the green gear. The pink shaft with yellow cam is fixed. The orange gear rotates without axial motion. The blue cylinder has a red pin that slides in the cam groove. The cylinder rotates and linearly reciprocates simultaneously.