# This file contains common pin mappings for the BigTreeTech SKR 2. # To use this config, the firmware should be compiled for the # STM32F407 with a "32KiB bootloader". # In newer versions of this board shipped in late 2021 the STM32F429 # is used, if this is the case compile for this with a "32KiB bootloader" # You will need to check the chip on your board to identify which you have. # # The "make flash" command does not work on the SKR 2. Instead, # after running "make", copy the generated "out/klipper.bin" file to a # file named "firmware.bin" on an SD card and then restart the SKR 2 # with that SD card. # See docs/Config_Reference.md for a description of parameters. # Note: The initial revision of this board has a flaw that can cause # damage to itself and other boards. Be sure to verify the board is # not impacted by this flaw before using it. [include shell_command.cfg] [include fluidd.cfg] #[skew_correction] [virtual_sdcard] path: /home/eaman/Ender3_data/gcodes on_error_gcode: CANCEL_PRINT [exclude_object] [gcode_arcs] [include eaman_macro.cfg] [include macros.cfg] # Enable Arduino Nano input shaping #[include adxl.cfg] [input_shaper] #shaper_freq_x: 47.4 #shaper_type_x: ei #shaper_freq_y: 34.4 #shaper_type_y: mzv [printer] kinematics: cartesian max_velocity: 400 max_accel: 5500 max_z_velocity: 40 max_z_accel: 120 square_corner_velocity: 5 # Use those higher values just to configure Input Shaper #max_accel: 10000 #max_accel_to_decel: 10000 #---------------------------------------------------- [stepper_x] step_pin: PB13 dir_pin: !PB12 enable_pin: !PB14 microsteps: 16 rotation_distance: 40 endstop_pin: ^PC0 position_endstop: 0 position_max: 235 homing_speed: 50 second_homing_speed: 20 [tmc2209 stepper_x] uart_pin: PC11 tx_pin: PC10 uart_address: 0 run_current: 0.900 hold_current: 0.500 stealthchop_threshold: 999999 [stepper_y] step_pin: PB10 dir_pin: !PB2 enable_pin: !PB11 microsteps: 16 rotation_distance: 40 endstop_pin: ^PC1 position_endstop: 0 position_min:-20 position_max: 235 homing_speed: 50 second_homing_speed: 20 [tmc2209 stepper_y] uart_pin: PC11 tx_pin: PC10 uart_address: 2 run_current: 0.580 hold_current: 0.500 stealthchop_threshold: 999999 [bltouch] #stow_on_each_sample: False probe_with_touch_mode: False sensor_pin: ^PC14 control_pin: PA1 x_offset: -47 y_offset:-5 samples: 1 [safe_z_home] home_xy_position: 150, 115 # Change coordinates to the center of your print bed speed: 80 z_hop: 8 # Move up 10mm z_hop_speed: 5 [bed_mesh] # enable for BLTouch speed: 200 algorithm: bicubic probe_count: 7,7 horizontal_move_z: 3 fade_start: 1.0 fade_end: 8.0 mesh_min: 25, 25 mesh_max: 182, 225 adaptive_margin: 3 [stepper_z] step_pin: PB0 dir_pin: PC5 enable_pin: !PB1 endstop_pin: probe:z_virtual_endstop microsteps: 16 rotation_distance: 8 # endstop_pin: ^PC2 #position_endstop: 0.0 position_max: 240 position_min: -5 [tmc2209 stepper_z] uart_pin: PC11 tx_pin: PC10 uart_address: 1 run_current: 0.580 stealthchop_threshold: 999999 # ---------------------------------------- [extruder] step_pin: PB3 dir_pin: !PB4 enable_pin: !PD2 microsteps: 16 gear_ratio: 57:11 rotation_distance:39.37 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PC8 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA0 min_temp: 10 min_extrude_temp: 170 max_extrude_only_distance: 500 max_extrude_cross_section: 50.0 max_temp: 280 pressure_advance: 0.06 [tmc2209 extruder] uart_pin: PC11 tx_pin: PC10 uart_address: 3 run_current: 0.380 stealthchop_threshold: 999999 # ------------------------ [heater_bed] heater_pin: PC9 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC3 min_temp: 0 max_temp: 130 # tuned for stock hardware with 230 degree Celsius target #control: pid #pid_Kp=26.328 #pid_Ki=1.526 #pid_Kd=113.539 [fan] pin: PC6 [heater_fan hotend_fan] # Note: MCU fan is wired with this pin: PC7 heater: extruder heater_temp: 50.0 [temperature_sensor mcu_temp] sensor_type: temperature_mcu sensor_mcu: mcu # ------------------------------------------------------ [firmware_retraction] retract_length: 0.3 # The length of filament (in mm) to retract when G10 is activated, # and to unretract when G11 is activated (but see # unretract_extra_length below). The default is 0 mm. retract_speed: 50 # The speed of retraction, in mm/s. The default is 20 mm/s. #unretract_extra_length: 0 # The length (in mm) of *additional* filament to add when # unretracting. #unretract_speed: 10 # The speed of unretraction, in mm/s. The default is 10 mm/s. [mcu] serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_30FFD8053054483126651843-if00 #serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_30FFD6053054483131891843-if00 restart_method: command [screws_tilt_adjust] screw1: 67, 200 screw2: 67, 24 screw3: 235, 24 screw4: 235, 200 horizontal_move_z: 8 speed: 300 screw_thread: CW-M3 [bed_screws] screw1: 30.5, 37 screw2: 30.5, 207 screw3: 204.5, 207 screw4: 204.5, 37 horizontal_move_z: 5 # The height (in mm) that the head should be commanded to move to # when moving from one screw location to the next. The default is 5. #probe_height: 0 # The height of the probe (in mm) after adjusting for the thermal # expansion of bed and nozzle. The default is zero. speed: 300 # The speed (in mm/s) of non-probing moves during the calibration. # The default is 50. probe_speed: 5 # The speed (in mm/s) when moving from a horizontal_move_z position # to a probe_height position. The default is 5. # ---------------------- [static_digital_output usb_pullup_enable] pins: !PA14 [board_pins] aliases: # EXP1 header EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=, EXP1_2=PA15, EXP1_4=, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V> [display] lcd_type: st7920 cs_pin: EXP1_7 sclk_pin: EXP1_6 sid_pin: EXP1_8 encoder_pins: ^EXP1_5, ^EXP1_3 click_pin: ^!EXP1_2 [output_pin beeper] pin: EXP1_1 # --------------------------------------- [gcode_macro M420] description: Load the current mesh gcode: BED_MESH_PROFILE LOAD=default [idle_timeout] gcode: {% if printer.pause_resume.is_paused %} SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0 {% else %} TURN_OFF_HEATERS M84 {% endif %} timeout: 1800 [bed_mesh] speed: 150 horizontal_move_z: 6 mesh_min: 46,15 mesh_max: 190,220 probe_count: 5, 5 fade_start: 1.0 fade_end: 5.0 [force_move] enable_force_move: True #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# 0.072500, 0.067500, 0.062500, 0.065000, 0.100000, 0.100000, 0.097500, 0.087500, 0.052500, 0.097500, -0.015000 #*# 0.067500, 0.022500, 0.075000, 0.045000, 0.032500, 0.020000, 0.077500, 0.072500, 0.117500, 0.060000, 0.047500 #*# 0.012500, -0.047500, 0.020000, 0.047500, -0.007500, -0.032500, 0.030000, 0.060000, 0.072500, 0.030000, 0.057500 #*# -0.012500, -0.010000, 0.027500, 0.072500, 0.015000, 0.022500, 0.032500, 0.060000, 0.027500, 0.077500, 0.022500 #*# 0.060000, 0.012500, -0.005000, -0.005000, -0.035000, -0.027500, 0.032500, 0.007500, 0.045000, 0.070000, 0.017500 #*# 0.035000, 0.000000, 0.012500, 0.007500, 0.022500, -0.015000, 0.025000, 0.062500, 0.090000, 0.032500, 0.020000 #*# 0.032500, 0.025000, -0.015000, -0.005000, 0.005000, -0.012500, 0.005000, -0.005000, 0.042500, -0.010000, -0.012500 #*# 0.102500, 0.080000, 0.055000, 0.032500, 0.015000, 0.015000, 0.037500, 0.027500, 0.030000, -0.012500, -0.020000 #*# 0.132500, 0.105000, 0.082500, 0.040000, 0.112500, -0.002500, 0.075000, 0.057500, 0.052500, 0.022500, 0.067500 #*# 0.152500, 0.160000, 0.115000, 0.092500, 0.077500, 0.055000, 0.110000, 0.102500, 0.107500, 0.065000, 0.112500 #*# 0.240000, 0.147500, 0.112500, 0.155000, 0.155000, 0.087500, 0.107500, 0.035000, 0.037500, 0.045000, -0.002500 #*# tension = 0.2 #*# min_x = 5.0 #*# algo = bicubic #*# y_count = 11 #*# mesh_y_pps = 2 #*# min_y = 5.0 #*# x_count = 11 #*# max_y = 220.0 #*# mesh_x_pps = 2 #*# max_x = 190.0 #*# #*# [extruder] #*# control = pid #*# pid_kp = 32.678 #*# pid_ki = 2.223 #*# pid_kd = 120.092 #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 67.648 #*# pid_ki = 1.032 #*# pid_kd = 1108.577 #*# #*# [stepper_z] #*# position_endstop = 2.115 #*# #*# [skew_correction default] #*# xy_skew = 0.000708928353371782 #*# xz_skew = 0.0 #*# yz_skew = 0.0 #*# #*# [bltouch] #*# z_offset = 3.046 #*# #*# [input_shaper] #*# shaper_type_y = ei #*# shaper_freq_y = 42.6 #*# shaper_type_x = 2hump_ei #*# shaper_freq_x = 55.8