Ratchet Mechanism

There are two pawls. The pink pushes the ratchet wheel. The green keeps the wheel immobile when the pink reverses.