Loading…
Loading…

For about a week every planet went round the wrong way, and everything looked fine.

For about a week every planet went round the wrong way.
The motor directions came from my channel scan, and I had read its notes the wrong way round. All nine axes were flipped, so the clock showed the sky in a mirror. Nothing looked broken. The rings moved smoothly, the positions agreed with each other, and every one of them was wrong.
The fix was one sign per motor. The lesson was in the question. Twice the check was “clockwise or counter-clockwise?”, and twice the answer was wrong, because it depends on where you stand and which way you think is positive. Now the question is “does Earth move to an earlier or a later hour on the clock face?”. Nobody gets that one wrong.

The Moon circles a moving Earth, and nothing on a turning ring can have a wire. One more ring solved it.

The Moon was the open question from day one. It circles the Earth, the Earth circles the Sun, and nothing riding on a turning ring can have a wire.
I threw out a motor on the Earth ring with a slip ring, a fixed gear train (it only gives the average Moon, up to 7° off), and a cable the firmware would have to unwind.
What stayed is one more ring, between Earth and Mars, with its own fixed motor like the planets. A small pinion on the Earth ring meshes with it and turns the Moon’s arm. When both rings turn together the Moon stands still next to the Earth. When they turn by different amounts, it moves.
The firmware solves for the Moon ring’s angle. There are 17 right answers, 21° apart, and it picks the nearest one. It was calibrated on 3 December. It keeps up with a time-lapse of one day per second. Faster than that, the Moon gives up.
The firmware moved to ESP-IDF and got a face: a 16x2 LCD with one knob, and a web page in Greek and English.

In the last days of November the firmware moved from Arduino to ESP-IDF and grew a face.
On the clock there is a 16x2 LCD and one knob: click, hold, double-click. Time-lapse from an hour per second up to ten years per second, forward or back, go to any date, saved dates, astronomical events, and a demo.
On the phone, the clock joins WiFi, takes its time from the internet and serves a small web page in Greek and English with the same controls and a live map of the rings. Firmware updates go over the air.
Two bugs I liked. The Moon landing was saved one day late, because I had typed the Julian day of 21 July. And turning the knob fast to change the year sent it jumping whole centuries. The acceleration now builds up like momentum instead.
Phase one was Mercury, Venus and Earth. On 30 November all eight planets were on the board.

Phase one was Mercury, Venus, Earth and the Moon. On 30 November all eight planet rings were on the board, plus one more for the Moon.
The time-lapse on the project page is that day: wheel posts and wiring first, then the rings from the inside out. Each ring snaps over its three wheels, the top wheel last.
Not everything is right yet. Saturn’s sensor works when I wave a magnet at it, and the ring still won’t find its own. The planets themselves are not printed, so for now the rings carry nothing but a gold Sun in the middle. But nine rings turn on one board from one ESP32, and that is a lot further than I planned to be.
Nine motors, 36 coils, three port expanders and a week of evenings on perfboard.

Nine motors with four coils each make 36 outputs. The ESP32 has nowhere near that many pins to spare, so three MCP23S17 expanders on one SPI bus drive nine ULN2003 boards, and the third expander also reads all nine Hall sensors.
I soldered it on perfboard over several evenings, from a wiring diagram generated with WireViz, so even the wire lengths came out of the CAD.
The motor groups still ended up shuffled on the chips. Instead of re-soldering, I wrote a scan that steps each channel and watches which magnet goes past. Every ring answered except Mercury. Its magnet was glued in upside down.
Neptune’s ring is 759 mm across and the printer bed is 256. Dovetails, glue, and one mistake I now live with.

My printer bed is 256 mm. Venus is 249 mm across and just fits in one piece. Earth is 333, Neptune 759.
So the bigger rings print in segments, joined with dovetails and glue. The tooth count divides exactly by the number of segments, so every joint lands in a gap between two teeth and the pinion never feels it.
It works. It also lets you glue the segments in the wrong order, which I did. Some planet markers now sit a few degrees away from their magnet, and the firmware got a per-planet offset to cover it.
The big rings also skip teeth more easily, so the Hall posts grew claws that hold each ring from the front and under its V edge.
Rings in one plane, a CAD model made of Python, and a 1:1 paper template taped to plywood.

Before printing anything I wrote down what the clock had to do and threw out most of the ways to do it. Rings in one plane beat gears stacked on a central shaft, because the middle stays empty and every new planet is just one more ring on the outside.
Every part is drawn by Python macros in FreeCAD from one file of numbers. Change the corridor width and every ring, wheel post and motor base comes out again. Small test coupons set the fits: 0.05 mm for the dovetails between ring segments, 0.15 mm for holes.
Then I printed the whole layout 1:1 on tiled A4 sheets and taped it to the plywood. Every wheel post went where the paper said. I had designed printed drill templates for this. I never needed them.
This started with a stupid question: what if a wall clock showed where the planets are instead of what time it is?
Not a poster. The real positions, right now, moving. Mercury runs a lap in 88 days, Neptune in 165 years, and the clock has to keep up with both.

The idea that made it buildable came early. Every planet sits on its own ring, and all the rings lie in the same plane, one inside the other, with a 30 mm corridor between them. Each ring hangs on three grooved wheels by a V edge on its inside and has teeth on its outside, where a small pinion on a cheap 28BYJ-48 stepper turns it. The middle stays free for the Sun, and one more planet is just one more ring on the outside. A magnet on the back of each ring and a Hall sensor on the back plate tell the clock where zero is.
An ESP32 does the astronomy. It works out where every body is for any moment from 3000 BC to 3000 AD, and before I printed a single part I checked it against NASA’s JPL Horizons: the planets come out within 0.26°, the Moon within 0.05°.
The distances are not to scale (Neptune would end up in the next room). The angles are.
The plan was modest: a full-size prototype with Mercury, Venus, Earth and the Moon, printed in PLA, the other planets later. That plan lasted less than a month. The build log above is how it went.