Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the BIGTREETECH SKR mini
- # E3 v3.0. To use this config, the firmware should be compiled for the
- # STM32G0B1 with a "8KiB bootloader" and USB communication.
- # 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.
- [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: 300
- homing_speed: 25
- [tmc2209 stepper_x]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 0
- run_current: 0.6
- 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: 300
- homing_speed: 25
- [tmc2209 stepper_y]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 2
- run_current: 0.6
- 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: 350
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- run_current: 0.6
- stealthchop_threshold: 999999
- [extruder]
- step_pin: PB3
- dir_pin: PB4
- enable_pin: !PD1
- microsteps: 16
- rotation_distance: 6.74
- 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
- #min_extrude_temp: 0
- max_extrude_only_distance: 1000
- [tmc2209 extruder]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 3
- run_current: 0.5
- stealthchop_threshold: 999999
- [heater_bed]
- heater_pin: PC9
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PC4
- 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
- [heater_fan controller_fan]
- pin: PB15
- [fan]
- pin: PC6
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_34002B000750414235363020-if00
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- [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
- [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>
- # See the sample-lcd.cfg file for definitions of common LCD displays.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement