-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnder3Squared-printer.cfg
324 lines (283 loc) · 7.71 KB
/
Ender3Squared-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
[include D3_Initial Setup.txt]
[include D3_BLTouch.txt]
[include D3_SensorlessHoming.txt]
[include fluidd.cfg]
[include D3_Macros.cfg]
# This file contains common pin mappings for the BIGTREETECH SKR V1.3
# board. To use this config, the firmware should be compiled for the
# LPC1768.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
#D3 10DEC2022 add Sensorless Homeing
#endstop_pin: P1.29 # P1.28 for X-max
endstop_pin: tmc2130_stepper_x:virtual_endstop
homing_retract_dist: 0
position_endstop: 150
position_max: 150
homing_speed: 60
position_min: 0
[tmc2130 stepper_x]
cs_pin: P1.17
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
#diag1_pin: P1.29
run_current: 0.800
stealthchop_threshold: 999999
#D3 10DEC2022 add Sensorless Homeing
diag1_pin: ^!P1.29 # Pin connected to TMC DIAG1 pin (or use diag0_pin / DIAG0 pin)
driver_SGT: 7 # -64 is most sensitive value, 63 is least sensitive
[stepper_y]
step_pin: P0.19
dir_pin: P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 40
#D3 10DEC2022 add Sensorless Homeing
#endstop_pin: P1.27 # P1.26 for Y-max
endstop_pin: tmc2130_stepper_y:virtual_endstop
homing_retract_dist: 0
position_endstop: 205
position_max: 205
homing_speed: 60
[tmc2130 stepper_y]
cs_pin: P1.15
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.27
run_current: 0.800
stealthchop_threshold: 0
#D3 10DEC2022 add Sensorless Homeing
diag1_pin: ^!P1.27 # Pin connected to TMC DIAG1 pin (or use diag0_pin / DIAG0 pin)
driver_SGT: 8 # -64 is most sensitive value, 63 is least sensitive
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8
homing_retract_dist: 0
# 29NOV2022 D3 Add BLTouch settings
#endstop_pin: P1.25 # P1.24 for Z-max
endstop_pin: probe:z_virtual_endstop
position_min: -10 # The Z carriage may need to travel below the Z=0
position_max: 350
homing_positive_dir: true
[tmc2130 stepper_z]
cs_pin: P1.10
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.25
run_current: 0.650
stealthchop_threshold: 999999
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.24
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 260
[tmc2130 extruder]
cs_pin: P1.8
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.28
run_current: 0.800
stealthchop_threshold: 999999
[fan]
pin: P2.3
# enclosure fan than runs to keep the electronics cool
# temperature input provided by thermistor attached to E0 heatsink
# 4 12V fans in electronic enclosure connceted to HE1 heater output
[heater_fan extruder_fan]
pin: P2.4
heater: extruder
# Name of the config section defining the heater that this fan is
# associated with. If a comma separated list of heater names is
# provided here, then the fan will be enabled when any of the given
# heaters are enabled. The default is "extruder".
heater_temp: 50.0
# A temperature (in Celsius) that the heater must drop below before
# the fan is disabled. The default is 50 Celsius.
fan_speed: 1.0
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
# will be set to when its associated heater is enabled. The default
# is 1.0
# 17DEC2022 D3 Add Probe settings
[probe] # enable for FreeZ ABL - fast-mode
pin: !P1.25
#x_offset: +25.0
#y_offset: -30.0
x_offset: 0.01
y_offset: 0.01
z_offset: 0.01
speed:10
samples:1
sample_retract_dist: 8.0
samples_result: median
# 17DEC2022 D3 disabled setting
#[safe_z_home]
#home_xy_position: 92, 102
#speed: 50
#z_hop: 20
#z_hop_speed: 20
# 29NOV2022 D3 Add BLTouch settings
[bed_mesh]
speed: 100
mesh_min: 10, 20
mesh_max: 150, 205
algorithm: bicubic
probe_count: 3, 3
horizontal_move_z: 20
mesh_pps: 0 ;disable mesh interpolation (fixes issues with Bed Visualizer plug-in)
#[extruder1]
#step_pin: P0.1
#dir_pin: P0.0
#enable_pin: !P0.10
#heater_pin: P2.4
#sensor_pin: P0.25
#...
#17DEC2022 D3 added to do a cleaner home
[homing_override]
gcode:
BED_MESH_CLEAR
G4 P2000
G28 X
G0 X140
M400
G4 P2000
G28 Y
G0 X92 Y102
M400
G28 Z
G0 Z-30
[heater_bed]
heater_pin: P2.5
sensor_type: ATC Semitec 104GT-2
sensor_pin: P0.23
control: watermark
min_temp: 0
max_temp: 130
[fan]
pin: P2.3
[mcu]
#serial: /dev/ttyAMA0
#restart_method: command
#serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0
serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0
[printer]
# 29NOV2022 D3 Change to CoreXY
#kinematics: cartesian
kinematics: corexy
max_velocity: 200
max_accel: 2000
max_z_velocity: 25
max_z_accel: 100
########################################
# TMC2208 configuration
########################################
# For TMC2208 UART
# 1) Remove all of the jumpers below the stepper drivers
# 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
#[tmc2208 stepper_x]
#uart_pin: P1.17
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 stepper_y]
#uart_pin: P1.15
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 stepper_z]
#uart_pin: P1.10
#run_current: 0.650
#stealthchop_threshold: 999999
#[tmc2208 extruder]
#uart_pin: P1.8
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 extruder1]
#uart_pin: P1.1
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# TMC2130 configuration
########################################
# For TMC SPI
# 1) Place jumpers on all the red pin headers under the stepper drivers
# 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
#[tmc2130 extruder1]
#cs_pin: P1.1
#spi_software_miso_pin: P0.5
#spi_software_mosi_pin: P4.28
#spi_software_sclk_pin: P0.4
#diag1_pin: P1.26
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
# See the sample-lcd.cfg file for definitions of common LCD displays.
########################################
# Ender 3 Display
########################################
[display]
lcd_type: st7920
cs_pin: EXP1_7
sclk_pin: EXP1_6
sid_pin: EXP1_8
encoder_pins: ^EXP1_5, ^EXP1_3
click_pin: ^!EXP1_2
#[output_pin beeper]
#pin: EXP1_1
########################################
# Ender 3 Display
########################################
[output_pin BEEPER_pin]
pin: EXP1_1
# 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
# Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz
# Although not pitch perfect.
[gcode_macro M300]
gcode:
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(1000)|int %}
SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0