Skip to content

Commit

Permalink
Update config files for stallguard homing
Browse files Browse the repository at this point in the history
* ercf_hardware.cfg
    * reorder [manual_stepper gear_stepper] and
      [tmc2209 manual_stepper gear_stepper] sections, otherwise klipper
      blows up
    * add commented `diag_pin` and `driver_SGTHRS`
* ercf_parameters.cfg
    * add new setting `toolhead_use_stallguard`, defaulting to False
  • Loading branch information
whi-tw committed Sep 12, 2022
1 parent 7d52a68 commit 60bd4ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Klipper_Files/ercf_hardware.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
[mcu ercf]
serial: /dev/serial/by-id/usb-Klipper_samd21g18a_F6EE357D3432585020312E3545150FFF-if00

[tmc2209 manual_stepper gear_stepper]
# Adapt accordingly to your setup and desires
# The default values are tested with the BOM NEMA14 motor
# Please adapt those values to the motor you are using
# Example : for NEMA17 motors, you'll usually set the stealthchop_threshold to 0
# and use higher current
uart_pin: ercf:PA8
uart_address: 0
interpolate: True
run_current: 0.40
hold_current: 0.3
sense_resistor: 0.150
stealthchop_threshold: 500
# Uncomment the lines below if you want to use sensorless homing for the toolhead
# diag_pin: ^ercf:PA7 # Set to MCU pin connected to TMC DIAG pin
# driver_SGTHRS: 75 # 255 is most sensitive value, 0 is least sensitive. NEEDS TO BE TUNED.

# Carrot Feeder 5mm D-cut shaft
# Example for an SKR 1.4 Board (E1 on the XY mcu)
[manual_stepper gear_stepper]
Expand All @@ -17,20 +34,8 @@ velocity: 35
accel: 150
#Right now no pin is used for the endstop, but we need to define one for klipper. So just use a random, not used pin
endstop_pin: ^ercf:PA7

[tmc2209 manual_stepper gear_stepper]
# Adapt accordingly to your setup and desires
# The default values are tested with the BOM NEMA14 motor
# Please adapt those values to the motor you are using
# Example : for NEMA17 motors, you'll usually set the stealthchop_threshold to 0
# and use higher current
uart_pin: ercf:PA8
uart_address: 0
interpolate: True
run_current: 0.40
hold_current: 0.3
sense_resistor: 0.150
stealthchop_threshold: 500
# comment the line above and uncomment the line below if using stallguard for homing to the extruder
# endstop_pin: tmc2209_gear_stepper:virtual_endstop

# Carrot Feeder selector
# Example for an SKR 1.4 Board (Z1 on the XY mcu)
Expand Down
1 change: 1 addition & 0 deletions Klipper_Files/ercf_parameters.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ num_moves: 2 # Number of moves to make when loading or unloading

# Features
sensorless_selector: 0 # 0 = use an endstop, 1 = use sensorless homing
toolhead_use_stallguard: 0 # 0 = use 'collision' homing, 1 = use stallguard for homing
enable_clog_detection: 0 # 0 = do not use clog detection, 1 = use clog detection
enable_endless_spool: 0 # 0 = do not use endless spool, 1 = use endless spool
# if endless spool is turned on, you must define a list of EndlessSpool groups here, one entry for each tool in your ERCF
Expand Down

0 comments on commit 60bd4ab

Please sign in to comment.