-
Notifications
You must be signed in to change notification settings - Fork 15
/
printer.cfg
443 lines (365 loc) · 12.6 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
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
# This file is for a modified Ender 3v2 with Sprite Pro Extruder,
# CR Touch, with a 4.2.7 silent board. Klipper and Mainsail are
# installed on a Raspberry Pi 3B+ 4GB and Raspberry Pi 4B+ 4GB.
# This configuration uses KAMP.
# Klipper Adaptive Meshing and Purge Line files are included.
# Add those to the folder you are running Klipper from.
# MORE INFO ON KAMP GITHUB
# https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging
# This file contains pin mappings for the Creality "v4.2.7" board. To
# use this config, during "make menuconfig" select the STM32F103 with
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
# cable used for the LCD module as follows:
# 3: Tx, 4: Rx, 9: GND, 10: VCC
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# Replace the slicer's custom start and end g-code scripts with
# START_PRINT BED_TEMP={material_bed_temperature_layer_0} EXTRUDER_TEMP={material_print_temperature_layer_0}
# and END_PRINT.
# Printer config created by Lee Otts of Lotsof3D.com
#====================================================================
# INCLUDE MAINSAIL
#====================================================================
[include mainsail.cfg]
#====================================================================
# INCLUDE MACROS
#====================================================================
[include macros.cfg]
#====================================================================
# INCLUDE TIMELAPSE
#====================================================================
[include timelapse.cfg]
#====================================================================
# VIRTUAL SD CARD
#====================================================================
[virtual_sdcard]
path: ~/printer_data/gcodes
#====================================================================
# INCLUDE KAMP - Klipper Adaptive Meshing Purging
#====================================================================
# If you were using older files and getting errors you may need to
# change file name from Adaptive_Mesh.cfg to Adaptive_Meshing.cfg
[include Adaptive_Meshing.cfg]
[include Line_Purge.cfg]
# *** IMPORTANT ***
# You will also need to ensure the following is defined in moonraker.conf
#
# [file_manager]
#enable_object_processing: True
#====================================================================
# EXCLUDE OBJECTS
#====================================================================
# The [exclude_object] module allows Klipper to exclude objects
# while a print is in progress.
[exclude_object]
#====================================================================
# Respond Messages
#====================================================================
[respond]
#default_type: echo
# Sets the default prefix of the "M118" and "RESPOND" output to one
# of the following:
# echo: "echo: " (This is the default)
# command: "// "
# error: "!! "
default_prefix:
# Directly sets the default prefix. If present, this value will
# override the "default_type".
#====================================================================
# MCU
#====================================================================
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
#====================================================================
# Raspberry Pi Temperature Display for Mainsail
#====================================================================
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
#====================================================================
# PRINTER
#====================================================================
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_accel_to_decel: 3000
max_z_velocity: 5
max_z_accel: 100
square_corner_velocity: 5
#====================================================================
# STEPPER X
#====================================================================
[stepper_x]
step_pin: PB9
dir_pin: PC2
enable_pin: !PC3
microsteps: 16
rotation_distance: 39.87
endstop_pin: ^PA5
position_endstop: 0
position_max: 235
position_min: -15
homing_speed: 50
#====================================================================
# STEPPER Y
#====================================================================
[stepper_y]
step_pin: PB7
dir_pin: PB8
enable_pin: !PC3
microsteps: 16
rotation_distance: 39.72
endstop_pin: ^PA6
position_endstop: 0
position_max: 235
position_min: -13
homing_speed: 50
#====================================================================
# STEPPER Z
#====================================================================
[stepper_z]
step_pin: PB5
dir_pin: !PB6
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 250
position_min: -4
homing_speed: 4
second_homing_speed: 1
homing_retract_dist: 2.0
#====================================================================
# FANS
#====================================================================
[fan]
pin: PA0
#====================================================================
# EXTRUDER
#====================================================================
[extruder]
max_extrude_only_distance: 100.0 # for rotation_distance calibration. Default is 50
step_pin: PB3
dir_pin: PB4
enable_pin: !PC3
microsteps: 16
gear_ratio: 3.5:1
rotation_distance: 26.359
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
#control: pid
#pid_Kp: 23.561
#pid_Ki: 1.208
#pid_Kd: 114.859
min_temp: 0
max_temp: 300 # Set to 300 for Sprite Pro Extruder
min_extrude_temp: 170
max_extrude_cross_section: 5 # For KAMP purge
#====================================================================
# PRESSURE ADVANCE
#====================================================================
# It is recommended to calibrate your own pressure advance.
# See https://www.klipper3d.org/Pressure_Advance.html
#pressure_advance: .0465 # Overture PLA White
pressure_advance: .0369 # Polymaker PLA Pro Teal
pressure_advance_smooth_time: 0.04
#====================================================================
# PAUSE RESUME
#====================================================================
[pause_resume]
recover_velocity: 25
#====================================================================
# IDLE TIMEOUT
#====================================================================
# [idle_timeout] allows Klipper to automatically shut down
# the printer after a period of inactivity, default is 5 minutes.
# This can be useful for when needing to extend time between filament
# swaps or pauses. I use for HueForge.
# Time-out is in seconds, 30 minutes for safety reasons adjust
# at you own risk.
# [idle_timeout]
# gcode:
# {% if printer.pause_resume.is_paused %}
# M118 Idle timeout while paused, turning off hotend
# SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
# {% else %}
# M118 Idle timeout
# TURN_OFF_HEATERS
# M84
# {% endif %}
# timeout: 1800
#====================================================================
# BED
#====================================================================
[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
#control: pid
#pid_Kp: 54.027
#pid_Ki: 0.770
#pid_Kd: 948.182
min_temp: 0
max_temp: 130
#====================================================================
# BL TOUCH
#====================================================================
[bltouch]
sensor_pin: ^PB1
control_pin: PB0
x_offset: -31.8
y_offset: -40.5
#z_offset: 4 # z_offset is saved in SAVE_CONFIG section below
speed:35
samples:3
samples_result: median
samples_tolerance: 0.0075
samples_tolerance_retries: 10
probe_with_touch_mode: true
stow_on_each_sample: false
#====================================================================
# SAFE Z HOME
#====================================================================
[safe_z_home]
home_xy_position: 147, 154
speed: 75
z_hop: 10
z_hop_speed: 5
move_to_previous: true
#====================================================================
# SCREW ADJUSTMENT
#====================================================================
[bed_screws]
screw1: 25, 205 # Using rear left to take measurements as harder to reach
screw1_name: rear left screw
screw2: 195, 205
screw2_name: rear right screw
screw3: 195, 35
screw3_name: front right screw
screw4: 25, 35
screw4_name: front left screw
[screws_tilt_adjust]
screw1: 57, 229
screw1_name: rear left screw
screw2: 227, 229
screw2_name: rear right screw
screw3: 227, 70
screw3_name: front right screw
screw4: 57, 70
screw4_name: front left screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
#====================================================================
# BED MESH PARAMETERS
#====================================================================
[bed_mesh]
speed: 120
horizontal_move_z: 8
mesh_min: 15,15
mesh_max: 188,186
probe_count: 7,7
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
#====================================================================
# INPUT SHAPER
#====================================================================
# Klipper supports Input Shaping - a technique that can be used to
# reduce ringing (also known as echoing, ghosting or rippling) in
# prints. Ringing is a surface printing defect when, typically,
# elements like edges repeat themselves on a printed surface as a
# subtle 'echo':
# Every printer is different and the ringing frequency depends on
# the printer's mechanical properties. The ringing frequency can be
# measured by printing a simple test object and measuring the
# distance between the echoes. The ringing frequency is typically
# between 50 and 100 Hz.
# https://www.klipper3d.org/Resonance_Compensation.html
# Uncomment the following lines to enable input shaping. The
# shaper_freq_x and shaper_freq_y parameters should be set to the
# ringing frequency of the printer.
# MANUAL SETUP
# [input_shaper]
# shaper_freq_x: 54.85
# shaper_type_x: ei
# shaper_freq_y: 57.52
# shaper_type_y: mzv
# # ADXL345 SETUP
# [input_shaper]
# shaper_freq_x: 68.8
# shaper_type_x: mzv
# shaper_freq_y: 44.4
# shaper_type_y: mzv
# Set up your accelerometer using the following link https://www.klipper3d.org/Measuring_Resonances.html
# # [mcu rpi]
# # serial: /tmp/klipper_host_mcu
# [adxl345]
# cs_pin: rpi:None
# [resonance_tester]
# accel_chip: adxl345
# probe_points:
# 117, 117, 20 # home probe point
#====================================================================
# SAVE_CONFIG *** IMPORTANT ***
#====================================================================
# To avoid any potential errors, it's best to include the
# SAVE_CONFIG information provided below.
# Additionally, it's highly recommended that you tune your own PID
# values and set the z-offset before starting any printing tasks.
# This will help ensure that your machine performs optimally and
# that you achieve the best possible results.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 20.975
#*# pid_ki = 1.260
#*# pid_kd = 87.307
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 66.288
#*# pid_ki = 0.607
#*# pid_kd = 1809.671
#*#
#*# [bltouch]
#*# z_offset = 2.130
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.125000, -0.147500, -0.175000, -0.077500, -0.077500, -0.062500, -0.065000
#*# -0.075000, -0.137500, -0.155000, -0.055000, -0.022500, -0.080000, -0.112500
#*# -0.105000, -0.077500, -0.052500, -0.032500, -0.032500, -0.070000, -0.100000
#*# -0.115000, -0.070000, -0.037500, -0.012500, -0.067500, -0.067500, -0.035000
#*# -0.082500, -0.080000, -0.057500, -0.017500, -0.050000, -0.015000, -0.032500
#*# -0.062500, -0.062500, -0.060000, -0.032500, -0.040000, -0.025000, -0.062500
#*# -0.097500, -0.082500, -0.085000, -0.060000, -0.050000, -0.030000, -0.067500
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 14.999999999999996
#*# max_x = 187.98
#*# min_y = 14.990000000000002
#*# max_y = 186.0