Set correct stepper driver type

This commit is contained in:
Thomas Basler 2020-02-05 19:35:53 +01:00
parent b912d1cad8
commit c6463a07d1
2 changed files with 16 additions and 16 deletions

View File

@ -158,11 +158,11 @@
* TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE * TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE
* :['A4988', 'A5984', 'DRV8825', 'LV8729', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE'] * :['A4988', 'A5984', 'DRV8825', 'LV8729', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE']
*/ */
#define X_DRIVER_TYPE A4988 #define X_DRIVER_TYPE TMC5160
#define Y_DRIVER_TYPE A4988 #define Y_DRIVER_TYPE TMC5160
#define Z_DRIVER_TYPE A4988 #define Z_DRIVER_TYPE TMC5160
//#define X2_DRIVER_TYPE A4988 #define X2_DRIVER_TYPE TMC5160
//#define Y2_DRIVER_TYPE A4988 #define Y2_DRIVER_TYPE TMC5160
//#define Z2_DRIVER_TYPE A4988 //#define Z2_DRIVER_TYPE A4988
//#define Z3_DRIVER_TYPE A4988 //#define Z3_DRIVER_TYPE A4988
//#define Z4_DRIVER_TYPE A4988 //#define Z4_DRIVER_TYPE A4988

View File

@ -2717,50 +2717,50 @@
#define INTERPOLATE true #define INTERPOLATE true
#if AXIS_IS_TMC_CONFIG(X) #if AXIS_IS_TMC_CONFIG(X)
#define X_CURRENT 800 // (mA) RMS current. Multiply by 1.414 for peak current. #define X_CURRENT 1600 // (mA) RMS current. Multiply by 1.414 for peak current.
#define X_CURRENT_HOME X_CURRENT // (mA) RMS current for sensorless homing #define X_CURRENT_HOME X_CURRENT // (mA) RMS current for sensorless homing
#define X_MICROSTEPS 16 // 0..256 #define X_MICROSTEPS 16 // 0..256
#define X_RSENSE 0.11 // Multiplied x1000 for TMC26X #define X_RSENSE 0.075
#define X_CHAIN_POS -1 // -1..0: Not chained. 1: MCU MOSI connected. 2: Next in chain, ... #define X_CHAIN_POS -1 // -1..0: Not chained. 1: MCU MOSI connected. 2: Next in chain, ...
//#define X_INTERPOLATE true // Enable to override 'INTERPOLATE' for the X axis //#define X_INTERPOLATE true // Enable to override 'INTERPOLATE' for the X axis
//#define X_HOLD_MULTIPLIER 0.5 // Enable to override 'HOLD_MULTIPLIER' for the X axis //#define X_HOLD_MULTIPLIER 0.5 // Enable to override 'HOLD_MULTIPLIER' for the X axis
#endif #endif
#if AXIS_IS_TMC_CONFIG(X2) #if AXIS_IS_TMC_CONFIG(X2)
#define X2_CURRENT 800 #define X2_CURRENT 1600
#define X2_CURRENT_HOME X2_CURRENT #define X2_CURRENT_HOME X2_CURRENT
#define X2_MICROSTEPS X_MICROSTEPS #define X2_MICROSTEPS X_MICROSTEPS
#define X2_RSENSE 0.11 #define X2_RSENSE 0.075
#define X2_CHAIN_POS -1 #define X2_CHAIN_POS -1
//#define X2_INTERPOLATE true //#define X2_INTERPOLATE true
//#define X2_HOLD_MULTIPLIER 0.5 //#define X2_HOLD_MULTIPLIER 0.5
#endif #endif
#if AXIS_IS_TMC_CONFIG(Y) #if AXIS_IS_TMC_CONFIG(Y)
#define Y_CURRENT 800 #define Y_CURRENT 1600
#define Y_CURRENT_HOME Y_CURRENT #define Y_CURRENT_HOME Y_CURRENT
#define Y_MICROSTEPS 16 #define Y_MICROSTEPS 16
#define Y_RSENSE 0.11 #define Y_RSENSE 0.075
#define Y_CHAIN_POS -1 #define Y_CHAIN_POS -1
//#define Y_INTERPOLATE true //#define Y_INTERPOLATE true
//#define Y_HOLD_MULTIPLIER 0.5 //#define Y_HOLD_MULTIPLIER 0.5
#endif #endif
#if AXIS_IS_TMC_CONFIG(Y2) #if AXIS_IS_TMC_CONFIG(Y2)
#define Y2_CURRENT 800 #define Y2_CURRENT 1600
#define Y2_CURRENT_HOME Y2_CURRENT #define Y2_CURRENT_HOME Y2_CURRENT
#define Y2_MICROSTEPS Y_MICROSTEPS #define Y2_MICROSTEPS Y_MICROSTEPS
#define Y2_RSENSE 0.11 #define Y2_RSENSE 0.075
#define Y2_CHAIN_POS -1 #define Y2_CHAIN_POS -1
//#define Y2_INTERPOLATE true //#define Y2_INTERPOLATE true
//#define Y2_HOLD_MULTIPLIER 0.5 //#define Y2_HOLD_MULTIPLIER 0.5
#endif #endif
#if AXIS_IS_TMC_CONFIG(Z) #if AXIS_IS_TMC_CONFIG(Z)
#define Z_CURRENT 800 #define Z_CURRENT 1600
#define Z_CURRENT_HOME Z_CURRENT #define Z_CURRENT_HOME Z_CURRENT
#define Z_MICROSTEPS 16 #define Z_MICROSTEPS 16
#define Z_RSENSE 0.11 #define Z_RSENSE 0.075
#define Z_CHAIN_POS -1 #define Z_CHAIN_POS -1
//#define Z_INTERPOLATE true //#define Z_INTERPOLATE true
//#define Z_HOLD_MULTIPLIER 0.5 //#define Z_HOLD_MULTIPLIER 0.5
@ -2962,7 +2962,7 @@
* The default SW SPI pins are defined the respective pins files, * The default SW SPI pins are defined the respective pins files,
* but you can override or define them here. * but you can override or define them here.
*/ */
//#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
//#define TMC_SW_MOSI -1 //#define TMC_SW_MOSI -1
//#define TMC_SW_MISO -1 //#define TMC_SW_MISO -1
//#define TMC_SW_SCK -1 //#define TMC_SW_SCK -1