Here is a video of the lift in action
Overview of the entire machine
Note that half of the pegs have been removed from this gray gear.
This gear powers the red gear for 1/2 rotation (pulling back the hammer)
before disengaging it and letting the hammer swing back to hit the ball.