From c51e87c11c35e9bfe08265d32a7e788172d2a18f Mon Sep 17 00:00:00 2001 From: BIGTREETECH <38851044+bigtreetech@users.noreply.github.com> Date: Thu, 13 Oct 2022 23:08:44 +0800 Subject: [PATCH] config: Add BigTreeTech Manta M4P & M8P board (#5812) Signed-off-by: Alan.Ma from BigTreeTech --- config/generic-bigtreetech-manta-m4p.cfg | 175 ++++++++++++++ config/generic-bigtreetech-manta-m8p.cfg | 284 +++++++++++++++++++++++ 2 files changed, 459 insertions(+) create mode 100644 config/generic-bigtreetech-manta-m4p.cfg create mode 100644 config/generic-bigtreetech-manta-m8p.cfg diff --git a/config/generic-bigtreetech-manta-m4p.cfg b/config/generic-bigtreetech-manta-m4p.cfg new file mode 100644 index 00000000..efd9007d --- /dev/null +++ b/config/generic-bigtreetech-manta-m4p.cfg @@ -0,0 +1,175 @@ +# This file contains common pin mappings for the BIGTREETECH Manta M4P +# To use this config, the firmware should be compiled for the +# STM32G0B1 with a "8KiB bootloader" and USB communication. + +# See docs/Config_Reference.md for a description of parameters. + +[stepper_x] +step_pin: PC6 +dir_pin: PA14 +enable_pin: !PC7 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PC0 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_y] +step_pin: PB10 +dir_pin: !PB2 +enable_pin: !PB11 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PC1 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_z] +step_pin: PB0 +dir_pin: !PC5 +enable_pin: !PB1 +microsteps: 16 +rotation_distance: 8 +endstop_pin: ^PC2 +position_endstop: 0 +position_max: 270 + +[extruder] +step_pin: PB3 +dir_pin: PB4 +enable_pin: !PD5 +microsteps: 16 +rotation_distance: 33.500 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +heater_pin: PC8 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PA0 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 250 + +#[filament_switch_sensor filament_sensor] +#switch_pin: ^!PC15 + +[heater_bed] +heater_pin: PD8 +sensor_type: Generic 3950 +sensor_pin: PC4 +control: watermark +min_temp: 0 +max_temp: 130 + +[fan] +pin: PD2 + +#[heater_fan fan1] +#pin: PD3 + +#[heater_fan fan2] +#pin: PD4 + +#[heater_fan SoC_fan] +#pin: CB1: gpio79 +#pin: RPI: gpio26 + +[mcu] +serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 + +[printer] +kinematics: cartesian +max_velocity: 180 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +######################################## +# EXP1 / EXP2 (display) pins +######################################## + +[board_pins] +aliases: + # EXP1 header + EXP1_1=PD6, EXP1_3=PB9, EXP1_5=PA15, EXP1_7=PA9, EXP1_9=, + EXP1_2=PB8, EXP1_4=PC3, EXP1_6=PA10, EXP1_8=PB5, EXP1_10=<5V>, + # EXP2 header + EXP2_1=PB14, EXP2_3=PC11, EXP2_5=PC12, EXP2_7=PC13, EXP2_9=, + EXP2_2=PB13, EXP2_4=PA8, EXP2_6=PB15, EXP2_8=, EXP2_10= + +# See the sample-lcd.cfg file for definitions of common LCD displays. + +######################################## +# TMC2209 configuration +######################################## + +#[tmc2209 stepper_x] +#uart_pin: PB12 +#run_current: 0.800 +#diag_pin: + +#[tmc2209 stepper_y] +#uart_pin: PC10 +#run_current: 0.800 +#diag_pin: + +#[tmc2209 stepper_z] +#uart_pin: PC9 +#run_current: 0.800 +#diag_pin: + +#[tmc2209 extruder] +#uart_pin: PA13 +#run_current: 0.600 +#diag_pin: + +######################################## +# TMC5160 configuration +######################################## + +#[[tmc2130 stepper_x] +#cs_pin: PB12 +#spi_bus: spi1 +#diag1_pin: PG6 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 stepper_y] +#cs_pin: PC10 +#spi_bus: spi1 +#diag1_pin: PG9 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 stepper_z] +#cs_pin: PC9 +#spi_bus: spi1 +#diag1_pin: PG10 +#run_current: 0.650 +#stealthchop_threshold: 999999 + +#[tmc2130 extruder] +#cs_pin: PA13 +#spi_bus: spi1 +#diag1_pin: PC15 +#run_current: 0.650 +#stealthchop_threshold: 999999 + +#[bltouch] +#sensor_pin: PC14 +#control_pin: PA1 + +#[adxl345] +#cs_pin: PD9 +#spi_bus: spi1 +#axes_map: z,y,-x + +#[neopixel rgb1] +#pin: PD0 + +#[neopixel rgb2] +#pin: PD1 diff --git a/config/generic-bigtreetech-manta-m8p.cfg b/config/generic-bigtreetech-manta-m8p.cfg new file mode 100644 index 00000000..495fc2ab --- /dev/null +++ b/config/generic-bigtreetech-manta-m8p.cfg @@ -0,0 +1,284 @@ +# This file contains common pin mappings for the BIGTREETECH Manta M8P +# To use this config, the firmware should be compiled for the +# STM32G0B1 with a "8KiB bootloader" and USB communication. + +# See docs/Config_Reference.md for a description of parameters. + +[stepper_x] +step_pin: PE2 +dir_pin: PB4 +enable_pin: !PC11 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PF3 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_y] +step_pin: PF12 +dir_pin: PF11 +enable_pin: !PB3 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PF4 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_z] +step_pin: PD7 +dir_pin: !PD6 +enable_pin: !PF10 +microsteps: 16 +rotation_distance: 8 +endstop_pin: ^PF5 +position_endstop: 0 +position_max: 270 + +# Motor4 +# The M8P only has 4 heater outputs which leaves an extra stepper +# This can be used for a second Z stepper, dual_carriage, extruder co-stepper, +# or other accesory such as an MMU +#[stepper_] +#step_pin: PD3 +#dir_pin: PD2 +#enable_pin: PD5 +#endstop_pin: PC0 +#... + +[extruder] +step_pin: PC9 +dir_pin: PC8 +enable_pin: !PD1 +microsteps: 16 +rotation_distance: 33.500 +nozzle_diameter: 0.4 +filament_diameter: 1.75 +heater_pin: PE3 # HE0 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PA1 # T0 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 250 + +#[filament_switch_sensor material_0] +#switch_pin: PC1 + +# Motor6 +#[extruder1] +#step_pin: PA10 +#dir_pin: PD15 +#enable_pin: !PA15 +#heater_pin: PB5 # HE1 +#sensor_pin: PA2 # T1 +#... + +#[filament_switch_sensor material_1] +#switch_pin: PC2 + +# Motor7 +#[extruder2] +#step_pin: PD12 +#dir_pin: PD11 +#enable_pin: !PD14 +#heater_pin: PB6 # HE2 +#sensor_pin: PA3 # T2 +#... + +# Motor8 +#[extruder3] +#step_pin: PD10 +#dir_pin: PD8 +#enable_pin: !PD9 +#heater_pin: PE1 # HE3 +#sensor_pin: PA4 # T3 +#... + +[heater_bed] +heater_pin: PB7 +sensor_type: Generic 3950 +sensor_pin: PA0 # TB +control: watermark +min_temp: 0 +max_temp: 130 + +[fan] +pin: PE6 + +#[heater_fan fan1] +#pin: PE0 + +#[heater_fan fan2] +#pin: PC12 + +#[heater_fan fan3] +#pin: PE5 + +#[heater_fan fan4] +#pin: PE4 +#tachometer_pin: PC13 + +#[heater_fan fan5] +#pin: PB8 +#tachometer_pin: PC14 + +#[heater_fan fan6] +#pin: PB9 +#tachometer_pin: PC15 + +[mcu] +serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +######################################## +# TMC2209 configuration +######################################## + +#[tmc2209 stepper_x] +#uart_pin: PC10 +##diag_pin: PF3 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2209 stepper_y] +#uart_pin: PF13 +##diag_pin: PF4 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2209 stepper_z] +#uart_pin: PF9 +##diag_pin: PF5 +#run_current: 0.650 +#stealthchop_threshold: 999999 + +#[tmc2209 stepper_] +#uart_pin: PD4 +##diag_pin: PC0 +#run_current: 0.650 +#stealthchop_threshold: 999999 + +#[tmc2209 extruder] +#uart_pin: PD0 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2209 extruder1] +#uart_pin: PF8 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2209 extruder2] +#uart_pin: PD13 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2209 extruder3] +#uart_pin: PC7 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +######################################## +# TMC2130 configuration +######################################## + +#[tmc2130 stepper_x] +#cs_pin: PC10 +#spi_bus: spi1 +##diag1_pin: PF3 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 stepper_y] +#cs_pin: PF13 +#spi_bus: spi1 +##diag1_pin: PF4 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 stepper_z] +#cs_pin: PF9 +#spi_bus: spi1 +##diag1_pin: PF5 +#run_current: 0.650 +#stealthchop_threshold: 999999 + +#[tmc2130 stepper_] +#cs_pin: PD4 +#spi_bus: spi1 +##diag1_pin: PC0 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 extruder] +#cs_pin: PD0 +#spi_bus: spi1 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 extruder1] +#cs_pin: PF8 +#spi_bus: spi1 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 extruder2] +#cs_pin: PD13 +#spi_bus: spi1 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +#[tmc2130 extruder3] +#cs_pin: PC7 +#spi_bus: spi1 +#run_current: 0.800 +#stealthchop_threshold: 999999 + +[board_pins] +aliases: + # EXP1 header + EXP1_1=PE9, EXP1_2=PE10, + EXP1_3=PE11, EXP1_4=PE12, + EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side + EXP1_7=PE15, EXP1_8=PB10, + EXP1_9=, EXP1_10=<5V>, + + # EXP2 header + EXP2_1=PB14, EXP2_2=PB13, + EXP2_3=PF7, EXP2_4=PB12, + EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side + EXP2_7=PE8, EXP2_8=, + EXP2_9=, EXP2_10=PC5 + +# See the sample-lcd.cfg file for definitions of common LCD displays. + +#[bltouch] +#sensor_pin: PB2 +#control_pin: PB1 + +# Proximity switch +#[probe] +#pin: PF6 + +#[output_pin ps_on_pin] +#pin: PC3 + +#[neopixel my_neopixel_1] +#pin: PC6 + +#[neopixel my_neopixel_2] +#pin: PA9 + +#[hall_filament_width_sensor] +#adc1: PC5 +#adc2: PB0