Skip to content

An Arduino-based controller for Celestron CG5-series equatorial mounts

License

Notifications You must be signed in to change notification settings

juanmb/nextdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextDriver

An Arduino-based controller for Celestron CG5-series equatorial mounts.

Disclaimer

⚠️ This is a work in progress! ⚠️

No stable version was released yet, so you can expect some critical bugs to occur. It shouldn't be used in unattended telescopes!

Currently NextDriver was tested only with KStars/Ekos using the Celestron NexStar INDI driver to control a Celestron CG-5 GT Advanced Series mount.

Description

NextDriver is a USB controller for the Celestron NexStar AUX protocol implemented in Arduino. The Arduino replaces the hand controller, receiving the commands from the PC (HC procotol) and controlling the mount (AUX protocol).

With NextDriver you won't need a hand control to control your Celestron mount anymore. It allows a fully remote operation of the mount by removing the tedious manual startup proceeding.

Documentation on the NexStar HC and Aux protocols:

LEDs

  • Dual color red-green status LED:
    • Red: time not set
    • Yellow: time set. no synced/aligned
    • Green: synced/aligned
  • Green LED: slewing
  • Red LED: Error (limits, communication)
  • Yellow: not used yet

Hardware

Required parts:

Features

  • Home (index) sensors to allow remote startup without requiring manual alignment
  • Limit sensors to avoid collisions beween the telescope and the mount
  • Automatic meridian flip when slewing to a target
  • Home and abort buttons
  • Status LEDs

Supported HC commands:

  • GetEqCoords
  • GetAzCoords
  • GetPierSide
  • SyncEqCoords
  • GotoEqCoords
  • GotoAzCoords
  • GotoInProgress
  • CancelGoto
  • IsAligned
  • SetTrackingMode
  • GetTrackingMode
  • SetLocation
  • GetLocation
  • SetTime
  • GetTime
  • GetVersion
  • GetVariant
  • GetModel
  • Hibernate (not working yet)
  • Wakeup
  • Echo
  • PassThrough

Building

The code is built using PlatformIO, so you'll need to install it in order to build the Arduino firmware and upload it to the board.

Test the code in your computer (it does not require an Arduino board):

pio platform install native
pio test -e native

Build the firmware for Arduino UNO (default target):

pio run

Program the board:

pio run -t upload

Current limitations

Currently, only CG-5 mounts in the North hemisphere are supported.

About

An Arduino-based controller for Celestron CG5-series equatorial mounts

Topics

Resources

License

Stars

Watchers

Forks