Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################
- ### HevORT SKR 1.4 Klipper setup ###
- ####################################
- ## Setup firmware
- # cd ~/klipper
- # make menuconfig
- #
- # - Micro-controller -- LPC176x (Smoothieboard )
- # - Processor model -- lpc1768 for a SKR 1.4 / lpc1769 for a SKR 1.4 turbo
- # - Target board uses Smootieware bootloader -- activated
- # - Use USB for communication (instead of serial ) -- activated
- ## Compile firmware
- # make
- ## Flash Firmware
- # You need to copy the firmware with scp/winscp or similar tools to the sd card, flashing
- # over make flash FLASH_DEVICE=/dev/serial/by-id/xxxxx isn't supported at the moment, i
- # currently work on a solution for this by modifying/exchanging the bootloader but not
- # working right now so the sd card solution is the only working one.
- ## Side note
- # -- I use an additional toolbard on the carriage so some pins might differ to a pure SKR setup
- # i will note the pin to use in a comment when no toolboard is connected.
- # -- And i don't use any kind of hotend fans, and my watercooling is controlled seperatly so nothing
- # in the setup around that. I only connect the berdAir pump to the main SKR and let it control
- # the part cooling with it.
- ## Flash bootloader
- # A warning beforehand :) this may destroy your board ;) so be carfull
- # I recommend the usb to ttl way ( the st-link way didn't worked for me) and i was afraid that i crashed
- # my board in the first place.
- # TODO with linux
- ###########################################
- ### First SKR 1.4 board for x/y and bed ###
- ###########################################
- # Further documentation ( https://www.klipper3d.org/Config_Reference.html#mcu )
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_lpc1769_0D40FF01C0846AAFA0A3555EC72000F5-if00
- ########################################################
- ### Second SKR 1.4 board for z / z1 / z2 and bltouch ###
- ### To get the proper id disconnect the main mcu ###
- ### and do a ls -l /dev/serial/by-id/ ###
- ########################################################
- # Further documentation ( https://www.klipper3d.org/Config_Reference.html#mcu-my_extra_mcu )
- [mcu z]
- serial: /dev/serial/by-id/usb-Klipper_lpc1769_1680FF0AC0846AAF7DCA555EC02000F5-if00
- ########################################
- ### Toolhead setup ####
- #######################
- ## Necessary parts
- # CAN USB converter ( https://www.tindie.com/products/lll7/can-usb-converter-uccb/ )
- # Toolboard ( https://github.com/bondus/KlipperToolboard )
- ## Setup
- ### Setup firmware
- # cd ~/klipper
- # make menuconfig
- # - Micro-controller Architecture -- STMicroelectronis STM32
- # - Processor model -- STM32F103
- # - Bootloader offset -- 2KiB bootloader (HIDBootloader
- # - Use USB for communication - disabled
- # - Use CAN for communication ( instead of serial ) - activated
- # - CAN pins -- Pins PB8(rx) and PB9(tx)
- ### Flash firmware ( the toolboard needs to be connected to the pi via usb )
- # - First off connect BOOT1 pin of the board to a 3.3v pin ( SWD the pin closest to the Stepper drivers ) and power the toolboard up
- # -- When the board is in bootloader mode the green LED will flash quickly
- # - make flash FLASH_DEVICE=1209:beba
- ## Setup CanSerial
- # - cd ~/CanSerial
- # - sudo cp canserial.service /lib/systemd/system/canserial.service
- # - sudo systemctl daemon-reload
- # - sudo systemctl enable canserial.service
- # - sudo systemctl start canserial.service
- #[mcu head]
- #serial: /tmp/ttyCAN0_5aa658bb599a # Change to your ID
- #restart_method = command
- ########################################
- ### Raspberry Pi connection for adxl ###
- ########################################
- # Further documentation ( https://www.klipper3d.org/RPi_microcontroller.html )
- # All necessary config is done in klipper/resonance.cfg
- [mcu rpi]
- serial: /tmp/klipper_host_mcu
- ##############################
- ### Basic Printer settings ###
- ##############################
- # Further documentation ( https://www.klipper3d.org/Config_Reference.html#printer )
- [printer]
- kinematics: corexy
- max_velocity: 400
- max_accel: 500
- max_z_velocity: 10
- max_z_accel: 100
- #############################
- ### Stepper configuration ###
- #############################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#stepper )
- # Further documentation ( https://www.klipper3d.org/Config_Reference.html#tmc2209 )
- #####################################################
- ### Stepper motor for x connected to the main mcu ###
- #####################################################
- [stepper_x]
- step_pin: P2.2
- dir_pin: P2.6
- enable_pin: !P2.1
- microsteps: 16
- rotation_distance: 40 # belt pitch * pulley tooth
- full_steps_per_rotation: 400 # 360 * motor degree
- endstop_pin: P1.29 # Endstop pin on the skr 1.4
- #endstop_pin: head:PA1 # Endstop pin on the toolhead
- position_endstop: 0
- position_max: 345 # max position in y
- homing_speed: 50 # homeing speed 0 - 100
- homing_retract_dist: 5 # how far the toolhead should move back before slow homing
- [tmc2209 stepper_x]
- uart_pin: P1.10
- interpolate: True # enable step interpolation (the driver will internally step at a rate of 256 micro-steps)
- run_current: 1.344 # set "vref" due to uart mode - value something about 80% of max amp of the motor
- hold_current: 0.269
- sense_resistor: 0.110
- stealthchop_threshold: 0 # turn stealthchop off
- #####################################################
- ### Stepper motor for y connected to the main mcu ###
- #####################################################
- [stepper_y]
- step_pin: P0.19
- dir_pin: P0.20
- enable_pin: !P2.8
- microsteps: 16
- rotation_distance: 40 # belt pitch * pulley tooth
- full_steps_per_rotation: 400 # 360 * motor degree
- endstop_pin: P1.28 # Endstop pin on the skr 1.4
- position_endstop: 0
- position_max: 345 # max position in y
- homing_speed: 50 # homeing speed 0 - 100
- homing_retract_dist: 5 # how far the toolhead should move back before slow homing
- [tmc2209 stepper_y]
- uart_pin: P1.9
- interpolate: True # enable step interpolation (the driver will internally step at a rate of 256 micro-steps)
- run_current: 1.344 # set "vref" due to uart mode - value something about 80% of max amp of the motor
- hold_current: 0.269
- sense_resistor: 0.110
- stealthchop_threshold: 0 # turn stealthchop off
- ##################################################
- ### Stepper motor for z connected to the z mcu ###
- ##################################################
- [stepper_z]
- step_pin: z:P0.22
- dir_pin: z:P2.11
- enable_pin: !z:P0.21
- microsteps: 16
- rotation_distance: 4 # screw pitch * number of seperate threads ( sfu1204 4 * 1 )
- full_steps_per_rotation: 200 # 360 * motor degree
- position_max: 355 # max height of Z
- endstop_pin: probe:z_virtual_endstop # use bltouch as endstop
- [tmc2209 stepper_z]
- uart_pin: z:P1.8
- interpolate: True # enable step interpolation (the driver will internally step at a rate of 256 micro-steps)
- run_current: 1.200 # set "vref" due to uart mode - value something about 80% of max amp of the motor
- sense_resistor: 0.110
- stealthchop_threshold: 0 # turn stealthchop off
- ###################################################
- ### Stepper motor for z1 connected to the z mcu ###
- ###################################################
- [stepper_z1]
- step_pin: z:P2.2
- dir_pin: z:P2.6
- enable_pin: !z:P2.1
- microsteps: 16
- rotation_distance: 4 # screw pitch * number of seperate threads ( sfu1204 4 * 1 )
- full_steps_per_rotation: 200 # 360 * motor degree
- [tmc2209 stepper_z1]
- uart_pin: z:P1.10
- interpolate: True # enable step interpolation (the driver will internally step at a rate of 256 micro-steps)
- run_current: 1.200 # set "vref" due to uart mode - value something about 80% of max amp of the motor
- sense_resistor: 0.110
- stealthchop_threshold: 0 # turn stealthchop off
- ###################################################
- ### Stepper motor for z1 connected to the z mcu ###
- ###################################################
- [stepper_z2]
- step_pin: z:P0.19
- dir_pin: z:P0.20
- enable_pin: !z:P2.8
- microsteps: 16
- rotation_distance: 4 # screw pitch * number of seperate threads ( sfu1204 4 * 1 )
- full_steps_per_rotation: 200 # 360 * motor degree
- [tmc2209 stepper_z2]
- uart_pin: z:P1.9
- interpolate: True # enable step interpolation (the driver will internally step at a rate of 256 micro-steps)
- run_current: 1.200 # set "vref" due to uart mode - value something about 80% of max amp of the motor
- sense_resistor: 0.110
- stealthchop_threshold: 0 # turn stealthchop off
- ##########################
- ### Extruder Settings ####
- ##########################
- [extruder]
- step_pin: P2.13 # Step pin if extruder is connected to the SKR
- dir_pin: !P0.11 # Dir pin if extruder is connected to the SKR
- enable_pin: !P2.12 # Enable pin if extruder is connected to the SKR
- heater_pin: P2.7 # heater pin if Hotend is connected to the SKR
- sensor_pin: P0.24 # sensor pin if Thermistor is connected to the SKR
- #step_pin: head0:PB3 # Step pin if extruder is connected to the toolhead
- #dir_pin: head0:PB4 # Dir pin if extruder is connected to the toolhead
- #enable_pin: !head0:PB6 # Enable pin if extruder is connected to the toolhead
- #heater_pin: head0:PA6 # heater pin if Hotend is connected to the toolhead
- #sensor_pin: head0:PA0 # sensor pin if Thermistor is connected to the toolhead
- microsteps: 16
- rotation_distance: 33.500
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- sensor_type: EPCOS 100K B57560G104F
- control: pid
- pid_Kp: 22.2
- pid_Ki: 1.08
- pid_Kd: 114
- min_temp: -273.15
- max_temp: 260
- [tmc2209 extruder]
- uart_pin: P1.4 # uart pin if extruder is connected to the SKR
- #uart_pin: head0:PA10 # uart pin if extruder is connected to the toolhead
- #tx_pin: head0:PA9 # tx pin if extruder is connected to the toolhead
- interpolate: false
- run_current: 0.5
- sense_resistor: 0.110
- stealthchop_threshold: 0
- ########################################
- ### Configuration for the heated bed ###
- ########################################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#heater_bed )
- [heater_bed]
- heater_pin: P2.5
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: P0.25
- control: pid
- pid_Kp: 54.027
- pid_Ki: 0.770
- pid_Kd: 948.182
- min_temp: 0
- max_temp: 150
- #####################################
- ### Configuration for the bltouch ###
- #####################################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#bltouch )
- [bltouch]
- sensor_pin: ^z:P0.10
- control_pin: z:P2.0
- x_offset: 37.449
- y_offset: 26.253
- z_offset: 3
- stow_on_each_sample: false # Probe will not stowed after each attempt
- probe_with_touch_mode: true
- set_output_mode: 5V
- speed: 5
- samples: 1
- sample_retract_dist: 5
- samples_tolerance: 0.010
- #########################################
- ### Configuration for the Safe z home ###
- #########################################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#safe_z_home )
- [safe_z_home]
- home_xy_position: 30,30
- speed: 50
- z_hop: 10 # Move up 10mm
- z_hop_speed: 5
- ################################
- ### Configuration for Z tilt ###
- ################################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#z_tilt )
- [z_tilt]
- z_positions:
- -15,2
- 173,355
- 362,2
- points:
- 40,60
- 40,345
- 345,345
- 345,60
- speed: 50
- horizontal_move_z: 10
- retries: 3
- retry_tolerance: 0.010
- ##############################
- ### Configuration bed mesh ###
- ##############################
- # Further Documentation ( https://www.klipper3d.org/Config_Reference.html#bed_mesh )
- [bed_mesh]
- speed: 120
- horizontal_move_z: 5
- mesh_min: 30,20
- mesh_max: 310, 310
- probe_count: 6,6
- #########################
- ### Fan configuration ###
- #########################
- # Further documentation:
- # Fans - https://www.klipper3d.org/Config_Reference.html#fans
- # Fan - https://www.klipper3d.org/Config_Reference.html#fan
- # Heater fan - https://www.klipper3d.org/Config_Reference.html#heater_fan
- # Controller fan - https://www.klipper3d.org/Config_Reference.html#controller_fan
- # Temperature fan - https://www.klipper3d.org/Config_Reference.html#temperature_fan
- # Fan generic - https://www.klipper3d.org/Config_Reference.html#fan_generic
- [fan]
- pin: P2.3
- # Resonance tuning
- [include extras/resonance.cfg]
- # Fluidd specific stuff
- [include extras/fluidd.cfg]
- [include macros.cfg]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement