Here’s a device I made, just because. It’s an electromehanical display showing the current phase of the moon. Overall, it’s about 13" x 15" in size.
The terminator that divides the lit portion of the moon photo from the portion that’s in shadow is the strap part of a stainless steel “zip tie.” It runs between two pivots, one at the top of the moon photo and one at the bottom. The strap begins in the top pivot, crosses the photo of the moon, and passes through the pivot at the bottom. How much of the strap’s length is exposed as it crosses the moon photo and the angle it makes as it emerges from the pivot at the bottom are controlled by two geared down stepper motors. Because the strap is springy, it’s possible to approximate the shape of the terminator on the real moon by adjusting the strap’s exposed length and angle of emergence. In the photo above, for instance, the strap is forced to emerge pointing to the left and enough of it is shoved out to force it to curve appropriately (more or less) for today’s moon phase…
To light the moon photo there are two white LED “cobs,” one hidden under the front panel on the left, and the other on the right. Which is lit and how brightly depends on the phase of the moon and how bright the ambient light is in the room. When the lights are off at night, for instance, the display’s lights go out.
Here’s what the device looks like from the back.
The shiny thing in the middle is a stepper-motor pulley driving a toothed belt that adjusts the angle of the lower pivot, the blue circle just below it. Attached to the pivot is a leadscrew assembly driven by another stepper motor that controls how much of the strap is shoved out. You can see the leadscrew assembly sticking out at about the 8 o’clock position
Here’s a better view of the leadscrew assembly and the lower pivot drive.
To make it all go, I used a Raspberry Pi Pico W microcontroller, a custom PCB and a bunch of custom code. The microcontroller connects to the Internet to get the time and date which it needs to calculate what the current moon phase is.