prn_stepper_YL.cfg 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # YL_CS PC6 DRIVE2
  2. # YL_DIR PG3 DRIVE2
  3. # YL_STEP PF11 DRIVE2
  4. # YL_ENABLE PG5 DRIVE2
  5. # YL_DIAG2 PG10
  6. [stepper_y]
  7. step_pin: PF11
  8. dir_pin: PG3
  9. enable_pin: !PG5
  10. rotation_distance: 39.7 # ?
  11. microsteps: 256
  12. full_steps_per_rotation: 200 # for 0.9° motors - 400
  13. #gear_ratio:
  14. # The gear ratio if the stepper motor is connected to the axis via a
  15. # gearbox. For example, one may specify "5:1" if a 5 to 1 gearbox is
  16. # in use. If the axis has multiple gearboxes one may specify a comma
  17. # separated list of gear ratios (for example, "57:11, 2:1"). If a
  18. # gear_ratio is specified then rotation_distance specifies the
  19. # distance the axis travels for one full rotation of the final gear.
  20. # The default is to not use a gear ratio.
  21. #step_pulse_duration:
  22. # The minimum time between the step pulse signal edge and the
  23. # following "unstep" signal edge. This is also used to set the
  24. # minimum time between a step pulse and a direction change signal.
  25. # The default is 0.000000100 (100ns) for TMC steppers that are
  26. # configured in UART or SPI mode, and the default is 0.000002 (which
  27. # is 2us) for all other steppers.
  28. endstop_pin: ^PG10
  29. position_min: 0 # ?
  30. position_endstop: 404 # !!!
  31. position_max: 407 # !!!
  32. homing_speed: 50
  33. homing_retract_dist: 5
  34. second_homing_speed: 5
  35. #homing_positive_dir:
  36. # If true, homing will cause the stepper to move in a positive
  37. # direction (away from zero); if false, home towards zero. It is
  38. # better to use the default than to specify this parameter. The
  39. # default is true if position_endstop is near position_max and false
  40. # if near position_min.
  41. [tmc5160 stepper_y]
  42. cs_pin: PC6
  43. # The pin corresponding to the TMC5160 chip select line. This pin
  44. # will be set to low at the start of SPI messages and raised to high
  45. # after the message completes. This parameter must be provided.
  46. #spi_speed: 100000
  47. spi_bus: spi1
  48. #spi_software_sclk_pin: PA5
  49. #spi_software_mosi_pin: PA7
  50. #spi_software_miso_pin: PA6
  51. # See the "common SPI settings" section for a description of the
  52. # above parameters.
  53. #chain_position:
  54. #chain_length:
  55. # These parameters configure an SPI daisy chain. The two parameters
  56. # define the stepper position in the chain and the total chain length.
  57. # Position 1 corresponds to the stepper that connects to the MOSI signal.
  58. # The default is to not use an SPI daisy chain.
  59. interpolate: False
  60. # If true, enable step interpolation (the driver will internally
  61. # step at a rate of 256 micro-steps). The default is True.
  62. run_current: 1.4 # (1.8) Imax / squart(2) * 80%; Imax = Irms / squart(2)
  63. # The amount of current (in amps RMS) to configure the driver to use
  64. # during stepper movement. This parameter must be provided.
  65. #hold_current: 0.7 # ~~ run_current/2
  66. # The amount of current (in amps RMS) to configure the driver to use
  67. # when the stepper is not moving. Setting a hold_current is not
  68. # recommended (see TMC_Drivers.md for details). The default is to
  69. # not reduce the current.
  70. sense_resistor: 0.075
  71. # The resistance (in ohms) of the motor sense resistor. The default
  72. # is 0.075 ohms.
  73. stealthchop_threshold: 999999
  74. # The velocity (in mm/s) to set the "stealthChop" threshold to. When
  75. # set, "stealthChop" mode will be enabled if the stepper motor
  76. # velocity is below this value. The default is 0, which disables
  77. # "stealthChop" mode.
  78. #driver_MSLUT0: 2863314260
  79. #driver_MSLUT1: 1251300522
  80. #driver_MSLUT2: 608774441
  81. #driver_MSLUT3: 269500962
  82. #driver_MSLUT4: 4227858431
  83. #driver_MSLUT5: 3048961917
  84. #driver_MSLUT6: 1227445590
  85. #driver_MSLUT7: 4211234
  86. #driver_W0: 2
  87. #driver_W1: 1
  88. #driver_W2: 1
  89. #driver_W3: 1
  90. #driver_X1: 128
  91. #driver_X2: 255
  92. #driver_X3: 255
  93. #driver_START_SIN: 0
  94. #driver_START_SIN90: 247
  95. # These fields control the Microstep Table registers directly. The optimal
  96. # wave table is specific to each motor and might vary with current. An
  97. # optimal configuration will have minimal print artifacts caused by
  98. # non-linear stepper movement. The values specified above are the default
  99. # values used by the driver. The value must be specified as a decimal integer
  100. # (hex form is not supported). In order to compute the wave table fields,
  101. # see the tmc2130 "Calculation Sheet" from the Trinamic website.
  102. #driver_MULTISTEP_FILT: True
  103. #driver_IHOLDDELAY: 6
  104. #driver_TPOWERDOWN: 10
  105. #driver_TBL: 2
  106. #driver_TOFF: 3
  107. #driver_HEND: 2
  108. #driver_HSTRT: 5
  109. #driver_FD3: 0
  110. #driver_TPFD: 4
  111. #driver_CHM: 0
  112. #driver_VHIGHFS: 0
  113. #driver_VHIGHCHM: 0
  114. #driver_DISS2G: 0
  115. #driver_DISS2VS: 0
  116. #driver_PWM_AUTOSCALE: True
  117. #driver_PWM_AUTOGRAD: True
  118. #driver_PWM_FREQ: 0
  119. #driver_FREEWHEEL: 0
  120. #driver_PWM_GRAD: 0
  121. #driver_PWM_OFS: 30
  122. #driver_PWM_REG: 4
  123. #driver_PWM_LIM: 12
  124. #driver_SGT: 0
  125. #driver_SEMIN: 0
  126. #driver_SEUP: 0
  127. #driver_SEMAX: 0
  128. #driver_SEDN: 0
  129. #driver_SEIMIN: 0
  130. #driver_SFILT: 0
  131. #driver_DRVSTRENGTH: 0
  132. #driver_BBMCLKS: 4
  133. #driver_BBMTIME: 0
  134. #driver_FILT_ISENSE: 0
  135. # Set the given register during the configuration of the TMC5160
  136. # chip. This may be used to set custom motor parameters. The
  137. # defaults for each parameter are next to the parameter name in the
  138. # above list.
  139. #diag0_pin:
  140. #diag1_pin: ^!PG10
  141. # The micro-controller pin attached to one of the DIAG lines of the
  142. # TMC5160 chip. Only a single diag pin should be specified. The pin
  143. # is "active low" and is thus normally prefaced with "^!". Setting
  144. # this creates a "tmc5160_stepper_x:virtual_endstop" virtual pin
  145. # which may be used as the stepper's endstop_pin. Doing this enables
  146. # "sensorless homing". (Be sure to also set driver_SGT to an
  147. # appropriate sensitivity value.) The default is to not enable
  148. # sensorless homing.