-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
334 lines (300 loc) · 7.11 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
# This file contains common pin mappings for Ultimaker UltiMainboard v2
# boards. To use this config, the firmware should be compiled for the
# AVR atmega2560.
# See docs/Config_Reference.md for a description of parameters.
# Include Fluidd config
[include mainsail.cfg]
### Include macros
#[include klipper/macro/macro-cancel.cfg]
#[include klipper/macro/macro-start.cfg]
#[include klipper/macro/macro-end.cfg]
[gcode_macro clean_nozzle]
gcode:
{% set wipe_count = 8 %}
SAVE_GCODE_STATE NAME=clean_nozzle_state
G90
G0 Z15 F300
{% for wipe in range(wipe_count) %}
{% for coordinate in [(200, 4),(200, 4)] %}
G0 X{coordinate[0]} Y{coordinate[1] + 0.25 * wipe} Z9.7 F12000
{% endfor %}
{% endfor %}
RESTORE_GCODE_STATE NAME=clean_nozzle_state
[stepper_x]
step_pin: PC0
dir_pin: !PG2
enable_pin: !PC2
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PA2
position_endstop: 0
#position_min: 0
position_max: 245
#homing_positive_dir: 125
homing_speed: 50.0
[stepper_y]
step_pin: PC6
dir_pin: !PC4
enable_pin: !PA7
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PA6
position_endstop: -15 #0
position_min: -15 #inače #... = 0
position_max: 245
#homing_positive_dir: 125
homing_speed: 50.0
[stepper_z]
step_pin: PA3
dir_pin: PA1
enable_pin: !PA5
microsteps: 16
rotation_distance: 8
position_min: -6
endstop_pin: probe:z_virtual_endstop
#endstop_pin: ^!PC7
#position_endstop: 250
position_max: 250
homing_speed: 10.0
[bltouch]
#pin: PB5
sensor_pin: ^PC7
control_pin: PB5
pin_move_time: 0.680
x_offset: -44 #-40
y_offset: 9 #0
samples: 3
samples_result: median
samples_tolerance: 0.1
samples_tolerance_retries: 8
#stow_on_each_sample: False
sample_retract_dist: 4
# Increase Z_OFFSET to lower nozzle closer to the bed. PLA 2.6
#z_offset: 0.0
speed: 10
pin_up_reports_not_triggered: False
pin_up_touch_mode_reports_triggered: False
probe_with_touch_mode: False
[extruder]
step_pin: PL3
dir_pin: PL5
enable_pin: !PB6
microsteps: 16
rotation_distance: 7.142
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK3
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 250
max_extrude_cross_section: 1 #
# Dual extruder support.
[extruder_stepper extruder1]
extruder: extruder
step_pin: PL0
dir_pin: PL2
enable_pin: !PL1
microsteps: 16
rotation_distance: 7.142
#nozzle_diameter: 0.400
#filament_diameter: 1.750
#shared_heater: extruder
#heater_pin: PE5
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PK1
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
#min_temp: 0
#max_temp: 275
[gcode_macro T0]
gcode:
# Deactivate stepper in my_extruder_stepper
SYNC_EXTRUDER_MOTION EXTRUDER=extruder1 MOTION_QUEUE=
# Activate stepper in extruder
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=extruder
[gcode_macro T1]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=extruder MOTION_QUEUE=
# Activate stepper in my_extruder_stepper
SYNC_EXTRUDER_MOTION EXTRUDER=extruder1 MOTION_QUEUE=extruder
[gcode_macro ACTIVATE_EXTRUDER]
description: Replaces built-in macro for a X-in, 1-out extruder configuration SuperSlicer fix
rename_existing: ACTIVATE_EXTRUDER_BASE
gcode:
{% if 'EXTRUDER' in params %}
{% set ext = params.EXTRUDER|default(EXTRUDER) %}
{% if ext == "extruder"%}
{action_respond_info("Switching to extruder0.")}
T0
{% elif ext == "extruder1" %}
{action_respond_info("Switching to extruder1.")}
T1
{% else %}
{action_respond_info("EXTRUDER value being passed.")}
ACTIVATE_EXTRUDER_BASE EXTRUDER={ext}
{% endif %}
{% endif %}
[heater_bed]
heater_pin: PG5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK2
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 100
[fan]
pin: PH6
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 10
#max_z_velocity: 25
max_z_accel: 10
#max_z_accel: 30
[safe_z_home]
home_xy_position: 125, 125
speed: 100
z_hop: 15
z_hop_speed: 5
#[output_pin case_light]
#static_value: 1.0
#pin: PH5
[display]
lcd_type: st7920
cs_pin: PE3
sclk_pin: PD0
sid_pin: PC1
# The pins connected to an st7920 type lcd. These parameters must be
# provided.
encoder_pins: ^PH0, ^PH1
click_pin: ^!PD2
[bed_screws]
screw1: 46, 46
screw2: 46, 194
screw3: 194, 46
screw4: 194, 194
[screws_tilt_adjust]
screw1: -5, 30
screw1_name: front left screw
screw2: 155, 30
screw2_name: front right screw
screw3: 155, 190
screw3_name: rear right screw
screw4: -5, 190
screw4_name: rear left screw
horizontal_move_z: 10.
speed: 50.
screw_thread: CW-M3
[bed_mesh]
speed: 50
horizontal_move_z: 5
mesh_min: -9, 0
mesh_max: 190, 252
probe_count: 5, 5
mesh_pps: 2, 2 #2,3
algorithm: bicubic
bicubic_tension: 0.2
move_check_distance: 5
split_delta_z: .025
#fade_start: 0.6
#fade_end: 10.0
#relative_reference_index: 12
[output_pin BEEPER_pin]
pin: PD3
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
# PWM parameter will be in the range of (0-1000 Hz).
# Although not pitch perfect.
[endstop_phase]
[input_shaper]
shaper_freq_x= 38.81
shaper_freq_y= 60
shaper_type: 2hump_ei
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
[pause_resume]
[display_status]
[filament_switch_sensor e0_sensor]
pause_on_runout: True
switch_pin: PK4
[filament_switch_sensor e1_sensor]
pause_on_runout: True
switch_pin: PK5
[temperature_sensor rasperry_pi]
sensor_type: temperature_host
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 37.319
#*# pid_ki = 2.039
#*# pid_kd = 170.734
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 69.685
#*# pid_ki = 1.538
#*# pid_kd = 789.182
#*#
#*# [bltouch]
#*# z_offset = 1.235
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.397500, 0.265000, 0.145000, 0.035000, -0.210000
#*# 0.285000, 0.132500, 0.060000, -0.080000, -0.300000
#*# 0.120000, 0.022500, 0.000000, -0.085000, -0.280000
#*# 0.197500, 0.062500, 0.065000, -0.067500, -0.292500
#*# 0.310000, 0.215000, 0.135000, -0.007500, -0.245000
#*# tension = 0.2
#*# min_x = 20.0
#*# algo = bicubic
#*# y_count = 5
#*# mesh_y_pps = 3
#*# min_y = 5.0
#*# x_count = 5
#*# max_y = 210.0
#*# mesh_x_pps = 2
#*# max_x = 210.0
#*#
#*# [bed_mesh 201024]
#*# version = 1
#*# points =
#*# -0.085000, 0.035000, 0.122500, 0.135000, 0.015000
#*# -0.065000, -0.035000, 0.030000, 0.047500, -0.042500
#*# -0.110000, -0.045000, 0.005000, 0.005000, -0.137500
#*# -0.207500, -0.170000, -0.112500, -0.085000, -0.172500
#*# -0.162500, -0.100000, -0.070000, -0.080000, -0.207500
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 10.0
#*# max_x = 205.0
#*# min_y = 5.0
#*# max_y = 210.0