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.

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.

LessonTimeWhat students do
Planets and periodsWhere 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
  1. Run it
  2. Periods
  3. The J2000 epoch
  4. Today
  5. Mean and true
Gear ratios in codeA 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
  1. Steps a day
  2. What a clockmaker would cut
  3. A float that stops
  4. Fixed point
  5. 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.

LessonTimeWhat students do
Steppers per planetFour 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
  1. One arm
  2. The shortest way
  3. Where is everything?
  4. Half a turn
HomingA 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
  1. Home to the equinox
  2. Not blind
  3. Set to today
  4. 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.

LessonTimeWhat students do
Today from an RTCThe 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
  1. The date
  2. Set the clock
  3. Check it against the sky
  4. A clock that starts elsewhere
Project: the solar system on your deskHome 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
  1. Set it going
  2. Wind time forward
  3. Mercury laps everyone
  4. 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.