Cam and Gear Mechanism

Input: Pink gear shaft.
Block of two yellow gears and orange eccentric rotates idly on green cranks.
Blue output gear shaft, that is coaxial to the input, rotates irregularly.
This is a planetary drive in which the orange cam controls motion of the crank. The cam profile decides the output motion rule.
Tooth number of blue gear Zb = 24
Tooth number of pink gear Zp = 12
Tooth number of yellow gears: 12 and 18
Working cycle: 4 rev. of the input