Disk Cam Mechanism

The cam consists of a blue round disk and n (=3) yellow cams.
The red follower is immobile during one revolution of the blue disk and then moves n (=3) times during the next revolution.
The weight forces the follower toward the cam. There must be sufficient friction between the yellow cams and the blue pins to avoid accidental motions.