Observatory Roof Automation

Background and Context

In 2008 the observatory was constructed in the backyard. In its original form, the roof had to be manually opened at the beginning of the imaging sessions and closed in the middle of the night at the end of the sessions. Avoiding the “middle of the night” uncomfortable escapades was one of the many drivers behind the observatory automation project.

The intent was to make the observatory not only remotely operated but also completely automated. The roof needed to be motorized and made computer controlled.

Here are the details about how it was done.

Design

Observatory Roof Automation

The design was inspired by some of “bat wing” type amateur observatories found online. The two panels of the gable roof were to be hinged on each side and opened from the top.

Prototype

In order to test this design, a small scale prototype was built to scale with foam core material for the mock-up observatory and Lego Mindstorms Robotic Invention System for the motor and mechanical aspects.

Unfortunately no picture of the prototype were taken.

Hardware

Roof panel modifications

Four hinges were installed on each panel along with reinforcement brackets. The panels had to be cut to allow fitting of the nuts and bolts.

Structural reinforcement

Reinforcements were added to the back wall to support the opening mechanism and to the roof panels to avoid sagging.

Motor

A “wiper” type motor was selected due to its slow speed.

Rod, Bolt and Bearings

A long threaded rod with a bolt is used to push/pull the roof braces. The rod rides on a bearing at the top and is attached to the motor (see picture above) with a homemade shaft coupler.

Braces

A pair of aluminum braces are used to push/pull the roof panels so they can open and close.

Controller and wiring

Here is the circuit diagram I designed to control the roof.

An Arduino was selected as the controller and installed in an enclosure along with the circuit.

Limit switches

Limit switches were installed at the top and bottom along with a flexible plastic tab that activates the switches.

Software and driver

Arduino sketch and ASCOM driver

Three functions were implemented directly on the Arduino:

openroof

closeroof

getstatus

These functions are being called by the driver I wrote in C# using ASCOM’s template. The driver allows me to use any ASCOM compliant software to control the roof which is in fact the equivalent of a roll-of-roof type.

Reliability

Except for a repair to the aluminum flashing, the system has been running flawlessly for many years now.

Close-up of the observatory metal hinges to allow the roof opening.
Close-up of a metal hinge and screws attached to the observatory roof.
Reinforcement structure for the observatory roof mechanism.
Observatory roof motor.
Observatory threaded rod and limit switch.
Observatory room opening mechanism.
Electrical circuit diagram for observatory roof automation with relays, diodes, and limit switch circuit control.
Electronics inside a control box, featuring an Arduino Uno microcontroller, wired relays, resistors, and labeled wires for circuit connections for the observatory roof automation.
Observatory threaded rod and limit switch.
Observatory roof repairs.
The overview of the observatory roof automation system inside the observatory.
Close-up of a mechanical frame with metal rods that pushes the observatory roof panels open.
Observatory roof opening.
Observatory roof closing.
Observatory roof automation controller.
Limit switch of the roof automation system.
Observatory roof repairs.
Initial technical drawing of the observatory roof automation system.
Metal hinge allowing the observatory roof to open and close.
Aluminum mounting bracket attached to the struts that pushes open and close the observatory roof.
Aluminum mounting bracket attached to the struts that pushes open and close the observatory roof.
Observatory roof completely opened.
Close-up of the aluminum reinforcement brackets holding the observatory roof hinges.
Aluminum mounting bracket attached to the struts that pushes open and close the observatory roof.