Skip to content

Commit

Permalink
Add support for Manta_M5P v1.0 and 0.9 degree steppers on Trident Z a…
Browse files Browse the repository at this point in the history
…xis (#514)
  • Loading branch information
Birkemosen authored Feb 29, 2024
1 parent 9cf27c3 commit 893bef9
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/hardware/axis/Z/Trident_TR8x8_0.9deg.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[stepper_z]
rotation_distance: 8
microsteps: 32
full_steps_per_rotation: 400

[stepper_z1]
rotation_distance: 8
microsteps: 32
full_steps_per_rotation: 400

[stepper_z2]
rotation_distance: 8
microsteps: 32
full_steps_per_rotation: 400

# We also include the default wiring and speeds from here to avoid duplicating
[include default_wiring_3M.cfg]
[include default_speed.cfg]
39 changes: 39 additions & 0 deletions config/mcu_definitions/main/BTT_Manta_M5P_v1.0.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[board_pins mcu_manufacturer]
aliases:
MCU_M1_STEP=PC8 , MCU_M1_DIR=PC9 , MCU_M1_EN=PA15 , MCU_M1_CS=PD9 ,
MCU_M2_STEP=PA10 , MCU_M2_DIR=PA14 , MCU_M2_EN=PA13 , MCU_M2_CS=PD8 ,
MCU_M3_STEP=PC6 , MCU_M3_DIR=PC7 , MCU_M3_EN=PA9 , MCU_M3_CS=PB10 ,
MCU_M4_STEP=PB12 , MCU_M4_DIR=PB11 , MCU_M4_EN=PA8 , MCU_M4_CS=PB2 ,
MCU_M5_STEP=PB0 , MCU_M5_DIR=PB1 , MCU_M5_EN=PC4 , MCU_M5_CS=PA6 ,

MCU_M1_STOP=PD3 , MCU_M2_STOP=PD2 , MCU_M3_STOP=PC3 , MCU_M4_STOP=PC2 ,

MCU_HE0=PC5 , MCU_HE1=PA7 ,

MCU_BED_OUT=PA5 ,

MCU_THB=PA0 , MCU_TH0=PA1 , MCU_TH1=PA2 ,

MCU_FAN0=PA4 , MCU_FAN1=PA3 ,

MCU_RGB1=PC11 , MCU_RGB2=PC14 ,

MCU_PROBE1=PC15 , MCU_PROBE2=PC13 ,
MCU_IND_PROBE=PC15 ,

MCU_SPI2_MOSI=PB15 , MCU_SPI2_MISO=PB14 , MCU_SPI2_SCK=PB13 , MCU_SPI2_CS=PC0 ,


# EXP1 header
EXP1_1=PD5 , EXP1_2=PD4 ,
EXP1_3=PB3 , EXP1_4=PD6 ,
EXP1_5=PB5 , EXP1_6=PB4 , # Slot in the socket on this side
EXP1_7=PB7 , EXP1_8=PB6 ,
EXP1_9=<GND> , EXP1_10=<5V> ,

# EXP2 header
EXP2_1=PB14 , EXP2_2=PB13 ,
EXP2_3=PB8 , EXP2_4=PB9 ,
EXP2_5=PC10 , EXP2_6=PB15 , # Slot in the socket on this side
EXP2_7=PC12 , EXP2_8=PF2 ,
EXP2_9=<GND> , EXP2_10=<NC> ,
46 changes: 46 additions & 0 deletions user_templates/mcu_defaults/main/BTT_Manta_M5P_v1.0.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#--------------------------------------------#
#### BTT MANTA M5P v1.0 MCU definition #####
#--------------------------------------------#
[mcu]
##--------------------------------------------------------------------
# This board works 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_Manta_M5P_v1.0.cfg] # Do not remove this line
[board_pins mantam5p10_mcu]
mcu: mcu
aliases:
X_STEP=MCU_M1_STEP , X_DIR=MCU_M1_DIR , X_ENABLE=MCU_M1_EN , X_TMCUART=MCU_M1_CS ,
Y_STEP=MCU_M2_STEP , Y_DIR=MCU_M2_DIR , Y_ENABLE=MCU_M2_EN , Y_TMCUART=MCU_M2_CS ,

Z_STEP=MCU_M3_STEP , Z_DIR=MCU_M3_DIR , Z_ENABLE=MCU_M3_EN , Z_TMCUART=MCU_M3_CS ,
Z1_STEP=MCU_M4_STEP , Z1_DIR=MCU_M4_DIR , Z1_ENABLE=MCU_M4_EN , Z1_TMCUART=MCU_M4_CS ,
Z2_STEP=MCU_M5_STEP , Z2_DIR=MCU_M5_DIR , Z2_ENABLE=MCU_M5_EN , Z2_TMCUART=MCU_M5_CS ,

#E_STEP=MCU_M5_STEP , E_DIR=MCU_M5_DIR , E_ENABLE=MCU_M5_EN , E_TMCUART=MCU_M5_CS ,

DRIVER_SPI_MOSI=MCU_SPI2_MOSI , # Used in case of SPI drivers such as TMC2240 or TMC5160
DRIVER_SPI_MISO=MCU_SPI2_MISO , # Used in case of SPI drivers such as TMC2240 or TMC5160
DRIVER_SPI_SCK=MCU_SPI2_SCK , # Used in case of SPI drivers such as TMC2240 or TMC5160

X_STOP=MCU_M1_STOP , Y_STOP=MCU_M3_STOP , Z_STOP=MCU_M4_STOP ,
PROBE_INPUT=MCU_PROBE2 ,
RUNOUT_SENSOR=MCU_M4_STOP ,

E_HEATER=MCU_HE0 , E_TEMPERATURE=MCU_TH0 ,
BED_HEATER=MCU_BED_OUT , BED_TEMPERATURE=MCU_THB ,

FILTER_FAN=MCU_FAN0 ,
CONTROLLER_FAN=MCU_FAN1 ,

CHAMBER_TEMPERATURE=MCU_TH1 ,

LIGHT_OUTPUT=MCU_HE1 ,
STATUS_NEOPIXEL=MCU_RGB1 ,
MCU_PS_ON=MCU_RGB2 ,

SERVO_PIN=MCU_PROBE1 ,

0 comments on commit 893bef9

Please sign in to comment.