Guest User

Untitled

a guest
Oct 22nd, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. #########################################################################################
  2. ## B/A Stepper Settings
  3. #########################################################################################
  4. ## | Stepper | Signal | EN | STEP | DIR | DIAG | UART | CS | SCK | MOSI | MISO | SPI |
  5. ## |-----------|-------------|-----|------|------|------|------|------|------|------|------|------|
  6. ## | X | HV_Stepper0 | PG0 | PB10 | PB11 | PG1 | | PE15 | PE12 | PE14 | PE13 | spi4 |
  7. ## | Y | HV_Stepper1 | PE9 | PF15 | PF14 | PE10 | | PE11 | PE12 | PE14 | PE13 | spi4 |
  8.  
  9. ##---------------------------------------------------------------------------------------
  10. ## B Stepper - Left
  11. ## Connected to HV STEPPER 0
  12. ## Endstop connected to X-ENDSTOP
  13. ## B/A MOTORS = LDO-42STH48-2004MAH(VRN) - NEMA 17, 0.9° Step Angle, 400 steps, 2 Amp
  14. ## these motors are connected to the Leviathan v1.2 through 2x TMC5160 stepper drivers
  15. ##---------------------------------------------------------------------------------------
  16.  
  17. ## Stepper motor
  18. [stepper_x]
  19. step_pin: PB10
  20. dir_pin: !PB11
  21. enable_pin: !PG0
  22. rotation_distance: 40
  23. microsteps: 32
  24. full_steps_per_rotation:400 #set to 200 for 1.8 degree stepper
  25. endstop_pin: tmc5160_stepper_x:virtual_endstop
  26. position_min: 0
  27. position_endstop: 300
  28. position_max: 300
  29. homing_speed: 20 #Max 100
  30. homing_retract_dist: 0 # was 5
  31. homing_positive_dir: true
  32.  
  33. ## Stepper driver
  34. [tmc5160 stepper_x]
  35. cs_pin: PE15
  36. spi_bus: spi4
  37. diag0_pin: ^!PG1
  38. interpolate: true
  39. run_current: 0.8
  40. sense_resistor: 0.075
  41. stealthchop_threshold: 0
  42.  
  43. ## TMC Auto tune
  44. [autotune_tmc stepper_x]
  45. motor: ldo-42sth48-2004mah
  46. tuning_goal: auto
  47. extra_hysteresis: 0
  48. tbl: 2
  49. toff: 1
  50. sgt: -64 # -64 is most sensitive value, 63 is least sensitive
  51. sg4_thrs: 10 # CoolStep current regulation threshold
  52. voltage: 2.9
  53. overvoltage_vth: 0.0
  54.  
  55. ##---------------------------------------------------------------------------------------
  56. ## A Stepper - Right
  57. ## Connected to HV STEPPER 1
  58. ## Endstop connected to Y-ENDSTOP
  59. ## B/A MOTORS = LDO-42STH48-2004MAH(VRN) - NEMA 17, 0.9° Step Angle, 400 steps, 2 Amp
  60. ## these motors are connected to the Leviathan v1.2 through 2x TMC5160 stepper drivers
  61. ##---------------------------------------------------------------------------------------
  62.  
  63. ## Stepper motor
  64. [stepper_y]
  65. step_pin: PF15
  66. dir_pin: !PF14
  67. enable_pin: !PE9
  68. rotation_distance: 40
  69. microsteps: 32
  70. full_steps_per_rotation:400 #set to 200 for 1.8 degree stepper
  71. endstop_pin: tmc5160_stepper_y:virtual_endstop
  72. position_min: 0
  73. position_endstop: 300
  74. position_max: 301
  75. homing_speed: 20 #Max 100
  76. homing_retract_dist: 0
  77. homing_positive_dir: true
  78.  
  79. ## Stepper driver
  80. [tmc5160 stepper_y]
  81. cs_pin: PE11
  82. spi_bus: spi4
  83. diag0_pin: ^!PE10
  84. interpolate: true
  85. run_current: 0.8
  86. sense_resistor: 0.075
  87. stealthchop_threshold: 0
  88.  
  89. ## TMC Auto tune
  90. [autotune_tmc stepper_y]
  91. motor: ldo-42sth48-2004mah
  92. tuning_goal: auto
  93. extra_hysteresis: 0
  94. tbl: 2
  95. toff: 1
  96. sgt: -64 # -64 is most sensitive value, 63 is least sensitive
  97. sg4_thrs: 10 # CoolStep current regulation threshold
  98. voltage: 2.9
  99. overvoltage_vth: 0.0
Advertisement
Add Comment
Please, Sign In to add comment