Ratchet Mechanism

There are two pawls. The green pushes the pink gear and is not always in contact with it (unlike ordinary ratchet mechanism). The blue keeps the wheel immobile when the green does not push the gear.