CCDASTRO · ASCOM · Version 0.16

Gemini FlatPanel
Driver and Switch Guide

Control the cover, flat-field light, dew heater, brightness mode, and beep from ASCOM clients such as NINA.

Download installer — GitHub release v0.16

Install and connect

This prototype package installs both ASCOM devices. It requires Windows 10 or later, ASCOM Platform 7.1 or later, and Microsoft .NET Framework 4.8 or later.

  1. Disconnect both Gemini devices in all clients and close Gemini setup before installing or upgrading.
  2. Run the installer. On the final page, check Open the driver and Switch usage guide to open this page. You can also open it later from the Start menu.
  3. In NINA’s Flat Panel selection, choose CCDASTRO Gemini FlatPanel. Open its ASCOM setup and select the controller’s actual COM port.
  4. For heater and auxiliary controls, select CCDASTRO Gemini Dew Heater in NINA’s Switch selection.
  5. Connect either or both devices. They share one physical serial connection; disconnecting one leaves it available to the other.

Prototype motion lock: fresh installations start with cover motion locked. Existing settings are retained. Verify the controller’s calibration and arrange supervised setup before enabling movement. Installing this package does not calibrate the cover or unlock motion.

Close the Gemini vendor application before connecting through ASCOM so that it releases the serial port. Connection reads status; it does not change brightness mode or beep.

Flat-panel controls

The Flat Panel device provides cover open/close, cover status, light on/off, and numerical brightness through the standard ASCOM CoverCalibrator interface. The client determines which controls it displays.

Brightness is the light’s numerical level. High brightness in the Switch device selects the separate hardware brightness mode. Use the brightness range reported by the driver in your client.

A requested brightness of zero remains a valid light-on setting: ASCOM reports Ready. Explicitly turning the light off reports Off.

Stopping a moving cover

Stop cover motion sends the controller’s halt command. The cover stays where it stops, which can be partially open. It does not close the cover or resume travel. The driver waits for position readings to confirm that motion has stopped; the interface can remain busy during confirmation. A cover stopped between endpoints is not reported as fully open or closed.

Four Switch controls

ControlHow to use it
Dew heater
ID 0
Legacy Gemini 0–100 command range retained for compatibility. The physical socket has been reported as on/off only. Use an appended SVBONY PWM channel for proportional heating.
High brightness
ID 1
ON requests high brightness mode; OFF requests low brightness mode. One toggle represents both choices.
Beep
ID 2
ON enables the controller beep; OFF disables it. To keep beep enabled, explicitly set this control ON and leave it there.
Stop cover motion
ID 3
ON sends halt and records that request. OFF clears the indicator only. To send halt again, turn it OFF then ON. Clearing it never restarts movement.

Mode and beep indicators show the last requested setting, not verified hardware readback. At a new physical connection their initial OFF indicators are unverified. Set the desired value explicitly. Setup-window commands also update these indicators.

For clients sending numerical values to the binary controls, values below 0.5 mean OFF and values at or above 0.5 mean ON. Values outside each control’s advertised range are rejected. Brightness-mode and beep changes require the cover to be stationary.

What to expect

Traffic while connected

Repeated G/J queries read position and light level; S queries read controller status. Periodic read traffic while a client remains connected is normal. Disconnect both devices and close setup to release the connection.

A control becomes gray or times out

Allow an active movement or halt confirmation to finish. If the problem persists, disconnect both devices, close setup, and check the COM port and driver log. Do not repeatedly issue movement commands when status is uncertain.

Settings and updates

Settings are stored per Windows user in %LOCALAPPDATA%\CCDASTRO\GeminiFlatPanel. Installation and removal retain these settings and do not send hardware configuration commands. This package includes no machine-specific calibration files.

Firmware updates

Existing commands may remain compatible after a firmware update, but compatibility is not guaranteed. Even without new features, firmware can change reply formats, status meanings, endpoint readings, or halt timing. The behavior validated for this prototype used firmware V107; other versions require verification.

Before updating, record the working firmware version and calibration settings, retain a copy of the driver settings, and follow the update instructions from the manufacturer. After updating, reconnect and arrange supervised checks of cover status, opening and closing, halt, light brightness, and Switch controls before unattended use. Keep beep enabled if that is your preference; do not toggle it off merely as part of a routine check.

The driver compares firmware identification and controller limits with the verified baseline before opening or closing. A detected mismatch blocks movement, enables the motion lock, and clears locally remembered endpoint positions. Controller-limit fallback for endpoint recognition also requires a matching baseline. These checks cannot detect every possible firmware behavior change and do not replace physical validation.

If movement is blocked after an update, inspect and revalidate calibration and compatibility before re-establishing the verified baseline through supervised setup. Do not simply bypass the lock. A driver update may be needed if controller behavior has changed.

Validation of this prototype

Version 0.11 passed 201 simulated assertions and the Switch Conform property, method, and write tests, including fractional values, with no reported errors or issues. CoverCalibrator property and method tests passed on version 0.10; version 0.11 adds Switch rounding and version metadata changes. Performance stress tests were disabled. These results are development validation, not a claim of ASCOM certification.

SVBONY controls and NINA sequences

Install the SVBONY ASCOM Switch driver separately. Disconnect Gemini Switch clients, open Gemini setup, choose Choose SVBONY driver, then configure the vendor COM port through Properties.

In NINA select CCDASTRO Gemini FlatPanel for the Flat Device and CCDASTRO Gemini Dew Heater for Switch. The Flat Device handles cover open/close and flat-light brightness (0–255).

Gemini controls

Gemini / controls operate the native dew socket, high/low brightness mode, beep, and halt. Native dew remains 0–100 for future firmware compatibility; it does not set SVBONY power. High/low mode and beep indicators show the last requested setting.

SVBONY controls

SVBONY / Dew heater 1 / … (%) is the vendor automatic PWM1 control. SVBONY / Dew heater 2 / … (%) is manual PWM2. Both expose 0–100% in 1% steps; 0 is off and 100 is maximum. The tested combined IDs are 18 and 19. Adjustable voltage remains in volts; other switches and gauges retain vendor behavior.

Example workflow

  1. Connect both NINA devices. Set a Switch value on the desired SVBONY heater, for example 40 for 40%.
  2. Open the cover and keep the flat light off for imaging.
  3. For flats, close the cover, select Gemini high/low mode while stationary, and let NINA set the flat-light brightness.
  4. Turn the flat light off afterward. Set the heater to 0 if heating is no longer needed, and choose the cover position required by your shutdown sequence.

Convert existing raw PWM sequence values to percentages: old value × 100 ÷ vendor maximum, rounded. The tested maximum is 253, so 249 becomes 98%. Reconnect NINA to refresh ranges and names after upgrading.

Shutdown and validation

Version 0.16 fixes the lingering COM server after client disposal. Close all clients and setup windows and allow 10–15 seconds for cleanup before upgrading. An older stuck server may need to be ended once after devices are disconnected. Updates preserve settings and calibration.

668 simulated assertions passed. Installed COM object disposal and server exit were verified without operating hardware. The user confirmed NINA operation and the shutdown fix. Combined-driver Conform certification is not claimed.