-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
333 lines (293 loc) · 7.78 KB
/
printer.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# This file contains common pin mappings for the BigTreeTech Octopus V1.
# To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
# Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
# after running "make", copy the generated "klipper/out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
# See docs/Config_Reference.md for a description of parameters.
[include IDEX_mode.cfg]
[include pin_aliases_octopus.cfg]
[include mainsail.cfg]
[include toolhead0.cfg]
[include toolhead1.cfg]
[include macros.cfg]
[include lights.cfg]
[include klicky.cfg]
[include z_calibration.cfg]
[mcu]
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
# Starts as: serial: /dev/serial/by-id/usb-STMicroelectronics_BIGTREE_OCTOPUS_CDC_in_FS_Mode_204331844E53-if00
# After first build:
serial: /dev/serial0
restart_method: command
##--------------------------------------------------------------------
[force_move]
enable_force_move: true
# Intentionally slow until limits are determined and stepper currents are set correctly.
[printer]
kinematics: hybrid_corexy
max_velocity: 200
max_accel: 2000
max_z_velocity: 100
max_z_accel: 200
square_corner_velocity: 5.0
#####################################################################
# X Steppers
#####################################################################
## Right Extruder X motor (when looking at the front)
## Connected to MOTOR_0
## Endstop connected to DIAG_0
[stepper_x]
step_pin: mcu:MOT1_STEP
dir_pin: mcu:MOT1_DIR
enable_pin: !mcu:MOT1_EN
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200
# Uncomment below if using direct inputs on Octo
#endstop_pin: ^PG6#
endstop_pin: ^head0:PB5
position_endstop: -50
position_min: -52
position_max: 228
homing_speed: 60
homing_retract_dist: 5
second_homing_speed: 10
[tmc2209 stepper_x]
uart_pin: mcu:MOT1_CS
run_current: 0.4
stealthchop_threshold: 500
## Left Extruder X motor (when looking at the front)
## Connected to MOTOR_2
## Endstop connected to DIAG_2
[dual_carriage]
axis: x
step_pin: mcu:MOT0_STEP
dir_pin: mcu:MOT0_DIR
enable_pin: !mcu:MOT0_EN
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200
endstop_pin: ^head1:PB5
position_endstop: 17.4
position_min: 17
position_max: 300
homing_speed: 60
homing_retract_dist: 10
second_homing_speed: 10
[tmc2209 dual_carriage]
uart_pin: mcu:MOT0_CS
run_current: 0.4
stealthchop_threshold: 500
##--------------------------------------------------------------------
## Right Y motor (when looking at the front)
## Connected to MOTOR_1
## Endstop connected to DIAG_1
[stepper_y]
step_pin: mcu:MOT2_STEP
dir_pin: !mcu:MOT2_DIR
enable_pin: !mcu:MOT2_EN
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin: ^mcu:ESTOP1
position_endstop: 255
position_max: 255
position_min: -5
homing_speed: 40
homing_retract_dist: 5
[tmc2209 stepper_y]
uart_pin: mcu:MOT2_CS
run_current: 0.4
stealthchop_threshold: 500
## Left Y motor (when looking at the front)
## Connected to MOTOR_3
## Endstop connected to DIAG_3
[stepper_y1]
step_pin: mcu:MOT3_STEP
dir_pin: mcu:MOT3_DIR
enable_pin: !mcu:MOT3_EN
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin: ^mcu:ESTOP2
[tmc2209 stepper_y1]
uart_pin: mcu:MOT3_CS
run_current: 0.4
stealthchop_threshold: 500
#####################################################################
# Z Stepper Settings
#####################################################################
## Z0 Stepper - Front Right
## Connected to MOTOR_4
## Endstop connected to DIAG_4
[stepper_z]
step_pin: mcu:MOT4_STEP
dir_pin: !mcu:MOT4_DIR
enable_pin: !mcu:MOT4_EN
rotation_distance: 40
gear_ratio: 80:16
microsteps: 16
endstop_pin: ^mcu:ESTOP0
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
#position_endstop: 0
position_max: 120
position_min: -5
homing_speed: 5
second_homing_speed: 3
homing_retract_dist: 2
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z]
uart_pin: mcu:MOT4_CS
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 500
## Z1 Stepper - Front Left
[stepper_z1]
step_pin: mcu:MOT5_STEP
dir_pin: mcu:MOT5_DIR
enable_pin: !mcu:MOT5_EN
rotation_distance: 40
gear_ratio: 80:16
microsteps: 16
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z1]
uart_pin: mcu:MOT5_CS
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 500
## Z2 Stepper - Rear
[stepper_z2]
step_pin: mcu:MOT6_STEP
dir_pin: mcu:MOT6_DIR
enable_pin: !mcu:MOT6_EN
rotation_distance: 40
gear_ratio: 80:16
microsteps: 16
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z2]
uart_pin: mcu:MOT6_CS
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 500
[heater_bed]
heater_pin: mcu:BED_OUT
sensor_type: Generic 3950
sensor_pin: mcu:TB
max_power: 0.9
pwm_cycle_time: 0.017
min_temp: 0
max_temp: 120
#control = pid
#pid_kp = 41.995
#pid_ki = 0.798
#pid_kd = 552.754
[probe]
## Inductive Probe - Connected to Z MAX
## This probe is not used for Z height, only Quad Gantry Leveling
## Connected to Probe Pins
## If your probe is NO instead of NC, change pin to !PA3
pin: head0:PB6
z_offset: 6.1
x_offset: 0
y_offset: 21
speed: 5
samples: 3
samples_tolerance: 0.006
samples_result: median
samples_tolerance_retries: 5
[z_tilt]
## Use Z_TILT_ADJUST to level the bed left to right.
## z_positions: Location of toolhead
z_positions:
-88,0
125,325
338,0
points:
30,30
125,220
220,30
speed: 200
horizontal_move_z: 10
retries: 5
retry_tolerance: 0.01
[bed_mesh]
horizontal_move_z: 10
speed: 500
mesh_min: 30, 30
mesh_max: 220, 220
fade_start: 0.6
fade_end: 10.0
probe_count: 5,5
algorithm: bicubic
relative_reference_index: 12
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 100
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
[temperature_sensor PSU]
sensor_type: Generic 3950
sensor_pin: mcu:T1
[temperature_sensor Steppers]
sensor_type: Generic 3950
sensor_pin: mcu:T2
[controller_fan stepper_cooler]
pin: mcu:FAN0
stepper: stepper_x
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 34.060
#*# pid_ki = 5.975
#*# pid_kd = 48.535
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.010000, 0.047500, 0.057500, 0.020000, 0.015000
#*# -0.025000, 0.027500, 0.030000, -0.015000, -0.012500
#*# -0.057500, -0.025000, 0.000000, -0.042500, -0.052500
#*# -0.102500, -0.075000, -0.042500, -0.085000, -0.077500
#*# -0.162500, -0.110000, -0.082500, -0.117500, -0.137500
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 220.0
#*# min_y = 30.0
#*# max_y = 220.0
#*#
#*# [bed_mesh default2]
#*# version = 1
#*# points =
#*# -2.065000, -1.442500, -0.837500, -0.252500, 0.300000
#*# -1.662500, -1.005000, -0.402500, 0.155000, 0.735000
#*# -1.240000, -0.595000, 0.000000, 0.555000, 1.155000
#*# -0.830000, -0.207500, 0.405000, 0.985000, 1.595000
#*# -0.450000, 0.202500, 0.870000, 1.392500, 1.985000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 220.0
#*# min_y = 30.0
#*# max_y = 220.0
#*#
#*# [stepper_z]
#*# position_endstop = 0.785