-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcu.cfg
More file actions
295 lines (250 loc) · 6.83 KB
/
mcu.cfg
File metadata and controls
295 lines (250 loc) · 6.83 KB
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
# This file contains common pin mappings for the BIGTREETECH Manta M8P V2.0
# To use this config, the firmware should be compiled for the
# STM32H723 with a "128KiB bootloader" "25 MHz crystal"
# and "USB (on PA11/PA12)", "CAN bus (on PD0/PD1)" or Serial (on USART1 PA10/PA9).
# See docs/Config_Reference.md for a description of parameters.
# Additiona source: https://github.com/VoronDesign/Voron-2/blob/Voron2.4/firmware/klipper_configurations/M8P/Voron2_M8P-v2.0_config.cfg
###
### Begin settings changes that are moved up from the vanilla BTT provided config for the M8P_v2
###
[mcu]
canbus_uuid: c0776df2cccb
[printer]
kinematics: corexy
max_velocity: 300
#max_accel: 3000 # This is the stock value
#max_accel: 3800 # This is the value recommended by output from X-resonance.
max_accel: 2400 # This is the value recommended by output from Y-resonance.
max_z_velocity: 15
max_z_accel: 350
square_corner_velocity: 5.0
[temperature_sensor MCU]
sensor_type: temperature_mcu
[temperature_sensor SoC]
sensor_type: temperature_host
## See following pages to configre TAP Z Probe.
## https://github.com/VoronDesign/Voron-Tap/blob/main/config/tap_klipper_instructions.md
## https://www.klipper3d.org/Config_Reference.html#bed-probing-hardware
[probe]
pin: ^EBBCan:gpio22
x_offset: 0.0
y_offset: 0.0
#z_offset: 0.0
speed: 10.0
samples: 10
lift_speed: 7
samples_result: median # [average, median, ....]
sample_retract_dist: 3.0
samples_tolerance: 0.01
samples_tolerance_retries: 6
activate_gcode:
{% set PROBE_TEMP = 150 %}
{% set MAX_TEMP = PROBE_TEMP + 5 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% set TARGET_TEMP = printer.extruder.target %}
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M109 S{ PROBE_TEMP }
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
{% endif %}
{% endif %}
# X-Stepper - Motor1(M8P) - B-motor(arch ref)
[stepper_x]
step_pin: PE6
dir_pin: PE5
enable_pin: !PC14
microsteps: 16
rotation_distance: 40
endstop_pin: EBBCan:gpio24
position_min: 2
position_max: 350
position_endstop: 350 ## Settings for 350mm build
homing_speed: 75 ## BTT Default was 50. Max allowed is 100
homing_retract_dist: 5
homing_positive_dir: true
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_x]
uart_pin: PC13
interpolate: True
run_current: 0.8 # According to calc of 2Amps*0.707 = 1.4. Don't go this high though.
sense_resistor: 0.110
stealthchop_threshold: 0
# Y-Stepper - Motor2(M8P) - A-Motor(arch. ref.)
[stepper_y]
step_pin: PE2
dir_pin: PE1
enable_pin: !PE4
microsteps: 16
rotation_distance: 40
endstop_pin: ^PF3
position_min: 0
position_max: 350
position_endstop: 350
homing_speed: 75
homing_retract_dist: 5
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PE3
interpolate: True
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
# Motor3
[stepper_z]
step_pin: PB8
dir_pin: PB7
enable_pin: !PE0
microsteps: 16
rotation_distance: 40
gear_ratio: 80:16
endstop_pin: probe:z_virtual_endstop # Used for tap.
position_max: 340
position_min: -2.0
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 3
[tmc2209 stepper_z]
uart_pin: PB9
interpolate: true
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
## Z1 Stepper - Rear Left on Motor5
[stepper_z1]
step_pin: PB4
dir_pin: !PB3
enable_pin: !PB6
microsteps: 16
rotation_distance: 40
gear_ratio: 80:16
[tmc2209 stepper_z1]
uart_pin: PB5
interpolate: true
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
## Z2 Stepper - Rear Right on Motor6
[stepper_z2]
step_pin: PG13
dir_pin: PG12
enable_pin: !PG15
microsteps: 16
rotation_distance: 40
gear_ratio: 80:16
[tmc2209 stepper_z2]
uart_pin: PG14
interpolate: true
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
## Z3 Stepper - Front Right on Motor7
[stepper_z3]
step_pin: PG9
dir_pin: !PD7
enable_pin: !PG11
microsteps: 16
rotation_distance: 40
gear_ratio: 80:16
[tmc2209 stepper_z3]
uart_pin: PG10
interpolate: true
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[heater_bed]
heater_pin: PA1 # SSR Pin - HE1
sensor_pin: PB1 # TB
sensor_type: Generic 3950
#control: watermark # uncomment to re-tune. Restore comment before running SAVE_CONFIG
min_temp: 0
max_temp: 130
#[fan_generic soc-fan]
#pin: host:gpio79 #CB1
#pin: host:gpio26 #CM4
# Fan0
#[fan]
## Print Cooling Fan - CNC_FAN0
#pin: PF7
#kick_start_time: 0.5
## Depending on your fan, you may need to increase this value
## if your fan will not start. Can change cycle_time (increase)
## if your fan is not able to slow down effectively
#off_below: 0.10
## Fan1
[heater_fan Electronics-bay-exhaust-fan1]
pin: PF7
## Fan2
[heater_fan Electronics-bay-exhaust-fan2]
pin: PF9
## Fan3
#[heater_fan fan3]
[heater_fan Exhaust/filter-fan]
pin: PF8
## Fan4
#[heater_fan fan4]
#pin: PA4
## Fan5
#[heater_fan fan5]
#pin: PA6
#tachometer_pin: PC2
## Fan6 - CM4 fan
#[heater_fan fan6]
[heater_fan RaspberryPi-CM4-fan]
pin: PA2
tachometer_pin: PC1
[safe_z_home]
home_xy_position: 175, 175
speed: 100
z_hop:15
[quad_gantry_level]
## https://www.klipper3d.org/Config_Reference.html?h=quad#quad_gantry_level
## Use QUAD_GANTRY_LEVEL to level a gantry.
## Min & Max gantry corners - measure from nozzle at MIN (0,0) and MAX (350,350) depending
# on your printer size to respective belt positions
#--------------------------------------------------------------------
## Gantry Corners for 350mm Build
gantry_corners:
-60,-10
410,420
# Probe points
points:
# 50,25
50,50 # Moved away from front-left corner due to nozzle scrubber.
50,300
300,300
300,50 # This is simply to align with the front of the bed limit due to nozzle scrubber.
# 300,25
#--------------------------------------------------------------------
speed: 300
horizontal_move_z: 5 # Default is 5
retries: 3
retry_tolerance: 0.0075
max_adjust: 6 # Default is 4
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE7, EXP1_2=PG1,
EXP1_3=PG0, EXP1_4=PF15,
EXP1_5=PF14, EXP1_6=PF13, # Slot in the socket on this side
EXP1_7=PF12, EXP1_8=PF11,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PE13, EXP2_2=PE12,
EXP2_3=PE15, EXP2_4=PE11,
EXP2_5=PE10, EXP2_6=PE14, # Slot in the socket on this side
EXP2_7=PE8, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=<NC>
[bed_mesh]
speed: 180
horizontal_move_z: 15
#horizontal_move_z: 10
mesh_min: 50,50
mesh_max: 320,320
probe_count: 7,7
fade_start: 1.0
fade_end: 10.0
algorithm: bicubic