# 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". 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 the example.cfg file for a description of available parameters. [stepper_x] step_pin: PB13 dir_pin: !PB12 enable_pin: !PB14 step_distance: .0125 endstop_pin: ^PC0 position_endstop: 0 position_min: -5 position_max: 235 homing_speed: 50 [tmc2209 stepper_x] uart_pin: PC11 tx_pin: PC10 uart_address: 0 microsteps: 16 run_current: 0.580 hold_current: 0.500 stealthchop_threshold: 250 [stepper_y] step_pin: PB10 dir_pin: !PB2 enable_pin: !PB11 step_distance: .0125 endstop_pin: ^PC1 position_endstop: -10 position_min: -10 position_max: 235 homing_speed: 50 [tmc2209 stepper_y] uart_pin: PC11 tx_pin: PC10 uart_address: 2 microsteps: 16 run_current: 0.580 hold_current: 0.500 stealthchop_threshold: 250 [stepper_z] step_pin: PB0 dir_pin: PC5 enable_pin: !PB1 step_distance: .0025 endstop_pin:probe:z_virtual_endstop position_max: 250 position_min: -8 [tmc2209 stepper_z] uart_pin: PC11 tx_pin: PC10 uart_address: 1 microsteps: 16 run_current: 0.580 hold_current: 0.500 stealthchop_threshold: 5 [extruder] step_pin: PB3 dir_pin: !PB4 enable_pin: !PD2 step_distance: 0.007246 nozzle_diameter: 0.400 filament_diameter: 1.750 # PLA #pressure_advance: 0.078 # TPU pressure_advance: 0.25 pressure_advance_smooth_time: 0.040 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: 250 [tmc2209 extruder] uart_pin: PC11 tx_pin: PC10 uart_address: 3 microsteps: 16 run_current: 0.650 hold_current: 0.500 stealthchop_threshold: 5 [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: PC6 [fan] pin: PC7 [mcu] serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_35FFDB054246303041621057-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. [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 #kill_pin: ^!EXP2_8 [output_pin beeper] pin: EXP1_1 [bltouch] sensor_pin: ^PC2 control_pin: PA1 x_offset: -45 y_offset: -8 #z_offset: -2 pin_move_time: 0.4 [bed_mesh] speed: 150 horizontal_move_z: 5 mesh_min: 15, 20 mesh_max: 190, 210 probe_count: 6,6 mesh_pps: 2,2 [bed_screws] screw1: 30,40 screw1_name: Front left screw screw2: 30,205 screw2_name: Rear left screw screw3: 205,205 screw3_name: Rear right screw screw4: 205,40 screw4_name: Front right screw # This adds a screw tilt adjust command that probes certain points on the bed and recommends new bed screw positions (turn clockwise this much etc) [screws_tilt_adjust] screw1: 75,58 screw1_name: Front left screw screw2: 75,223 screw2_name: Rear left screw screw3: 234,58 screw3_name: Front right screw screw4: 234,223 screw4_name: Rear right screw horizontal_move_z: 10 speed: 250 screw_thread: CW-M3 [gcode_macro G29] gcode: G28 BED_MESH_CLEAR BED_MESH_CALIBRATE BED_MESH_PROFILE LOAD=default [gcode_macro START_PRINT] default_parameter_BED_TEMP: 60 default_parameter_EXTRUDER_TEMP: 190 gcode: M140 S{BED_TEMP} ; Set Heat Bed temperature M190 S{BED_TEMP} ; Wait for Heat Bed temperature M104 S160; start warming extruder to 160 G29 ; Auto bed-level (BL-Touch) G92 E0 ; Reset Extruder M104 S{EXTRUDER_TEMP} ; Set Extruder temperature G1 X4 Y20 Z0.4 F5000.0 ; Move to start position M109 S{EXTRUDER_TEMP} ; Wait for Extruder temperature ; G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed G1 X4 Y200.0 Z0.4 F1500.0 E15 ; Draw the first line G1 X5 Y200.0 Z0.4 F5000.0 ; Move to side a little G1 X5 Y20 Z0.4 F1500.0 E30 ; Draw the second line G92 E0 ; Reset Extruder G1 Z2 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed SET_GCODE_OFFSET Z=-.34 [gcode_macro END_PRINT] gcode: G91 ;Relative positioning G1 E-2 F2700 ;Retract a bit G1 E-2 Z0.2 F2400 ;Retract and raise Z G1 X5 Y5 F3000 ;Wipe out G1 Z10 ;Raise Z more G90 ;Absolute positioning G1 X0 Y220 ;Present print M106 S0 ;Turn-off fan M104 S0 ;Turn-off hotend M140 S0 ;Turn-off bed M84 ;Disable all steppers [safe_z_home] home_xy_position: 155,120 speed: 80.0 z_hop: 10.0 z_hop_speed: 10.0 # This adds the 'respond' G-Code that you can use to send commands back to OctoPrint [respond] default_type: echo [gcode_macro FILAMENT_LOAD] gcode: M83 G92 E0.0 G1 E20 F200 G1 E30 F20 G92 E0.0 [gcode_macro FILAMENT_UNLOAD] gcode: M83 G1 E0.5 F200 G1 E-0.5 F200 G1 E1.0 F200 G1 E-1.0 F200 G1 E1.5 F200 G1 E-1.5 F200 G1 E2.0 F200 G1 E-40 F200 G92 E0.0 [gcode_macro M300] default_parameter_P=100 gcode: SET_PIN PIN=beeper VALUE=1.0 G4 P{P} SET_PIN PIN=beeper VALUE=0 [gcode_macro PARK_MACRO] default_parameter_X: 0 default_parameter_Y: 0 default_parameter_Z: 30 gcode: G91 G1 E-3.14 F1500 G1 Z{Z} G90 G1 X{X} Y{Y} F3000 [gcode_macro UNLOAD] gcode: G91 G1 E5.0 F1200 G1 E3.0 F1600 G1 E-10 F7000 G1 E-90 F3000 G90 [gcode_macro M600] gcode: PAUSE_MACRO UNLOAD SET_STEPPER_ENABLE STEPPER=extruder ENABLE=0 [gcode_macro PAUSE_MACRO] gcode: PAUSE PARK_MACRO #[filament_switch_sensor my_sensor] #switch_pin: PA8 #runout_gcode: M600 [menu __main __preheat_pla_hotend] type: command enable: {'extruder' in printer} name: Preheat Hotend 200 gcode: M104 S200 [menu __main __setup __screw_tilt_calc] type: command enable: {not printer.idle_timeout.state == "Printing"} name: Screw Tilt Calculate gcode: G28 SCREWS_TILT_CALCULATE ############################ ##### CREATED BY KIAUH ##### ############################ [virtual_sdcard] path: ~/sdcard ############################ #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# 0.055000, -0.000000, -0.000000, 0.002500, 0.030000, 0.080000 #*# -0.037500, -0.017500, -0.002500, 0.010000, 0.055000, 0.072500 #*# -0.032500, -0.042500, -0.047500, -0.045000, -0.000000, 0.045000 #*# -0.030000, -0.000000, 0.012500, 0.002500, 0.042500, 0.045000 #*# 0.040000, -0.025000, -0.010000, -0.020000, 0.005000, 0.050000 #*# -0.057500, -0.050000, -0.027500, -0.030000, 0.005000, 0.005000 #*# tension = 0.2 #*# min_x = 15.0 #*# algo = lagrange #*# y_count = 6 #*# mesh_y_pps = 2 #*# min_y = 20.0 #*# x_count = 6 #*# max_y = 210.0 #*# mesh_x_pps = 2 #*# max_x = 190.0 #*# #*# [bltouch] #*# z_offset = 2.950 #*# #*# [extruder] #*# control = pid #*# pid_kp = 29.299 #*# pid_ki = 2.035 #*# pid_kd = 105.476 #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 71.525 #*# pid_ki = 1.398 #*# pid_kd = 914.631