3DCoded / 3MS

Modular Multimaterial System for Klipper 3D Printers
https://3dcoded.github.io/3MS/
GNU General Public License v3.0
39 stars 5 forks source link

[MCU]: Fly-D7 #30

Open kintarojs opened 1 week ago

kintarojs commented 1 week ago

What kind of controller is this?

extra MCU (MCU used specifically for the 3MS)

Controller name

Fly-D7

More information

https://mellow.klipper.cn/en/docs/category/fly-d7

3DCoded commented 1 week ago

Hi @kintarojs,

Thank you for your controller request. I have added support for the Mellow Fly D7 board in the existing 3MS firmware and in Happy Hare. Documentation will be available soon.

kintarojs commented 1 week ago

Thanks, I found issues on files. Here my version:

[board_pins mmu]
mcu: mmu
aliases:
    MMU_GEAR_STEP=PC14,
    MMU_GEAR_DIR=PC13,
    MMU_GEAR_ENABLE=PC15,
    MMU_GEAR_UART=PB7,

    MMU_GEAR_STEP_1=PA1,
    MMU_GEAR_DIR_1=PA0,
    MMU_GEAR_ENABLE_1=PA2,
    MMU_GEAR_UART_1=PC3,

    MMU_GEAR_STEP_2=PA5,
    MMU_GEAR_DIR_2=PA4,
    MMU_GEAR_ENABLE_2=PA6,
    MMU_GEAR_UART_2=PA3,

    MMU_GEAR_STEP_3=PC5,
    MMU_GEAR_DIR_3=PC4,
    MMU_GEAR_ENABLE_3=PB0,
    MMU_GEAR_UART_3=PA7,

    MMU_GEAR_STEP_4=PB10,
    MMU_GEAR_DIR_4=PB2,
    MMU_GEAR_ENABLE_4=PB11,
    MMU_GEAR_UART_4=PB1,

    MMU_GEAR_STEP_5=PC12,
    MMU_GEAR_DIR_5=PB5,
    MMU_GEAR_ENABLE_5=PC11,
    MMU_GEAR_UART_5=PB6,

    MMU_GEAR_STEP_6=PA15,
    MMU_GEAR_DIR_6=PA14,
    MMU_GEAR_ENABLE_6=PA13,
    MMU_GEAR_UART_6=PC10,`

  `# FILAMENT DRIVE GEAR STEPPER(S)  --------------------------------------------------------------------------------------
#  ██████╗ ███████╗ █████╗ ██████╗ 
# ██╔════╝ ██╔════╝██╔══██╗██╔══██╗
# ██║  ███╗█████╗  ███████║██████╔╝
# ██║   ██║██╔══╝  ██╔══██║██╔══██╗
# ╚██████╔╝███████╗██║  ██║██║  ██║
#  ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝

[tmc2209 stepper_mmu_gear]
uart_pin: mmu:MMU_GEAR_UART
run_current: 0.5
hold_current: 0.1
interpolate: True
sense_resistor: 0.110
stealthchop_threshold: 0

[stepper_mmu_gear]
step_pin: mmu:MMU_GEAR_STEP
dir_pin: !mmu:MMU_GEAR_DIR
enable_pin: !mmu:MMU_GEAR_ENABLE
rotation_distance: 22.7316868
microsteps: 16
full_steps_per_rotation: 200        # 200 for 1.8 degree, 400 for 0.9 degree
#

# ADDITIONAL FILAMENT DRIVE GEAR STEPPERS FOR TYPE-B MMU's -------------------------------------------------------------
# Note that common parameters are inherited from base stepper_mmu_gear, but can be uniquely specified here too
#
# Filament Drive Gear_1 --------------------------
[tmc2209 stepper_mmu_gear_1]
uart_pin: mmu:MMU_GEAR_UART_1

[stepper_mmu_gear_1]
step_pin: mmu:MMU_GEAR_STEP_1
dir_pin: !mmu:MMU_GEAR_DIR_1
enable_pin: !mmu:MMU_GEAR_ENABLE_1

# Filament Drive Gear_2 --------------------------
[tmc2209 stepper_mmu_gear_2]
uart_pin: mmu:MMU_GEAR_UART_2

[stepper_mmu_gear_2]
step_pin: mmu:MMU_GEAR_STEP_2
dir_pin: !mmu:MMU_GEAR_DIR_2
enable_pin: !mmu:MMU_GEAR_ENABLE_2

# Filament Drive Gear_3 --------------------------
[tmc2209 stepper_mmu_gear_3]
uart_pin: mmu:MMU_GEAR_UART_3

[stepper_mmu_gear_3]
step_pin: mmu:MMU_GEAR_STEP_3
dir_pin: !mmu:MMU_GEAR_DIR_3
enable_pin: !mmu:MMU_GEAR_ENABLE_3

# Filament Drive Gear_4 --------------------------
[tmc2209 stepper_mmu_gear_4]
uart_pin: mmu:MMU_GEAR_UART_4

[stepper_mmu_gear_4]
step_pin: mmu:MMU_GEAR_STEP_4
dir_pin: !mmu:MMU_GEAR_DIR_4
enable_pin: !mmu:MMU_GEAR_ENABLE_4

# Filament Drive Gear_5 --------------------------
[tmc2209 stepper_mmu_gear_5]
uart_pin: mmu:MMU_GEAR_UART_5

[stepper_mmu_gear_5]
step_pin: mmu:MMU_GEAR_STEP_5
dir_pin: !mmu:MMU_GEAR_DIR_5
enable_pin: !mmu:MMU_GEAR_ENABLE_5

# Filament Drive Gear_6 --------------------------
[tmc2209 stepper_mmu_gear_6]
uart_pin: mmu:MMU_GEAR_UART_6

[stepper_mmu_gear_6]
step_pin: mmu:MMU_GEAR_STEP_6
dir_pin: !mmu:MMU_GEAR_DIR_6
enable_pin: !mmu:MMU_GEAR_ENABLE_6
3DCoded commented 1 week ago

Sorry for the errors. Thank you for your fixed version. I'll update this.

3DCoded commented 1 week ago

I've fixed as suggested, and the documentation is now available here. Let me know if there's anything I need to change.