Introduction: 3Dprinted Lunar Phase Clock

Picture of 3Dprinted Lunar Phase Clock

If you don't know what to print with your 3D printer, here you have an easy project.

Build a 3D printed Lunar Phase Clock for your desk or your nightstand.

Features: (check the video)

  • Open Tools (Ubuntu / FreeCAD / Arduino)
  • Open Source / Hardware
  • Cheap HW (Arduino, cheap LCD..)
  • Only 79 grams of filament.
  • Precise Lunar Phase Simulation
  • Detailed 3D printed Lunar model
    • by Dexter_New_Materials (
  • Alarm
  • Wake-light alarm mode
  • Date Thermometer
  • Hygrometer
  • Lamp mode
  • Moon FX modes (Relax, Party... )
  • Bright control
  • Adjustable tilt

Step 1: Part List and Tools

Picture of Part List and Tools

Parts List:

  • Arduino compatible Nano (Atmel ATmega328)
  • 0,96'' OLED 128x64 with SSD1306 chip (only 4 pins)
  • Neopixel or APA102C (18 leds from a 60 pixel per meter strip)
  • Tiny RTC (DS1307 real time clock + 24C32 EEPROM)
  • DHT11 (if it include the pull-up resistor, much better)
  • Buzzer
  • 3 Push Buttons (RAFI


  1. 3D printer
  2. Soldering Iron
  3. Glue Gun
  4. Wire stripper
  5. Cutter
  6. Electrical Tape
  7. Loose wire
  8. Computer with arduino software

Step 2: Building the Parts

Picture of Building the Parts

Download parts from Thingiverse or from GitHub

I have printed them using PLA with the (bq prusa i3 hephestos) , these are the printer settings:

Layer Height = 0.2 mm

Wall Thickness = 1 mm

Top Thickness = 1 mm (5 layers)

Bottom Thickness = 0.2 mm (1 layer)

No need for Rafts or supports.

For the Moon Infill Density = 0% , for the rest of the parts infill Density = 100%

In total you will use just 79 grams of PLA.

Check the screen-shoots of Cura, for further details. Moon is a bit tricky as you have to move on the Z axis down 5cm.

Or just download a cutted version that JetGuy "Unknown" have create using Netfabb.

Step 3: Led Support

Picture of Led Support

A strip of Neopixel or Dotstar LEDs can be used, is recommended to use an strip of 60 pixels per meter.

Cut the LED strip into six pieces of three LEDs.

You must be careful, and follow the arrow. This is the orientation, seen from the back of the moon.

| 1 | 6 | 7 | 12 | 13 | 18 |

| 2 | 5 | 8 | 11 | 14 | 17 |

| 3 | 4 | 9 | 10 | 15 | 16 |

Once the strip is placed, to fix it use a hot glue gun.

Step 4: Building the Circuit

Picture of Building the Circuit

So now that you have all your parts printed you are ready to build your circuit. First introduce the arduino, then the buttons to fix the arduino.

  1. Introduce the arduino
  2. Add the buttons, to fix the arduino
  3. Using Double-Sided Bonding Tape fix the DHT11,
    1. use one that include already the pull-up resistor.
  4. Then wire the buttons,
    1. first the GND of all.
  5. Add the buzzer (depending of the buzzer, maybe you will need to add a resistor)
  6. Add the wire, that will connect to the led of the moon.
  7. Add the Tiny RTC
      1. If you have a 3,6V LIR2032 battery . Great!! you don't need the next step.

      2. If it contains a 3V CR2032 battery, be careful you should made this little modification:

  8. Add the wires that will connect to the display.

Step 5: Running the Code

Picture of Running the Code

You should have the Arduino IDE installed (I'm using 1.6.12) , then the first step, it's to download the libraries

Restart the arduino ide, and load the software, you will find the latest version here:

Compile it, upload it, and enjoy it :)

Nice new features will be added soon.


CaptionObvious made it! (author)2016-12-17

I’m working on a Lunar Phase Weather Station

I’ve designed and 3D printed some parts based on this project. My Github Gist has the code.

G4lile0 (author)CaptionObvious2016-12-18

Good toknow that you are creating a version for ESP8266 :)

I plan to add more features soon:

-> Store alarm and setup on the non volatile ram of the RTC.

-> Auto switch from one screen to other after some seconds.
-> date format switchable from D/M/Y or M/2/Y
-> Temperature switchable from Celsius or Fahrenheit
-> Hard-coded DATE alarm, for birthday, anniversary... etc

-> 12/24 hour display switchable

Regarding the crepuscular mode, it's is a Wake-light alarm mode, when you enable it.. moon light will stay off, until 4 minutes to the wake-up alarm, that will start to progressive turn on.

Good luck with your project and thanks for sharing it. :)

Anirudh Ralhan (author)2016-12-03

This is really cool!!!

Hulkco (author)2016-12-03

Hey man your project its amazing!!!

DIY Hacks and How Tos (author)2016-12-03

That is so cool. This would be perfect for anyone would is into astronomy.

About This Instructable




More by G4lile0:Recycled CD Cases: Doll's House // Toy Shelves3Dprinted Lunar Phase Clock
Add instructable to: