-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter022223.cfg
More file actions
444 lines (385 loc) · 11.9 KB
/
Copy pathprinter022223.cfg
File metadata and controls
444 lines (385 loc) · 11.9 KB
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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
# BigTreeTech Octopus V1.
[include mainsail.cfg]
[include Sensorless XY.cfg]
[mcu]
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_400034000450565843333620-if00
restart_method: command
##--------------------------------------------------------------------
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 6000 #Max 4000
max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350
square_corner_velocity: 5.0
#####################################################################
# X/Y Stepper Settings
#####################################################################
## B Stepper - Left
## Connected to MOTOR_0
## Endstop connected to DIAG_0
[stepper_x]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 40
microsteps: 16
full_steps_per_rotation:400 #set to 400 for 0.9 degree stepper
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: 0
position_endstop: 300
position_max: 300
homing_speed: 50 #Max 100
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC4
diag_pin: PG6
interpolate: False
run_current: 1.0
sense_resistor: 0.110
driver_SGTHRS: 166
## A Stepper - Right
## Connected to MOTOR_1
## Endstop connected to DIAG_1
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 40
microsteps: 16
full_steps_per_rotation:400 #set to 400 for 0.9 degree stepper
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: 0
position_endstop: 300
position_max: 300
homing_speed: 50 #Max 100
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PD11
diag_pin: PG9
interpolate: False
run_current: 1.0
sense_resistor: 0.110
driver_SGTHRS: 165
#####################################################################
# Z Stepper Settings
#####################################################################
## Z0 Stepper - Front Left
## Connected to MOTOR_2
## Endstop connected to DIAG_2
[stepper_z]
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
# Rotation Distance for TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
rotation_distance: 4
microsteps: 32
endstop_pin: probe:z_virtual_endstop # use beacon as virtual endstop
## 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.5
## All builds use same Max Z
position_max: 250
position_min: -3.5
homing_speed: 8.0 # Leadscrews are slower than 2.4, 10 is a recommended max.
second_homing_speed: 3
homing_retract_dist: 0 # beacon needs this to be set to 0
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z]
uart_pin: PC6
interpolate: False
run_current: 0.6
sense_resistor: 0.110
## Z1 Stepper - Rear Center
## Connected to MOTOR_3
[stepper_z1]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance: 4
microsteps: 32
[tmc2209 stepper_z1]
uart_pin: PC7
interpolate: False
run_current: 0.6
sense_resistor: 0.110
## Z2 Stepper - Front Right
## Connected to MOTOR_4
[stepper_z2]
step_pin: PF9
dir_pin: !PF10
enable_pin: !PG2
rotation_distance: 4
microsteps: 32
[tmc2209 stepper_z2]
uart_pin: PF2
interpolate: False
run_current: 0.6
sense_resistor: 0.110
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
## SSR Pin - HE1
## Thermistor - TB
heater_pin: PA3
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
sensor_type: Generic 3950
sensor_pin: PF3
## Adjust Max Power so your heater doesn't warp your bed. Rule of thumb is 0.4 watts / cm^2 .
max_power: 0.6
min_temp: 0
max_temp: 120
#control: pid
#pid_kp: 58.437
#pid_ki: 2.347
#pid_kd: 363.769
pwm_cycle_time: 0.0166
## HOT END FAN
[heater_fan hotend_fan]
## Hotend Fan - FAN1
pin: PE5
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
## PART COOLING
[fan]
pin: PD13
kick_start_time: 0.50
cycle_time: 0.15
off_below: 0.10
#####################################################################
# Extruder
#####################################################################
## EXTRUDER
[extruder]
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
#rotation_distance: 22.67895 #for 5mm Shaft Driven Bondtech gearsets
rotation_distance: 22.67895
gear_ratio: 50:8 #for sherpa mini 8t motor
microsteps: 16
full_steps_per_rotation: 200 #1.8deg Motor
max_extrude_only_distance: 1400.0
max_extrude_only_velocity: 75.0
max_extrude_only_accel: 1500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA2
sensor_pin: PF4
sensor_type: PT1000
#pullup_resistor: 2200 # this is the default for the Revo heater
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 10
max_temp: 300
pressure_advance: 0.0325
pressure_advance_smooth_time: 0.020
[tmc2209 extruder]
uart_pin: PE1
stealthchop_threshold: 0
run_current: 0.30
sense_resistor: 0.110
## RGB
#[neopixel my_neopixel]
#pin: RGBLED
#chain_count: 12
#color_order: GRB
#initial_RED: 0.0
#initial_GREEN: 0.0
#initial_BLUE: 0.0
#####################################################################
# Beacon
#####################################################################
[beacon]
serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_0D9B8DFB515137474C202020FF0C3929-if00
x_offset: 0 # update with offset from nozzle on your machine
y_offset: 25 # update with offset from nozzle on your machine
mesh_main_direction: x
mesh_runs: 2
#####################################################################
# Bed Mesh
#####################################################################
[bed_mesh]
speed: 300
horizontal_move_z: 15
## for 300mm build
mesh_min: 40, 40
mesh_max: 260,260
fade_start: 0.6
fade_end: 10.0
probe_count: 10,10
algorithm: bicubic
relative_reference_index: 12
#####################################################################
# Bay Fan
#####################################################################
[heater_fan Bay_Fan]
pin: PA8
max_power: 1.0
shutdown_speed: 0.0
kick_start_time: 5.0
heater: heater_bed
heater_temp: 60
fan_speed: .35
#####################################################################
# Nevermore
#####################################################################
[heater_fan Nevermore]
pin: PD15
max_power: 1.0
shutdown_speed: 0.0
kick_start_time: 5.0
heater: heater_bed
heater_temp: 90
fan_speed: .4
#####################################################################
# RPi
#####################################################################
[temperature_sensor RPi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#####################################################################
# Octopus
#####################################################################
[temperature_sensor Octopus]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
#####################################################################
# Chamber Temp
#####################################################################
[temperature_sensor Chamber]
sensor_type: ATC Semitec 104GT-2
sensor_pin: PF5
min_temp: 10
max_temp: 100
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 3600
#[safe_z_home]
## XY Location of the Z Endstop Switch
## Update -10,-10 to the XY coordinates of your endstop pin
## (such as 157,305) after going through Z Endstop Pin
## Location Definition step.
#home_xy_position:150,150
#speed:100
#z_hop:3
[z_tilt]
## Use Z_TILT_ADJUST to level the bed .
## z_positions: Location of toolhead
z_positions:
-50, 18
150, 348
350, 18
points:
30, 5
150, 245
270, 5
##--------------------------------------------------------------------
speed: 200
horizontal_move_z: 15
retries: 5
retry_tolerance: 0.0075
#####################################################################
# Macros
#####################################################################
[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - PLEASE CUSTOMISE THE SCRIPT
gcode:
M117 Homing... ; display message
G28
Z_TILT_ADJUST
G28
BED_MESH_PROFILE LOAD=default
G0 X150 Y150 Z30 F3600
#--------------------------------------------------------------------
[gcode_macro PRINT_END]
# Use PRINT_END for the slicer ending script - please customise for your slicer of choice
gcode:
# safe anti-stringing move coords
{% set th = printer.toolhead %}
{% set x_safe = th.position.x + 20 * (1 if th.axis_maximum.x - th.position.x > 20 else -1) %}
{% set y_safe = th.position.y + 20 * (1 if th.axis_maximum.y - th.position.y > 20 else -1) %}
{% set z_safe = [th.position.z + 2, th.axis_maximum.z]|min %}
SAVE_GCODE_STATE NAME=STATE_PRINT_END
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-2.0 F3600 ; retract filament
TURN_OFF_HEATERS
G90 ; absolute positioning
G0 X{x_safe} Y{y_safe} Z{z_safe} F20000 ; move nozzle to remove stringing
G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
M107 ; turn off fan
BED_MESH_CLEAR
RESTORE_GCODE_STATE NAME=STATE_PRINT_END
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 39.954
#*# pid_ki = 1.227
#*# pid_kd = 325.129
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 25.996
#*# pid_ki = 2.666
#*# pid_kd = 63.364
#*#
#*# [stepper_z]
#*# position_endstop = -1.065
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.056247, -0.022010, 0.003643, 0.000192, -0.000742, -0.006210, -0.009509, -0.017572, -0.041178, -0.065875
#*# -0.050243, -0.019336, 0.000000, -0.003359, -0.014901, -0.020226, -0.022408, -0.037384, -0.069491, -0.091408
#*# -0.056561, -0.026910, -0.005923, -0.011919, -0.023535, -0.028973, -0.032427, -0.046421, -0.082306, -0.106318
#*# -0.064206, -0.035309, -0.019899, -0.013756, -0.016452, -0.019027, -0.028771, -0.046261, -0.075325, -0.104559
#*# -0.074001, -0.050565, -0.035366, -0.022597, -0.019351, -0.016862, -0.024794, -0.044894, -0.071890, -0.098010
#*# -0.078147, -0.060985, -0.039779, -0.032087, -0.022655, -0.026325, -0.036002, -0.053794, -0.077285, -0.103597
#*# -0.057282, -0.040708, -0.022761, -0.025617, -0.024152, -0.033478, -0.048189, -0.059959, -0.078389, -0.102534
#*# -0.045526, -0.025152, -0.009637, -0.019582, -0.031854, -0.049275, -0.067049, -0.071222, -0.084372, -0.110116
#*# -0.028220, -0.008954, 0.001472, -0.013503, -0.030709, -0.057685, -0.079600, -0.084560, -0.094433, -0.116978
#*# -0.026496, -0.008213, -0.001781, -0.019305, -0.039626, -0.067505, -0.096598, -0.097035, -0.111529, -0.132657
#*# tension = 0.2
#*# min_x = 40.0
#*# algo = bicubic
#*# y_count = 10
#*# mesh_y_pps = 2
#*# min_y = 40.0
#*# x_count = 10
#*# max_y = 260.0
#*# mesh_x_pps = 2
#*# max_x = 260.0
#*#
#*# [beacon model default]
#*# model_coef = 1.3610451540938966,
#*# 1.671440571035496,
#*# 0.7541148034583807,
#*# 0.36772279300855315,
#*# 0.3888096905223771,
#*# 0.4350045292781017,
#*# -0.17240402126875543,
#*# -0.34530141031004447,
#*# 0.2674264991175991,
#*# 0.27284860645386266
#*# model_domain = 3.0465754121325484e-07,3.3264243059599067e-07
#*# model_range = 0.200000,5.000000
#*# model_temp = 27.479825
#*# model_offset = -0.16000