# This file contains common pin mappings for the BIGTREETECH SKR mini # E3 v2.0. To use this config, the firmware should be compiled for the # STM32F103 with a "28KiB bootloader" and USB communication. Also, # select "Enable extra low-level configuration options" and configure # "GPIO pins to set at micro-controller startup" to "!PA14". # The "make flash" command does not work on the SKR mini E3. 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 # mini E3 with that SD card. # See docs/Config_Reference.md for a description of parameters. [virtual_sdcard] path: ~/gcode_files [display_status] [pause_resume] # printer.cfg [include timelapse.cfg] [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 [tmc2209 stepper_x] uart_pin: PC11 tx_pin: PC10 uart_address: 0 run_current: 0.580 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_max: 235 homing_speed: 50 [tmc2209 stepper_y] uart_pin: PC11 tx_pin: PC10 uart_address: 2 run_current: 0.580 hold_current: 0.500 stealthchop_threshold: 999999 [stepper_z] step_pin: PB0 dir_pin: PC5 enable_pin: !PB1 microsteps: 16 rotation_distance: 8 endstop_pin: probe:z_virtual_endstop #position_endstop: 0.0 position_max: 250 position_min: -3 [tmc2209 stepper_z] uart_pin: PC11 tx_pin: PC10 uart_address: 1 run_current: 1.160 hold_current: 1.000 stealthchop_threshold: 999999 [extruder] step_pin: PB3 dir_pin: !PB4 enable_pin: !PD2 microsteps: 16 rotation_distance: 22.557 nozzle_diameter: 0.400 pressure_advance: 0.4508 pressure_advance_smooth_time: 0.040 filament_diameter: 1.750 heater_pin: PC8 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA0 #control: pid #pid_Kp: 21.527 #pid_Ki: 1.063 #pid_Kd: 108.982 min_temp: 0 max_temp: 270 min_extrude_temp: 0 max_extrude_only_distance: 100 [tmc2209 extruder] uart_pin: PC11 tx_pin: PC10 uart_address: 3 run_current: 0.650 hold_current: 0.500 stealthchop_threshold: 999999 [heater_bed] heater_pin: PC9 sensor_type: ATC Semitec 104GT-2 sensor_pin: PC3 #control: pid #pid_Kp: 54.027 #pid_Ki: 0.770 #pid_Kd: 948.182 min_temp: 0 max_temp: 130 [heater_fan nozzle_cooling_fan] pin: PC7 [bltouch] sensor_pin: ^PC14 control_pin: PA1 ## do your own measurement x_offset: -42 y_offset: -5 #z_offset = 1.54 pin_move_time: 0.4 stow_on_each_sample: False probe_with_touch_mode: True pin_up_touch_mode_reports_triggered: False ##Turn ON to adjust home location from 0,0,0 [safe_z_home] home_xy_position: 159.5,122.5 speed: 150 z_hop: 10 z_hop_speed: 5 ## bltouch mesh bed leveling [bed_mesh] speed = 120 horizontal_move_z: 5 mesh_min: 15,15 #23,28 mesh_max: 185,200 #190,190 probe_count: 7,7 fade_start: 1.0 fade_end: 10.0 fade_target: 0 algorithm: bicubic [fan] pin: PC6 [mcu] serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_34FFD4054254323816741957-if00 [printer] kinematics: cartesian max_velocity: 300 max_accel: 3000 max_z_velocity: 5 max_z_accel: 100 [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> # See the sample-lcd.cfg file for definitions of common LCD displays. [gcode_macro PAUSE] description: Pause the actual running print rename_existing: PAUSE_BASE # change this if you need more or less extrusion variable_extrude: 1.0 gcode: ##### read E from pause macro ##### {% set E = printer["gcode_macro PAUSE"].extrude|float %} ##### set park positon for x and y ##### # default is your max posion from your printer.cfg {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} ##### calculate save lift position ##### {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% if act_z < (max_z - 2.0) %} {% set z_safe = 2.0 %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} ##### end of definitions ##### PAUSE_BASE G91 {% if printer.extruder.can_extrude|lower == 'true' %} G1 E-{E} F2100 {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} {% if "xyz" in printer.toolhead.homed_axes %} G1 Z{z_safe} F900 G90 G1 X{x_park} Y{y_park} F6000 {% else %} {action_respond_info("Printer not homed")} {% endif %} [gcode_macro RESUME] description: Resume the actual running print rename_existing: RESUME_BASE gcode: ##### read E from pause macro ##### {% set E = printer["gcode_macro PAUSE"].extrude|float %} #### get VELOCITY parameter if specified #### {% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %} ##### end of definitions ##### {% if printer.extruder.can_extrude|lower == 'true' %} G91 G1 E{E} F2100 {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params} [gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: CANCEL_PRINT_BASE gcode: TURN_OFF_HEATERS CANCEL_PRINT_BASE #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# 0.122500, 0.097500, 0.035000, 0.030000, -0.007500, 0.032500, 0.060000 #*# 0.130000, 0.090000, 0.040000, 0.020000, -0.005000, 0.020000, 0.042500 #*# 0.142500, 0.117500, 0.077500, 0.057500, 0.045000, 0.062500, 0.100000 #*# 0.112500, 0.105000, 0.082500, 0.070000, 0.060000, 0.095000, 0.137500 #*# 0.115000, 0.117500, 0.090000, 0.085000, 0.080000, 0.115000, 0.162500 #*# 0.052500, 0.060000, 0.065000, 0.082500, 0.107500, 0.165000, 0.220000 #*# 0.080000, 0.085000, 0.080000, 0.085000, 0.112500, 0.125000, 0.192500 #*# tension = 0.2 #*# min_x = 15.0 #*# algo = bicubic #*# y_count = 7 #*# mesh_y_pps = 2 #*# min_y = 15.0 #*# x_count = 7 #*# max_y = 199.97 #*# mesh_x_pps = 2 #*# max_x = 184.97 #*# #*# [extruder] #*# control = pid #*# pid_kp = 29.662 #*# pid_ki = 1.634 #*# pid_kd = 134.590 #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 72.928 #*# pid_ki = 1.814 #*# pid_kd = 732.929 #*# #*# [bltouch] #*# z_offset = 1.850