Last active
February 21, 2021 08:31
-
-
Save ggajoch/f8b1e31dc7de4644c5170be391fffe95 to your computer and use it in GitHub Desktop.
typical config
This file contains hidden or 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 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. | |
[stepper_x] | |
step_pin: PB13 | |
dir_pin: !PB12 | |
enable_pin: !PB14 | |
step_distance: 0.003125 | |
endstop_pin: ^PC0 | |
position_endstop: 0 | |
position_max: 245 | |
homing_speed: 50 | |
second_homing_speed: 25 | |
[tmc2208 stepper_x] | |
uart_pin: PB15 | |
microsteps: 64 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 250 | |
[stepper_y] | |
step_pin: PB10 | |
dir_pin: !PB2 | |
enable_pin: !PB11 | |
step_distance: 0.003125 | |
endstop_pin: ^PC1 | |
position_endstop: 0 | |
position_max: 235 | |
homing_speed: 50 | |
second_homing_speed: 25 | |
[tmc2209 stepper_y] | |
uart_pin: PC6 | |
microsteps: 64 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 250 | |
[stepper_z] | |
step_pin: PB0 | |
dir_pin: PC5 | |
enable_pin: !PB1 | |
step_distance: 0.000625 | |
# endstop_pin: ^PC2 | |
endstop_pin: probe:z_virtual_endstop | |
position_endstop: 0.0 | |
position_max: 250 | |
position_min: -50 | |
homing_speed: 5 | |
second_homing_speed: 2.5 | |
[tmc2209 stepper_z] | |
uart_pin: PC10 | |
microsteps: 64 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 25 | |
[safe_z_home] | |
# home_xy_position: 235,28 # Change coordinates to the center of your print bed | |
home_xy_position: 235,68 # Change coordinates to the center of your print bed | |
speed: 150 | |
z_hop: 10 # Move up 10mm | |
z_hop_speed: 20 | |
[extruder] | |
max_extrude_only_distance: 100.0 | |
max_extrude_cross_section: 50 | |
step_pin: PB3 | |
dir_pin: PB4 | |
enable_pin: !PD2 | |
step_distance: 0.00061 | |
nozzle_diameter: 0.40 | |
filament_diameter: 1.750 | |
heater_pin: PC8 | |
sensor_type: ATC Semitec 104GT-2 | |
sensor_pin: PA0 | |
smooth_time: 2 | |
#control: pid | |
#pid_Kp: 21.527 | |
#pid_Ki: 1.063 | |
#pid_Kd: 108.982 | |
min_temp: 0 | |
max_temp: 250 | |
max_temp: 300 | |
min_extrude_temp: 170 | |
#min_extrude_temp: 10 | |
pwm_cycle_time: 0.1 | |
# pressure_advance: 0.56 # orange PLA FL | |
# pressure_advance: 0.76 # PET-G minitec | |
pressure_advance: 0.01 # control from Slic3r | |
pressure_advance_smooth_time: 0.040 | |
[tmc2209 extruder] | |
uart_pin: PC11 | |
microsteps: 64 | |
run_current: 0.650 | |
hold_current: 0.500 | |
stealthchop_threshold: 10000 | |
[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 | |
pwm_cycle_time: 0.1 | |
[fan] | |
pin: !PA8 | |
max_power: 1.0 | |
off_below: 0.1 | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_38FFDD055252343442781043-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: !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 beeper] | |
pin: EXP1_1 | |
[bltouch] | |
# for bowden | |
x_offset: -39.0 | |
y_offset: 0 | |
sensor_pin: ^PC2 | |
control_pin: PA1 | |
#z_offset: 0.3 | |
speed: 2.5 | |
pin_up_touch_mode_reports_triggered: False | |
samples: 2 | |
sample_retract_dist: 3.0 | |
[bed_mesh] | |
speed: 200 | |
horizontal_move_z: 5 | |
#sample_retract_dist: 2.0 | |
mesh_min: 0,10 | |
mesh_max: 206,225 | |
probe_count: 3,3 | |
[screws_tilt_adjust] | |
horizontal_move_z: 3. | |
speed: 150. | |
screw_thread: CW-M4 | |
screw1: 70,206 | |
screw1_name: rear left screw | |
screw2: 239,204 | |
screw2_name: rear right screw | |
screw3: 239,35 | |
screw3_name: front right screw | |
screw4: 69,36 | |
screw4_name: front left screw | |
[virtual_sdcard] | |
path: ~/.octoprint/uploads/ | |
[pause_resume] | |
recover_velocity: 50. # mm/s | |
[filament_switch_sensor my_sensor] | |
pause_on_runout: False | |
event_delay: 2.0 | |
pause_delay: 0.01 | |
switch_pin: PC15 | |
runout_gcode: | |
{% if not printer.pause_resume.is_paused %} | |
M117 runout! | |
M600 | |
{% endif %} | |
insert_gcode: | |
{% if printer.extruder.target < 185 %} | |
M104 S210 | |
{% else %} | |
{% if printer.extruder.temperature > 180 %} | |
M117 Loading filament... | |
FILAMENT_LOAD | |
M117 | |
{% if printer.pause_resume.is_paused %} | |
RESUME_AFTER_LOAD | |
{% endif %} | |
{% endif %} | |
{% endif %} | |
[gcode_macro resume_after_load] | |
gcode: | |
M83 | |
G1 E-10 F1500 | |
G4 P100 | |
G1 X{printer["gcode_macro park_macro"].position_x} Y{printer["gcode_macro park_macro"].position_y} F3000 | |
G1 Z{printer["gcode_macro park_macro"].position_z} F1000 | |
G1 E10 F200 | |
RESUME | |
[gcode_macro park_macro] | |
default_parameter_X: 0 | |
default_parameter_Y: 0 | |
default_parameter_Z: 5 | |
variable_position_x: 0 | |
variable_position_y: 0 | |
variable_position_z: 0 | |
gcode: | |
M117 PARKING.. | |
SET_GCODE_VARIABLE MACRO=park_macro VARIABLE=position_x VALUE={printer.toolhead.position.x} | |
SET_GCODE_VARIABLE MACRO=park_macro VARIABLE=position_y VALUE={printer.toolhead.position.y} | |
SET_GCODE_VARIABLE MACRO=park_macro VARIABLE=position_z VALUE={printer.toolhead.position.z} | |
G91 | |
M83 | |
G1 E-3.14 F1500 | |
G1 Z{Z} F500 | |
G1 E-5 F1500 | |
G90 | |
G1 X{X} Y{Y} F3000 | |
[gcode_macro M600] | |
gcode: | |
PAUSE | |
PARK_MACRO | |
FILAMENT_UNLOAD | |
[gcode_macro FILAMENT_LOAD] | |
gcode: | |
M83 | |
G1 E50 F500 | |
G1 E50 F1000 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F1800 | |
G1 E50 F100 | |
G1 E50 F100 | |
[gcode_macro FILAMENT_UNLOAD] | |
gcode: | |
M83 | |
G1 E-50 F1000 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
G1 E-50 F1800 | |
[gcode_macro PRIME_LINES] | |
gcode: | |
G92 E0 ;Reset Extruder | |
M83 | |
G1 X1.0 Y50 Z0.28 F5000.0 ;Move to start position | |
G1 X1.0 Y200.0 Z0.28 F1500.0 E{40*(printer.configfile.config["extruder"]["nozzle_diameter"]|float)} ;Draw the first line | |
G1 X1.3 Y200.0 Z0.28 F5000.0 ;Move to side a little | |
G1 X1.3 Y50 Z0.28 F1500.0 E{2*3.9*(printer.configfile.config["extruder"]["nozzle_diameter"]|float)} ;Draw the second line | |
G92 E0 ;Reset Extruder | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 26.878 | |
#*# pid_ki = 1.600 | |
#*# pid_kd = 112.889 | |
#*# | |
#*# [heater_bed] | |
#*# control = pid | |
#*# pid_kp = 75.388 | |
#*# pid_ki = 2.244 | |
#*# pid_kd = 633.258 | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# -0.239687, -0.230625, -0.007187 | |
#*# -0.273750, -0.194687, 0.085000 | |
#*# -0.153750, -0.137187, 0.033750 | |
#*# x_count = 3 | |
#*# y_count = 3 | |
#*# mesh_x_pps = 2 | |
#*# mesh_y_pps = 2 | |
#*# algo = lagrange | |
#*# tension = 0.2 | |
#*# min_x = 0.9999999994 | |
#*# max_x = 206.0 | |
#*# min_y = 32.0 | |
#*# max_y = 205.0 | |
#*# | |
#*# [bed_mesh ggender] | |
#*# version = 1 | |
#*# points = | |
#*# 0.153125, 0.014375, -0.019375, -0.025000, -0.006875 | |
#*# 0.140625, 0.049375, 0.011250, 0.011875, 0.068750 | |
#*# 0.205000, 0.096250, 0.026250, -0.005000, 0.039375 | |
#*# 0.167500, 0.053750, 0.023125, 0.021250, 0.076875 | |
#*# 0.168125, 0.075000, 0.060000, 0.070000, 0.108750 | |
#*# x_count = 5 | |
#*# y_count = 5 | |
#*# mesh_x_pps = 2 | |
#*# mesh_y_pps = 2 | |
#*# algo = lagrange | |
#*# tension = 0.2 | |
#*# min_x = 4.9999999994 | |
#*# max_x = 196.0 | |
#*# min_y = 28.0 | |
#*# max_y = 220.000000001 | |
#*# | |
#*# [bltouch] | |
#*# z_offset = 0.769 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment