Input: blue rod, each push of which makes green disk rotate 90 deg.
Brown springs and square portion of the green disk contribute to the green disk rotation and to its positioning.
Orange flat spring maintains contact between the pink pawl and the green disk.