-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
275 lines (240 loc) · 6.16 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
#################################################
# By #
# Ethereal Project 3D #
# www.etherealproject3d.com #
# www.youtube.com/c/etherealproject3d #
#################################################
############################################################################################################################################
# #
# NOTE: #
# I used the printer.cfg created by "freakydude" from the Klipper gethub page as a starting point and edited it for this application. #
# You can find the origional here; #
# https://github.com/Klipper3d/klipper/blob/master/config/printer-artillery-sidewinder-x2-2022.cfg #
############################################################################################################################################
# This file contains pin mappings for the Artillery Sidewinder X2 (2022) with a Artillery_Ruby-v1.2 board.
# To use this config, during "make menuconfig"
# Klipper Firmware Configuration
#[*] Enable extra low-level configuration options
# Micro-controller Architecture (STMicroelectronics STM32) --->
# Processor model (STM32F401) --->
# Bootloader offset (No bootloader) --->
# Clock Reference (8 MHz crystal) --->
# Communication interface (USB (on PA11/PA12)) --->
# USB ids --->
#() GPIO pins to set at micro-controller startup
[include mainsail.cfg]
[include start.cfg]
[include end.cfg]
[include macros.cfg]
#[include adxl.cfg]
[pause_resume]
[display_status]
[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f401xc_170043000351383532393932-if00
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 6500
max_z_velocity: 50
max_z_accel: 400
square_corner_velocity: 5.0
[input_shaper]
shaper_freq_x: 59.2
shaper_type_x: mzv
shaper_freq_y: 76
shaper_type_y: 2hump_ei
[stepper_x]
step_pin: !PB14
dir_pin: PB13
enable_pin: !PB15
microsteps: 16
rotation_distance: 39.94
endstop_pin: !PA2
position_endstop: 0
position_max: 220
homing_speed: 100
second_homing_speed: 125
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB12
microsteps: 16
rotation_distance: 39.94
endstop_pin: !PA1
position_endstop: 0
position_max: 220
homing_speed: 125
second_homing_speed: 10
[stepper_z]
step_pin: PB0
dir_pin: !PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 7.96
endstop_pin: probe:z_virtual_endstop
position_max: 250
position_min: -5
homing_speed: 25
second_homing_speed: 10
[safe_z_home]
home_xy_position:110,110
speed: 200
z_hop: 10
z_hop_speed: 10
[extruder]
step_pin: PA7
dir_pin: PA6
enable_pin: !PC4
microsteps: 16
rotation_distance: 21.8667
gear_ratio: 66:22
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
#control: pid
#pid_kp: 23.509
#pid_ki: 1.438
#pid_kd: 96.092
min_temp: 0
max_temp: 300
max_extrude_only_distance: 1000
#pressure_advance: 0.068
[heater_bed]
heater_pin: PA8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
#control: pid
#pid_kp: 42.365
#pid_ki: 0.545
#pid_kd: 822.940
min_temp: 0
max_temp: 130
[fan]
pin: PC8
off_below: 0.1
[heater_fan extruder]
pin: PC7
off_below: 0.2
[controller_fan case]
pin: PC6
off_below: 0.3
idle_speed: 0.0
[temperature_sensor mainboard]
sensor_type: temperature_mcu
min_temp: 10
max_temp: 60
[bltouch]
sensor_pin: PC2
control_pin: PC3
x_offset: 27.25
y_offset: -12.8
#z_offset: 2.0
speed: 10
samples: 2
sample_retract_dist: 8
samples_tolerance: 0.050
samples_tolerance_retries: 3
[bed_mesh]
speed: 150
horizontal_move_z: 10
mesh_min: 30, 15
mesh_max: 210,190
probe_count: 5
fade_start: 1
fade_end: 10
fade_target: 0
mesh_pps: 2
algorithm: bicubic
[bed_screws]
screw1: 45,45
screw1_name: front left
screw2: 185,45
screw2_name: front right
screw3: 185,185
screw3_name: back right
screw4: 45,185
screw4_name: back left
speed: 100.0
[screws_tilt_adjust]
screw1: 45,45
screw1_name: front left
screw2: 185,45
screw2_name: front right
screw3: 185,185
screw3_name: back left
screw4: 45,185
screw4_name: back right
speed: 100.0
screw_thread: CW-M5
[neopixel extruder]
pin: PB7
initial_RED: 1.0
initial_GREEN: 0
initial_BLUE: 0
[delayed_gcode Welcome_0]
initial_duration: 0
gcode:
SET_LED LED=extruder RED=1 GREEN=0 BLUE=0
[delayed_gcode Welcome_1]
initial_duration: 0.5
gcode:
SET_LED LED=extruder RED=0 GREEN=1 BLUE=0
[delayed_gcode Welcome_2]
initial_duration: 1
gcode:
SET_LED LED=extruder RED=0 GREEN=0 BLUE=1
[delayed_gcode Welcome_3]
initial_duration: 1.5
gcode:
SET_LED LED=extruder RED=1 GREEN=1 BLUE=1
[delayed_gcode Welcome_4]
initial_duration: 8
gcode:
SET_LED LED=extruder RED=0.078 GREEN=0.568 BLUE=1
[filament_switch_sensor my_sensor]
#Move filament runout sensor from TFT to X+ endstop pin. Uncomment all but this line if you want to use this
pause_on_runout: True
runout_gcode: PAUSE
insert_gcode: RESUME
switch_pin: PA0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.596
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 20.701
#*# pid_ki = 1.211
#*# pid_kd = 88.497
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 47.557
#*# pid_ki = 1.215
#*# pid_kd = 465.467
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.059700, 0.014925, 0.058456, 0.070894, 0.059700
#*# 0.135569, 0.042288, 0.070894, 0.049750, 0.048506
#*# 0.161688, 0.059700, 0.043531, 0.021144, 0.021144
#*# 0.177856, 0.073381, 0.067163, 0.063431, 0.052238
#*# 0.094525, 0.042288, 0.060944, 0.029850, 0.043531
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 210.0
#*# min_y = 15.0
#*# max_y = 190.0