The science
Kepler orbits. Each planet follows the two-body orbit with the J2000 mean elements (semi-major axis a, eccentricity e, mean longitude, longitude of perihelion, from the Standish tables valid for 1800-2050). The mean anomaly M = L - ϖ advances uniformly, Kepler's equation E - e sin E = M is solved by Newton iteration, then r = a(1 - e cos E) and the true anomaly follow. Kepler's third law is T² = a³ (years, AU).
Gear train. A mechanical orrery drives each planet from the Earth wheel through gears with integer tooth counts. The planet's angular rate must be p/q times Earth's, approximating TEarth/Tplanet. The page finds the best single stage or, if needed, two stages of tooth ratios with every wheel between 8 teeth and the slider limit. The planets then travel on circles at uniform speed, which is what real orreries do.
Checks. The page integrates the two-body problem with RK4 and compares it with the analytic Kepler solution, checks energy and angular momentum conservation, areas swept in equal times, Kepler's third law, and two real events (the March 2000 equinox and the January 2000 perihelion).
Honest simplifications. Orbits lie in the ecliptic plane (inclinations up to 7 degrees for Mercury are dropped); the mean-element model ignores planetary perturbations, so outer-planet longitudes are good to a degree or so over decades, not centuries. Orbit radii are compressed with rshown = 2.16 ln(1 + 5 r) so Neptune fits on the table; angles are unchanged. Planet and Sun sizes are enlarged by a factor of thousands and axial tilts and spins are not modelled. The gears on the table are decoration: the tooth counts in the panel are the ones computed for the drive. Independent educational model.