Config_save.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. /* ---------------------------------------------------------------------------------------------------------------------------------
  2. * Configuration for OnStepX
  3. *
  4. * For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
  5. * and join the OnStep Groups.io at https://groups.io/g/onstep
  6. *
  7. * *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
  8. *
  9. * ---------------------------------------------------------------------------------------------------------------------------------
  10. * ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
  11. * <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed
  12. */
  13. // Parameter Name Value Default Notes Hint
  14. // =================================================================================================================================
  15. // CONTROLLER ======================================================================================================================
  16. // PINMAP ------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#PINMAP
  17. #define PINMAP MaxSTM3 // OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue, <-Req'd
  18. // MaxSTM3, FYSETC_S6_2, etc. Other boards and more info. in ~/src/Constants.h
  19. #define ONE_WIRE_PIN AUX3_PIN // Override default pin (AUX4) for 1Wire
  20. // SERIAL PORT COMMAND CHANNELS --------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#SERIAL_PORTS
  21. #define SERIAL_A_BAUD_DEFAULT 9600 // 9600, n. Where n=9600,19200,57600,115200,230400,460800 (common baud rates.) Infreq
  22. #define SERIAL_B_BAUD_DEFAULT 9600 // 9600, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
  23. #define SERIAL_B_ESP_FLASHING OFF // OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd. Option
  24. #define SERIAL_C_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
  25. #define SERIAL_D_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
  26. #define SERIAL_E_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
  27. // STATUS --------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#STATUS_LED
  28. #define STATUS_LED ON // OFF, Steady illumination if no error, blinks w/error code otherwise. Option
  29. // RETICLE CONTROL ------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#RETICLE_CONTROL
  30. #define RETICLE_LED_DEFAULT OFF // OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness. Option
  31. #define RETICLE_LED_MEMORY OFF // OFF, ON Remember reticle brightness across power cycles. Option
  32. #define RETICLE_LED_INVERT OFF // OFF, ON Inverts state for cases where 0% is full brightness otherwise. Option
  33. // WEATHER SENSOR --------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#WEATHER_SENSOR
  34. #define WEATHER BME280_0x76 // OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.) Option
  35. // BMP280 (I2C 0x77,) BMP280_0x76, BMP280_SPI (see pinmap for CS.)
  36. // BME280 or BMP280 for temperature, pressure. BME280 for humidity also.
  37. // SIGNALING ------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#SIGNALING
  38. #define STEP_WAVE_FORM SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity. Adjust
  39. // Applies to all axes.
  40. // =================================================================================================================================
  41. // MOUNT ===========================================================================================================================
  42. // Driver models (Step/Dir and Servo) many have specific requirements so be sure to follow the link below to help learn about these.
  43. // Typically: A4988, DRV8825, LV8729, S109, TMC2130, TMC5160, TMC2209, etc.
  44. // AXIS1 RA/AZM -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Axes
  45. #define AXIS1_DRIVER_MODEL TMC2130 // OFF, Enter motor driver model (above) in both axes to activate the mount. <-Often
  46. // If runtime axis settings are enabled changes in the section below may be ignored unless you reset to defaults:
  47. // \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  48. #define AXIS1_STEPS_PER_DEGREE 25066.6688 // 12800, n. Number of steps per degree: <-Req'd
  49. // n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
  50. #define AXIS1_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
  51. #define AXIS1_LIMIT_MIN -180 // -180, n. Where n= -90..-360 (degrees.) Minimum "Hour Angle" or Azimuth. Adjust
  52. #define AXIS1_LIMIT_MAX 180 // 180, n. Where n= 90.. 360 (degrees.) Maximum "Hour Angle" or Azimuth. Adjust
  53. #define AXIS1_DRIVER_MICROSTEPS 64 // OFF, n. Microstep mode when tracking. <-Req'd
  54. #define AXIS1_DRIVER_MICROSTEPS_GOTO 8 // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
  55. // for TMC2130, TMC5160, TMC2209U, TMC2226U STEP/DIR driver models:
  56. #define AXIS1_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
  57. #define AXIS1_DRIVER_IRUN 1000 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
  58. #define AXIS1_DRIVER_IGOTO OFF // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
  59. // /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
  60. #define AXIS1_DRIVER_STATUS ON // OFF, ON, HIGH, or LOW. For driver status info/fault detection. Option
  61. #define AXIS1_DRIVER_DECAY OFF // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
  62. #define AXIS1_DRIVER_DECAY_GOTO OFF // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
  63. #define AXIS1_POWER_DOWN OFF // OFF, ON Powers off 30sec after movement stops or 10min after last<=1x guide. Infreq
  64. #define AXIS1_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from front. Option
  65. #define AXIS1_SENSE_LIMIT_MIN LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
  66. #define AXIS1_SENSE_LIMIT_MAX LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
  67. // Digital, optionally add: |HYST(n) Where n=0..1023 stability time in ms.
  68. // Analog capable sense inputs also allow adding:
  69. // |THLD(n) Where n=1..1023 (ADU) for Analog threshold.
  70. // |HYST(n) Where n=0..1023 (ADU) for +/- Hystersis range.
  71. // AXIS2 DEC/ALT ------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Axes
  72. #define AXIS2_DRIVER_MODEL TMC2130 // OFF, Enter motor driver model (above) in both axes to activate the mount. <-Often
  73. // If runtime axis settings are enabled changes in the section below may be ignored unless you reset to defaults:
  74. // \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  75. #define AXIS2_STEPS_PER_DEGREE 25066.6688 // 12800, n. Number of steps per degree: <-Req'd
  76. // n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
  77. #define AXIS2_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
  78. #define AXIS2_LIMIT_MIN -90 // -90, n. Where n=-90..0 (degrees.) Minimum allowed Declination or Altitude. Infreq
  79. #define AXIS2_LIMIT_MAX 90 // 90, n. Where n=0..90 (degrees.) Maximum allowed Declination or Altitude. Infreq
  80. #define AXIS2_DRIVER_MICROSTEPS 64 // OFF, n. Microstep mode when tracking. <-Req'd
  81. #define AXIS2_DRIVER_MICROSTEPS_GOTO 8 // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
  82. // for TMC2130, TMC5160, and TMC2209U STEP/DIR driver models:
  83. #define AXIS2_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
  84. #define AXIS2_DRIVER_IRUN 1000 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
  85. #define AXIS2_DRIVER_IGOTO OFF // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
  86. // /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
  87. #define AXIS2_DRIVER_STATUS ON // OFF, ON, HIGH, or LOW. Polling for driver status info/fault detection. Option
  88. #define AXIS2_DRIVER_DECAY OFF // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
  89. #define AXIS2_DRIVER_DECAY_GOTO OFF // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
  90. #define AXIS2_POWER_DOWN OFF // OFF, ON Powers off 30sec after movement stops or 10min after last<=1x guide. Option
  91. #define AXIS2_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from above. Option
  92. #define AXIS2_SENSE_LIMIT_MIN LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
  93. #define AXIS2_SENSE_LIMIT_MAX LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
  94. // MOUNT -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#MOUNT
  95. #define MOUNT_TYPE GEM // GEM, GEM German Equatorial Mount, etc. that need meridian flips. <-Req'd
  96. // GEM_TA GEM w/tangent arm Declination
  97. // GEM_TAC GEM w/tangent arm Declination and geometry correction
  98. // FORK Fork Mount
  99. // FORK_TA FORK w/tangent arm Declination
  100. // FORK_TAC FORK w/tangent arm Declination and geometry correction
  101. // ALTAZM Altitude/Azimuth Mount, Dobsonians, etc.
  102. // ALTAZM_UNL ALTAZM w/unlimited Azimuth motion
  103. #define MOUNT_COORDS TOPOCENTRIC // ...RIC, Applies refraction to coordinates to/from OnStep, except exactly Infreq
  104. // at the poles. Use TOPO_STRICT to apply refraction even in that case.
  105. // Use OBSERVED_PLACE for no refraction.
  106. // TIME AND LOCATION ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#TLS
  107. #define TIME_LOCATION_SOURCE DS3231 // OFF, DS3231 (I2c,) DS3234 (Spi,) TEENSY (T3.2 internal,) GPS, or NTP source. Option
  108. // Provides Date/Time, and if available, PPS & Lat/Long also.
  109. #define TIME_LOCATION_PPS_SENSE OFF // OFF, HIGH senses PPS (pulse per second,) signal rising edge, or use LOW for Option
  110. // falling edge, or use BOTH for rising and falling edges.
  111. // Better tracking accuracy especially for Mega2560's w/ceramic resonator.
  112. // STATUS ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#STATUS
  113. #define STATUS_MOUNT_LED ON // OFF, ON Flashes proportional to rate of movement or solid on for slews. Option
  114. #define STATUS_BUZZER ON // OFF, ON, n. Where n=100..6000 (Hz freq.) for speaker. ON for piezo buzzer. Option
  115. #define STATUS_BUZZER_DEFAULT ON // OFF, ON default starts w/buzzer enabled. Option
  116. #define STATUS_BUZZER_MEMORY ON // OFF, ON to remember buzzer setting across power cycles. Option
  117. // ST4 INTERFACE -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#ST4
  118. // *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
  119. #define ST4_INTERFACE OFF // OFF, ON enables interface. <= 1X guides unless hand control mode. Option
  120. // During goto btn press: aborts slew or continue meridian flip pause home
  121. #define ST4_HAND_CONTROL ON // ON, ON for hand controller special features and SHC support. Option
  122. // Hold [E]+[W] btns >2s: Guide rate [E]- [W]+ [N] trk on/off [S] sync
  123. // Hold [N]+[S] btns >2s: Usr cat item [E]- [W]+ [N] goto [S] snd on/off
  124. #define ST4_HAND_CONTROL_FOCUSER ON // ON, ON alternate to above: Focuser move [E]f1 [W]f2 [N]- [S]+ Option
  125. // GUIDING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#GUIDING
  126. #define GUIDE_TIME_LIMIT 10 // 10, n. Time limit n=0..120 seconds. Use 0 to disable. Adjust
  127. #define GUIDE_DISABLE_BACKLASH OFF // OFF, Disable backlash takeup during guiding at <= 1X. Option
  128. // LIMITS ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#LIMITS
  129. #define LIMIT_SENSE OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
  130. #define LIMIT_STRICT OFF // OFF, disables limits until unpark goto or sync. ON enables limits at startup. Option
  131. // note that ON also disables all motion until date/time are set.
  132. // PARKING ---------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#PARKING
  133. #define PARK_SENSE OFF // OFF, HIGH or LOW state indicates mount is in the park orientation. Option
  134. #define PARK_SIGNAL OFF // OFF, HIGH or LOW state park input signal triggers parking. Option
  135. #define PARK_STATUS OFF // OFF, signals with a HIGH or LOW state when successfully parked. Option
  136. #define PARK_STRICT OFF // OFF, ON Un-parking is only allowed if successfully parked. Option
  137. // PEC ---------------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount
  138. #define PEC_STEPS_PER_WORM_ROTATION 0 // 0, n. Steps per worm rotation (0 disables else 720 sec buffer allocated.) <-Req'd
  139. // n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage
  140. #define PEC_SENSE OFF // OFF, HIGH. Senses the PEC signal rising edge or use LOW for falling edge. Option
  141. // Ignored in ALTAZM mode.
  142. #define PEC_BUFFER_SIZE_LIMIT 720 // 720, Seconds of PEC buffer allowed. Infreq
  143. // TRACKING BEHAVIOUR ---------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#TRACKING
  144. #define TRACK_BACKLASH_RATE 20 // 20, n. Where n=2..50 (x sidereal rate) during backlash takeup. Option
  145. // Too fast motors stall/gears slam or too slow and sluggish in backlash.
  146. #define TRACK_AUTOSTART OFF // OFF, ON Start with tracking enabled. Option
  147. #define TRACK_COMPENSATION_DEFAULT OFF // OFF, No compensation or REFRACTION, REFRACTION_DUAL, MODEL, MODEL_DUAL. Option
  148. #define TRACK_COMPENSATION_MEMORY OFF // OFF, ON Remembers refraction/pointing model compensated tracking settings. Option
  149. // SLEWING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#SLEWING
  150. #define SLEW_RATE_BASE_DESIRED 5.0 // 1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from <-Req'd
  151. // 1/2 to 2x this rate, and as performace considerations require.
  152. #define SLEW_RATE_MEMORY ON // OFF, ON Remembers rates set across power cycles. Option
  153. #define SLEW_ACCELERATION_DIST 5.0 // 5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.) Adjust
  154. #define SLEW_RAPID_STOP_DIST 2.0 // 2.0, n, (degrees.) Approx. distance required to stop when a slew Adjust
  155. // is aborted or a limit is exceeded.
  156. #define GOTO_FEATURE ON // ON, Use OFF to disable mount Goto features. Infreq
  157. #define GOTO_OFFSET 0.25 // 0.25, Offset in deg's for goto target unidirectional approach, 0.0 disables Adjust
  158. #define GOTO_OFFSET_ALIGN OFF // OFF, ON skips final phase of goto for align stars so user tends to approach Option
  159. // from the correct direction when centering.
  160. // PIER SIDE BEHAVIOUR --------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#PIERSIDE
  161. #define MFLIP_SKIP_HOME OFF // OFF, ON Goto directly to the destination without visiting home position. Option
  162. #define MFLIP_AUTOMATIC_DEFAULT OFF // OFF, ON Start with automatic meridian flips enabled. Option
  163. #define MFLIP_AUTOMATIC_MEMORY OFF // OFF, ON Remember automatic meridian flip setting across power cycles. Option
  164. #define MFLIP_PAUSE_HOME_DEFAULT OFF // OFF, ON Start with meridian flip pause at home enabed. Infreq
  165. #define MFLIP_PAUSE_HOME_MEMORY OFF // OFF, ON Remember meridian flip pause at home setting across power cycles. Infreq
  166. #define PIER_SIDE_SYNC_CHANGE_SIDES OFF // OFF, ON Allows sync to change pier side, for GEM mounts. Option
  167. #define PIER_SIDE_PREFERRED_DEFAULT EAST // BEST, BEST Stays on current side if possible. EAST or WEST switch if possible. Option
  168. #define PIER_SIDE_PREFERRED_MEMORY ON // OFF, ON Remember preferred pier side setting across power cycles. Option
  169. // ALIGN -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#Align
  170. #define ALIGN_AUTO_HOME OFF // OFF, ON uses home switches to find home first when starting an align. Option
  171. #define ALIGN_MAX_STARS AUTO // AUTO, Uses HAL specified default (either 6 or 9 stars.) Infreq
  172. // Or use n. Where n=1 (for Sync only) or 3 to 9 (for Goto Assist.)
  173. // =================================================================================================================================
  174. // ROTATOR =========================================================================================================================
  175. // Driver models (Step/Dir and Servo) many have specific requirements so be sure to follow the link below to help learn about these.
  176. // Typically: A4988, DRV8825, LV8729, S109, TMC2130S, etc.
  177. // AXIS3 ROTATOR --------------------------------------- see https://onstep.groups.io/g/developer/wiki/Configuration_Rotator_Focuser
  178. #define AXIS3_DRIVER_MODEL OFF // OFF, Enter motor driver model (above) to activate the rotator. Option
  179. #define AXIS3_SLEW_RATE_BASE_DESIRED 1.0 // 1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from <-Req'd
  180. // 1/2 to 2x this rate, and as performance considerations require.
  181. // If runtime axis settings are enabled changes in the section below may be ignored unless you reset to defaults:
  182. // \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  183. #define AXIS3_STEPS_PER_DEGREE 64.0 // 64.0, n. Number of steps per degree for rotator/de-rotator. Adjust
  184. // Alt/Az de-rotation: n = (num_circumference_pixels * 2)/360, minimum
  185. #define AXIS3_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. Option
  186. #define AXIS3_LIMIT_MIN 0 // 0, n. Where n=-360..0 (degrees.) Minimum allowed rotator angle. Infreq
  187. #define AXIS3_LIMIT_MAX 360 // 360, n. Where n=0..360 (degrees.) Maximum allowed rotator angle. Infreq
  188. #define AXIS3_DRIVER_MICROSTEPS OFF // OFF, n. Microstep mode when tracking. Option
  189. #define AXIS3_DRIVER_MICROSTEPS_GOTO OFF // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
  190. // for TMC2130, TMC5160, and TMC2209U STEP/DIR driver models:
  191. #define AXIS3_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
  192. #define AXIS3_DRIVER_IRUN OFF // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
  193. #define AXIS3_DRIVER_IGOTO OFF // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
  194. // /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
  195. #define AXIS3_DRIVER_STATUS OFF // OFF, ON, HIGH, or LOW. For driver status info/fault detection. Option
  196. #define AXIS3_DRIVER_DECAY OFF // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
  197. #define AXIS3_DRIVER_DECAY_GOTO OFF // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
  198. #define AXIS3_POWER_DOWN OFF // OFF, ON Powers off 30 seconds after movement stops. Option
  199. #define AXIS3_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from above. Option
  200. #define AXIS3_SENSE_LIMIT_MIN OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
  201. #define AXIS3_SENSE_LIMIT_MAX OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
  202. // =================================================================================================================================
  203. // FOCUSERS ========================================================================================================================
  204. // Driver models (Step/Dir and Servo) many have specific requirements so be sure to follow the link below to help learn about these.
  205. // Typically: A4988, DRV8825, LV8729, S109, TMC2130S, etc.
  206. // AXIS4 FOCUSER 1 ------------------------------------- see https://onstep.groups.io/g/developer/wiki/Configuration_Rotator_Focuser
  207. #define AXIS4_DRIVER_MODEL TMC2130 // OFF, Enter motor driver model (above) to activate the focuser. Option
  208. #define AXIS4_SLEW_RATE_BASE_DESIRED 1500 // 500, n, Where n=200..5000 (um/s.) Adjustable at run-time from <-Req'd
  209. // 1/2 to 2x this rate, and as performance considerations require.
  210. #define AXIS4_SLEW_RATE_MINIMUM 20 // 20, n. Where n=5..200 (um/s.) Minimum microns/second. Adjust
  211. // If runtime axis settings are enabled changes in the section below may be ignored unless you reset to defaults:
  212. // \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
  213. #define AXIS4_STEPS_PER_MICRON 0.25 // 0.5, n. Steps per micrometer. Figure this out by testing or other means. Adjust
  214. #define AXIS4_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. Option
  215. #define AXIS4_LIMIT_MIN 0 // 0, n. Where n=0..500 (millimeters.) Minimum allowed position. Adjust
  216. #define AXIS4_LIMIT_MAX 80 // 50, n. Where n=0..500 (millimeters.) Maximum allowed position. Adjust
  217. #define AXIS4_DRIVER_MICROSTEPS 4 // OFF, n. Microstep mode when tracking. Option
  218. #define AXIS4_DRIVER_MICROSTEPS_GOTO OFF // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
  219. // for TMC2130, TMC5160, and TMC2209U STEP/DIR driver models:
  220. #define AXIS4_DRIVER_IHOLD OFF // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
  221. #define AXIS4_DRIVER_IRUN 1000 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
  222. #define AXIS4_DRIVER_IGOTO OFF // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
  223. // /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
  224. #define AXIS4_DRIVER_STATUS ON // OFF, ON, HIGH, or LOW. For driver status info/fault detection. Option
  225. #define AXIS4_DRIVER_DECAY OFF // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
  226. #define AXIS4_DRIVER_DECAY_GOTO OFF // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
  227. #define AXIS4_POWER_DOWN OFF // OFF, ON Powers off 30 seconds after movement stops. Option
  228. #define AXIS4_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from above. Option
  229. #define AXIS4_SENSE_LIMIT_MIN OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
  230. #define AXIS4_SENSE_LIMIT_MAX OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
  231. // AXIS5 FOCUSER 2 -----------------------------------------------------------------------------------------------------------------
  232. // Up to 6 focusers can be present (AXIS4 to AXIS9) simply copy the above text for focuser 1 and rename to AXIS5_ for focuser 2, etc
  233. // FOCUSER TEMPERATURE --------------------------------- see https://onstep.groups.io/g/developer/wiki/Configuration_Rotator_Focuser
  234. #define FOCUSER_TEMPERATURE OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n for focuser temp. Adjust
  235. // =================================================================================================================================
  236. // AUXILIARY FEATURES ==============================================================================================================
  237. // FEATURES ------------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Aux
  238. // Note: Temporarily set DEBUG mode to VERBOSE and use "FEATURE1_TEMP DS1820" to list the DS18B20 device serial numbers.
  239. #define FEATURE1_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  240. #define FEATURE1_NAME "FEATURE1" // "FE..", Name of feature being controlled. Adjust
  241. #define FEATURE1_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  242. #define FEATURE1_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  243. #define FEATURE1_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  244. #define FEATURE1_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  245. #define FEATURE2_PURPOSE DEW_HEATER // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  246. #define FEATURE2_NAME "OTA DH" // "FE..", Name of feature being controlled. Adjust
  247. #define FEATURE2_TEMP 0x28D2E495F0013C45 // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  248. #define FEATURE2_PIN AUX // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  249. #define FEATURE2_VALUE_DEFAULT ON // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  250. #define FEATURE2_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  251. #define FEATURE3_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  252. #define FEATURE3_NAME "FEATURE3" // "FE..", Name of feature being controlled. Adjust
  253. #define FEATURE3_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  254. #define FEATURE3_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  255. #define FEATURE3_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  256. #define FEATURE3_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  257. #define FEATURE4_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  258. #define FEATURE4_NAME "GS DH" // "FE..", Name of feature being controlled. Adjust
  259. #define FEATURE4_TEMP 0x28D2E495F0013C45 // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  260. #define FEATURE4_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  261. #define FEATURE4_VALUE_DEFAULT ON // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  262. #define FEATURE4_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  263. #define FEATURE5_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  264. #define FEATURE5_NAME "FEATURE5" // "FE..", Name of feature being controlled. Adjust
  265. #define FEATURE5_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  266. #define FEATURE5_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  267. #define FEATURE5_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  268. #define FEATURE5_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  269. #define FEATURE6_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  270. #define FEATURE6_NAME "FEATURE6" // "FE..", Name of feature being controlled. Adjust
  271. #define FEATURE6_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  272. #define FEATURE6_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  273. #define FEATURE6_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  274. #define FEATURE6_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  275. #define FEATURE7_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  276. #define FEATURE7_NAME "FEATURE7" // "FE..", Name of feature being controlled. Adjust
  277. #define FEATURE7_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  278. #define FEATURE7_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  279. #define FEATURE7_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  280. #define FEATURE7_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  281. #define FEATURE8_PURPOSE OFF // OFF, SWITCH, MOMENTARY_SWITCH, ANALOG_OUT, DEW_HEATER, INTERVALOMETER. Option
  282. #define FEATURE8_NAME "FEATURE8" // "FE..", Name of feature being controlled. Adjust
  283. #define FEATURE8_TEMP OFF // OFF, THERMISTOR or n. Where n is the ds18b20 s/n. For DEW_HEATER temperature. Adjust
  284. #define FEATURE8_PIN OFF // OFF, AUX for auxiliary pin, n. Where n is the pin#. Adjust
  285. #define FEATURE8_VALUE_DEFAULT OFF // OFF, ON, n. Where n=0..255 for ANALOG_OUT purpose. Adjust
  286. #define FEATURE8_ON_STATE HIGH // HIGH, LOW to invert so "ON" is 0V and "OFF" is Vcc (3.3V usually.) Adjust
  287. // ---------------------------------------------------------------------------------------------------------------------------------
  288. #define FileVersionConfig 5
  289. #include "Extended.config.h"