A mechanism has four connected links to mimic the motion of a knee joint. A lower link is oriented towards the vertical. A leverage ratio between flexion of the knee and relative angular displacement of certain links in the mechanism remains fairly steady over much of the range of motion of the mechanism. The mechanism may be used to drive an energy harvesting gearbox with steadier and more efficient energy harvesting at deep flexion, as well as with quieter operation.