///////////////////////////////////////////////////////////////////////////////////////////////////////// 

// This configuration file was generated by the OAT Configurator at https://config.openastrotech.com for 

// firmware V1.9.30 and later. 

// Save this as Configuration_local.hpp in the folder where you placed the firmware code. 

 

// We live in the Northern Hemisphere 

#define NORTHERN_HEMISPHERE 1 

 

// We are using the MKS GEN L V2.1 board 

//#define BOARD BOARD_AVR_MKS_GEN_L_V21 

 

//////////////////////////////// 

// RA Stepper configuration  

// See supported stepper values. Change according to the steppers you are using 

// Using the NEMA 17, 0.9°/step stepper for RA 

#define RA_STEPPER_TYPE STEPPER_TYPE_NEMA17 

 

// Using the TMC2209-UART driver for RA stepper motor 

#define RA_DRIVER_TYPE DRIVER_TYPE_TMC2209_UART 

 

// Define some RA stepper motor settings 

#define RA_MOTOR_CURRENT_RATING 900 // mA 

#define RA_OPERATING_CURRENT_SETTING 80 // % 

#define RA_STEPPER_ACCELERATION 3000 

#define RA_STEPPER_SPEED 1200 

#define RA_SLEW_MICROSTEPPING 8 

#define RA_TRACKING_MICROSTEPPING 64 

// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched sound). When set to 1, they are silent. 

#define RA_UART_STEALTH_MODE 0 

 

// Using the 16 tooth gear (recommended) for RA belt 

#define RA_PULLEY_TEETH 16 

 

//////////////////////////////// 

// DEC Stepper configuration  

// See supported stepper values. Change according to the steppers you are using 

// Using the NEMA 17, 0.9°/step stepper for DEC 

#define DEC_STEPPER_TYPE STEPPER_TYPE_NEMA17 

 

// Using the TMC2209-UART driver for DEC stepper 

#define DEC_DRIVER_TYPE DRIVER_TYPE_TMC2209_UART 

 

// Define some DEC stepper motor settings 

#define DEC_MOTOR_CURRENT_RATING 900 // mA 

#define DEC_OPERATING_CURRENT_SETTING 80 // % 

#define DEC_STEPPER_ACCELERATION 3000 

#define DEC_STEPPER_SPEED 1200 

#define DEC_SLEW_MICROSTEPPING 16 

#define DEC_GUIDE_MICROSTEPPING 64 

// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched sound). When set to 1, they are silent. 

#define DEC_UART_STEALTH_MODE 0 

 

// Using the 16 tooth gear (recommended) for DEC belt 

#define DEC_PULLEY_TEETH 16 

 

//////////////////////////////// 

// Display configuration  

// Define the type of display we are using. Currently: LCD Shield w/ keypad 

#define DISPLAY_TYPE DISPLAY_TYPE_LCD_KEYPAD 

 

//////////////////////////////// 

// GPS Addon configuration  

// Define whether we have the GPS addon or not. Currently: GPS NEO-6M 

#define USE_GPS 1 

 

//////////////////////////////// 

// Digital Level Addon configuration  

// Define whether we have the Digital Level or not. Currently: MPU-6050 Gyroscope 

#define USE_GYRO_LEVEL 1 

#define GYRO_AXIS_SWAP 0 

// MKS uses software I2C library. Define the SCL and SDA pins you wired (recommended are 11 and 21) 

#define USE_GYRO_WITH_SOFTWAREI2C 1 

#define GYRO_SOFTWARE_SCL_PIN 11 

#define GYRO_SOFTWARE_SDA_PIN 21 

 

//////////////////////////////// 

// Focuser configuration  

// Define whether to support a focusing stepper motor on E1 or not. Currently: Focuser stepper 

 

// Using the NEMA 17, 0.9°/step w/ TMC2209 UART stepper for FOC 

#define FOCUS_STEPPER_TYPE STEPPER_TYPE_NEMA17 

#define FOCUS_DRIVER_TYPE DRIVER_TYPE_TMC2209_UART 

#define FOCUS_STEPPER_SPR 400 // steps/rev 

 

// Define Focus stepper motor power settings 

#define FOCUS_MOTOR_CURRENT_RATING 900 // mA 

#define FOCUS_OPERATING_CURRENT_SETTING 80 // % 

#define FOCUS_STEPPER_ACCELERATION 4000 // steps/s/s 

#define FOCUS_STEPPER_SPEED 1500 // steps/s 

#define FOCUS_UART_STEALTH_MODE 1 // silent? 

#define FOCUS_MICROSTEPPING 16 // steps 

#define FOCUSER_MOTOR_HOLD_SETTING 10 // % 

 

//////////////////////////////// 

// AutoPA Addon configuration  

// Define whether we have the AutoPA add on or not. Currently: No AutoPA 

// No AutoPA settings 

 

#define DEBUG_LEVEL (DEBUG_NONE)
