Advertisement
Guest User

Untitled

a guest
Sep 26th, 2019
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. # Configure a TMC5160 stepper motor driver via SPI bus. To use this
  2. # feature, define a config section with a "tmc5160" prefix followed by
  3. # the name of the corresponding stepper config section (for example,
  4. # "[tmc5160 stepper_x]"). This also creates a
  5. # "tmc5160_stepper_x:virtual_enable" virtual pin which may be used as
  6. # the stepper's enable_pin (for enabling the driver via an SPI
  7. # message).
  8. #[tmc5160 stepper_x]
  9. #cs_pin:
  10. # The pin corresponding to the TMC5160 chip select line. This pin
  11. # will be set to low at the start of SPI messages and raised to high
  12. # after the message completes. This parameter must be provided.
  13. #spi_bus:
  14. #spi_speed:
  15. #spi_software_sclk_pin:
  16. #spi_software_mosi_pin:
  17. #spi_software_miso_pin:
  18. # These optional parameters allow one to customize the SPI settings
  19. # used to communicate with the chip.
  20. #microsteps:
  21. # The number of microsteps to configure the driver to use. Valid
  22. # values are 1, 2, 4, 8, 16, 32, 64, 128, 256. This parameter must
  23. # be provided.
  24. #interpolate: True
  25. # If true, enable step interpolation (the driver will internally
  26. # step at a rate of 256 micro-steps). The default is True.
  27. #run_current:
  28. # The amount of current (in amps) to configure the driver to use
  29. # during stepper movement. This parameter must be provided.
  30. #hold_current:
  31. # The amount of current (in amps) to configure the driver to use
  32. # when the stepper is not moving. The default is to use the same
  33. # value as run_current.
  34. #sense_resistor: 0.075
  35. # The resistance (in ohms) of the motor sense resistor. The default
  36. # is 0.075 ohms.
  37. #stealthchop_threshold: 0
  38. # The velocity (in mm/s) to set the "stealthChop" threshold to. When
  39. # set, "stealthChop" mode will be enabled if the stepper motor
  40. # velocity is below this value. The default is 0, which disables
  41. # "stealthChop" mode. Try to reexperience this with tmc5160.
  42. # Values can be much higher than other tmcs.
  43. #driver_IHOLDDELAY: 6
  44. #driver_TPOWERDOWN: 10
  45. #driver_TBL: 2
  46. #driver_TOFF: 3
  47. #driver_HEND: 2
  48. #driver_HSTRT: 5
  49. #driver_FD3: 0
  50. #driver_TPFD: 4
  51. #driver_CHM: 0
  52. #driver_VHIGHFS: 0
  53. #driver_VHIGHCHM: 0
  54. #driver_DISS2G: 0
  55. #driver_DISS2VS: 0
  56. #driver_PWM_AUTOSCALE: True
  57. #driver_PWM_AUTOGRAD: True
  58. #driver_PWM_FREQ: 1
  59. #driver_FREEWHEEL: 0
  60. #driver_PWM_GRAD: 0
  61. #driver_PWM_OFS: 30
  62. #driver_PWM_REG: 4
  63. #driver_PWM_LIM: 12
  64. #driver_SGT: 0
  65. #driver_SEMIN: 0
  66. #driver_SEUP: 0
  67. #driver_SEMAX: 0
  68. #driver_SEDN: 0
  69. #driver_SEIMIN: 0
  70. #driver_SFILT: 0
  71. # Set the given register during the configuration of the TMC5160
  72. # chip. This may be used to set custom motor parameters. The
  73. # defaults for each parameter are next to the parameter name in the
  74. # above list.
  75. #diag1_pin:
  76. # The micro-controller pin attached to the DIAG1 line of the TMC5160
  77. # chip. Setting this creates a "tmc5160_stepper_x:virtual_endstop"
  78. # virtual pin which may be used as the stepper's endstop_pin. Doing
  79. # this enables "sensorless homing". (Be sure to also set driver_SGT
  80. # to an appropriate sensitivity value.) The default is to not enable
  81. # sensorless homing. See docs/Sensorless_Homing.md for details on how
  82. # to configure this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement