-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
350 lines (295 loc) · 6.98 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
# This file contains pin mappings for the BigTreeTech Octopus board.
# To use this config, start by identifying the
# micro-controller on the board - it may be an STM32F446, STM32F429,
# or an STM32H723. Select the appropriate micro-controller in "make
# menuconfig" and select "Enable low-level configuration options". For
# STM32F446 boards the firmware should be compiled with a "32KiB
# bootloader" and a "12MHz crystal" clock reference. For STM32F429
# boards use a "32KiB bootloader" and an "8MHz crystal". For STM32H723
# boards use a "128KiB bootloader" and a "25Mhz crystal".
# Check out https://www.thingiverse.com/darkmagedesigns/designs
# and https://github.com/DarkmageDesigns.
# Designed to work with Moonraker and Mainsail.
# It's recommended you also download the Macros folder and put it
# in your klipper printer_data folder.
## SOME FUNCTIONS WILL NOT WORK WITHOUT THIS AND YOUR PRINTS MAY FAIL! ##
########################################
# PRINTER #
########################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_330027001050304235343520-if00
[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 4000
max_z_velocity: 10
max_z_accel: 100
[include mainsail.cfg]
[virtual_sdcard]
path: /home/darkmage/printer_1_data/gcodes
on_error_gcode: CANCEL_PRINT
[include macros/*.cfg]
[include KAMP_Settings.cfg]
#[include PIS.cfg] # Enable for FYSETC Input Shaper
[pause_resume]
recover_velocity: 100
[respond]
[save_variables]
filename: ~/variables.cfg
########################################
# STEPPERS #
########################################
# Driver0
[stepper_x]
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: PG6
position_endstop: 355
position_min: 0
position_max: 355
homing_speed: 80
homing_retract_dist: 5
# Driver1
[stepper_y]
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: PG9
position_endstop: 360
position_min: 0
position_max: 360
homing_speed: 80
homing_retract_dist: 5
# Driver2
[stepper_z]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
microsteps: 16
rotation_distance: 4
full_steps_per_rotation: 200
endstop_pin: probe:z_virtual_endstop
position_min: -0.5
position_max: 411
# Driver3
[stepper_z1]
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 16
rotation_distance: 4
full_steps_per_rotation: 200
########################################
# EXTRUDER #
########################################
# Driver4
[extruder]
step_pin: PF9
dir_pin: PF10
enable_pin: !PG2
rotation_distance: 7.737
microsteps: 16
full_steps_per_rotation: 200
nozzle_diameter: 0.600
filament_diameter: 1.750
max_extrude_only_distance: 750.0
max_extrude_only_velocity: 1000
max_extrude_only_accel: 1000.0
max_extrude_cross_section = 5
heater_pin: PA2 # HE0
sensor_pin: PF4 # T0
sensor_type: EPCOS 100K B57560G104F
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_extrude_temp: 170
min_temp: 5
max_temp: 295
pressure_advance = 0.028
[input_shaper]
shaper_freq_x: 65.8
shaper_type_x: mzv
shaper_freq_y: 61.8
shaper_type_y: zv
[bltouch]
sensor_pin: ^PB7
control_pin: PB6
stow_on_each_sample: False
probe_with_touch_mode: True
x_offset: -44
y_offset: -12
#z_offset: 2.89
speed: 4.0
samples: 2
sample_retract_dist: 3.0
########################################
# TMC2208 configuration
########################################
[tmc2208 stepper_x]
uart_pin: PC4
#diag_pin: PG6
run_current: 0.75
stealthchop_threshold: 999999
[tmc2208 stepper_y]
uart_pin: PD11
#diag_pin: PG9
run_current: 0.75
stealthchop_threshold: 999999
[tmc2208 stepper_z]
uart_pin: PC6
#diag_pin: PG10
run_current: 0.650
stealthchop_threshold: 999999
[tmc2208 stepper_z1]
uart_pin: PC7
#diag_pin: PG11
run_current: 0.650
stealthchop_threshold: 999999
[tmc2208 extruder]
uart_pin: PF2
run_current: 0.800
stealthchop_threshold: 999999
#[tmc2208 extruder1]
#uart_pin: PE4
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2209 extruder2]
#uart_pin: PE1
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2209 extruder3]
#uart_pin: PD3
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# BED #
########################################
[heater_bed]
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF3 # TB
#control: pid
#pid_Kp: 690.34
#pid_Ki: 111.47
#pid_Kd: 1068.83
#control: watermark
min_temp: 0
max_temp: 130
[safe_z_home]
home_xy_position: 221,188
speed: 150.0
z_hop: 10.0
z_hop_speed: 5.0
[bed_mesh]
algorithm: bicubic
speed: 200
horizontal_move_z: 8
mesh_min: 5, 5
mesh_max: 309, 347
probe_count: 7, 7
fade_start: 1
fade_end: 10
[bed_screws]
screw1: 25, 45
screw2: 325, 45
screw3: 325, 305
screw4: 25, 305
########################################
# FANS #
########################################
[fan] ; Part cooling fan
pin: PA8
max_power: 1.0
[heater_fan controller_fan] ; Case fan
pin: PD12
heater: heater_bed
heater_temp: 45.0
[heater_fan case_fan_1] ; Aditional case fans
pin: PD13
heater: heater_bed
heater_temp: 45.0
[heater_fan case_fan_2]
pin: PD14
heater: heater_bed
heater_temp: 45.0
[heater_fan Heatsink_fan] ; Heatsink fan
pin: PE5
max_power: 1.0
########################################
# Filament Sensor #
########################################
[filament_switch_sensor filament_sensor]
switch_pin:PG12
pause_on_runout: false #pause handled by macro
runout_gcode:
M600
event_delay: 3.0
pause_delay: 0.5
########################################
# Board Pins #
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=PC5
########################################
# SAVE CONFIG #
########################################
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 27.332
#*# pid_ki = 1.642
#*# pid_kd = 113.770
#*#
#*# [heater_bed]
#*# pid_kp = 60.081
#*# pid_ki = 0.704
#*# pid_kd = 1281.980
#*# control = pid
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.012702, 0.002298, 0.030423
#*# -0.043327, -0.002702, 0.014798
#*# -0.075202, -0.032077, -0.037077
#*# tension = 0.2
#*# min_x = 157.8
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 160.3
#*# x_count = 3
#*# max_y = 199.67
#*# mesh_x_pps = 2
#*# max_x = 197.17
#*#
#*# [bltouch]
#*# z_offset = 3.040
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 60.6
#*# shaper_type_y = ei
#*# shaper_freq_y = 58.6