Interrupted Rotation

Input: violet pin gear rotate continuously.
One revolution of the violet gear makes the blue pin gear rotate interruptedly one tenth of a revolution thanks to two red pins of the violet gear and orange pinion of 8 teeth.
The blue gear of 20 pins and the pinion are always in mesh.
Four teeth of the pinion are longer than the remainings. In combination with the outside diameter of the violet gear, they keep the pinion and the blue gear immobile when the above mentioned two pins are not in mesh.