Config.esp.h 35 KB

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