Concept:
Mount a horizontal mirror on a bracket to the outside window frame of a south-facing window. The mirror reflects a spot of light on the ceiling, the mirror acting as an aperture.
When the sun is shining, mark the position of the reflected sun spot at many recorded times/dates through the year, as calibration reference points
Bolt a Raspberry-Pi-driven twin axis stepper-motor-controlled laser securely to a convenient yet inconspicuous point on the wall (behind the TV)
Manually drive the laser spot to each of the recorded calibration spots, recording the commanded laser turret Az/El for each one.
Derive a geometry model linking the sun's azimuth and elevation, the aperture mirror's position (and its possible horizontal mounting angle errors), and the ceiling height to give the x, y position of the sun spot on the ceiling.
Derive a geometry model linking the laser turret's position, az/el reference offsets, any possible mounting angle errors, and the rotating laser arm geometry with the x, y position of the laser spot on the ceiling. There are around 12 parameters known only approximately.
Use the skyfield Python library to generate the solar direction for each of the reference calibration time/dates
Use hill-climbing to iteratively adjust the model's 12 parameters to minimise the discrepancies between solar x, y and laser x, y across all the reference points
Now we have a model that can drive the laser spot to the (expected) position of the sun spot for any time/date (even without the sun shining).
Holding the time of day fixed, drive the laser to the position (for that time) on each day of the year through the leap year cycle, to lay out the analemmatic curves on the ceiling for that time. Repeat at 10-minute intervals.
Now you have a sundial on the ceiling, with the reflected spot showing clock time!
And if the sun is not shining, turn on the laser, with the Raspberry Pi driving to the current time/date - it shows where the sun spot would be!
There were many challenges with this project, which was terminated when we moved house. Read all about it in this BSS Bulletin article
With Raspberry Pi
TV showing Raspberry Pi console output
Pan stepper not vertical?
Tilt stepper sagging?
Laser on arm, with 'splay'?