Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the BIGTREETECH SKR
- # MINI 2.0. 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 "!PA14".
- # The "make flash" command does not work on the SKR mini. 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 with that SD card.
- # See the example.cfg file for a description of available parameters.
- [mcu]
- ## Obtain mcu value by "ls -l /dev/serial/by-id/"
- serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_31FFD8054254393010651957-if00
- [mcu rpi]
- serial: /tmp/klipper_host_mcu
- [adxl345]
- cs_pin: rpi:None
- [resonance_tester]
- accel_chip: adxl345
- probe_points:
- 60,60,10 # an example
- [stepper_x]
- step_pin: PB13
- dir_pin: PB12 # check https://docs.vorondesign.com/build/startup/#v0 if moving in the wrong direction
- enable_pin: !PB14
- rotation_distance: 39.8043
- microsteps: 16
- endstop_pin: PC0
- position_endstop: 120
- position_max: 120
- homing_speed: 70 # Increase after initial setup, Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_x]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 0
- interpolate: True
- run_current: 1.0 # For V0.1 spec NEMA14 40Ncm
- hold_current: 0.6
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [stepper_y]
- step_pin: PB10
- dir_pin: PB2 # check https://docs.vorondesign.com/build/startup/#v0 if moving in the wrong direction
- enable_pin: !PB11
- rotation_distance: 39.8043
- microsteps: 16
- endstop_pin: PC1
- position_endstop: 119
- position_max: 119
- homing_speed: 70 # Increase after initial setup, Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_y]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 2
- interpolate: True
- run_current: 1.0 # For V0.1 spec NEMA14 40Ncm
- hold_current: 0.6
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [stepper_z]
- step_pin: PB0
- dir_pin: !PC5 # Remove ! if moving opposite direction
- enable_pin: !PB1
- rotation_distance: 8 # For T8x8 integrated lead screw
- microsteps: 16
- endstop_pin: PC2
- position_endstop: -0.10
- position_max: 120
- position_min: -5
- homing_speed: 50 # Max 100
- second_homing_speed: 3.0
- homing_retract_dist: 3.0
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- interpolate: True
- run_current: 0.37 # For V0.1 spec NEMA17 LDO-42STH25-1004CL200E 1.0A
- hold_current: 0.35
- #run_current: 0.2 # For V0.1 spec NEMA17 OMC 17LS13-0404E-200G 0.4A
- #hold_current: 0.15
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [extruder]
- step_pin: PB3
- dir_pin: PB4 # Add ! if moving opposite direction
- enable_pin: !PD2
- full_steps_per_rotation: 200 # 1.8° motor LDO
- #full_steps_per_rotation: 400 # 0.9° motor i.e OMC 14HR07-1004VRN
- rotation_distance: 5.57528
- #gear_ratio: 44:14, 37:17 #LGX Lite
- #gear_ratio: 50:10 #mini afterburner
- microsteps: 16
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC8
- sensor_type: NTC 100K beta 3950 # Adjust for your hotend thermistor (see options below)
- sensor_pin: PA0
- #control: pid # Do PID calibration
- #pid_Kp: 28.182
- #pid_Ki: 1.978
- #pid_Kd: 100.397
- min_temp: 0
- max_temp: 270
- min_extrude_temp: 170
- max_extrude_only_distance: 790.0
- max_extrude_cross_section: 0.9
- #Ziro PLA Dragon HF - Stock o.4mm nozzle
- pressure_advance: 0.033
- pressure_advance_smooth_time: 0.040
- [tmc2209 extruder]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 3
- interpolate: True
- run_current: 0.55 #LGX Lite Nema 14 20mm
- hold_current: 0.45
- #run_current: 0.2 # for LDO 36STH17-1004AHG
- #hold_current: 0.1 # for LDO 36STH17-1004AHG
- #run_current: 0.5 # for OMC 14HR07-1004VRN rated at 1A
- #hold_current: 0.3 # for OMC 14HR07-1004VRN rated at 1A
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [heater_bed]
- heater_pin: PC9
- sensor_type: NTC 100K beta 3950 # For Keenovo, verify yours
- sensor_pin: PC3
- smooth_time: 3.0
- #max_power: 0.6 # Only need this for 100w pads
- min_temp: 0
- max_temp: 120
- #control: pid # Do PID calibration
- #pid_kp: 68.453
- #pid_ki: 2.749
- #pid_kd: 426.122
- [verify_heater heater_bed]
- check_gain_time: 95
- [printer]
- kinematics: corexy
- max_velocity: 300
- max_accel: 8000
- max_z_velocity: 15
- max_z_accel: 45
- square_corner_velocity: 6.0
- [heater_fan hotend_fan]
- pin: PC7
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- #fan_speed: 1.0 # You can't PWM the delta fan unless using blue wire
- [fan]
- pin: PC6
- max_power: 1.0
- kick_start_time: 0.5
- #depending on your fan, you may need to increase or reduce this value
- #if your fan will not start
- off_below: 0.13
- cycle_time: 0.010
- [idle_timeout]
- timeout: 1800
- [safe_z_home]
- home_xy_position: 120,120
- speed: 50.0
- z_hop: 3
- # Tool to help adjust bed leveling screws. One may define a
- # [bed_screws] config section to enable a BED_SCREWS_ADJUST g-code
- # command.
- [bed_screws]
- screw1: 60,5
- screw1_name: front screw
- screw2: 5,115
- screw2_name: back left
- screw3: 115,115
- screw3_name: back right
- [gcode_macro PRINT_START]
- # Use PRINT_START for the slicer starting script - please customize for your slicer of choice
- gcode:
- G28 ; home all axes
- G1 Z20 F3000 ; move nozzle away from bed
- G0 Y2 X38 ; go to tongue of print bed
- G1 Z0.4 F500.0 ; move bed to nozzle
- G92 E0.0 ; reset extruder
- G91 ;set to relative positioning
- G1 X30 E10 F200.0 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT
- G1 X10 F2000 ;fast move to break strings
- G90 ; absolute positioning
- G92 E0.0 ; reset extruder
- G1 Z2.0 ; move nozzle to prevent scratch
- SET_GCODE_OFFSET Z=-0.001
- [gcode_macro PRINT_END]
- # Use PRINT_END for the slicer ending script - please customize for your slicer of choice
- gcode:
- M400 ; wait for buffer to clear
- G92 E0 ; zero the extruder
- G1 E-6.0 F3600 ; retract filament
- G91 ; relative positioning
- # Get Boundaries
- {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
- {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
- {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
- # Check end position to determine safe direction to move
- {% if printer.toolhead.position.x < (max_x - 20) %}
- {% set x_safe = 20.0 %}
- {% else %}
- {% set x_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.y < (max_y - 20) %}
- {% set y_safe = 20.0 %}
- {% else %}
- {% set y_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.z < (max_z - 2) %}
- ; {% set z_safe = 2.0 %}
- {% set z_safe = max_z %}
- {% else %}
- {% set z_safe = max_z - printer.toolhead.position.z %}
- {% endif %}
- G0 Z5 F3600 ; move nozzle up
- G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
- TURN_OFF_HEATERS
- M107 ; turn off fan
- G90 ; absolute positioning
- G0 X118 Y1 F3600 ; park nozzle at front and move Z to bottom
- M18 ; Disable steppers
- ;Lights off
- M104 S40
- G4 P5000
- M104 S0
- M105
- [gcode_macro LOAD_FILAMENT]
- gcode:
- M83 ; set extruder to relative
- G1 E50 F300 ; load
- G1 E40 F150 ; prime nozzle with filament
- M82 ; set extruder to absolute
- [gcode_macro UNLOAD_FILAMENT]
- gcode:
- M83 ; set extruder to relative
- G1 E20 F300 ; extrude a little to soften tip
- G1 E-100 F2000 ; retract some, but not too much or it will jam
- M82 ; set extruder to absolute
- # Sensor Types
- # "EPCOS 100K B57560G104F"
- # "ATC Semitec 104GT-2"
- # "NTC 100K beta 3950" (Keenovo Heater Pad)
- # "Honeywell 100K 135-104LAG-J01"
- # "NTC 100K MGB18-104F39050L32"
- # "AD595"
- # "PT100 INA826"
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 19.999
- #*# pid_ki = 0.895
- #*# pid_kd = 111.744
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 63.749
- #*# pid_ki = 2.690
- #*# pid_kd = 377.711
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = mzv
- #*# shaper_freq_x = 77.8
- #*# shaper_type_y = mzv
- #*# shaper_freq_y = 77.0
Advertisement
Add Comment
Please, Sign In to add comment