Skip to content

Commit

Permalink
Add BTT Kraken MCU support (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoitone authored Feb 20, 2024
1 parent 7631b57 commit fbf07e2
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
54 changes: 54 additions & 0 deletions config/mcu_definitions/main/BTT_Kraken_v1.0.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[board_pins mcu_manufacturer]
aliases:
MCU_S1_STEP=PC14 , MCU_S1_DIR=PC13 , MCU_S1_ENABLE=PE6 , MCU_S1_UART=PD6 ,
MCU_S2_STEP=PE5 , MCU_S2_DIR=PE4 , MCU_S2_ENABLE=PE3 , MCU_S2_UART=PD5 ,
MCU_S3_STEP=PE2 , MCU_S3_DIR=PE1 , MCU_S3_ENABLE=PE0 , MCU_S3_UART=PD4 ,
MCU_S4_STEP=PB9 , MCU_S4_DIR=PB8 , MCU_S4_ENABLE=PB7 , MCU_S4_UART=PD3 ,
MCU_S5_STEP=PG9 , MCU_S5_DIR=PG10 , MCU_S5_ENABLE=PG13 , MCU_S5_UART=PD2 ,
MCU_S6_STEP=PG11 , MCU_S6_DIR=PD7 , MCU_S6_ENABLE=PG12 , MCU_S6_UART=PA15 ,
MCU_S7_STEP=PB4 , MCU_S7_DIR=PB3 , MCU_S7_ENABLE=PB5 , MCU_S7_UART=PA9 ,
MCU_S8_STEP=PG15 , MCU_S8_DIR=PB6 , MCU_S8_ENABLE=PG14 , MCU_S8_UART=PA10 ,
MCU_MOSI=PC8 , MCU_MISO=PC7 , MCU_SCK=PC6 ,

MCU_MOTOR_SERVO=PE7 ,
MCU_RGB1=PF10 , MCU_RGB2=PF11 ,
MCU_MIN1=PC15 , MCU_MIN2=PF0 , MCU_MIN3=PF1 , MCU_MIN4=PF2 ,
MCU_MIN5=PF3 , MCU_MIN6=PF4 , MCU_MIN7=PF10 , MCU_MIN8=PC0 ,

MCU_HE0=PF6 , MCU_HE1=PF7 , MCU_HE2=PF9 , MCU_HE3=PF8 ,

MCU_BED_OUT=PF5 ,

MCU_TB=PB0 ,
MCU_T0=PB1 , MCU_T1=PC5 , MCU_T2=PC4 , MCU_T3=PA7 ,

MCU_FAN0=PA0 , MCU_FAN1=PA1 , MCU_FAN2=PA2 , MCU_FAN3=PA3 , MCU_FAN4=PA4 , MCU_FAN5=PA5 ,
MCU_FAN6=PA6 , MCU_FAN7=PE8 ,
MCU_FAN6_TACH=PC1 , MCU_FAN7_TACH=PG0 ,

MCU_PS_ON=PD10 ,
MCU_FWS1=PC2 , MCU_FWS2=PC3 ,

MCU_IND_DET=PD11 ,
# PROBE header
MCU_PROBE=PC1 , MCU_PROBE_SERVO=PE9 ,

# SPI header
MCU_SPI_1=<5V> , MCU_SPI_2=<GND> ,
MCU_SPI_3=PE10 , MCU_SPI_4=PE12 ,
MCU_SPI_5=PE14 , MCU_SPI_6=PE13 ,
MCU_SPI_7=<3.3V> , MCU_SPI_8=<GND> ,

# EXP1 header
EXP1_1=PG5 , EXP1_2=PG4 ,
EXP1_3=PG3 , EXP1_4=PG2 ,
EXP1_5=PD15 , EXP1_6=PD14 , # Slot in the socket on this side
EXP1_7=PD13 , EXP1_8=PD12 ,
EXP1_9=<GND> , EXP1_10=<5V> ,

# EXP2 header
EXP2_1=PE13 , EXP2_2=PE12 ,
EXP2_3=PG8 , EXP2_4=PE11 ,
EXP2_5=PG7 , EXP2_6=PE14 , # Slot in the socket on this side
EXP2_7=PG6 , EXP2_8=<RST> ,
EXP2_9=<GND> , EXP2_10=<5V> ,
53 changes: 53 additions & 0 deletions user_templates/mcu_defaults/main/BTT_Kraken_v1.0.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

#--------------------------------------#
##### BTT Kraken 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/serial/by-id/change-me-to-the-correct-mcu-path
# canbus_uuid: change-me-to-the-correct-canbus-id
##--------------------------------------------------------------------

[include config/mcu_definitions/main/BTT_Kraken_v1.0.cfg] # Do not remove this line
[board_pins kraken_mcu]
mcu: mcu
aliases:
X_STEP=MCU_S1_STEP , X_DIR=MCU_S1_DIR , X_ENABLE=MCU_S1_ENABLE , X_TMCUART=MCU_S1_UART ,
Y_STEP=MCU_S2_STEP , Y_DIR=MCU_S2_DIR , Y_ENABLE=MCU_S2_ENABLE , Y_TMCUART=MCU_S2_UART ,

Z_STEP=MCU_S5_STEP , Z_DIR=MCU_S5_DIR , Z_ENABLE=MCU_S5_ENABLE , Z_TMCUART=MCU_S5_UART ,
Z1_STEP=MCU_S6_STEP , Z1_DIR=MCU_S6_DIR , Z1_ENABLE=MCU_S6_ENABLE , Z1_TMCUART=MCU_S6_UART ,
Z2_STEP=MCU_S7_STEP , Z2_DIR=MCU_S7_DIR , Z2_ENABLE=MCU_S7_ENABLE , Z2_TMCUART=MCU_S7_UART ,
Z3_STEP=MCU_S8_STEP , Z3_DIR=MCU_S8_DIR , Z3_ENABLE=MCU_S8_ENABLE , Z3_TMCUART=MCU_S8_UART ,

E_STEP=MCU_S3_STEP , E_DIR=MCU_S3_DIR , E_ENABLE=MCU_S3_ENABLE , E_TMCUART=MCU_S3_UART ,

DRIVER_SPI_MOSI=MCU_MOSI , # Used in case of SPI drivers
DRIVER_SPI_MISO=MCU_MISO , # Used in case of SPI drivers
DRIVER_SPI_SCK=MCU_SCK , # Used in case of SPI drivers

X_STOP= MCU_MIN1 , Y_STOP=MCU_MIN2 , Z_STOP=MCU_MIN5 ,
PROBE_INPUT=MCU_IND_DET ,
RUNOUT_SENSOR=MCU_MIN4 ,

E_HEATER=MCU_HE0 , E_TEMPERATURE=MCU_T0 ,
BED_HEATER=MCU_BED_OUT , BED_TEMPERATURE=MCU_TB ,

PART_FAN=MCU_FAN7 , E_FAN=MCU_FAN6 ,
CONTROLLER_FAN=MCU_FAN2 ,
EXHAUST_FAN=MCU_FAN3 ,
FILTER_FAN=MCU_FAN4 ,
HOST_CONTROLLER_FAN=MCU_FAN5 ,

CHAMBER_TEMPERATURE=MCU_T1 , ELECTRICAL_CABINET_TEMPERATURE=MCU_T2 ,

LIGHT_OUTPUT=MCU_HE2 ,
LIGHT_NEOPIXEL=MCU_RGB1 ,
STATUS_NEOPIXEL=MCU_RGB2 ,

SERVO_PIN=MCU_MOTOR_SERVO ,

0 comments on commit fbf07e2

Please sign in to comment.