Created
January 25, 2022 15:28
-
-
Save bgautrea/404494d71f5a725dc55c4edf7a2b0f8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
[bltouch] | |
stow_on_each_sample: False | |
probe_with_touch_mode: True | |
sensor_pin: ^PC14 | |
control_pin: PA1 | |
pin_move_time: 0.68 | |
pin_up_reports_not_triggered: true | |
pin_up_touch_mode_reports_triggered: false | |
x_offset: -42 | |
y_offset: -10 | |
z_offset: 1.61 | |
speed: 50 | |
lift_speed: 20 | |
samples: 2 | |
sample_retract_dist: 5 | |
samples_tolerance_retries: 3 | |
[bed_mesh] | |
speed: 80 | |
horizontal_move_z: 5 | |
mesh_min: 20, 20 | |
mesh_max: 168.75, 209 | |
probe_count: 3,3 | |
fade_start: 1.0 | |
mesh_pps: 2,2 | |
[gcode_macro G29] | |
gcode: | |
BED_MESH_CALIBRATE | |
[virtual_sdcard] | |
path: ~/gcode_files | |
[display_status] | |
[pause_resume] | |
[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: ^PC2 | |
position_endstop: 0.0 | |
position_max: 250 | |
[tmc2209 stepper_z] | |
uart_pin: PC11 | |
tx_pin: PC10 | |
uart_address: 1 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 999999 | |
[extruder] | |
step_pin: PB3 | |
dir_pin: !PB4 | |
enable_pin: !PD2 | |
microsteps: 16 | |
rotation_distance: 33.500 | |
nozzle_diameter: 0.400 | |
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: 250 | |
[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 | |
[fan] | |
pin: PC6 | |
[mcu] | |
#serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 | |
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_33FFDB055356343518540143-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=<GND>, | |
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V> | |
[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 | |
# See the sample-lcd.cfg file for definitions of common LCD displays. | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# -0.162500, -0.238750, -0.196250 | |
#*# -0.152500, -0.211250, -0.158750 | |
#*# -0.041250, -0.110000, -0.078750 | |
#*# tension = 0.2 | |
#*# min_x = 20.0 | |
#*# algo = lagrange | |
#*# y_count = 3 | |
#*# mesh_y_pps = 2 | |
#*# min_y = 20.0 | |
#*# x_count = 3 | |
#*# max_y = 209.0 | |
#*# mesh_x_pps = 2 | |
#*# max_x = 168.74 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment