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 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.
- # 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.
- [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
- 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
- stealthchop_threshold: 999999
- [stepper_z]
- step_pin: PB0
- dir_pin: PC5
- enable_pin: !PB1
- microsteps: 16
- rotation_distance: 8
- ## When using a z-endstop:
- #endstop_pin: ^PC2
- ## When using a probe/bltouch:
- endstop_pin: probe:z_virtual_endstop
- position_endstop: 0.0
- position_max: 250
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- run_current: 0.580
- 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
- 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 heatbreak_cooling_fan]
- pin: PC7
- [fan]
- pin: PC6
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_31FFD5054254383318821957-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>
- # See the sample-lcd.cfg file for definitions of common LCD displays.
- [bltouch]
- control_pin: PA1
- ## When using z-endstop connector:
- #sensor_pin: ^PC2
- ## When using probe connector:
- sensor_pin: ^PC14
- ## Adjust these to fit your bltouch mount:
- x_offset: -45.0
- y_offset: -10.0
- z_offset: 0
- [safe_z_home]
- home_xy_position: 100, 100 # Change coordinates to the center of your print bed
- speed: 50
- z_hop: 10 # Move up 10mm
- z_hop_speed: 5
- [gcode_macro START_PRINT]
- gcode:
- {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
- {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
- # Start bed heating
- M140 S{BED_TEMP}
- # Use absolute coordinates
- G90
- # Reset the G-Code Z offset (adjust Z offset if needed)
- SET_GCODE_OFFSET Z=0.0
- # Home the printer
- G28
- # Move the nozzle near the bed
- G1 Z5 F3000
- # Move the nozzle very close to the bed
- G1 Z0.15 F300
- # Wait for bed to reach temperature
- M190 S{BED_TEMP}
- # Set and wait for nozzle to reach temperature
- M109 S{EXTRUDER_TEMP}
- [gcode_macro END_PRINT]
- gcode:
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M106 S0
- # Move nozzle away from print while retracting
- G91
- G1 X-2 Y-2 E-3 F300
- # Raise nozzle by 10mm
- G1 Z10 F3000
- G90
- # Disable steppers
- M84
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement