-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
251 lines (205 loc) · 4.91 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
#####################################################################################
# SKR v1.3 Configuration for Ender 3
# X,Y and Z are TMC2209 in UART Mode
# E is an TMC2209
# BLTouch v3.1
#####################################################################################
###################################### MACHINE ######################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1768_22500001018139AF7E09075CC32000F5-if00
[printer]
kinematics: cartesian
max_velocity: 150 #300
max_accel: 500 # 1500 #3000
max_accel_to_decel: 250 # 1500 #(max_accel/2)
max_z_velocity: 5
max_z_accel: 100
[display]
lcd_type: st7920
cs_pin: P1.22
sclk_pin: P1.21
sid_pin: P1.23
encoder_pins: ^P1.20, ^P1.18
click_pin: ^!P0.28
[output_pin beeper]
pin: P1.30
#################################### HOT STUFF ######################################
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.23
min_temp: 0
max_temp: 70
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.24
min_temp: 0
max_temp: 250
[fan]
pin: P2.3
[heater_fan noozle_fan]
pin: P2.4
##################################### STEPPERS ######################################
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
endstop_pin: P1.29
position_endstop: 0
position_max: 242 #235
homing_speed: 50
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 40
endstop_pin: P1.27
position_endstop: 0
position_max: 235
homing_speed: 50
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: -2
position_max: 250
###################################### TMC2209 ######################################
[tmc2209 stepper_x]
uart_pin: P1.17
run_current: 0.580 #0.700
stealthchop_threshold: 999999
[tmc2209 stepper_y]
uart_pin: P1.15
run_current: 0.580 #0.700
stealthchop_threshold: 999999
[tmc2209 stepper_z]
uart_pin: P1.10
run_current: 0.580 #0.700
stealthchop_threshold: 999999
[tmc2209 extruder]
uart_pin: P1.8
run_current: 0.650 #0.900
stealthchop_threshold: 999999
##################################### BL-TOUCH ######################################
[safe_z_home]
home_xy_position: 157,127
speed: 50
z_hop: 10
z_hop_speed: 5
[screws_tilt_adjust]
screw1: 72,42
screw1_name: Front left screw
screw2: 72,211
screw2_name: Rear left screw
screw3: 242,211
screw3_name: Rear right screw
screw4: 242,42
screw4_name: Front right screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M3
[bltouch]
sensor_pin: P1.25
control_pin: P2.0
probe_with_touch_mode: True
x_offset: -45
y_offset: -8
speed: 10
samples: 2
sample_retract_dist: 5.0
lift_speed: 40
samples_tolerance_retries: 3
[bed_mesh]
speed: 100
mesh_min: 27,34
mesh_max: 197,203
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
G1 X0 Y0 Z10 F4000
######################################## PID ########################################
[extruder]
control: pid
pid_kp: 26.713
pid_ki: 1.436
pid_kd: 124.217
[heater_bed]
control: pid
pid_kp: 74.999
pid_ki: 1.818
pid_kd: 773.426
###################################### TUNING #######################################
[extruder]
rotation_distance: 33.030
[input_shaper]
shaper_freq_x: 64.0
shaper_freq_y: 72.3
[bed_mesh]
probe_count: 5,3
mesh_pps: 2,3
algorithm: bicubic
###################################### TASMOTA ######################################
[gcode_macro POWER_OFF_PRINTER]
gcode:
{action_call_remote_method("set_device_power",
device="printer",
state="off")}
[delayed_gcode delayed_printer_off]
initial_duration: 0.
gcode:
{% if printer.idle_timeout.state == "Idle" %}
POWER_OFF_PRINTER
{% endif %}
# copied from https://github.com/Majawat/KlipperConfig/blob/main/macros.cfg
[idle_timeout]
gcode:
{% if printer.pause_resume.is_paused %}
M117 Idle but paused, maintaining bed temp.
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
{% else %}
TURN_OFF_HEATERS
M84
UPDATE_DELAYED_GCODE ID=delayed_printer_off DURATION=60
{% endif %}
#####################################################################################
[include mainsail.cfg]
[include printer-nozzle-0.4.cfg]
[include printer-plastika-trcek-bela-mat.cfg]
# [include printer-spreadcycle.cfg]
#####################################################################################
[gcode_macro BED_LEVEL_HELPER_1]
gcode:
G90
G1 X72 Y42 Z5 F7800
PROBE
[gcode_macro BED_LEVEL_HELPER_2]
gcode:
G90
G1 X72 Y211 Z5 F7800
PROBE
[gcode_macro BED_LEVEL_HELPER_3]
gcode:
G90
G1 X242 Y211 Z5 F7800
PROBE
[gcode_macro BED_LEVEL_HELPER_4]
gcode:
G90
G1 X242 Y42 Z5 F7800
PROBE
[gcode_macro M600]
description: Filament change
gcode: PAUSE X=10 Y=10 Z_MIN=50