-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcu.cfg
198 lines (148 loc) · 8.62 KB
/
mcu.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
######################################################### \
#### User MCU and TMCs wiring definition file ########### + --> Everything MCU related :)
######################################################### /
# This file is yours: keep in mind that it will not be erased when updating
# the config using moonraker and it will be kept as you've set it.
# Put here all your wiring definitions, your MCU serial port, CANbus UUID, etc...
# It should be populated automatically with some default wiring templates during
# the first time install of the config if you choose to do so when asked by the
# script. If it's not the case, you will need to manually define all your
# [board_pins] section. You can use the pinout documentation here: ./docs/pinout.md
# ------------------------------------------------------------------------------------------
#-------------------------#
# TMCs DRIVERS #
#-------------------------#
# ---------------------------------------------------------------------- AXIS DRIVERS ----> optional, but only one line per axis need to be selected
### 1. X Drivers -------------------------------------------------------------------------
[include config/hardware/axis/X/TMC/TMC2209.cfg]
# [include config/hardware/axis/X/TMC/TMC2209_V0specific.cfg] # Should only be used for early LDO V0 kits to mitigate the known VFAs issue
# [include config/hardware/axis/X/TMC/TMC2240.cfg]
### 2. Y Drivers -------------------------------------------------------------------------
[include config/hardware/axis/Y/TMC/TMC2209.cfg]
# [include config/hardware/axis/Y/TMC/TMC2209_V0specific.cfg] # Should only be used for early LDO V0 kits to mitigate the known VFAs issue
# [include config/hardware/axis/Y/TMC/TMC2240.cfg]
### 3. Z Drivers -------------------------------------------------------------------------
# [include config/hardware/axis/Z/TMC/TMC2209_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC2209_3-Motors.cfg]
[include config/hardware/axis/Z/TMC/TMC2209_4-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_1-Motor.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_3-Motors.cfg]
# [include config/hardware/axis/Z/TMC/TMC2240_4-Motors.cfg]
# ----------------------------------------------------------------------------------------
# ------------------------------------------------------------------- EXTRUDER DRIVER ----> optional, but only one line need to be selected
# ----------------------------------------------------------------------------------------> For ERCF/MMU users this lines must NOT be selected!!!
### --------------------------------------------------------------------------------------
# [include config/hardware/extruder/TMC/TMC2209.cfg] # For ERCF/MMU users this lines must NOT be selected!!!
# [include config/hardware/extruder/TMC/TMC2240.cfg] # For ERCF/MMU users this lines must NOT be selected!!!
# ----------------------------------------------------------------------------------------
#---------------------------------------------#
#### Fysetc Spider v1.x MCU definition ########
#---------------------------------------------#
[mcu]
##--------------------------------------------------------------------
# This board work by using a serial connection by default. If you
# want to use CAN, invert the commented lines and use canbus_uuid.
serial: /dev/ttyAMA0
restart_method: command
# canbus_uuid: change-me-to-the-correct-canbus-id
##--------------------------------------------------------------------
[include config/mcu_definitions/main/Fysetc_Spider_v1.x.cfg] # Do not remove this line
[board_pins spider_mcu]
mcu: mcu
aliases:
X_STEP=MCU_X_MOT_STEP , X_DIR=MCU_X_MOT_DIR , X_ENABLE=MCU_X_MOT_ENABLE , X_TMCUART=MCU_X_MOT_CS_PDN ,
Y_STEP=MCU_Y_MOT_STEP , Y_DIR=MCU_Y_MOT_DIR , Y_ENABLE=MCU_Y_MOT_ENABLE , Y_TMCUART=MCU_Y_MOT_CS_PDN ,
Z_STEP=MCU_Z_MOT_STEP , Z_DIR=MCU_Z_MOT_DIR , Z_ENABLE=MCU_Z_MOT_ENABLE , Z_TMCUART=MCU_Z_MOT_CS_PDN ,
Z1_STEP=MCU_E1_MOT_STEP , Z1_DIR=MCU_E1_MOT_DIR , Z1_ENABLE=MCU_E1_MOT_ENABLE , Z1_TMCUART=MCU_E1_MOT_CS_PDN ,
Z2_STEP=MCU_E2_MOT_STEP , Z2_DIR=MCU_E2_MOT_DIR , Z2_ENABLE=MCU_E2_MOT_ENABLE , Z2_TMCUART=MCU_E2_MOT_CS_PDN ,
Z3_STEP=MCU_E3_MOT_STEP , Z3_DIR=MCU_E3_MOT_DIR , Z3_ENABLE=MCU_E3_MOT_ENABLE , Z3_TMCUART=MCU_E3_MOT_CS_PDN ,
E_STEP=MCU_E0_MOT_STEP , E_DIR=MCU_E0_MOT_DIR , E_ENABLE=MCU_E0_MOT_ENABLE , E_TMCUART=MCU_E0_MOT_CS_PDN ,
DRIVER_SPI_MOSI=MCU_TMC_MOSI , # Used in case of SPI drivers such as TMC2240 or TMC5160
DRIVER_SPI_MISO=MCU_TMC_MISO , # Used in case of SPI drivers such as TMC2240 or TMC5160
DRIVER_SPI_SCK=MCU_TMC_SCK , # Used in case of SPI drivers such as TMC2240 or TMC5160
X_STOP=MCU_X_MAX , Y_STOP=MCU_Y_MAX , Z_STOP=MCU_Z_MIN ,
PROBE_INPUT=MCU_Z_MAX ,
RUNOUT_SENSOR=MCU_Y_MIN , # If using sensorless homing: you will need to move the runout sensor on another pin
E_HEATER=MCU_E0_OUT , E_TEMPERATURE=MCU_TE0 ,
BED_HEATER=MCU_BED_OUT , BED_TEMPERATURE=MCU_TB ,
PART_FAN=MCU_FAN1 , E_FAN=MCU_FAN0 ,
CONTROLLER_FAN=MCU_FAN2 ,
EXHAUST_FAN=MCU_E2_OUT ,
FILTER_FAN=MCU_E1_OUT ,
HOST_CONTROLLER_FAN=MCU_RGB_G ,
CHAMBER_TEMPERATURE=MCU_TE1 , ELECTRICAL_CABINET_TEMPERATURE=MCU_TE2 ,
LIGHT_OUTPUT=MCU_E1_OUT ,
LIGHT_NEOPIXEL=MCU_5V_RGB_DATA ,
STATUS_NEOPIXEL=MCU_5V_RGB_DATA ,
#-----------------------------------------------#
#### Mellow SHT36/42 v1.x MCU definition ########
#-----------------------------------------------#
[mcu toolhead]
##--------------------------------------------------------------------
canbus_uuid: a538b721c2b4
##--------------------------------------------------------------------
# If you want to override the wiring of the Mellow SHT, keep in mind that this
# board is defined using the "toolhead" name. So you should use "pin: toolhead:PIN_NAME"
# in your own overrides.cfg files.
[include config/mcu_definitions/toolhead/Mellow_SHT36-42_v1.x.cfg] # Do not remove this line
[board_pins sht_mcu]
mcu: toolhead
aliases:
E_STEP=MCU_EXT_STEP , E_DIR=MCU_EXT_DIR , E_ENABLE=MCU_EXT_EN , E_TMCUART=MCU_EXT_UART ,
X_STOP=MCU_LIMIT_1 , Y_STOP=MCU_LIMIT_2 ,
PROBE_INPUT=MCU_LIMIT_0 ,
RUNOUT_SENSOR=MCU_LIMIT_2 ,
TOOLHEAD_SENSOR=MCU_AUX0 ,
E_HEATER=MCU_HE0 , E_TEMPERATURE=MCU_TH0 ,
PART_FAN=MCU_FAN1 , E_FAN=MCU_FAN0 ,
STATUS_NEOPIXEL=MCU_RGBLED ,
ADXL_CS=MCU_ADXL ,
#----------------------------------------#
# Mellow SHT36/42 v1.x pins remapping #
#----------------------------------------#
# These pins overrides are automatically added when you select a CANbus
# toolhead MCU during the installation process. They should provide a
# good base to work with. Feel free to adapt to your board if needed!
# # Note for MMU/ERCF: some pin in [extruder] section must be commented out!!!
# # and reported in the [manual_extruder_stepper extruder] section in mmu/base/mmu_hardware.cfg
[extruder]
# step_pin: toolhead:E_STEP
# dir_pin: toolhead:E_DIR
# enable_pin: !toolhead:E_ENABLE
heater_pin: toolhead:E_HEATER
sensor_pin: toolhead:E_TEMPERATURE
[probe]
pin: ^toolhead:PROBE_INPUT
[fan]
pin: toolhead:PART_FAN
[heater_fan hotend_fan]
pin: toolhead:E_FAN
## Uncomment the following line if not using sensorless homing
## and having the X endstop plugged to the toolhead MCU
[stepper_x]
endstop_pin: ^toolhead:X_STOP
[neopixel status_leds]
pin: toolhead:STATUS_NEOPIXEL
# # Note for MMU/ERCF: all this [tmc2209 extruder] section must be commented out!!!
# [tmc2209 extruder]
# uart_pin: toolhead:E_TMCUART
#--------------------------------------------------#
#### Tircown ERCF easybrd MCU definition ###########
#--------------------------------------------------#
[mcu mmu]
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_samd21g18a_8E30BCCC3052575020312E36391D12FF-if00
##--------------------------------------------------------------------
# If you want to override the wiring of the ERCF easy brd, keep in mind that this
# board is defined using the "ercf" name. So you should use "pin: ercf:PIN_NAME"
# in your own overrides.cfg files.
[include config/mcu_definitions/mmu/Tircown_ERCF_easy_brd.cfg] # Do not remove this line
[board_pins mmu_mcu]
mcu: mmu
aliases:
MMU_GEAR_STEP=MCU_GEAR_STEP , MMU_GEAR_DIR=MCU_GEAR_DIR , MMU_GEAR_ENABLE=MCU_GEAR_ENABLE , MMU_GEAR_UART=MCU_TMCUART ,
MMU_SEL_STEP=MCU_SELECTOR_STEP , MMU_SEL_DIR=MCU_SELECTOR_DIR , MMU_SEL_ENABLE=MCU_SELECTOR_ENABLE , MMU_SEL_UART=MCU_SELECTOR_UART ,
MMU_SEL_DIAG=MCU_SELECTOR_DIAG ,
MMU_GEAR_ENDSTOP=MCU_GEAR_STOP , MMU_SEL_ENDSTOP=MCU_SELECTOR_STOP ,
MMU_SERVO=MCU_SERVO ,
MMU_ENCODER=MCU_ENCODER ,