From 969696c143ddea76f8f9d7f6457a8bdb083e471f Mon Sep 17 00:00:00 2001 From: Ilya Gushchin Date: Fri, 15 Dec 2023 16:57:54 +0300 Subject: [PATCH] add tmc kinematics --- stereotech_config/630/kinematics.cfg | 2 +- stereotech_config/630/kinematics_tmc.cfg | 55 ++++++++++++++++++++++++ stereotech_config/HTE630-0-C-23.cfg | 2 +- 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 stereotech_config/630/kinematics_tmc.cfg diff --git a/stereotech_config/630/kinematics.cfg b/stereotech_config/630/kinematics.cfg index 2879b57e9fa2..a2c016d5779e 100644 --- a/stereotech_config/630/kinematics.cfg +++ b/stereotech_config/630/kinematics.cfg @@ -35,7 +35,7 @@ step_pin: z_step_pin dir_pin: !z_dir_pin enable_pin: !z_en_pin microsteps: 128 -rotation_distance: 4 +rotation_distance: 2 endstop_pin: z_endstop_pin position_endstop: 300 position_max: 300 diff --git a/stereotech_config/630/kinematics_tmc.cfg b/stereotech_config/630/kinematics_tmc.cfg new file mode 100644 index 000000000000..1ee0c15b366c --- /dev/null +++ b/stereotech_config/630/kinematics_tmc.cfg @@ -0,0 +1,55 @@ +[tmc5160 stepper_x] +cs_pin: PC4 +spi_bus: spi1 +#diag1_pin: PG6 +run_current: 0.700 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 stepper_y] +cs_pin: PD11 +spi_bus: spi1 +#diag1_pin: PG9 +run_current: 0.700 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 stepper_z] +cs_pin: PC6 +spi_bus: spi1 +#diag1_pin: PG10 +run_current: 1.5 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 stepper_a] +cs_pin: PC7 +spi_bus: spi1 +#diag1_pin: PG11 +run_current: 0.650 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 stepper_c] +cs_pin: PF2 +spi_bus: spi1 +#diag1_pin: PG11 +run_current: 0.800 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 extruder] +cs_pin: PE4 +spi_bus: spi1 +#diag1_pin: PG11 +run_current: 0.700 +interpolate: False +#stealthchop_threshold: 999999 + +[tmc5160 extruder1] +cs_pin: PE1 +spi_bus: spi1 +#diag1_pin: PG11 +run_current: 0.700 +interpolate: False +#stealthchop_threshold: 999999 diff --git a/stereotech_config/HTE630-0-C-23.cfg b/stereotech_config/HTE630-0-C-23.cfg index 01ffa2df27fe..b5d194168be6 100644 --- a/stereotech_config/HTE630-0-C-23.cfg +++ b/stereotech_config/HTE630-0-C-23.cfg @@ -10,7 +10,7 @@ path: /home/ste/uploads [include config/common/board_stm32f4.cfg] [include config/630/kinematics.cfg] -[include config/530/kinematics_tmc.cfg] +[include config/630/kinematics_tmc.cfg] [include config/630/homing_override.cfg] [include config/common/homing_macros.cfg]