From e0577859fde2f9aef88ab0b04b8308b048ca1c40 Mon Sep 17 00:00:00 2001 From: dubjay2k <47653652+dubjay2k@users.noreply.github.com> Date: Tue, 8 Dec 2020 14:07:40 -0800 Subject: [PATCH 1/2] Adds config options for SKR Mini 2.0 Adds commented out values to support both SKR Mini 1.2 and 2.0 boards. --- VORON-0/Firmware/printer.cfg | 91 ++++++++++++++++++++++++++++++------ 1 file changed, 78 insertions(+), 13 deletions(-) diff --git a/VORON-0/Firmware/printer.cfg b/VORON-0/Firmware/printer.cfg index 918d4785..d60f29ca 100644 --- a/VORON-0/Firmware/printer.cfg +++ b/VORON-0/Firmware/printer.cfg @@ -1,6 +1,9 @@ # This file contains common pin mappings for the BIGTREETECH SKR -# MINI. To use this config, the firmware should be compiled for the -# STM32F103 with a "28KiB bootloader". +# MINI 1.2 and 2.0. To use this config, the firmware should be compiled for +# the STM32F103 with a "28KiB bootloader". Also select "enable extra +# low-level configuration options" and configure "GPIO pins to set +# at micro-controller startup" to "!PC13" for a SKR Mini 1.2 or +# "!PA14" SKR Mini 2.0. # The "make flash" command does not work on the SKR mini. Instead, # after running "make", copy the generated "out/klipper.bin" file to a @@ -10,11 +13,18 @@ # See the example.cfg file for a description of available parameters. [mcu] -serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_37FFD8054246383440750857-if00 +## Obtain mcu value by "ls -l /dev/serial/by-id/" +serial: /dev/serial/by-id/usb-Klipper_stm00000000_000000000000000000000000-if00 [stepper_x] step_pin: PB13 -dir_pin: PB12 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#dir_pin: PB12 + +## Uncomment below for SKR Mini 2.0 +#dir_pin: !PB12 +##-------------------------------------------------------------------- enable_pin: !PB14 step_distance: .0125 endstop_pin: PC0 @@ -25,7 +35,15 @@ homing_retract_dist: 5 homing_positive_dir: true [tmc2209 stepper_x] -uart_pin: PB15 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#uart_pin: PB15 + +## Uncomment below for SKR Mini 2.0 +#uart_pin: PC11 +#tx_pin: PC10 +#uart_address: 0 +##-------------------------------------------------------------------- microsteps: 16 interpolate: True run_current: .25 @@ -35,7 +53,13 @@ stealthchop_threshold: 500 [stepper_y] step_pin: PB10 -dir_pin: PB2 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#dir_pin: PB2 + +## Uncomment below for SKR Mini 2.0 +#dir_pin: !PB2 +##-------------------------------------------------------------------- enable_pin: !PB11 step_distance: .0125 endstop_pin: PC1 @@ -46,7 +70,15 @@ homing_retract_dist: 5 homing_positive_dir: true [tmc2209 stepper_y] -uart_pin: PC6 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#uart_pin: PC6 + +## Uncomment below for SKR Mini 2.0 +#uart_pin: PC11 +#tx_pin: PC10 +#uart_address: 2 +##-------------------------------------------------------------------- microsteps: 16 interpolate: True run_current: .25 @@ -56,7 +88,13 @@ stealthchop_threshold: 500 [stepper_z] step_pin: PB0 -dir_pin: PC5 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#dir_pin: PC5 + +## Uncomment below for SKR Mini 2.0 +#dir_pin: !PC5 +##-------------------------------------------------------------------- enable_pin: !PB1 step_distance: .0025 #for T8x8 lead screw #step_distance: .000625 #for T8x2 lead screw @@ -69,7 +107,15 @@ second_homing_speed: 3.0 homing_retract_dist: 3.0 [tmc2209 stepper_z] -uart_pin: PC10 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#uart_pin: PC10 + +## Uncomment below for SKR Mini 2.0 +#uart_pin: PC11 +#tx_pin: PC10 +#uart_address: 1 +##-------------------------------------------------------------------- microsteps: 16 interpolate: True run_current: .25 @@ -80,7 +126,13 @@ stealthchop_threshold: 500 [extruder] step_pin: PB3 -dir_pin: PB4 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#dir_pin: PB4 + +## Uncomment below for SKR Mini 2.0 +#dir_pin: !PB4 +##-------------------------------------------------------------------- enable_pin: !PD2 step_distance: .0024 #calibrate this value for your individual printer!! nozzle_diameter: 0.400 @@ -101,7 +153,15 @@ Pressure_advance: 0.0 pressure_advance_smooth_time: 0.040 [tmc2209 extruder] -uart_pin: PC11 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#uart_pin: PC11 + +## Uncomment below for SKR Mini 2.0 +#uart_pin: PC11 +#tx_pin: PC10 +#uart_address: 3 +##-------------------------------------------------------------------- microsteps: 16 interpolate: True run_current: 0.2 @@ -133,7 +193,13 @@ square_corner_velocity: 5.0 [heater_fan hotend_fan] # Hotend Fan -pin: PA8 +##-------------------------------------------------------------------- +## Uncomment below for SKR Mini 1.2 +#pin: PA8 + +## Uncomment below for SKR Mini 2.0 +#pin: PC6 +##-------------------------------------------------------------------- max_power: 1.0 kick_start_time: 0.5 heater: extruder @@ -153,7 +219,6 @@ cycle_time: 0.010 [idle_timeout] timeout: 1800 - [homing_override] axes: z set_position_z: 0 From 2e6d09a38a20ee4b96a46f0c5a93b24a11e3deb3 Mon Sep 17 00:00:00 2001 From: dubjay2k <47653652+dubjay2k@users.noreply.github.com> Date: Tue, 8 Dec 2020 22:43:05 -0800 Subject: [PATCH 2/2] Makes default dir_pin inverted --- VORON-0/Firmware/printer.cfg | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/VORON-0/Firmware/printer.cfg b/VORON-0/Firmware/printer.cfg index d60f29ca..d4660d5f 100644 --- a/VORON-0/Firmware/printer.cfg +++ b/VORON-0/Firmware/printer.cfg @@ -18,13 +18,7 @@ serial: /dev/serial/by-id/usb-Klipper_stm00000000_000000000000000000000000-if00 [stepper_x] step_pin: PB13 -##-------------------------------------------------------------------- -## Uncomment below for SKR Mini 1.2 -#dir_pin: PB12 - -## Uncomment below for SKR Mini 2.0 -#dir_pin: !PB12 -##-------------------------------------------------------------------- +dir_pin: !PB12 # Remove the ! if stepper is moving the opposite direction enable_pin: !PB14 step_distance: .0125 endstop_pin: PC0 @@ -53,13 +47,7 @@ stealthchop_threshold: 500 [stepper_y] step_pin: PB10 -##-------------------------------------------------------------------- -## Uncomment below for SKR Mini 1.2 -#dir_pin: PB2 - -## Uncomment below for SKR Mini 2.0 -#dir_pin: !PB2 -##-------------------------------------------------------------------- +dir_pin: !PB2 # Remove the ! if stepper is moving the opposite direction enable_pin: !PB11 step_distance: .0125 endstop_pin: PC1 @@ -88,13 +76,7 @@ stealthchop_threshold: 500 [stepper_z] step_pin: PB0 -##-------------------------------------------------------------------- -## Uncomment below for SKR Mini 1.2 -#dir_pin: PC5 - -## Uncomment below for SKR Mini 2.0 -#dir_pin: !PC5 -##-------------------------------------------------------------------- +dir_pin: !PC5 # Remove the ! if stepper is moving the opposite direction enable_pin: !PB1 step_distance: .0025 #for T8x8 lead screw #step_distance: .000625 #for T8x2 lead screw @@ -126,13 +108,7 @@ stealthchop_threshold: 500 [extruder] step_pin: PB3 -##-------------------------------------------------------------------- -## Uncomment below for SKR Mini 1.2 -#dir_pin: PB4 - -## Uncomment below for SKR Mini 2.0 -#dir_pin: !PB4 -##-------------------------------------------------------------------- +dir_pin: !PB4 # Remove the ! if stepper is moving the opposite direction enable_pin: !PD2 step_distance: .0024 #calibrate this value for your individual printer!! nozzle_diameter: 0.400