Lesson plan

Build a moon phase lamp lesson plan

Learn why the Moon has phases, work them out from any date, and build a lamp that shows tonight's Moon in the dark.

3 chapters, 6 lessons, about 5 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

  • Why the Moon has phases, and the sum that finds them.
  • Draw the Moon on LEDs, keep the date and see the night.
  • Put it all together into a lamp worth sharing.

Materials for the whole unit

  • Addressable RGB LEDs
  • Arduino Uno R3
  • Light sensor
  • Real-time clock, DS3231
  • Resistor x 2

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 1 h 40 min

The Moon in the sky

Why the Moon has phases, and the sum that finds them.

LessonTimeWhat students do
The lunar cycleWatch a whole synodic month in fifteen seconds on 64 LEDs, learn why the Moon has phases, and stop the clock on any day you like.50 min
  1. A month in fifteen seconds
  2. Why the Moon has phases
  3. Stop the clock
  4. Jump to full moon
  5. Half lit is not half a month
  6. The last quarter
Phase from a dateWork out the Moon on any date from one known new moon and the length of the month: day counting, a remainder, and a trap in C.50 min
  1. One new moon and a ruler
  2. Find a full moon
  3. And a new one
  4. Counting days is the hard part
  5. The Moon at Tranquility Base
  6. Your own date

Materials

  • Addressable RGB LEDs
  • Arduino Uno R3
  • Light sensor
  • Real-time clock, DS3231
  • Resistor x 2

Check for understanding

Each student finishes "Phase from a date" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

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

Chapter 2. About 2 h 20 min

Light, time and dark

Draw the Moon on LEDs, keep the date and see the night.

LessonTimeWhat students do
LEDs as a moonDraw any phase on an 8x8 WS2812B panel: a disc of 52 LEDs, the shadow edge from one cosine per row, and panels that zigzag.50 min
  1. A disc of 52 LEDs
  2. The shadow edge
  3. A thin crescent
  4. Nothing to see
  5. Waning
  6. Panels that zigzag
RTC timeRead a DS3231 register by register: binary coded decimal, the oscillator stop flag, setting the time and a leap day, then the Moon from the clock.50 min
  1. A clock that never forgets
  2. Binary coded decimal
  3. Set the clock
  4. The Moon from the clock
  5. A leap day arrives
  6. Where it wakes up
Glow at nightRead a light cell in a divider, switch at night with two thresholds so it never flickers at dusk, and ignore passing headlights.40 min
  1. A resistor that sees
  2. Night falls
  3. The gap
  4. Headlights
  5. Dawn

Materials

  • Addressable RGB LEDs
  • Arduino Uno R3
  • Light sensor
  • Real-time clock, DS3231
  • Resistor x 2

Check for understanding

Each student finishes "Glow at night" 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: "Dawn".

Chapter 3. About 1 h

Tonight's moon

Put it all together into a lamp worth sharing.

LessonTimeWhat students do
Project: tonight's moonPut it all together: tonight's Moon from the clock, glowing in the dark, with the next full moon, a month-long time-lapse and a southern sky.60 min
  1. Wake up the lamp
  2. Lights out
  3. When is the next full moon?
  4. Set your own night
  5. A month in six seconds
  6. Down under
  7. Make it yours

Materials

  • Addressable RGB LEDs
  • Arduino Uno R3
  • Light sensor
  • Real-time clock, DS3231
  • Resistor x 2

Check for understanding

Each student finishes "Project: tonight's moon" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

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

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.