telescope_and_observatory_control
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
telescope_and_observatory_control [2024/02/21 18:37] – [Dome control] holtz | telescope_and_observatory_control [2025/05/21 15:20] (current) – holtz | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Telescope control system ====== | ===== Telescope control system ====== | ||
- | Telescope is a Planewave PW1000. | + | Telescope is a Planewave PW1000. |
- | under Windows, and provides a graphical user interface, as well as an ASCOM driver and also a custom | + | |
- | Planewave HTTP API. This is run from a Windows | + | |
- | pwi1m has two network interfaces. One connects to the telescope internal network | + | Software control is through Planewave' |
- | the telescope is 192.168.10.60. | + | |
- | ==== Planewave | + | Normal telescope control is done remotely through the ASCOM interface, but interacting with PWI4 directly provide additional functionality. In particular, PWI4 incorporates its own pointing model software. |
- | On starting PWI4, devices are controlled from the left panel, which has five tabs: Mount/ | + | The telescope |
- | you can enable/ | + | |
- | focuser and enable/ | + | |
- | the Temp tab, you connect the OTA, which allows you to get temperature monitoring, control fans, etc. The M3 tab is used to position the tertiary to the Nasmyth ports: Port 1 is the port with the rotator and | + | |
- | focuser. | + | |
- | {{scope: | + | ===== Camera control system ===== |
- | {{scope: | + | Acquisition camera is connected to pwi1m via USB. PWI4 has the capability to connect to an ASCOM camera, and this is needed for doing pointing models. |
- | {{scope: | + | |
- | {{scope: | + | |
- | {{scope: | + | |
- | {{scope: | + | |
- | You can slew the telescope using the SkyViewer tab: click on the desired location, then confirm with Goto | + | Normal camera control is done remotely through |
- | button. You can also just enter coordinates directly on the Goto tab. Tracking | + | |
- | Temperature tab. Finally, a camera can be controlled | + | |
- | ==== Remote software | + | ===== Observatory control system ====== |
- | Software is implemented so that all devices can be controlled from a single command-line program running on a separate computer, using software in the APOsong repository. Given that all of the devices are on the internal APO network, the main control computer, song1m, is located on this network, and remote operation | + | ==== Dome hardware ==== |
- | can be done using VNC with an openVPN or tunneling connection. On song1m, the software environment is set up for the song user. | + | |
- | The control software | + | The dome has motorized upper and lower slit sections. Control of the upper slit and dome rotation |
- | To access | + | There is an encoder (BEI Motion Systems Optical Encoder E206-1000-3G) coupled to the dome motor drive shaft. |
- | < | + | There is a magnetic home sensor installed on the E side of the dome; the home position when the magnet on the dome lines up with the sensor places the slit at an azimuth of 80 degrees. |
- | from aposong import * | + | |
- | </ | + | |
- | ==== Robotic software | + | ==== Dome control |
+ | Dome control is implemented through software running on a Raspberry Pi, dome1m. . The Raspberry Pi has a RELAYPlates card with 7 relays, which control shutter direction, shutter power, dome direction, dome power, and watchdog reset. These relays connect the control lines to ground. The watchdog timer (Peltec) is set to drop power ~4 minutes after input power is turned off; hence, that relay should be triggered by cycling on/off every 3 minutes or so. Better to cycle instead of leaving it on in case some software failure occurs, but leaves relay energized. | ||
- | ===== Observatory control system ====== | + | 4-pin connector J808A : Watchdog (dome box needs +24V or else shutter will close on Automatic) |
+ | | Dome box | | ||
+ | | 1 | gnd, white | ||
+ | | 3 | +24V DC, purple | 28 | ||
+ | | | | ||
+ | | | | ||
- | ==== Dome hardware ==== | + | Note that connectors J805A and J0806A, both 4-pin, go to a single 9-pin connector, as originally implemented in Autoscope control box. |
- | The dome has motorized upper and lower slit sections. Control of the upper slit and dome rotation is done through a custom relay box on the S side of the dome constructed by the Autoscope Corporation; | + | connector J805A : Supplies power and ground to box, and relay for dome power (org yel blu wires) |
+ | |J805A pin | 9 pin connector | function | comment | | ||
+ | | 4 | 4 | +24V red | voltage always supplied | | ||
+ | | 3 | 1 | gnd white | ground always supplied | ||
+ | | 2 | 2 |relay 1 grey | trigger connects pin to ground | ||
- | There is an encoder coupled | + | connector J806A : Supplies (redundant? |
+ | |J806A pin | 9 pin connector| function | comment | | ||
+ | | 4 | 9 |+24 red | voltage always supplied | | ||
+ | | 3 | 8 | gnd white | ground always supplied | ||
+ | | 2 | 7 | relay 3 brown | trigger connects pin to ground | | ||
- | There is a magnetic home sensor installed on the E side of the dome; the home position when the magnet on the dome lines up with the sensor places the slit at an azimuth of 80 degrees. | + | connector J807A : Supplies relays for shutter power and direction |
+ | | J807A pin| function | comment | | ||
+ | | 2 | relay 2 purple | trigger connects pin to ground | | ||
+ | | 3 | gnd black| ground always supplied | | ||
+ | | 4 | relay 4 orange | trigger connects pin to ground | | ||
+ | | 5 | gnd black | ground always supplied | | ||
- | ==== Dome control | + | ===== Encoder ===== |
- | + | ||
- | Dome control is implemented through software running on a Raspberry Pi (dome1m). Initial implementation controls dome motors through the Autoscope box with Opto 22 relays, but goal would be to just control the dome relays directly. The Raspberry Pi has a RELAYPlates card with 7 relays, which control shutter direction, shutter power, dome direction, dome power, and watchdog reset. These relays connect the control lines to ground. | + | |
- | The dome encoder gets +5V and ground from the RPi, and receives 5VDC signals from the A and B phases of the quadrature encoder. These are wired into RPi GPIO ports through a level converter that converts 5V to 3.3V. | + | The dome encoder gets +5V and ground from the RPi, and receives 5VDC signals from the A and B phases of the quadrature encoder. These are wired into RPi GPIO ports through a level converter that converts 5V to 3.3V. DC +5 and ground are connected to RPi power, A and B outputs are connected to level shifter input channels; level shifter output channels are connected to RPi GPIO pins. An independent ground from the |
- | DC +5 and ground are connected to RPi power, A and B outputs are connected to level shifter input channels; level shifter output channels are connected to RPi GPIO pins. An independent ground from the | + | |
cable shield may be very important, do not ignore! | cable shield may be very important, do not ignore! | ||
Line 75: | Line 75: | ||
| 8 | A | 8 | brn | B1 - A1 - GPIO 5 | | | 8 | A | 8 | brn | B1 - A1 - GPIO 5 | | ||
| | shield| 9 | grey | independent ground | | | | shield| 9 | grey | independent ground | | ||
+ | |||
+ | ===== Home sensor ===== | ||
The home sensor gets +5VDC and ground from the RPi, and receives a signal on a GPIO port that is normally low, but goes high when the home magnet is in proximity to the sensor.S | The home sensor gets +5VDC and ground from the RPi, and receives a signal on a GPIO port that is normally low, but goes high when the home magnet is in proximity to the sensor.S | ||
Line 83: | Line 85: | ||
| grn | +DC | 4 | red | RPi +5V | | | grn | +DC | 4 | red | RPi +5V | | ||
- | ==== Dome software ==== | ||
- | Dome control is implemented through software running on a Raspberry Pi (dome1m). | + | ===== Cabling ===== |
+ | |||
+ | - four-pin AMP to dome box | ||
+ | - four-pin AMP to dome box | ||
+ | - nine-pin AMP to dome box | ||
+ | - four-pin AMP to home sensor | ||
+ | - Ethernet cable | ||
+ | - power cord for power supply | ||
+ | - power cord for Raspberry Pi ? | ||
+ | - ground wire | ||
+ | - cable for lower dome | ||
+ | |||
+ | ===== Old setup for relays ===== | ||
- | Low-level functions are implemented in the APOAshDome.py module. An ASCOM Alpaca interface was implemented using the templates from the [[https:// | + | OLD Setup through Autoscope control box, which uses 5V Opto 22 relays. |
- | Software is archived at [[https:// | + | |
- | User account on dome1m is ocs.To run Alpaca device, cd APOAshdome/ | + | |OCS |RPi | |
+ | |50 grn | 5 | watchdog | | ||
+ | |49 Pur | 7 | | | ||
+ | |48 org | 2 | shutter power | | ||
+ | |47 yel | 1 | dome power | | ||
+ | |2 blu | 6 | | | ||
+ | |3 brn | 4 | shutter direction | | ||
+ | |4 red | 3 | dome direction | | ||
+ | | 42 blk | gnd | | | ||
+ | An ASCOM/ | ||
+ | be started when dome1m is rebooted. | ||
telescope_and_observatory_control.1708540669.txt.gz · Last modified: 2024/02/21 18:37 by holtz