Skip to content

Commit 60bd4ab

Browse files
committed
Update config files for stallguard homing
* 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
1 parent 7d52a68 commit 60bd4ab

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

Klipper_Files/ercf_hardware.cfg

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
[mcu ercf]
44
serial: /dev/serial/by-id/usb-Klipper_samd21g18a_F6EE357D3432585020312E3545150FFF-if00
55

6+
[tmc2209 manual_stepper gear_stepper]
7+
# Adapt accordingly to your setup and desires
8+
# The default values are tested with the BOM NEMA14 motor
9+
# Please adapt those values to the motor you are using
10+
# Example : for NEMA17 motors, you'll usually set the stealthchop_threshold to 0
11+
# and use higher current
12+
uart_pin: ercf:PA8
13+
uart_address: 0
14+
interpolate: True
15+
run_current: 0.40
16+
hold_current: 0.3
17+
sense_resistor: 0.150
18+
stealthchop_threshold: 500
19+
# Uncomment the lines below if you want to use sensorless homing for the toolhead
20+
# diag_pin: ^ercf:PA7 # Set to MCU pin connected to TMC DIAG pin
21+
# driver_SGTHRS: 75 # 255 is most sensitive value, 0 is least sensitive. NEEDS TO BE TUNED.
22+
623
# Carrot Feeder 5mm D-cut shaft
724
# Example for an SKR 1.4 Board (E1 on the XY mcu)
825
[manual_stepper gear_stepper]
@@ -17,20 +34,8 @@ velocity: 35
1734
accel: 150
1835
#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
1936
endstop_pin: ^ercf:PA7
20-
21-
[tmc2209 manual_stepper gear_stepper]
22-
# Adapt accordingly to your setup and desires
23-
# The default values are tested with the BOM NEMA14 motor
24-
# Please adapt those values to the motor you are using
25-
# Example : for NEMA17 motors, you'll usually set the stealthchop_threshold to 0
26-
# and use higher current
27-
uart_pin: ercf:PA8
28-
uart_address: 0
29-
interpolate: True
30-
run_current: 0.40
31-
hold_current: 0.3
32-
sense_resistor: 0.150
33-
stealthchop_threshold: 500
37+
# comment the line above and uncomment the line below if using stallguard for homing to the extruder
38+
# endstop_pin: tmc2209_gear_stepper:virtual_endstop
3439

3540
# Carrot Feeder selector
3641
# Example for an SKR 1.4 Board (Z1 on the XY mcu)

Klipper_Files/ercf_parameters.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ num_moves: 2 # Number of moves to make when loading or unloading
5454

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

0 commit comments

Comments
 (0)