-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathercf_config.cfg
97 lines (81 loc) · 5.2 KB
/
ercf_config.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
85
86
87
88
89
90
91
92
93
94
95
96
97
## ERCF Configuration File.
## Values are example for Fly CAN ERCF controller
# Reuse the encoder for filament motion sensor and encoder for internal use
[duplicate_pin_override]
pins: ercf:gpio15
# Gear stepper
[manual_stepper gear_stepper]
step_pin: ercf:gpio2
dir_pin: ercf:gpio1
enable_pin: !ercf:gpio3
rotation_distance: 22.6789511 #Bondtech 5mm Drive Gears
gear_ratio: 80:20
microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
[tmc2209 manual_stepper gear_stepper]
uart_pin: ercf:gpio0
interpolate: True
run_current: 1.0
hold_current: 0.2
sense_resistor: 0.110
stealthchop_threshold: 1 # Set to stealthchop while the gear stepper is idling
# Feeder selector
[manual_stepper selector_stepper]
step_pin: ercf:gpio7
dir_pin: ercf:gpio8
enable_pin: !ercf:gpio6
microsteps: 32
rotation_distance: 40
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
endstop_pin: ercf:gpio20
[tmc2209 manual_stepper selector_stepper]
uart_pin: ercf:gpio9
run_current: 0.5
hold_current: 0.2
interpolate: True
sense_resistor: 0.110
stealthchop_threshold: 1 # Set to stealthchop while the gear stepper is idling
[servo ercf_servo]
pin: ercf:gpio21
maximum_servo_angle: 180
minimum_pulse_width: 0.00085
maximum_pulse_width: 0.00215
## Uncomment encoder_sensor to enable the filament motion detection.
[filament_motion_sensor encoder_sensor]
switch_pin: ^ercf:gpio15
pause_on_runout: True
detection_length: 10.0
extruder: extruder
[ercf]
# Compulsory params
gear_stepper: manual_stepper gear_stepper # full name is required
selector_stepper: manual_stepper selector_stepper # full name is required
servo: servo ercf_servo # full name is required
toolhead_sensor: filament_switch_sensor toolhead_sensor # full name is required
encoder_pin: ercf:gpio15 # The pin must be shared via [duplicate_pin_override]
servo_up_angle: 30 # The angle when the servo arm is in UP position. See the ERCF manual for more information.
servo_down_angle: 115 # The angle when the servo arm is in DOWN position. See the ERCF manual for more information.
variable_path: /home/pi/printer_data/config/ercf_vars.cfg # The path to the ERCF variable file. Usually [/home/pi/printer_data/config/ercf_vars.cfg]
# Optional params. The default value is specified
extra_servo_dwell_up: 0 # The extra time in second that the servo need to dwell in up position (?)
extra_servo_dwell_down: 0 # The extra time in second that the servo need to dwell in down position (?)
encoder_sample_time: 0.1 # The ERCF encoder sampling time in second.
encoder_poll_time: 0.0001 # The ERCF encoder poll time in seconds.
long_moves_speed: 100 # Long pulse move speed in mm/s. The speed is also been used by the single long move.
long_moves_accel: 400 # Long pulse move acceleration in mm/s^2. Note the acceleration only apply to gear stepper motion.
short_moves_speed: 25 # Short pulse move speed in mm/s.
short_moves_accel: 400 # Short pulse move acceleration in mm/s^2. Note the acceleration only apply to gear stepper motion.
extruder_move_speed: 100 # Extruder move speed override, in mm/s
extruder_move_accel: 400 # Extruder move acceleration override, in mm/s^2
gear_stepper_long_move_threshold: 70 # (Deprecated) The threshold that determines the move speed/acceleration between short and long move.
extra_move_margin: 100 # The extra margin that appends to the move where pending on the trigger condition (filament slip or toggle of the filament sensor.
long_move_distance: 30 # The long pulse move distance in mm.
short_move_distance: 10 # The short pulse move distance in mm.
minimum_step_distance: 5 # The minimum step distance in mm that can be detected by the ERCF encoder.
maximum_move_distance: 1500 # The maximum continuous move distance (can include multiple steps) in mm.
maximum_step_distance: 500 # The maximum single step move distance in mm.
calibrate_move_distance_per_step: 3 # The step distance in mm used during calibration.
selector_filament_engagement_retry: 2 # The maximum retry while the filament failes to engage.
auto_home_selector: True # Automatically home the selector if not homed previously when a selector move is requested.
tip_forming_gcode_before_calibration: None # The tip forming gcode to run before running the calibration routine (_ERCF_CALIBRATE_COMPONENT_LENGTH).
slip_detection_ratio_threshold: 3 # If the actual move distance is less than [1/threshold * requested_distance] then the code will consider it slip