Skip to content

Instantly share code, notes, and snippets.

@lenne0815
Last active March 1, 2024 20:37
Show Gist options
  • Save lenne0815/a8d4380a4e0ad812623414985aa5e583 to your computer and use it in GitHub Desktop.
Save lenne0815/a8d4380a4e0ad812623414985aa5e583 to your computer and use it in GitHub Desktop.
Ender 5 SKR mini E3 1.2 Config
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v1.2. 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".
# 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.
[include meshBed.cfg]
[gcode_macro START_PRINT]
gcode:
G90
G92 E0
G1 X35.0 Y5.0 Z0.1 E1.0 F5000.0 ; intro line start
G1 X35.0 Y5.0 Z0.1 E4.0 F1000.0 ; start extruding
G1 X60.0 Y5.0 Z0.2 E10 F1000.0 ; middle
G1 X100.0 Y5.0 Z0.1 E15 F1000.0 ; intro line finish
[gcode_macro END_PRINT]
gcode:
G91 ; relative movements
G1 Z5 F5000 ; lift nozzle
G90 ; back to absolute
G0 X0 Y30 F10000
M107 ; turn fan off
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M18 ;turn Motors off
SET_PIN PIN=power VALUE=0
[gcode_macro REBOOT]
gcode:
FIRMWARE_RESTART
# [firmware_retraction]
# retract_length: 0.6
# retract_speed: 60
# unretract_extra_length: 0.00
# unretract_speed: 60
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
step_distance: .0125
endstop_pin: ^PC0
position_endstop: 258
position_max: 258
homing_speed: 50
homing_positive_dir: True
[tmc2209 stepper_x]
uart_pin: PB15
microsteps: 16
run_current: 0.55
hold_current: 0.4
stealthchop_threshold: 250
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB11
step_distance: .0125
endstop_pin: ^PC1
position_endstop: 224
position_max: 224
homing_speed: 50
homing_positive_dir: True
[tmc2209 stepper_y]
uart_pin: PC6
microsteps: 16
run_current: 0.9
hold_current: 0.500
stealthchop_threshold: 250
[stepper_z]
step_pin: PB0
dir_pin: !PC5
enable_pin: !PB1
step_distance: .01
endstop_pin: ^!PC2
position_max: 280
position_min: -1
position_endstop: 0
[tmc2209 stepper_z]
uart_pin: PC10
microsteps: 4
run_current: 0.7
hold_current: 0.500
stealthchop_threshold: 200
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD2
step_distance: 0.00964
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.08
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
#control: pid
#pid_Kp: 24.469
#pid_Ki: 1.305
#pid_Kd: 114.697
min_temp: 0
max_temp: 300
max_extrude_only_distance: 150
max_extrude_cross_section: 50
[tmc2209 extruder]
uart_pin: PC11
microsteps: 4
run_current: 0.6
hold_current: 0.500
stealthchop_threshold: 0
interpolate: true
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC3
#control: pid
#pid_Kp: 54.027
#pid_Ki: 0.770
#pid_Kd: 948.182
min_temp: 0
max_temp: 130
[fan]
pin: PA8
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_37FFD8055252323020530243-if00
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 2500
max_z_velocity: 30
max_z_accel: 100
# [probe]
# pin: ^!PC2
# x_offset: 0.0
# y_offset: 0.0
# z_offset: 0.0
# The distance (in mm) between the bed and the nozzle when the probe
# triggers. This parameter must be provided.
# speed: 10
# Speed (in mm/s) of the Z axis when probing. The default is 5mm/s.
# activate_gcode:
# deactivate_gcode:
[bed_mesh]
#relative_reference_index: 6
speed: 200
horizontal_move_z: 5
# The height (in mm) that the head should be commanded to move to
# just prior to starting a probe operation. The default is 5.
mesh_min: 10,10
mesh_max:224,224
probe_count: 4,4
fade_start: 1.0
fade_end: 10
split_delta_z: .025
algorithm: bicubic
bicubic_tension: .2
[static_digital_output usb_pullup_enable]
pins: !PC13
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PB6, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB7, 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 power]
pin: PB5
value: 1
shutdown_value: 1
[virtual_sdcard]
path: /home/pi/sdcard
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 24.469
#*# pid_ki = 1.305
#*# pid_kd = 114.697
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 47.847
#*# pid_ki = 1.204
#*# pid_kd = 475.482
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.040000, 0.000000, 0.000000, 0.000000
#*# 0.000000, 0.000000, 0.000000, 0.000000
#*# 0.000000, 0.000000, 0.000000, 0.000000
#*# 0.000000, 0.000000, 0.000000, 0.000000
#*# tension = 0.2
#*# min_x = 10.0
#*# algo = bicubic
#*# y_count = 4
#*# mesh_y_pps = 2
#*# min_y = 10.0
#*# x_count = 4
#*# max_y = 223.99
#*# mesh_x_pps = 2
#*# max_x = 223.99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment