Input: green oscilating crank.
Output: yellow ratchet wheel.
Blue ratchet wheel is idly mounted on violet fixed shaft.
Red spring creates friction between the blue ratchet wheel and fixed violet shaft thus prevents the blue wheel from reverse rotation.
Pink pawl makes the blue ratchet wheel rotate.
Orange pawl makes the yellow ratchet wheel rotate.
Red sector of the blue ratchet wheel periodically prevents contact between the orange pawl and the yellow wheel thus the latter rotates interruptedly with diffe