Source: https://mokxi.com/teachers/plans/build-orrery-clock
Updated: 2026-11-19

Lesson plan

# Build an orrery clock lesson plan

The inner solar system on four steppers, each arm where its planet really is: periods and J2000 longitudes, ratios in fixed point, hall sensor homing, a DS3231 for the date.

3 chapters, 6 lessons, about 6 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- Periods, the J2000 epoch, mean and true longitude, and ratios that never drift.
- An arm per planet on shift registers, homed to the March equinox.
- The date from a DS3231, then the solar system set to today and wound forward.

### Materials for the whole unit

- 74HC595 shift register x 2
- Arduino Uno R3
- Hall sensor, A3144 x 4
- Real-time clock, DS3231
- Stepper motor, 28BYJ-48 with ULN2003 x 4

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 2 h 20 min

## The sky in numbers

Periods, the J2000 epoch, mean and true longitude, and ratios that never drift.

Lesson | Time | What students do

Planets and periods Where a planet is: an orbital period, a mean longitude at J2000, and two terms that turn a circle into an ellipse. Put the four inner planets where they were on 1 January 2000, and where they are today. | 70 min

- Run it
- Periods
- The J2000 epoch
- Today
- Mean and true

Gear ratios in code A brass orrery gets its ratios from gear teeth; this one from numbers. Steps a day for each planet, the best gear pair a clockmaker could cut, and why a running float total stops moving where a fixed-point fraction does not. | 70 min

- Steps a day
- What a clockmaker would cut
- A float that stops
- Fixed point
- Which year?

### Materials

- 74HC595 shift register x 2
- Arduino Uno R3
- Hall sensor, A3144 x 4
- Real-time clock, DS3231
- Stepper motor, 28BYJ-48 with ULN2003 x 4

### Check for understanding

Each student finishes "Gear ratios in code" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Which year?".

Chapter 2. About 1 h 50 min

## The machine

An arm per planet on shift registers, homed to the March equinox.

Lesson | Time | What students do

Steppers per planet Four arms, four 28BYJ-48s and two shift registers: put an arm on an angle, take the shortest way around, and move all four on the same ticks. | 55 min

- One arm
- The shortest way
- Where is everything?
- Half a turn

Homing A magnet on each arm at 0 degrees and a hall sensor to find it: home all four to the March equinox, refuse to place planets blind, and set the arms to today. | 55 min

- Home to the equinox
- Not blind
- Set to today
- Read it back

### Materials

- 74HC595 shift register x 2
- Arduino Uno R3
- Hall sensor, A3144 x 4
- Real-time clock, DS3231
- Stepper motor, 28BYJ-48 with ULN2003 x 4

### Check for understanding

Each student finishes "Homing" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Read it back".

Chapter 3. About 1 h 50 min

## Time and the project

The date from a DS3231, then the solar system set to today and wound forward.

Lesson | Time | What students do

Today from an RTC The DS3231 keeps the date with the power off: days since J2000 from its seconds count, leap years for free, UTC, setting the clock, and an equinox you can check against the sky. | 55 min

- The date
- Set the clock
- Check it against the sky
- A clock that starts elsewhere

Project: the solar system on your desk Home it, set it to today, then wind time forward with fixed-point step accumulators and check them against the formula, watch Mercury lap Earth, and see what a calendar year instead of a sidereal one does to the sky. | 55 min

- Set it going
- Wind time forward
- Mercury laps everyone
- The wrong year

### Materials

- 74HC595 shift register x 2
- Arduino Uno R3
- Hall sensor, A3144 x 4
- Real-time clock, DS3231
- Stepper motor, 28BYJ-48 with ULN2003 x 4

### Check for understanding

Each student finishes "Project: the solar system on your desk" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The wrong year".

Your class

## Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
