123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- # YL_CS PC6 DRIVE2
- # YL_DIR PG3 DRIVE2
- # YL_STEP PF11 DRIVE2
- # YL_ENABLE PG5 DRIVE2
- # YL_DIAG2 PG10
- [stepper_y]
- step_pin: PF11
- dir_pin: PG3
- enable_pin: !PG5
- rotation_distance: 39.7 # ?
- microsteps: 256
- full_steps_per_rotation: 200 # for 0.9° motors - 400
- #gear_ratio:
- # The gear ratio if the stepper motor is connected to the axis via a
- # gearbox. For example, one may specify "5:1" if a 5 to 1 gearbox is
- # in use. If the axis has multiple gearboxes one may specify a comma
- # separated list of gear ratios (for example, "57:11, 2:1"). If a
- # gear_ratio is specified then rotation_distance specifies the
- # distance the axis travels for one full rotation of the final gear.
- # The default is to not use a gear ratio.
- #step_pulse_duration:
- # The minimum time between the step pulse signal edge and the
- # following "unstep" signal edge. This is also used to set the
- # minimum time between a step pulse and a direction change signal.
- # The default is 0.000000100 (100ns) for TMC steppers that are
- # configured in UART or SPI mode, and the default is 0.000002 (which
- # is 2us) for all other steppers.
- endstop_pin: ^PG10
- position_min: 0 # ?
- position_endstop: 404 # !!!
- position_max: 407 # !!!
- homing_speed: 50
- homing_retract_dist: 5
- second_homing_speed: 5
- #homing_positive_dir:
- # If true, homing will cause the stepper to move in a positive
- # direction (away from zero); if false, home towards zero. It is
- # better to use the default than to specify this parameter. The
- # default is true if position_endstop is near position_max and false
- # if near position_min.
- [tmc5160 stepper_y]
- cs_pin: PC6
- # The pin corresponding to the TMC5160 chip select line. This pin
- # will be set to low at the start of SPI messages and raised to high
- # after the message completes. This parameter must be provided.
- #spi_speed: 100000
- spi_bus: spi1
- #spi_software_sclk_pin: PA5
- #spi_software_mosi_pin: PA7
- #spi_software_miso_pin: PA6
- # See the "common SPI settings" section for a description of the
- # above parameters.
- #chain_position:
- #chain_length:
- # These parameters configure an SPI daisy chain. The two parameters
- # define the stepper position in the chain and the total chain length.
- # Position 1 corresponds to the stepper that connects to the MOSI signal.
- # The default is to not use an SPI daisy chain.
- interpolate: False
- # If true, enable step interpolation (the driver will internally
- # step at a rate of 256 micro-steps). The default is True.
- run_current: 1.4 # (1.8) Imax / squart(2) * 80%; Imax = Irms / squart(2)
- # The amount of current (in amps RMS) to configure the driver to use
- # during stepper movement. This parameter must be provided.
- #hold_current: 0.7 # ~~ run_current/2
- # The amount of current (in amps RMS) to configure the driver to use
- # when the stepper is not moving. Setting a hold_current is not
- # recommended (see TMC_Drivers.md for details). The default is to
- # not reduce the current.
- sense_resistor: 0.075
- # The resistance (in ohms) of the motor sense resistor. The default
- # is 0.075 ohms.
- stealthchop_threshold: 999999
- # The velocity (in mm/s) to set the "stealthChop" threshold to. When
- # set, "stealthChop" mode will be enabled if the stepper motor
- # velocity is below this value. The default is 0, which disables
- # "stealthChop" mode.
- #driver_MSLUT0: 2863314260
- #driver_MSLUT1: 1251300522
- #driver_MSLUT2: 608774441
- #driver_MSLUT3: 269500962
- #driver_MSLUT4: 4227858431
- #driver_MSLUT5: 3048961917
- #driver_MSLUT6: 1227445590
- #driver_MSLUT7: 4211234
- #driver_W0: 2
- #driver_W1: 1
- #driver_W2: 1
- #driver_W3: 1
- #driver_X1: 128
- #driver_X2: 255
- #driver_X3: 255
- #driver_START_SIN: 0
- #driver_START_SIN90: 247
- # These fields control the Microstep Table registers directly. The optimal
- # wave table is specific to each motor and might vary with current. An
- # optimal configuration will have minimal print artifacts caused by
- # non-linear stepper movement. The values specified above are the default
- # values used by the driver. The value must be specified as a decimal integer
- # (hex form is not supported). In order to compute the wave table fields,
- # see the tmc2130 "Calculation Sheet" from the Trinamic website.
- #driver_MULTISTEP_FILT: True
- #driver_IHOLDDELAY: 6
- #driver_TPOWERDOWN: 10
- #driver_TBL: 2
- #driver_TOFF: 3
- #driver_HEND: 2
- #driver_HSTRT: 5
- #driver_FD3: 0
- #driver_TPFD: 4
- #driver_CHM: 0
- #driver_VHIGHFS: 0
- #driver_VHIGHCHM: 0
- #driver_DISS2G: 0
- #driver_DISS2VS: 0
- #driver_PWM_AUTOSCALE: True
- #driver_PWM_AUTOGRAD: True
- #driver_PWM_FREQ: 0
- #driver_FREEWHEEL: 0
- #driver_PWM_GRAD: 0
- #driver_PWM_OFS: 30
- #driver_PWM_REG: 4
- #driver_PWM_LIM: 12
- #driver_SGT: 0
- #driver_SEMIN: 0
- #driver_SEUP: 0
- #driver_SEMAX: 0
- #driver_SEDN: 0
- #driver_SEIMIN: 0
- #driver_SFILT: 0
- #driver_DRVSTRENGTH: 0
- #driver_BBMCLKS: 4
- #driver_BBMTIME: 0
- #driver_FILT_ISENSE: 0
- # Set the given register during the configuration of the TMC5160
- # chip. This may be used to set custom motor parameters. The
- # defaults for each parameter are next to the parameter name in the
- # above list.
- #diag0_pin:
- #diag1_pin: ^!PG10
- # The micro-controller pin attached to one of the DIAG lines of the
- # TMC5160 chip. Only a single diag pin should be specified. The pin
- # is "active low" and is thus normally prefaced with "^!". Setting
- # this creates a "tmc5160_stepper_x:virtual_endstop" virtual pin
- # which may be used as the stepper's endstop_pin. Doing this enables
- # "sensorless homing". (Be sure to also set driver_SGT to an
- # appropriate sensitivity value.) The default is to not enable
- # sensorless homing.
|