-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTr_Mellow.cfg
85 lines (77 loc) · 2.03 KB
/
Tr_Mellow.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
[mcu tr]
serial:
[trad_rack]
selector_max_velocity: 400
selector_max_accel: 10000
toolhead_fil_sensor_pin: ^!PA1
lane_count: 11
lane_spacing: 17.0
servo_down_angle: 0.0
servo_up_angle: 131.0
toolhead_unload_speed: 20
extruder_load_speed: 20
toolhead_sense_speed: 20
selector_unload_length: 17.5
bowden_length: 700.0
extruder_load_length: 44.5
hotend_load_length: 6.0
toolhead_unload_length: 40.0
buffer_pull_speed: 100.0 # increase this to 300+ once you are ready
# (but some motors may not be able to handle this).
[stepper_tr_selector]
# stepper connected to SELECTOR, endstop to ENDSTOP
step_pin: tr:gpio2
dir_pin: !tr:gpio1
enable_pin: !tr:gpio3
rotation_distance: 40
microsteps: 16
full_steps_per_rotation: 200
endstop_pin: ^tr:gpio20
position_min: 0.0
position_endstop: 0.0
position_max: 221 # (lane_count - 1) * lane_spacing
homing_speed: 30
[stepper_tr_fil_driver]
# stepper connected to GEAR, selector filament sensor to ENCODER
step_pin: tr:gpio7
dir_pin: !tr:gpio8
enable_pin: !tr:gpio6
rotation_distance: 22.67895
gear_ratio: 50:17
microsteps: 16
full_steps_per_rotation: 200
endstop_pin: ^tr:gpio15 # selector filament sensor
position_min: -5000
position_endstop: 0
position_max: 5000
homing_positive_dir: False
[tmc2209 stepper_tr_selector]
# connected to SELECTOR
uart_pin: tr:gpio0
interpolate: True
run_current: 0.63 # for a 1A peak motor
sense_resistor: 0.110
[tmc2209 stepper_tr_fil_driver]
# connected to GEAR
uart_pin: tr:gpio9
interpolate: False
run_current: 1.27 # for a 2A peak motor
sense_resistor: 0.110
[servo tr_servo]
# connected to SERVO
pin: tr:gpio21
maximum_servo_angle: 131
minimum_pulse_width: 0.000700
maximum_pulse_width: 0.002200
[extruder]
max_extrude_only_distance: 200
max_extrude_cross_section: 100
# Macros
[gcode_macro ACTIVATE_EXTRUDER]
rename_existing: ACTIVATE_EXTRUDER.1
gcode:
{% set EXTRUDER = params.EXTRUDER|default('extruder')|lower|replace('extruder', '') %}
{% if EXTRUDER == '' %}
{% set EXTRUDER = '0' %}
{% endif %}
TR_LOAD_TOOLHEAD LANE={EXTRUDER}