-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter_octopus.cfg
373 lines (307 loc) · 8.6 KB
/
printer_octopus.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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
#####################################################################
# Voron V2.4 - http://voron.local
#####################################################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_270020001050334636383920-if00
restart_method: command
#[mcu btt_adxl345]
#serial: /dev/serial/by-id/usb-Klipper_rp2040_50443403107FAF1C-if00
#[mcu SHT36T0]
#canbus_uuid: 611d93f043f5 #Mellow Fly SHT36V3 T0 Xol Toolhead PURPLE
#canbus_uuid: 2479b3e2b5f4 #Mellow Fly SHT36V3 T1 Xol Toolhead YELLOW
#canbus_uuid: 8716fdee049b #Mellow Fly SHT36V3 T2 Xol Toolhead GREY
#canbus_uuid: 52ac804c79e1 #Mellow Fly SHT36V3 T3 Xol Toolhead TURQUOISE
#canbus_uuid: be8910a68cbf #Mellow Fly SHT36V3 T4 Xol Toolhead RED
# OLD BOARDS
#canbus_uuid: df9ee7029587 BTT SB2209 RP2040
#canbus_uuid: 3a1fcbf723e4 BTT SB2240
#canbus_uuid: 7c25c6b9944f Fly SB2040
#canbus_uuid: cca0a206dd62 Mellow Fly SHT36V3 Faulty board
[printer]
kinematics: corexy
max_velocity: 600
max_accel: 12000
max_z_velocity: 150 #20
max_z_accel: 350
square_corner_velocity: 5.0
[input_shaper]
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[include sensorless.cfg]
[include bedfans.cfg]
[include nozzle_scrub.cfg]
#[include stealthburner.cfg]
[include speedtest.cfg]
[include extras.cfg]
#[include print_area_bed_mesh.cfg]
[include mainsail.cfg]
[include config_backup.cfg]
[skew_correction]
[exclude_object]
[shaketune]
result_folder: ~/printer_data/config/ShakeTune_results # The folder where the results will be stored. It will be created if it doesn't exist.
number_of_results_to_keep: 3 # The number of results to keep in the result_folder. The oldest results will be automatically deleted after each runs.
keep_raw_csv: False # If True, the raw CSV files will be kept in the result_folder alongside the PNG graphs. If False, they will be deleted and only the graphs will be kept.
show_macros_in_webui: True # Mainsail and Fluidd doesn't create buttons for "system" macros that are not in the printer.cfg file. If you want to see the macros in the webui, set this to True.
timeout: 300 # The maximum time in seconds to let Shake&Tune process the CSV files and generate the graphs.
#####################################################################
# Stealthchanger-Specific Settings
#####################################################################
[rounded_path]
resolution: 0.2
replace_g0: False
[force_move]
enable_force_move: True
[include homing.cfg]
[include macros.cfg]
[include tool_detection.cfg]
[include toolchanger.cfg]
[include Toolhead_T0.cfg]
[include Toolhead_T1.cfg]
[include Toolhead_T2.cfg]
[include Toolhead_T3.cfg]
[include Toolhead_T4.cfg]
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: -10
position_endstop: 350
position_max: 350
homing_speed: 30
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC4
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: PG6
driver_SGTHRS: 68 # 255 is most sensitive value, 0 is least sensitive
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: 0
position_endstop: 350
position_max: 350
homing_speed: 30
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PD11
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: PG9
driver_SGTHRS: 65 # 255 is most sensitive value, 0 is least sensitive
#####################################################################
# Z Stepper Settings
#####################################################################
[stepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
endstop_pin: probe:z_virtual_endstop
position_max: 350
position_min: -5
homing_speed: 5
second_homing_speed: 3
homing_retract_dist: 3
[tmc2209 stepper_z]
uart_pin: PC6
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[stepper_z1]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z1]
uart_pin: PC7
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[stepper_z2]
step_pin: PF9
dir_pin: PF10
enable_pin: !PG2
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z2]
uart_pin: PF2
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[stepper_z3]
step_pin: PC13
dir_pin: !PF0
enable_pin: !PF1
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z3]
uart_pin: PE4
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
[tool_probe T0]
#z_offset = -1.360
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PA3
sensor_type:Generic 3950
sensor_pin: PF3
max_power: 1
min_temp: 0
max_temp: 120
#control: pid
#pid_kp: 58.437
#pid_ki: 2.347
#pid_kd: 363.769
#####################################################################
# Temperature Sensors
#####################################################################
[temperature_sensor Chamber_Temp]
gcode_id: C
sensor_type: Generic 3950
sensor_pin: PF5
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#####################################################################
# Fan Control
#####################################################################
[controller_fan controller_fan]
pin: PD12
kick_start_time: 0.2
heater: heater_bed
fan_speed: 0.5
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
[quad_gantry_level]
gantry_corners:
-60,-10
410,420
points:
50,25
50,275
300,275
300,25
speed: 300
horizontal_move_z: 8
retries: 5
retry_tolerance: 0.0075
max_adjust: 20 #10
[bed_mesh]
speed: 400
horizontal_move_z: 8
mesh_min: 40, 40
mesh_max: 310,310
fade_start: 0.6
fade_end: 10.0
probe_count: 5,5
algorithm: bicubic
adaptive_margin: 5
#relative_reference_index: 12
zero_reference_position: 175, 175
#####################################################################
# Resonance Testing
#####################################################################
#[adxl345]
#cs_pin: btt_adxl345:gpio9
##spi_bus: spi1a
#spi_software_sclk_pin: btt_adxl345:gpio10
#spi_software_mosi_pin: btt_adxl345:gpio11
#spi_software_miso_pin: btt_adxl345:gpio8
#axes_map: -x,-y,-z
#[resonance_tester]
#probe_points: 175, 175, 20
#accel_chip: adxl345
#min_freq: 5
#max_freq: 133
#accel_per_hz: 100
#hz_per_sec: 1
#[resonance_tester]
#accel_chip: lis2dw T0
#probe_points: 175, 175, 20
#min_freq: 5
#max_freq: 133
#accel_per_hz: 100
#hz_per_sec: 1
# TEST_RESONANCES AXIS=X
# TEST_RESONANCES AXIS=Y
# SSH and run:
# ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
# ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
#####################################################################
# Macros
#####################################################################
[gcode_macro G32]
gcode:
SAVE_GCODE_STATE NAME=STATE_G32
G90
G28
QUAD_GANTRY_LEVEL
#G28 Z
G0 X175 Y175 Z5 F20000
RESTORE_GCODE_STATE NAME=STATE_G32
[gcode_macro SAVE_ENDSTOP]
gcode:
Z_OFFSET_APPLY_PROBE
SAVE_CONFIG
[gcode_macro QUAD_GANTRY_LEVEL]
description: QGL and then Home Z to move probe to centre of bed
rename_existing: QUAD_GANTRY_LEVEL_BASE
gcode:
QUAD_GANTRY_LEVEL_BASE
G28 Z
[ktamv]
nozzle_cam_url: http://localhost/webcam/snapshot?max_delay=0
server_url: http://localhost:8085
move_speed: 1800
send_frame_to_cloud: true
detection_tolerance: 0
[include ktamv-macros.cfg]
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 60.873
#*# pid_ki = 3.051
#*# pid_kd = 303.603