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.
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.
The Moon in the sky
Why the Moon has phases, and the sum that finds them.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
Light, time and dark
Draw the Moon on LEDs, keep the date and see the night.
| Lesson | Time | What 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 |
|
| 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 |
|
| 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 |
|
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".
Tonight's moon
Put it all together into a lamp worth sharing.
| Lesson | Time | What 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 |
|
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".
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.