ES-91IntermediatePremium
ESP32 Moon Phase Lamp: What Does the Moon Look Like Tonight? (DS1307 + 8x8 NeoPixel + Button)
A night lamp for your desk that draws tonight's moon: an 8x8 NeoPixel matrix shows a crescent, a quarter, a gibbous or a full moon. The DS1307 keeps the date, and the ESP32 counts the phase from a known new moon and corrects it with Meeus' terms to within a minute. One button switches between today, days to full moon and a whole month played in 8 seconds. 24 December 2026 is the last full moon of the year.
0.0(0)

A night lamp that tells you what the moon looks like tonight without looking out of the window: crescent, half moon or full moon, changing by itself every night. A tiny clock module keeps the date, the glowing square screen draws the moon with soft edges, and one button shows how many days are left to the full moon. Play a whole month in a few seconds and learn the phases of the moon by eye.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
