Skip to content

Instantly share code, notes, and snippets.

@skelliam
Created November 19, 2023 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skelliam/f0f75df9a1cc9f5bd7b15a0ae3f4fff0 to your computer and use it in GitHub Desktop.
Save skelliam/f0f75df9a1cc9f5bd7b15a0ae3f4fff0 to your computer and use it in GitHub Desktop.
Ender 3 Pro with stock cooling fans, EZABL bed level sensor, BIGTREETECH SKR Mini E3 V3.0 motherboard, Micro Swiss direct drive extruder
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC0
position_endstop: -3.0
position_min: -5.0
position_max: 260
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: -15.0
position_min: -15.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 #ezabl
position_max: 250
position_min: -7
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 999999
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD1
microsteps: 16
rotation_distance: 23.313
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
min_temp: 0
max_temp: 260
[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: EPCOS 100K B57560G104F
sensor_pin: PC4
min_temp: 0
max_temp: 130
[heater_fan controller_fan]
pin: PB15
heater: heater_bed
heater_temp: 45.0
[heater_fan nozzle_cooling_fan]
pin: PC7
[fan]
pin: PC6
# Get value via ssh; then use command: ls /dev/serial/by-id
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_2200140010504B5735313920-if00
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 10
max_z_accel: 100
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, 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
[probe]
# Pin for the z-min endstop input
pin: ^!PC14
# Offset between the nozzle and the EZABL sensor
x_offset: -45.0 # (+) right of nozzle
y_offset: 10.0 # (-) behind nozzle
#z_offset: 2.0 # see probe section in auto-saved config
speed: 5.0
lift_speed: 80.0
sample_retract_dist: 2.0
samples: 2
samples_tolerance_retries: 6
[safe_z_home]
home_xy_position: 155, 125
speed: 50
z_hop: 10
z_hop_speed: 80
[bed_mesh]
speed: 200
horizontal_move_z: 3
mesh_min: 30, 50
mesh_max: 200, 220
probe_count: 3 # 3x3 grid
[gcode_macro G29]
gcode:
{% set BED_TEMP = printer.heater_bed.target %}
{% set EXTRUDER_TEMP = printer[printer.toolhead.extruder].target %}
TURN_OFF_HEATERS
BED_MESH_CALIBRATE
# turn on heaters
M140 S{BED_TEMP} ; set bed temp
M104 S{EXTRUDER_TEMP} ; set extruder temp
M190 S{BED_TEMP} ; wait for bed
M109 S{EXTRUDER_TEMP} ; wait for extruder
[gcode_macro M190]
rename_existing: M190.1
gcode:
{% set local_s = params.S|default('off')|float %}
{% set local_r = params.R|default('off')|float %}
{% set tolerance = 5.0|float %}
{% if local_s != 'off' %}
M140 S{local_s}
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={local_s|float - tolerance}
{% elif local_r != 'off' %}
M190.1 S{local_r}
{% else %}
M140 S0
{% endif %}
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [probe]
#*# z_offset = 1.600
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 33.252
#*# pid_ki = 2.608
#*# pid_kd = 105.991
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 70.857
#*# pid_ki = 1.389
#*# pid_kd = 903.430
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.442500, -0.533333, -0.713333
#*# 0.059167, -0.013333, -0.114167
#*# 0.399167, 0.460833, 0.409167
#*# tension = 0.2
#*# min_x = 30.0
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 50.0
#*# x_count = 3
#*# max_y = 220.0
#*# mesh_x_pps = 2
#*# max_x = 200.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment