-
Notifications
You must be signed in to change notification settings - Fork 62
/
ercf_hardware.cfg
85 lines (72 loc) · 2.68 KB
/
ercf_hardware.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## Enraged Rabbit : Carrot Feeder config file for ERCF EASY BRD v1.1
## This config assumes you set the two J6 jumpers on 1-2 and 3-4, i.e. [..][..].
## Note that this enables the option to use sensorless selector but disables the "extra" switch
## so the toolhead sensor (if used) would have to be connected to the main mcu
[mcu ercf]
serial: /dev/serial/by-id/usb-Klipper_samd21g18a_9BD20A734134555020312E30152219FF-if00
## FILAMENT DRIVE GEAR
[tmc2209 manual_stepper gear_stepper]
uart_pin: ercf:PA8
uart_address: 0
interpolate: True
run_current: 0.4 # NEMA14 motor
hold_current: 0.1 # Can be small
sense_resistor: 0.110
stealthchop_threshold: 500 # default: 500
[manual_stepper gear_stepper]
step_pin: ercf:PA4
dir_pin: !ercf:PA10
enable_pin: !ercf:PA2
rotation_distance: 22.9612998 # Bondtech 5mm Drive Gears. Must be manually verified and tuned.
gear_ratio: 80:20
microsteps: 16 # Higher than 16 can cause 'MCU Timer too close' issues under Klipper
full_steps_per_rotation: 200 # 200 for 1.8 degree, 400 for 0.9 degree
velocity: 100
accel: 400
#
# Uncomment if using sensorless selector with the ERCF EASY BRD (works well) then this should be the
# pin of the physical SELECTOR endstop and is used to determine the difference between true endstop
# and blockage preventing selector movement
endstop_pin: ^ercf:PB9
## SELECTOR
[tmc2209 manual_stepper selector_stepper]
uart_pin: ercf:PA8
uart_address: 1
run_current: 0.4 # NEMA14 motor
hold_current: 0.1 # Can be small
interpolate: True
sense_resistor: 0.110
stealthchop_threshold: 500 # default: 500
#
# Uncomment the lines below if you want to use sensorless selector homing
# (and configure ercf_parameters.cfg correctly)
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
[manual_stepper selector_stepper]
step_pin: ercf:PA9
dir_pin: !ercf:PB8
enable_pin: !ercf:PA11
rotation_distance: 40
microsteps: 16 # Max 16 else 'MCU Timer too close' issues under Klipper
full_steps_per_rotation: 200 # 200 for 1.8 degree, 400 for 0.9 degree
velocity: 200
accel: 600
#
# Select the endstop switch physical (for normal selector) or virtual (sensorless selector homing)
#
#endstop_pin: ^ercf:PB9
endstop_pin: tmc2209_selector_stepper:virtual_endstop
## SELECTOR SERVO
[servo ercf_servo]
pin: ercf:PA5
maximum_servo_angle: 180
minimum_pulse_width: 0.00085
maximum_pulse_width: 0.00215
[duplicate_pin_override]
pins: ercf:PA6 # Pin used by the encoder and filament_motion_sensor. All 3 must be the same pin
[filament_motion_sensor encoder_sensor]
switch_pin: ^ercf:PA6
pause_on_runout: False
detection_length: 10.0
extruder: extruder
runout_gcode: ERCF_ENCODER_RUNOUT