Train PEC for Celestron mounts
Project description
PECTrainer
PECTrainer
is a python tool to train Periodic Error Correction (PEC) on Celestron telescope mounts. It is similar to the earlier PECTool but with some additional features. It works together with an autoguider to record and average multiple worm cycles of the mount behavior to provide a reliable table of corrections to improve tracking.
Caveats
- Only works with Celestron mounts and only those that support PEC
- Only works with computer connection through the handcontrol (not directly into the mount's USB port)
- Does not work when connecting to the mount through CPWI as the ASCOM driver
- Requires an autoguider (app, device, or human making corrections) to guide on a star
Requirements
- Python 3.7+
- Most likely requires Windows currently
Installation
- Execute
python -m pip install pectrainer
at a command line - (If you are familiar with python environments you may create one specifically for
PECTrainer
or choose an existing one)
Preparation for use
- Connect the computer to the mount through the handcontrol
- Start and align the mount using the handcontrol
- Make sure the mount is polar aligned to within a few arc-minutes (nothing crazy)
- Prepare the autoguider so it is able to guide, but don't start guiding yet
- Use the handcontrol to find the PEC index (recommended at this point but can be done later)
Performing the PEC training
- Use the command line to go to a directory where you want to run and store PEC logs
- Start
pectrainer
at a command line by typing the commandpectrainer
- Connect to the mount's ASCOM driver (probably
Celestron Telescope Driver
) - Select the number of cycles to train (the average of all cycles will be automatically loaded to the mount when the cycles complete)
- Confirm the
Seek index
is checked. If not, click the checkbox to have the mount move a bit in RA to find the index and approximately return - hence the recommendation to do it immediately after aligning the mount - Choose a star to guide on and enable autoguiding with the guiding app or device (or manually guide with either the handcontrol or the ASCOM slew controls set to 0.5x sidereal rate)
- Press
Start training
to begin the training - While the first cycle is recorded no graph will be shown but the progress gauge will begin to increase
- At the end of each cycle the graph will be updated with all previous curves, plus the current average in black
- Each worm period will take a few minutes - with time dependent on the type of mount
- When complete the average curve will automatically be uploaded to the mount
- To start playback of the recorded PEC curve, press
Enable mount PEC playback
, or enable playback using the handcontrol - You are now done and can exit
- The PEC graph may be displayed either as a normal PE curve in arc-sec, or as a changing rate over time in arc-sec/s. Here is a view as rate. Note that the gearbox term shows clearly as a sinusoid with approximately 21 second period. Other mounts will show different periods
Additional features
- You may download and view the current PEC curve in the mount using
Download from mount
- A new
PEC_*.json
file is created in the current directory every time you pressStart training
and it is updated with data for each cycle as it comes in - The stored
PEC*.json
files may be loaded and viewed later, and optionally uploaded to the mount - You may press
Stop training
if the accumulated curves look good enough and pressUpload
to manually load the current average to the mount
For best results
- Polar align the mount well, but no need for perfection. Within a few arc-minutes is fine.
- Autoguide on a star high up but reasonably near the equator - within 20 degrees perhaps. You want to be close to the equator so the star is moving across the sky quickly, and high up so the seeing is better.
- Use a short guide period of 1 second or so if possible. MetaGuide works well for this. Each PEC measurement is a few seconds long, and for a mount such as the
CGX-L
the gearbox terms around 21 seconds long are in phase on each cycle. This means the PEC table can capture and correct such fast terms, but only if the guide exposures are short enough and the guide corrections happen around once per second. - For best results record and average 6 or more cycles on a night with good seeing.
- The Celestron StarSense Autoguider should also work well for PEC training because it makes rapid guide corrections.
- If the mount has gearbox terms that have the same phase on each cycle, they will stack on top of each other and show clearly in the average. This is good and it means the PEC can smooth out the gearbox term.
- ... But in contrast, if the gearbox terms are not in phase they will be different in each cycle and they won't stack in the average. This means you should average many cycles so that the gearbox terms average out. The PEC won't be able to smooth out the gearbox term - but at the same time the PEC curve won't have a residual gearbox term that would make tracking worse.
Notes
- Make sure your mount is Celestron and has support for PEC
- Behavior on SynScan mounts is unknown, but it may work
- Once the mount is trained you can use the mount normally and you don't need to connect through the handcontrol. You can also remove the handcontrol and use a different alignment app such as CPWI
- There are issues with knowing if PEC playback is currently enabled, so the state is not displayed in the GUI. When done with training, make sure the PEC playback is really happening by enabling it with the handcontrol or CPWI
- Any drift in the PEC curves will be removed from the displayed plot and from the curve loaded to the mount
- Declination guide corrections have no impact on the recorded curve
- Some mounts don't guide well when PEC playback is enabled, but for Celestron mounts it can greatly improve guiding - particularly if the gearbox term is smoothed out
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pectrainer-1.0.0.tar.gz
(14.3 kB
view details)
Built Distribution
File details
Details for the file pectrainer-1.0.0.tar.gz
.
File metadata
- Download URL: pectrainer-1.0.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0559f6eb8705e4263cae17396474706c2433c97a33819121da52e8b9270861a9 |
|
MD5 | 6322bcf55c6deea273a332ace03e9f16 |
|
BLAKE2b-256 | 2dd7df1615de51bfa887087fddbf0c04edacbc92d54e152c4472d0f155bd1255 |
File details
Details for the file pectrainer-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pectrainer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39c617bf107a5b7b6de93e6200f43671047c2bf50af33a087ee501040232ddd8 |
|
MD5 | 14735ee6fde6823a57b545045c8f57ec |
|
BLAKE2b-256 | d20880d6714039b324b657cc95ec77594eb675e33e04b384bc2f9743c0b45f21 |