Initial Setup¶
Site Location · NINA Templates · Multi-Point Alignment · Speed Calibration · Worm Gear Calibration · Guiding Calibration
Once Alpaca Pilot is connected to the Polaris, these steps get the most out of the mount. Only the site location is required. The others improve pointing and tracking, and most of them only need doing once.
| Step | When | Needed? |
|---|---|---|
| Site Location | Whenever you change observing site | Required |
| NINA Templates | Once, if you use NINA | Recommended |
| Multi-Point Alignment | At the start of each imaging session | Recommended |
| Motor Speed Calibration | Once, to improve fast movement control | Optional |
| Worm Gear Calibration | Once, to improve unguided and sync-guided tracking | Optional |
| Pulse Guiding Calibration | At the start of each imaging session, if you pulse guide | Optional |
Site Location¶
The driver needs your observing site's latitude and longitude to track accurately. Until they're set, Alpaca Pilot shows a PreSetup warning and won't move the mount. Set them in Alpaca Pilot's Settings, under Observing Site Information, in any of these ways:
- Click on the map. Find your observing site on the map and click it.
- Enter the coordinates. Type the Latitude and Longitude in decimal degrees, north and east positive, based on the World Geodetic System WGS84.
- Locate with a mobile device. Using a phone or tablet, click Locate in its browser to use the GPS location of the device. Browsers only allow this over HTTPS and Location Services must be enabled. See Using HTTPS.
- Locate with the browser. Using a laptop or desktop, click Locate to use the internet location of the device running your browser. Browsers only allow this over HTTPS, or over HTTP when the browser is on the same computer as the driver (
http://localhost). See Using HTTPS. - Locate with a GPS receiver. At a dark site without internet, a USB GPS receiver plugged into the computer running the driver gives the site's latitude, longitude and elevation, over HTTP or HTTPS. See GPS Receiver below.
With internet, Alpaca Pilot fills in the site's elevation, pressure and name from a web service. Without it, the location is named by its coordinates. To keep several sites, click the save icon beside Location, then choose a site from the Location list next time.
Click Save at the top of Settings, so the location is kept after the driver restarts.
Using HTTPS¶
Alpaca Pilot runs over HTTP by default, so your browser may show it as "Not Secure", and restricts some features to HTTPS: location access (the Locate button) and the clipboard (such as the Panorama Grid's Copy button). The one exception is a browser on the same computer as the driver, using http://localhost, which browsers treat as secure.
Alpaca Pilot supports HTTPS from version 2.2. When the driver starts, it creates its own certificates for HTTPS. To use them, install the driver's CA certificate on each device you browse from, then turn on HTTPS in Alpaca Pilot.
Download the Certificate
- Open the Alpaca Pilot Connect page.
- Open the Network Services dropdown dialog.
- Click Download CA Certificate.
Install on Windows
- Open the downloaded
alpaca_pilot_ca.crtfile. - Click Install Certificate.
- Select Local Machine, then click Next.
- Accept User Access Control, click Yes.
- Choose Place all certificates in the following store, then click Browse.
- Select Trusted Root Certification Authorities, then click OK.
- Click Next, then Finish.
Install on macOS
- Open the downloaded
.crtfile — Keychain Access will launch automatically. - Add the certificate to the System keychain.
- Locate
alpaca-pilot-cain the certificate list and double-click it. - Expand the Trust section and set When using this certificate to Always Trust.
- Close the dialog and enter your password to confirm the changes.
Install on iOS
- Open the Alpaca Pilot Connect page in Safari and download the CA certificate (Safari will prompt that a profile is ready to install).
- Go to Settings → General → VPN & Device Management, tap the alpaca-pilot-ca profile, then tap Install in the top-right corner (you'll be prompted for your device passcode).
- This alone is not enough — the CA is installed but not yet trusted. Go to Settings → General → About → Certificate Trust Settings.
- Under Enable Full Trust for Root Certificates, toggle alpaca-pilot-ca to on.
Restart Your Browser
- Chrome: Navigate to
chrome://restart - Safari: Fully close Safari (swipe it away from the App Switcher)
-
Firefox:
- Open
about:config - Search for
security.enterprise_roots.enabled - Set the value to
true - Restart Firefox
- Open
Enable HTTPS
- Open the Alpaca Pilot Connect page.
- Open the Network Services dropdown.
- Select HTTPS, then click Save.
- The Driver will restart with HTTPS enabled.
- Alpaca Pilot will detect the restart and redirect to HTTPS.
Certificate Warnings
If you're upgrading from an earlier driver version and still see certificate warnings or connection failures after following the steps above, the browser or the OS may be holding onto stale security state from before the upgrade.
On Windows, do a full power-off rather than Restart. Windows 11 enables "Fast Startup" by default, which hibernates the session instead of fully reinitializing it on Restart. Leftover network state can persist across a restart; only a genuine power-off clears it.
On any device that connected to an earlier version of the driver, also clear that browser's site data
- Chrome/Edge: Settings → Privacy and security → find the site under "All sites" and delete its data;
- Safari on iOS/iPadOS: Settings → Safari → Clear History and Website Data
GPS Receiver¶
A USB GPS receiver plugged into the computer running the driver sets the site's latitude, longitude and elevation from GPS satellites, with no internet or HTTPS needed. It's the easiest way to set an accurate location at a dark site without internet. Any receiver that outputs standard NMEA sentences works, such as the inexpensive u-blox receivers.
Connecting the receiver:
- Plug it directly into the computer running the driver. A cheap USB hub, and cameras or USB 3 cables close by, can block the GPS signal completely. In testing, a receiver that got a fix plugged directly into the computer never got one through a hub shared with a guide camera.
- Give it a clear view of the sky. Its first fix after being plugged in can take several minutes.
Locating:
- In Settings, click the arrow beside Locate and choose Use GPS Receiver.
- Leave Connection to GPS Receiver as USB / Serial (NMEA), and choose the Serial Port. GPS receivers are marked in the list, and if only one is plugged in it's chosen for you.
- Leave Baud Rate at
9600unless your receiver's documentation says otherwise. u-blox receivers ignore it. - Click OK, then Locate (GPS). The button shows its progress while it waits for three matching GPS fixes, then sets the latitude, longitude and elevation.
Linux and Raspberry Pi notes:
- u-blox receivers appear as
/dev/ttyACM0, and receivers with a CH340 USB-serial chip as/dev/ttyUSB0. To check, runls /dev/ttyACM* /dev/ttyUSB*. - The user running the driver must be in the
dialoutgroup to read the receiver. The Raspberry Pi's defaultpiuser already is. To check, rungroups. - On a Raspberry Pi Zero 2 W, plug the receiver into the micro-USB port marked USB with an OTG adapter, not the PWR port.
GPS Daemon (GPSD), Linux only: GPSD is a Linux service that shares a GPS receiver between programs, for example with KStars/Ekos, or to keep the computer's clock on GPS time. Use it only if you need that: while GPSD is running it holds the receiver, so choose GPS Daemon (GPSD) in Alpaca Pilot rather than USB / Serial.
-
Install gpsd and its status client. On a Raspberry Pi, run:
The-goption adds the gpsd packages to setup's package installation; it doesn't select GPSD in Alpaca Pilot. On other Linux systems, install thegpsdandgpsd-clientspackages. -
Configure gpsd to use the receiver. Find its stable USB path with
ls -l /dev/serial/by-id/, then set it in/etc/default/gpsd, for example: -
Start gpsd and confirm the receiver has a fix:
Exitcgpswith Ctrl+C after confirming it reports a fix. -
In Alpaca Pilot's Settings, click the arrow beside Locate, choose Use GPS Receiver, and set Connection to GPS Receiver to GPS Daemon (GPSD). The defaults (host
127.0.0.1, port2947) are correct when gpsd runs on the same computer as the driver. Click OK, then Locate (GPS).
NINA Templates¶
The driver comes with two NINA Advanced Sequencer templates that run Multi-Point Alignment and the Worm Gear Calibration for you. They're in the driver's utility/nina folder, and on GitHub. To install them:
- In NINA's Plugins tab, install the Device Actions and Commands plugin, then restart NINA. The templates use its Device Action instruction to control the mount.
- In NINA's Advanced Sequencer, click Load Complete Sequence from JSON file, and open
Multi-Point Alignment.template.jsonfrom the folderC:\Users\<Username>\alpaca-benro-polaris\utility\nina, by default.
- Click Save current instruction as template, on the sequence instruction title bar, to the right of the
Multi-Point Alignmentheading.
- Repeat steps 2 and 3 for
Slew, Center, PEC, SyncGuide.template.json. - Repeat steps 2 and 3 for
Worm Gear Calibration.template.json.
Both templates now appear in the Advanced Sequencer's Templates list, ready to drag into a sequence.
Multi-Point Alignment¶
VIDEO DEMO: 24 - Multi Point Alignment and Tripod Tilt
Multi-Point Alignment builds a model of how the mount is set up from several plate-solve syncs, and corrects for tripod tilt, polar misalignment and cone error. Without it, the driver uses Single-Point Alignment, where one sync aligns the mount but the tripod must be accurately level (see Alignment Models).
Align at the start of each imaging session. The model is saved, so it survives restarting the driver or the computer, but redo it whenever you move or re-level the tripod. Also redo it if tracking or pointing gets noticeably worse, or if the sync points are from an earlier night, as the tripod may have settled or shifted since.
Before you start:
- Complete the Connect page's steps in Alpaca Pilot: Astro Mode, reset the axes, and skip the compass and single star alignment (see Astro Mode Setup).
- Level the tripod as well as you can.
- Focus the camera, for example with NINA's Autofocus.
- Set up plate solving in your imaging app, and check that a manual plate solve and sync works (see Plate Solving in the NINA guide).
Aligning with NINA¶
Run the Multi-Point Alignment template. It resets the model, starts tracking, then slews to the celestial pole and five points around the sky, plate solving and syncing at each.
Before running it the first time, adjust it for your site:
- The pole: the first and last
Polaris:SlewAbsoluteinstructions slew to{"az":180,"alt":33,"roll":0}, the pole for a site at 33° south. Setaltto your latitude without its sign, andazto0in the northern hemisphere or180in the southern. - The other points: move any that trees or buildings block, keeping them spread around the sky. In the northern hemisphere, spread them around north.
- The filter: the template starts by switching to the L filter. Change this to suit your filter wheel, or delete it if you don't have one.
Aligning Manually¶
You can also build the model yourself: point the mount at several places spread across the sky, and add each one to the model with a plate solve and sync from your imaging app (see Manual Plate Solving in NINA, or Plate Solving in CCDciel). Without plate solving, sync on a known star (see Sync with a Target) or a landmark (see Adding Sync Points) instead.
You can choose any points, but a point at the celestial pole, and points along your target's path through the night, give the best accuracy for an imaging session:
- Start tracking, from your imaging app or Alpaca Pilot.
- Turn on Multi-Point Alignment on Alpaca Pilot's Alignment page. To reset an old model, switch to Single-Point Alignment, which clears the sync points, then back to Multi-Point Alignment.
- First sync. Plate solve and sync wherever the mount is pointing. The mount is now aligned.
- Celestial pole. Search for "pole" in Alpaca Pilot's catalog, goto it, and wait for the mount to stop. Then plate solve and sync. A point at the pole keeps the model accurately polar aligned.
- Along the target's path. Goto your imaging target, then plate solve and sync. For a long session, also add a point where the target will be later: decrease its Right Ascension by an hour or two (enter
d-2in Alpaca Pilot's Right Ascension setpoint), plate solve and sync, then goto the target again.
Reviewing the Model¶
On Alpaca Pilot's Alignment page, each sync point shows a residual: the angle between where the mount reported it was pointing and where the model, from the other sync points, predicts it was. A very good model has residuals of arc seconds, with none of arc minutes or whole degrees.

Residuals over 5° are flagged Amber, and over 10° Red. These points pull the model's accuracy down across the whole sky, so review them for deletion. They're usually caused by poor centring before the sync, the mount moving during it, sync points clustered together, an incorrect site location, or the tripod moving.

Delete a sync point by clicking the cross beside it. If the mount is tracking, it moves to where the adjusted model thinks the target is. If that's off target, plate solve and sync again.
If you use the Alpaca Rotator, also sync the Position Angle once per session: NINA doesn't sync the plate-solved Position Angle, so enter it on Alpaca Pilot's Alignment page (see Adding Sync Points).
Motor Speed Calibration¶
VIDEO DEMO: 32 - Calibrating Speed Control for your Polaris
The driver works well with its default motor speeds, but measuring your own mount's speeds makes slews more accurate and tracking smoother. It only needs doing once, and can be done during the day. For how the calibration is used, see Motor Speed Calibration in the Control Reference.
Preparing: make sure the mount can move freely, and remove the camera and any other payload.
Running the tests:
- In Alpaca Pilot, open Calibration under Performance Tuning in the side menu.
- Select a motor: M1 (Azimuth), M2 (Altitude) or M3 (Rotation, the Astro Axis). Each motor has its own calibration.
- Click Test. With no test selected, the driver tests every speed, measuring the motor's actual speed at each.
- Watch each test complete in the table. Click Abort to stop at any time.
Reviewing the results: the table shows each test's commanded speed, measured speed, % change from the baseline, and standard deviation. A low % change and a low standard deviation mean a reliable test. If a test shows a high standard deviation or an unexpectedly large change, select it and click Test again to retest that speed.
Approving the results: select the tests to approve, or leave them all unselected to approve everything, then click Approve. The driver uses the approved speeds instead of its defaults from then on.
Rerunning tests: to rerun tests, select their checkboxes, click Test and confirm. Tests marked HIGH STDEV or HIGH CHANGE (more than 25% from the default) can't be approved: rerun them, or leave those speeds at their defaults. M3 is the hardest motor to measure, as it reports its position less often, so if its results stay unreliable, leave it at its defaults and let the PID controller correct for it. To reset every motor to its defaults, delete data/speed_testdata.json, and restart the driver.
Worm Gear Calibration¶
Each motor's worm gear makes the view wobble by 30 to 150 arc seconds, repeating every 6° of the motor's rotation. PEC Worm Gear Correction cancels this wobble using a profile of your mount's gears, which this calibration measures. Of the two calibrations, it gives the biggest improvement, both unguided and with sync guiding, especially at longer focal lengths (see Periodic Error Correction).
The profile only needs measuring once, and again if you image with a very different lens. The driver combines up to five of your most recent approved tests, so repeating the test on another night improves the profile.
The M1-M2-M3-WORM-PROFILE test moves the mount to about 50 positions up to ±7.5° from where it starts, and at each one waits for a plate-solve sync to measure where it really points. It takes about 20 minutes.
Before you start:
- Choose a lens that gives an image scale of 2 to 5 arc seconds per pixel, which for most cameras is a 100 to 300 mm lens. For example, a 200 mm lens on an IMX585 camera gives 3 arc seconds per pixel over a 3.2° × 1.8° field.
- Set the lens in Alpaca Pilot's Settings: Focal Length and Focal Ratio, for example 200 mm and f/4. Each lens keeps its own profile, so if these are left at the defaults, the test is filed under the wrong lens.
- Point the mount 30 to 45° above the horizon in the eastern or western sky (azimuth roughly 45 to 135° or 225 to 315°), at a field with plenty of stars and about ±9° of clear sky around it. Avoid due north or south and the area around the celestial pole.
- Use short plate-solve exposures, such as 1 s, with plenty of stars, so each plate solve is quick and reliable.
Run the calibration before Multi-Point Alignment, as the syncs at the end of the test add stray alignment points that a fresh alignment clears.
Measuring with NINA¶
Run the Worm Gear Calibration template, and let it finish. It starts the test, waits while the driver rotates the camera, then plate solves and syncs every few seconds until the test is done.

Measuring by Hand¶
- Set up your imaging app to plate solve and sync repeatedly, about every 10 seconds, for about 20 minutes, and start it.
- In Alpaca Pilot, open Calibration under Performance Tuning, select the M1-M2-M3-WORM-PROFILE test, click Test and confirm. The driver starts tracking and rotates the camera to a roll of ±45°, then steps through the positions.
- When the test finishes, stop the syncs.
If the test log shows many syncs discarded as "motors not settled", lengthen the wait between syncs a little.
While the test runs, with either method, don't guide, slew, park or jog the mount, as any of these stops the test. Your syncs are only used as measurements, and don't change the alignment model. If no sync arrives for a minute, the test stops with NO DATA. You can click Stop at any time.
Reviewing the Result¶
The results show each motor's measured wobble, for example M3 85"@224 (85 arc seconds of wobble, peaking at 224° of the worm's cycle), and how reliable each measurement is. A motor shown as off couldn't be measured reliably, and gets no correction. For how to read every column, see Worm Gear Correction in the Kinematics Reference.
- If the result looks reliable, click Approve, then switch on PEC Worm Gear Correction in Settings. Click Approve again to reject the test, as often as you like.
- Reject tests spoilt by cloud, wind, or a motor reversing during the test.
- Approve or reject tests before you align for the night, then do a fresh Multi-Point Alignment: the test moves the mount well away from your alignment points. Approving, rejecting or switching the correction while guiding can shift the pointing by up to the measured wobble, and restarts PEC Drift Correction.
- To improve the profile, repeat the test on other nights and at different positions. Testing on both sides of the meridian lets the driver build separate profiles for each direction a motor turns.
Verifying the Correction¶
- On Alpaca Pilot's Kinematics page, the PEC Worm row shows the correction applied to each motor. It changes as the motors turn, M1 fastest while tracking.
- On the same target, compare PHD2's RMS guiding error, or the size of the guide corrections, with PEC Worm Gear Correction on and off, for 10 to 15 minutes each. Switching it restarts PEC Drift Correction, so allow for that. With the correction on, the slow, regular oscillation in the guide corrections should shrink or disappear.
- In PHD2 Log Viewer, use frequency analysis to compare the peak at the worm period, typically around 34 minutes (about 2,000 seconds), though it varies with the target's position. With the correction working, the peak should be much smaller or gone.
Pulse Guiding Calibration¶
If you pulse guide with a guide scope and guide camera, your guiding app must first calibrate: it sends guide pulses to the driver and watches how far, and in which direction, the guide star moves. From this it learns how to turn the guide star's drift into corrections in Right Ascension and Declination.
On the Benro Polaris, each guide pulse becomes a mix of movements of all three motors, and that mix changes across the sky and with the camera's Position Angle. So calibrate at the start of each imaging session, near your imaging target, and again if guiding becomes unreliable or you image a target in a very different part of the sky. In PHD2, connecting to the Alpaca Rotator lets one calibration last the night.
For how to calibrate, see:
- PHD2: Calibration in the Pulse Guiding guide, including when to re-calibrate.
- CCDciel: Guider Calibration in the CCDciel guide.