Skip to content

Commit

Permalink
add: mcu Fystec Cheetah v3 (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims authored Jun 20, 2024
1 parent dae4ec7 commit 44f21b2
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
51 changes: 51 additions & 0 deletions config/mcu_definitions/main/Fysetc_Cheetah_v3.x.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[board_pins mcu_manufacturer]
aliases:
MCU_XM_STEP=PC0 , MCU_XM_DIR=PC1 , MCU_XM_ENABLE=PC3 ,
MCU_YM_STEP=PC14 , MCU_YM_DIR=PC13 , MCU_YM_ENABLE=PC15 ,
MCU_ZM_STEP=PB4 , MCU_ZM_DIR=PB5 , MCU_ZM_ENABLE=PC2 ,
MCU_EM_STEP=PB2 , MCU_EM_DIR=PA15 , MCU_EM_ENABLE=PD2 ,
MCU_TMCUART=PB3 , MCU_TMCTX=PA2 ,

MCU_XSTOP=PA2 , MCU_YSTOP=PA3 , MCU_ZSTOP=PC4 ,
MCU_E0STOP=PA1 ,

MCU_HE0=PC7 ,
MCU_BED=PC8 ,

MCU_TH0=PC5 ,
MCU_THB=PB0 ,
MCU_TH2=PB1 ,

MCU_FAN0=PA14 , MCU_FAN1=PA13 , MCU_FAN2=PA8 ,

# Z-Probe Header
MCU_SERVOS=PA0, MCU_PROBE=PC4 ,

# PI Header
MCU_Pi_PWR_UART_TX1=PA9 ,
MCU_Pi_PWR_UART_RX1=PA10 ,

# ?? Header
MCU_P2_DP=PA11 ,
MCU_P2_DM=PA12 ,

# EXP1 header
EXP1_1=<GND> , EXP1_2=<5V> ,
EXP1_3=PB7 , EXP1_4=PB6 ,
EXP1_5=PB14 , EXP1_6=PB13 , # Slot in the socket on this side
EXP1_7=PB12 , EXP1_8=PB15 ,
EXP1_9=PC6 , EXP1_10=PB10 ,

# EXP2 header
EXP2_1=<GND> , EXP2_2=<5V> ,
EXP2_3=<RST> , EXP2_4=PC12 ,
EXP2_5=PA7 , EXP2_6=PC11 , # Slot in the socket on this side
EXP2_7=PA4 , EXP2_8=PC10 ,
EXP2_9=PA5 ,EXP2_10=PA6 ,

# EXP3 header
EXP3_1=PB10 , EXP3_2=PC6 ,
EXP3_3=PC10 , EXP3_4=PB14 ,
EXP3_5=PC11 , EXP3_6=PB13 , # Slot in the socket on this side
EXP3_7=PB12 , EXP3_8=PB15 ,
EXP3_9=<GND> , EXP3_10=<5V>
55 changes: 55 additions & 0 deletions user_templates/mcu_defaults/main/Fysetc_Cheetah_v3.x.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

#------------------------------------#
#### Fystec Cheetah V3 definition ####
#------------------------------------#

# https://github.com/FYSETC/Cheetah_V3.0
[mcu]
##--------------------------------------------------------------------
serial: /dev/serial/by-id/change-me-to-the-correct-mcu-path
##--------------------------------------------------------------------

[include config/mcu_definitions/main/Fysetc_Cheetah_v3.x.cfg] # Do not remove this line
[board_pins Cheetah_v3_mcu]
mcu: mcu
restart_method: command
aliases:
X_STEP=MCU_XM_STEP , X_DIR=MCU_XM_DIR , X_ENABLE=MCU_XM_ENABLE ,
Y_STEP=MCU_YM_STEP , Y_DIR=MCU_YM_DIR , Y_ENABLE=MCU_YM_ENABLE ,
Z_STEP=MCU_ZM_STEP , Z_DIR=MCU_ZM_DIR , Z_ENABLE=MCU_ZM_ENABLE ,
E_STEP=MCU_EM_STEP , E_DIR=MCU_EM_DIR , E_ENABLE=MCU_EM_ENABLE ,

TMCUART=MCU_TMCUART , TMCTX=MCU_TMCTX ,

X_STOP=MCU_XSTOP , Y_STOP=MCU_YSTOP , Z_STOP=MCU_ZSTOP ,
RUNOUT_SENSOR=MCU_E0STOP ,
PROBE_INPUT=MCU_PROBE ,
SERVO_PIN=MCU_SERVOS ,

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

PART_FAN=MCU_FAN0 , E_FAN=MCU_FAN1 , CONTROLLER_FAN=MCU_FAN2 ,


[tmc2209 stepper_x]
uart_pin: TMCUART
#tx_pin: TMCTX
uart_address: 0

[tmc2209 stepper_y]
uart_pin: TMCUART
#tx_pin: TMCTX
uart_address: 1

[tmc2209 stepper_z]
uart_pin: TMCUART
#tx_pin: TMCTX
uart_address: 2

# Comment this section if you are using a toolhead with its own MCU
[tmc2209 extruder]
uart_pin: TMCUART
#tx_pin: TMCTX
uart_address: 3

0 comments on commit 44f21b2

Please sign in to comment.