Star lamp

a 3D-printed hemisphere for an artificial night sky

For us city dwellers, a good night sky is a rarity. So, as a birthday gift for someone special, I decided to make a hemispherical dome that, when lit from inside, would project a night sky onto the room ceiling. It would be nowhere close to a planetarium because diffraction would blur the light from the star holes, but I hoped it would come close.

So, I decided to 3D-print the dome. Instead of picking data from an already available source, I decided to take it up a notch (as if this was not challenging enough). I decided to write a piece of code that would take a date and generate an STL file of a hemispherical dome with the stars and constellations for that particular night. And that is what this project is about.

I spent about 1–2 months’ worth of weekends on this project :sweat_smile:! But it was so much fun! I learned about the celestial coordinate system and how to calculate the position of every star in the sky for a particular date. I then made holes in a hemisphere based on each star’s brightness (yeah, very coarse). Ideally, because bright stars typically form constellations, I should be able to see them in the star lamp. To have a cheat sheet showing the constellations, I decided to engrave them on the outside of the hemisphere (adding a few more weekends as well :stuck_out_tongue_winking_eye:). But it worked out, and I got everything working! :nerd_face:

The result was a large SCAD file that took hours to compile. I made a miniature version, and it looks promising. I still need to find photos of it and the light source. Meanwhile, here are some screenshots of the source file for the 3D printer.

Doesn’t it look cool? :sunglasses:

The top (left) and bottom (middle) views of the hemisphere, showcasing both the stars and the constellations. In the final version (rightmost image), the stars are the only through-holes, and the constellations are engraved on the outside of the hemisphere.

Here is the code for it, in case you want to check it out. I still hope to print a bigger version. Let me know if you beat me to it!