Check out this Cardano's Hypocycloid mechanical model that model makers have ever built. And yea, it's pretty hard to grasp what exactly is going on in this machine so just try your best.