AlpacaPi

Drivers

Home SkyTravel Drivers Client Apps Moon Phase SkyImage AAVSO
AlpacaPi is the name I have given to my suite of Alpaca drivers and clients.

The drivers are probably the most important piece to the puzzle. Once the driver is running for a particular device, then any program that speaks Alpaca can utilize that devices. This also includes a web browser. However you can not send action commands to the driver from a web browser. You can read all of the status.

The AlpacaPi drivers run on Linux and were designed with the Raspberry-Pi in mind. They will run on most any flavor of linux.

AlpacaPi drivers currently support the following devices.


Client and server operation

To utilize any of the drivers, first you have to build the driver and run it. Then you run the appropriate client program to access that driver. In my environment, there are normally on separate machines, the driver running on a Raspberry-Pi and the client program running on my Linux desktop computer. They can also be on the SAME machine.

For example, if you want to utilize the 4 port switch (described below), follows these steps:

You should then get a screen like the screen samble below:
Dome Focuser Switch

Dome driver

The AlpacaPi dome driver supports the following configurations: A watchdog timer is also supported to close the dome if communications is lost.

Remote Shutter

The AlpacaPi dome driver supports the option of a separate drive that controls the door. This allows one device driver to be used for the dome since most client applications can only deal with one. While in reality there are 2 drivers. The primary DOME driver talks to the second driver (SHUTTER).

The SHUTTER devices is a non-standard Alpaca device. It will not be recognized by other Alpaca clients. It responds to the same door/shutter commands as the DOME device.

The AlpacaPi dome driver uses DC motors and a PWM controlled DC power board that handles reversing and power output. It also uses a terminal I/O board for connection to the DC controller and for sensor inputs. The sensor inputs are for door open and door close. Additional inputs can be used for positions in between.

The Raspberry Pi only has one PWM (Pulse Width Modulation) for speed control. I use one R-Pi for dome rotation and a second R-Pi to control the door. This allows the door controller to be mounted on dome and use wireless to talk to the dome rotation controller that is mounted on the wall.

Description Power board build / run commands Notes
DC motor control

Click here for amazon description

Click here for amazon description
make dome

./domedriver

Raspberry-Pi Dome Driver
Hardware configuration
Using BCM Pin numbering
Clockwise button pin23Input
Counter Clockwise button pin24Input
Stop button pin25Input
Direction Control pin27Output
Power PWM pin18Output
Home Sensor pin5Input
Park Sensor pin6Input
NOTE: These pin numbers can be changed, this is the default list.

Switch driver

The switch driver on the Raspberry Pi requires the wiringpi library to be installed. At present, the wiringpi library only works on the 32-bit versions of Raspberry Pi Linux.

Description Relay board build / run commands Notes
8 Relay DIN mount

Click here for amazon description
make piswitch8

./piswitch8

4 Relay

Click here for amazon description
make piswitch4

./piswitch4

WaveShare 3 Relay

Click here for amazon description
WaveShare product page
WaveShare manual
make piswitch3

./piswitch3

This board has inverted logic to the relays.
A logic "0" turns the relay ON.
This may cause issues on start up.
keyestudio 4 Relay
Keyestudio 4 relay
make piswitch4ks

./piswitch4