All paths

Build an orrery clock

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.

Arduino Uno R3Free6 lessons6 h3 chapters2,022 XPRobotics · Advanced+250 XP

0 of 6 done

What you will build

3 projects, built step by step

6 lessons in 3 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

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.

Open it in the simulator
Chapter 2 project

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.

Open it in the simulator
Chapter 3 project

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.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

The sky in numbers

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

  1. Open250 XP

    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.

    0 of 5 steps

  2. ProjectLocked500 XP

    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.

    0 of 5 steps

5 questions, graded as you go.
Chapter 2

The machine

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

  1. Locked212 XP

    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.

    0 of 4 steps

  2. ProjectLocked424 XP

    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.

    0 of 4 steps

3 questions, graded as you go.
Chapter 3

Time and the project

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

  1. Locked212 XP

    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.

    0 of 4 steps

  2. ProjectLocked424 XP

    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.

    0 of 4 steps

4 questions, graded as you go.
Syllabus

Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

The sky in numbers

  1. 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.
  2. 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.
Chapter 2

The machine

  1. 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.
  2. 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.
Chapter 3

Time and the project

  1. 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.
  2. 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.
Keep going

The next course on your track

Build an orrery clock is part of the maker track, a ladder of courses from zero to expert.

Next course

Build carnival games

Touch targets, light gates and an eight-digit display: whack-a-target, ring toss, skee-ball, high scores and a booth that pays out tickets.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build an orrery clock

Is Build an orrery clock free?

Yes. All 6 lessons of Build an orrery clock are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build an orrery clock take?

About 6 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Gear ratios in code, Homing and Project: the solar system on your desk.

Where do I start?

With "Planets and periods", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.