Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the BIGTREETECH Kraken.
- # To use this config, the firmware should be compiled for the
- # STM32H723 with a "128KiB bootloader" "25 MHz crystal"
- # and "USB (on PA11/PA12)" or "CAN bus (on PD0/PD1)".
- #
- [include mainsail.cfg]
- [include bedfan.cfg]
- [include neopixel.cfg]
- [include testspeed.cfg]
- [include nozzle_scrub.cfg]
- [include canbus-ebb36.cfg]
- [include aux_fan.cfg]
- [include purge.cfg]
- [include Calibratio.cfg]
- [include axistwist.cfg]
- [exclude_object]
- [include printstart.cfg]
- ##[include orbiter_sensor.cfg]
- [include motors_sync.cfg]
- #[include sp_mmu.cfg]
- #[include sp_mmu_code.cfg]
- [mcu]
- ## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify usb-Klipper_stm32h723xx_0D0030000D51323532393433-if00
- ##--------------------------------------------------------------------
- serial:/dev/serial/by-id/usb-Klipper_stm32h723xx_0D0030000D51323532393433-if00
- restart_method: command
- [printer]
- kinematics: corexy
- max_velocity: 500
- max_accel: 35000
- max_z_velocity: 50 #Max 15 for 12V TMC Drivers, can increase for 24V
- max_z_accel: 5000
- square_corner_velocity: 5
- # See docs/Config_Reference.md for a description of parameters.
- #
- # S1
- [stepper_x]
- step_pin: PC14
- dir_pin: PC13
- enable_pin: !PE6
- microsteps: 64
- rotation_distance: 40
- full_steps_per_rotation:200
- endstop_pin: !EBBCan:PB6 #tmc5160_stepper_x:virtual_endstop
- position_endstop: 300
- position_max: 300
- position_min: 0
- homing_speed: 100
- [tmc5160 stepper_x]
- cs_pin: PD6
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current:1.6
- sense_resistor: 0.022
- home_current:1.6
- # S2
- [stepper_x1]
- step_pin: PE5
- dir_pin: PE4
- enable_pin: !PE3
- microsteps: 64
- rotation_distance: 40
- full_steps_per_rotation:200
- [tmc5160 stepper_x1]
- cs_pin: PD5
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current:1.6
- sense_resistor: 0.022
- home_current:1.6
- # S3
- [stepper_y]
- step_pin: PE2
- dir_pin: !PE1
- enable_pin: !PE0
- microsteps: 64
- rotation_distance: 40
- full_steps_per_rotation:200
- endstop_pin: !PC0 #tmc5160_stepper_y:virtual_endstop
- position_endstop: 300
- position_max: 300
- position_min: 0
- homing_speed: 100
- [tmc5160 stepper_y]
- cs_pin: PD4
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current: 1.6
- sense_resistor: 0.022
- home_current:1.6
- #S4
- [stepper_y1]
- step_pin: PB9
- dir_pin: PB8
- enable_pin: !PB7
- microsteps: 64
- rotation_distance: 40
- full_steps_per_rotation:200
- [tmc5160 stepper_y1]
- cs_pin: PD3
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current:1.6
- sense_resistor: 0.022
- home_current:1.6
- [stepper_z]
- step_pin: PG9
- dir_pin: PG10
- enable_pin: !PG13
- # Rotation Distance for TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
- rotation_distance: 4
- microsteps: 32
- homing_retract_dist: 0 # beacon needs this to be set to 0
- position_max: 250
- position_min: -5
- homing_speed: 50 # Leadscrews are slower than 2.4, 10 is a recommended max.
- homing_positive_dir: false
- full_steps_per_rotation: 200
- endstop_pin: probe:z_virtual_endstop # use beacon as virtual endstop
- homing_retract_dist: 0 # beacon needs this to be set to 0
- [tmc5160 stepper_z]
- cs_pin: PD2
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current: 0.8
- sense_resistor: 0.075
- stealthchop_threshold: 0
- [stepper_z1]
- step_pin:PG15 #PG11
- dir_pin:PB6 #PD7
- enable_pin:!PG14 #!PG12
- # Rotation Distance for TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
- rotation_distance: 4
- microsteps: 32
- full_steps_per_rotation: 200
- [tmc5160 stepper_z1]
- cs_pin: PA10 #PA15
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current: 0.8
- sense_resistor: 0.075
- stealthchop_threshold: 0
- [stepper_z2]
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PB5
- # Rotation Distance for TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
- rotation_distance: 4
- microsteps: 32
- full_steps_per_rotation: 200
- [tmc5160 stepper_z2]
- cs_pin: PA9
- spi_software_sclk_pin: PC6
- spi_software_mosi_pin: PC8
- spi_software_miso_pin: PC7
- run_current: 0.8
- sense_resistor: 0.075
- stealthchop_threshold: 0
- [heater_bed]
- heater_pin: PF5
- sensor_pin: PB0 # TB
- sensor_type: ATC Semitec 104GT-2
- #control: watermark
- min_temp: 0
- max_temp: 130
- max_power: 1
- [safe_z_home]
- home_xy_position: 150, 150 # update for your machine
- z_hop: 3
- [beacon]
- serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_E2E0D8444E5737374D202020FF073A2A-if00
- x_offset: 0 # update with offset from nozzle on your machine
- y_offset: 0 #-24 # update with offset from nozzle on your machine
- mesh_main_direction: x
- mesh_runs: 2
- [bed_mesh]
- speed: 500
- horizontal_move_z: 3
- mesh_min: 20,00
- mesh_max: 260, 260
- probe_count: 25,25
- mesh_pps: 2,2
- algorithm: bicubic
- [z_tilt_ng]
- z_positions:
- z_positions:
- -50, 18
- 150, 348
- 350, 18
- # See [z_tilt]. This parameter must be provided,
- # unless the parameter "extra_points" is provided. In that case only
- # the command Z_TILT_AUTODETECT can be run to automatically determine
- # the z_positions. See 'extra_points' below.
- #z_offsets:
- # A list of Z offsets for each z_position. The z_offset is added to each
- # probed value during Z_TILT_ADJUST to offset for unevenness of the bed.
- # This values can also be automatically detected by running
- # Z_TILT_CALIBRATE. See "extra_points" below.
- #points:
- points:
- 30, 5
- 150, 245
- 260, 5
- # See [z_tilt]
- speed: 500
- # See [z_tilt]
- horizontal_move_z: 10
- # See [z_tilt]
- min_horizontal_move_z: 1.0
- # See [z_tilt]
- adaptive_horizontal_move_z: true
- # See [z_tilt]
- retries: 50
- # See [z_tilt]
- retry_tolerance: 0.015
- # See [z_tilt]
- increasing_threshold: 0.0000001
- # See [z_tilt]
- use_probe_xy_offsets: False
- averaging_len: 3
- # Z_TILT_CALIBRATE and Z_TILT_AUTODETECT both run repeatedly until the
- # result can no longer be improved. To determine this, the probed values
- # are averaged. The number of runs to average over is configured with this
- # parameter.
- autodetect_delta: 1.0
- # The amount by which Z_TILT_AUTODETECT intentionally tilts the bed. Higher
- # values yield better results, but can also lead to situations where the
- # bed is tilted in a way that the nozzle touched the bed before the probe.
- # The default is conservative.
- [temperature_sensor raspberry_pi]
- sensor_type: temperature_host
- min_temp: 10
- max_temp: 100
- [temperature_sensor mcu_temp]
- sensor_type: temperature_mcu
- min_temp: 0
- max_temp: 100
- #####################################################################
- # Macros
- #####################################################################
- #[gcode_macro PRINT_START]
- # Use PRINT_START for the slicer starting script - PLEASE CUSTOMISE THE SCRIPT
- #gcode:
- # M117 Homing... ; display message
- # BED_MESH_PROFILE LOAD="default"
- # G28 Y
- # G28
- # SYNC_MOTORS
- # clean_nozzle
- # Z_TILT_ADJUST
- # SKEW_PROFILE SAVE=default
- # BED_MESH_PROFILE LOAD="default"
- # purge
- #clean_nozzle
- #--------------------------------------------------------------------
- [skew_correction]
- [gcode_macro PRINT_END]
- # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
- gcode:
- # safe anti-stringing move coords
- {% set th = printer.toolhead %}
- {% set x_safe = th.position.x + 20 * (1 if th.axis_maximum.x - th.position.x > 20 else -1) %}
- {% set y_safe = th.position.y + 20 * (1 if th.axis_maximum.y - th.position.y > 20 else -1) %}
- {% set z_safe = [th.position.z + 2, th.axis_maximum.z]|min %}
- SAVE_GCODE_STATE NAME=STATE_PRINT_END
- M400 ; wait for buffer to clear
- G92 E0 ; zero the extruder
- G1 E-5.0 F3600 ; retract filament
- TURN_OFF_HEATERS
- G90 ; absolute positioning
- G0 X{x_safe} Y{y_safe} Z{z_safe} F20000 ; move nozzle to remove stringing
- G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
- M107 ; turn off fan
- BED_MESH_CLEAR
- BEDFANSFAST
- # The purpose of the SAVE_GCODE_STATE/RESTORE_GCODE_STATE
- # command pair is to restore the printer's coordinate system
- # and speed settings since the commands above change them.
- # However, to prevent any accidental, unintentional toolhead
- # moves when restoring the state, explicitly set MOVE=0.
- RESTORE_GCODE_STATE NAME=STATE_PRINT_END MOVE=0
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [beacon model default]
- #*# model_coef = 1.6648861807739996,
- #*# 1.9922043394698579,
- #*# 0.7596768082140443,
- #*# 0.37503106416786086,
- #*# 0.15879032899437728,
- #*# -0.05668286979520276,
- #*# 0.005401451174127544,
- #*# 0.18929173454717643,
- #*# 0.041196025948408856,
- #*# -0.06638296567742974
- #*# model_domain = 3.306967113382558e-07,3.3549821209545e-07
- #*# model_range = 0.200000,5.000000
- #*# model_temp = 58.453386
- #*# model_offset = 0.00000
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.040756, 0.032698, 0.029591, 0.034190, 0.047061, 0.054206, 0.054929, 0.025958, -0.013746, -0.045334, -0.057362, -0.061558, -0.062914, -0.076990, -0.070781, -0.055292, -0.031438, -0.015449, 0.009297, 0.012187, 0.011272, 0.000253, -0.003844, -0.007952, -0.012450
- #*# 0.067777, 0.060811, 0.049699, 0.053283, 0.064967, 0.071953, 0.066880, 0.036098, -0.004963, -0.036983, -0.051307, -0.052705, -0.053705, -0.069331, -0.068162, -0.053529, -0.032164, -0.014169, 0.008459, 0.013987, 0.012476, 0.001096, -0.002189, -0.007711, -0.014095
- #*# 0.096332, 0.086796, 0.076240, 0.076096, 0.082831, 0.085926, 0.080385, 0.052712, 0.012504, -0.023640, -0.032845, -0.037480, -0.042732, -0.061475, -0.065824, -0.053253, -0.031425, -0.008172, 0.013899, 0.020523, 0.017421, 0.004590, 0.000519, -0.004579, -0.012841
- #*# 0.121397, 0.116242, 0.106078, 0.097806, 0.103239, 0.107211, 0.101945, 0.069474, 0.029911, -0.004550, -0.014182, -0.016932, -0.022603, -0.047870, -0.055261, -0.047315, -0.024354, -0.000018, 0.024989, 0.031006, 0.027458, 0.011506, 0.004336, -0.001572, -0.006635
- #*# 0.143259, 0.129009, 0.126717, 0.120983, 0.128376, 0.129077, 0.118703, 0.089450, 0.047908, 0.014784, 0.005955, 0.001362, -0.006024, -0.030912, -0.042990, -0.037938, -0.018111, 0.011939, 0.037928, 0.045710, 0.038941, 0.020773, 0.009213, 0.002885, -0.001995
- #*# 0.160703, 0.161875, 0.148645, 0.148810, 0.152540, 0.150446, 0.142810, 0.107643, 0.065077, 0.033628, 0.024810, 0.021653, 0.011940, -0.015083, -0.028025, -0.024933, -0.004605, 0.020081, 0.050325, 0.057023, 0.048786, 0.027395, 0.013186, 0.005795, -0.002687
- #*# 0.193585, 0.189286, 0.177871, 0.172581, 0.173299, 0.171977, 0.159162, 0.124442, 0.078295, 0.045551, 0.038413, 0.034072, 0.027649, -0.000433, -0.016363, -0.013335, 0.008619, 0.032287, 0.057839, 0.063040, 0.056292, 0.035277, 0.017285, 0.005746, -0.004507
- #*# 0.224440, 0.213492, 0.203252, 0.197914, 0.193848, 0.191399, 0.175914, 0.139635, 0.092395, 0.061446, 0.052870, 0.049530, 0.039526, 0.014628, -0.002763, -0.002638, 0.016161, 0.042765, 0.067402, 0.071966, 0.063099, 0.039976, 0.019547, 0.003214, -0.010677
- #*# 0.256569, 0.241219, 0.227211, 0.215624, 0.210086, 0.203542, 0.191628, 0.150058, 0.104321, 0.075457, 0.065976, 0.061545, 0.049208, 0.020362, 0.002599, 0.002208, 0.018771, 0.040396, 0.065689, 0.069223, 0.060419, 0.035824, 0.012279, -0.006129, -0.020354
- #*# 0.282073, 0.264952, 0.243691, 0.232565, 0.227361, 0.219179, 0.203755, 0.165810, 0.122318, 0.090199, 0.081923, 0.075060, 0.061132, 0.027400, 0.007055, 0.004679, 0.019010, 0.038156, 0.059452, 0.064655, 0.053556, 0.031073, 0.007192, -0.011225, -0.028994
- #*# 0.295392, 0.277084, 0.255349, 0.237553, 0.233684, 0.224221, 0.205938, 0.168926, 0.127331, 0.098796, 0.085651, 0.077193, 0.063268, 0.026260, 0.000711, -0.001858, 0.008766, 0.027693, 0.048389, 0.051456, 0.038982, 0.013784, -0.009172, -0.027392, -0.045930
- #*# 0.306996, 0.285456, 0.263549, 0.247409, 0.240573, 0.230758, 0.214265, 0.173577, 0.131706, 0.100014, 0.089540, 0.078739, 0.058462, 0.021877, -0.003367, -0.012407, -0.006312, 0.012325, 0.033760, 0.034131, 0.021366, -0.005569, -0.023543, -0.041793, -0.062803
- #*# 0.329666, 0.302511, 0.275264, 0.260545, 0.254538, 0.244127, 0.222278, 0.179359, 0.131868, 0.100013, 0.087943, 0.077303, 0.054198, 0.016491, -0.012415, -0.023558, -0.019592, -0.003188, 0.016437, 0.017155, 0.003909, -0.020240, -0.042461, -0.059578, -0.081476
- #*# 0.344816, 0.316981, 0.291893, 0.276010, 0.267687, 0.254091, 0.229330, 0.183798, 0.135518, 0.098989, 0.087123, 0.075404, 0.052152, 0.010035, -0.019593, -0.033076, -0.032467, -0.019391, -0.000607, 0.000455, -0.016972, -0.039214, -0.060235, -0.077871, -0.099416
- #*# 0.362270, 0.336676, 0.312209, 0.294656, 0.284136, 0.269835, 0.244151, 0.195116, 0.140779, 0.105409, 0.090529, 0.076512, 0.048505, 0.006282, -0.025028, -0.042545, -0.042748, -0.029951, -0.012174, -0.014261, -0.034596, -0.057213, -0.079289, -0.102017, -0.121074
- #*# 0.385508, 0.361521, 0.333257, 0.314893, 0.300375, 0.285249, 0.257485, 0.206178, 0.151659, 0.115116, 0.095499, 0.078142, 0.047593, 0.004022, -0.028346, -0.047104, -0.049056, -0.036915, -0.022469, -0.028192, -0.048799, -0.072563, -0.096148, -0.119416, -0.141591
- #*# 0.411446, 0.381191, 0.352453, 0.333291, 0.315078, 0.296289, 0.264910, 0.216767, 0.160518, 0.120590, 0.099759, 0.077171, 0.044270, -0.001907, -0.031468, -0.049897, -0.054004, -0.043860, -0.034215, -0.042910, -0.065178, -0.093790, -0.118964, -0.142310, -0.171598
- #*# 0.426468, 0.398451, 0.369151, 0.344657, 0.323665, 0.302695, 0.269022, 0.216415, 0.163142, 0.122019, 0.097705, 0.076409, 0.042569, -0.006960, -0.039079, -0.054336, -0.061204, -0.050792, -0.043976, -0.057069, -0.084853, -0.116490, -0.140943, -0.169874, -0.198920
- #*# 0.445501, 0.415942, 0.383098, 0.358659, 0.332612, 0.310755, 0.274692, 0.222999, 0.167502, 0.125446, 0.101090, 0.076506, 0.041538, -0.008181, -0.041289, -0.057730, -0.065836, -0.057807, -0.052385, -0.070029, -0.102116, -0.138347, -0.166280, -0.194263, -0.226850
- #*# 0.461352, 0.432276, 0.398714, 0.369980, 0.345428, 0.317418, 0.281325, 0.227969, 0.174805, 0.131955, 0.105807, 0.077029, 0.039272, -0.008991, -0.040149, -0.062116, -0.070623, -0.063661, -0.061944, -0.082913, -0.118941, -0.161157, -0.191356, -0.221977, -0.256959
- #*# 0.481851, 0.438977, 0.406966, 0.380768, 0.356845, 0.326891, 0.286708, 0.232113, 0.174414, 0.129961, 0.103601, 0.075309, 0.037225, -0.013875, -0.046292, -0.069266, -0.076944, -0.075232, -0.074362, -0.100766, -0.138406, -0.182267, -0.216736, -0.249699, -0.286397
- #*# 0.481679, 0.448727, 0.413286, 0.386520, 0.358395, 0.332220, 0.290737, 0.230118, 0.171905, 0.126223, 0.096579, 0.068322, 0.026688, -0.025471, -0.061453, -0.085730, -0.096540, -0.095163, -0.097012, -0.125443, -0.165397, -0.212391, -0.249396, -0.285527, -0.321406
- #*# 0.423107, 0.374454, 0.336211, 0.304849, 0.283245, 0.252533, 0.206334, 0.147214, 0.082511, 0.034823, 0.007035, -0.020694, -0.064341, -0.117823, -0.154822, -0.175671, -0.188713, -0.190520, -0.194765, -0.224346, -0.265006, -0.312441, -0.350335, -0.389245, -0.429201
- #*# -3.414820, -3.344597, -3.255878, -3.161205, -3.181180, -3.282166, -3.205838, -3.203417, -3.209009, -3.183627, -3.085244, -3.001076, -2.958822, -2.928198, -2.901228, -2.830484, -2.754398, -2.664812, -2.575748, -2.524161, -2.500054, -2.480761, -2.455554, -2.426224, -2.411117
- #*# 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 5221514742562679322477685555236291889894743001042198641157904845299910713819501039034895065985943632491986505290638822381667736995815154743881374158053156142333309289391788730089472.000000, 2288954591066278023105288085621248201654999434813194013567438711295230225304469431988496251229770309703060293476107072418657446907319926182627246901381307431075378153482573973161782536126360434477777943754274631506994810875985424350243318661120.000000, 1677720615117186393592208126043307721767540435167933209960429898741964760320217865165650274379822253915427271605051686870718939443922090579461398208062985760748011632884655477233257921704816826853371364639546843770549996019096162597614684995584.000000, 946688091646867595817799988848084733920401116391752795973846655179521222648118511233002793481731891679822296552731618328725217964898362698077092914431929937685548355347944359487773826913836080854677169856807209913024512.000000, 946647035861936857756605037265894288761562613517937574285044439409715942782114316020938153003818570280505080763576043120302401688017758078184330909796500418926312155693043112224712832453523613771480770844483045036130304.000000, 4787194209523202718071026745577360727882877672116812621040557626044170222070341391976418683016487548092513575997264457694903856596108660314535507982626080763581043632229205158133760.000000, 0.000000, 49813153600470656763622486952884679266974195200875409709033702688758616216253479660951617130534541752320581740403265916196737424237127103575736061001728.000000, 0.000000, 194973531547465588348593859826801577304742642588253049494896531940120647876772829574275297562281515906125920057784797755491412367033667816193510992555989257790904082052442679657881915507898765992312567344561955283486221406281809264640.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
- #*# x_count = 25
- #*# y_count = 25
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 20.0
- #*# max_x = 260.0
- #*# min_y = 0.0
- #*# max_y = 260.0
- #*#
- #*# [heater_bed]
- #*# pid_kp = 20.150
- #*# pid_ki = 0.328
- #*# pid_kd = 309.174
- #*# pid_version = 1
- #*# pid_target = 60.00
- #*# pid_tolerance = 0.0200
- #*# control = pid
- #*#
- #*# [extruder]
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = 2hump_ei
- #*# shaper_freq_x = 86.4
- #*# shaper_type_y = 2hump_ei
- #*# shaper_freq_y = 76.4
- #*#
- #*# [skew_correction default]
- #*# xy_skew = 0.0
- #*# xz_skew = 0.0
- #*# yz_skew = 0.0
- #*#
- #*# [axis_twist_compensation]
- #*# z_compensations = -0.040151, 0.079108, -0.038957
- #*# compensation_start_x = 20.0
- #*# compensation_end_x = 280.0
- #*# zy_compensations = -0.232628, -0.005248, 0.237876
- #*# compensation_start_y = 20.0
- #*# compensation_end_y = 240.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement