vcore/printer-20230128_121552.cfg
2023-01-30 12:21:35 +00:00

305 lines
13 KiB
INI

# Rat Rig V-core 3 Klipper Config
# Documentation: https://os.ratrig.com
# 0) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html
# 1) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html
# 2) Skew Correction: https://www.klipper3d.org/Skew_Correction.html
# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html
# Read more about klipper here: https://www.klipper3d.org/Overview.html
#############################################################################################################
### CONTROL BOARD
### Pick the board you have installed and wired in your printer.
#############################################################################################################
[include config/boards/btt-octopus-11/config.cfg]
#############################################################################################################
### BASE SETUP
#############################################################################################################
[include config/printers/v-core-3/v-core-3.cfg]
[printer]
max_velocity: 150
max_accel: 500
max_accel_to_decel: 500
max_z_velocity: 15
max_z_accel: 20
#############################################################################################################
### STEPPER MOTORS, DRIVERS & SPEED LIMITS
### Pick the drivers and stepper motors you're using. See the RatOS documentation for custom combinations.
#############################################################################################################
[include config/printers/v-core-3/steppers.cfg]
# UNCOOLED TMC 2209 + LDO-42STH48-2504AC
[include config/printers/v-core-3/speed-limits-basic.cfg]
[include config/printers/v-core-3/tmc2209.cfg]
[include config/steppers/ldo/42sth48-2504ac/2209/24v-1.1a-*.cfg]
#############################################################################################################
### HOMING
### Pick your probe and endstops
#############################################################################################################
# BL Touch
[include config/z-probe/bltouch.cfg]
# Physical endstops
[include config/printers/v-core-3/physical-endstops.cfg]
#############################################################################################################
### PHYSICAL DIMENSIONS
### Pick your printer size
#############################################################################################################
[include config/printers/v-core-3/500.cfg]
#############################################################################################################
### extruder and hotend
#############################################################################################################
[extruder]
rotation_distance: 4.63
full_steps_per_rotation: 200
filament_diameter: 1.750
max_extrude_only_velocity: 60
max_extrude_only_distance: 200
nozzle_diameter: 0.4
heater_pin: e_heater_pin
sensor_type: ATC Semitec 104GT-2
sensor_pin: e_sensor_pin
min_extrude_temp: 170
min_temp: 0
max_temp: 400
pressure_advance: 0.05
[tmc2209 extruder]
run_current: 0.35
stealthchop_threshold: 0
[firmware_retraction]
retract_speed: 60
unretract_extra_length: 0
unretract_speed: 60
retract_length: 0.5
#############################################################################################################
### MACROS
#############################################################################################################
[include config/macros.cfg]
[include config/shell-macros.cfg]
[include config/printers/v-core-3/macros.cfg]
#############################################################################################################
### MACRO CONFIGURATION
### Configure the behavior of RatOS macros
#############################################################################################################
[gcode_macro RatOS]
# Use absolute extrusion mode
# Set to True to use relative extrusion mode
variable_relative_extrusion: False
# Wait for extruder to reach 150 so an inductive probe (if present) is at a predictable temp.
# Also allows the bed heat to spread a little, and softens any plastic that might be stuck to the nozzle.
# Set to False to disable
variable_preheat_extruder: True
# Calibrate the bed mesh in the START_PRINT macro.
# Set to false to skip BED_MESH_CALIBRATE, it will still load the BED_MESH
# with the name "ratos", be sure to save your bed_mesh profile with that name.
# or override the _START_PRINT_BED_MESH macro to implement your own mesh handling logic.
variable_calibrate_bed_mesh: True
# Print a prime line or blob at the end of the START_PRINT macro
# set to "primeline" or "primeblob", or False to disable nozzle_priming.
variable_nozzle_priming: "false"
# Park in the back when waiting for the extruder to heat up
# set to "front" to park in the front, or "center" to park in the center.
variable_start_print_park_in: "back"
# Height to park it when waiting for extruder to heat.
variable_start_print_park_z_height: 50
# Skew profile to load before starting the print
# uncomment this to use your calibrated skew correction profile.
#variable_skew_profile: "my_skew_profile"
# Park in the back after the print has ended or was cancelled.
# set to "front" to park in the front, or "center" to park in the center.
variable_end_print_park_in: "back"
# Park in the back when the print is paused.
# set to "front" to park in the front, or "center" to park in the center.
variable_pause_print_park_in: "back"
# Set the speed for travel moves in RatOS Macros in mm/s.
variable_macro_travel_speed: 100
#############################################################################################################
### PRINTER CONFIGURATION
### Customize the defaults to your specific build
#############################################################################################################
[stepper_x]
dir_pin: x_dir_pin # Add ! in front of pin name to reverse X stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
position_endstop: 0 # Adjust this to your setup
#x_offset: -27.0
[stepper_y]
dir_pin: y_dir_pin # Add ! in front of pin name to reverse Y stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
position_endstop: 480 # 300mm printer
position_min: 5
#y_offset: -21.0
#position_endstop: 400 # 400mm printer
#position_endstop: 500 # 500mm printer
[stepper_z]
dir_pin: !z0_dir_pin # Add ! in front of pin name to reverse Z stepper direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
[stepper_z1]
dir_pin: !z1_dir_pin # Add ! in front of pin name to reverse Z1 direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
[stepper_z2]
dir_pin: !z2_dir_pin # Add ! in front of pin name to reverse Z2 direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
#Z Probe configuration
[bltouch]
sensor_pin: ^PB7
control_pin: PB6
x_offset: -27.0
y_offset: -21.0
#pin_up_touch_mode_reports_triggered: True
pin_move_time: 0.8
#z_offset: 3.20 # USE FOR PLA
#z_offset: 2.75 # USE FOR PETG
# [probe]
# z_offset: 1.0 # Adjust this to fit your setup -> "1.0" is placeholder!
# pin: ^probe_pin # For NPN NC probes such as the Super Pinda / Vinda / SupCR / Decoprobe probes.
#pin: ^!probe_pin # NPN NO (refer to the specs on your probe)
#pin: probe_pin # PNP NO (refer to the specs on your probe)
#pin: !probe_pin # PNP NC (refer to the specs on your probe)
# Safe Z Home (Physical endstops only)
[safe_z_home]
home_xy_position: 250, 250 # Change coordinates to the center of your print bed
speed: 50
z_hop: 10 # Move up 10mm
z_hop_speed: 5
#ORIGINAL
#home_xy_position: 150,150 # 300mm printer
#home_xy_position: 200,200 # 400mm printer
#home_xy_position: 250,250 # 500mm printer
[extruder]
# Check https://www.klipper3d.org/Pressure_Advance.html for pressure advance tuning.
#pressure_advance: 0.05
nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter.
dir_pin: e_dir_pin # Remove ! in front of pin name to reverse extruder direction
#control: pid
#pid_kp: 28.413
#pid_ki: 1.334
#pid_kd: 151.300
[heater_bed]
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
# [bed_mesh]
# speed: 30
# horizontal_move_z: 10
# mesh_min: 15, 15
# mesh_max: 450, 450
# probe_count: 5 , 5
[bed_mesh]
horizontal_move_z: 5
mesh_min: 15,15
mesh_max:465,460
probe_count: 28,13
fade_start: 1.0
fade_end: 100.0
mesh_pps: 2,2
algorithm: bicubic
bicubic_tension: .2
#############################################################################################################
### INPUT SHAPER
### Enable/disable input shaper calibration
#############################################################################################################
# Uncomment this next line if you have an ADXL345 connected to your control board
#[include config/printers/v-core-3/input-shaper.cfg]
# ADXL345 resonance testing configuration
#[resonance_tester]
#probe_points:
# 150,150,20 # 300mm printer
# 200,200,20 # 400mm printer
# 250,250,20 # 500mm printer
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.880
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.631562, 0.519062, 0.440625, 0.370000, 0.328750, 0.264687, 0.178125, 0.155312, 0.154062, 0.143125, 0.092187, 0.082500, 0.077500, 0.120312, 0.130000, 0.145000, 0.164062, 0.166250, 0.192812, 0.240312, 0.287812, 0.311562, 0.365312, 0.344687, 0.417500, 0.520000, 0.499687, 0.646875
#*# 0.592500, 0.534375, 0.431250, 0.362812, 0.309687, 0.258125, 0.219062, 0.156562, 0.180625, 0.134687, 0.139375, 0.126562, 0.179375, 0.160000, 0.158437, 0.134375, 0.169062, 0.195625, 0.236562, 0.260625, 0.316562, 0.332812, 0.376875, 0.440000, 0.450937, 0.506250, 0.573437, 0.659687
#*# 0.538125, 0.494375, 0.371562, 0.335625, 0.252500, 0.220625, 0.207187, 0.190000, 0.153437, 0.129375, 0.152187, 0.122812, 0.135000, 0.119062, 0.160000, 0.153125, 0.193437, 0.204375, 0.244687, 0.315312, 0.333750, 0.359687, 0.393750, 0.444062, 0.485937, 0.544687, 0.587812, 0.647187
#*# 0.433437, 0.361562, 0.297812, 0.259687, 0.191875, 0.139687, 0.137187, 0.103750, 0.086562, 0.053437, 0.084375, 0.082500, 0.081875, 0.098750, 0.079062, 0.121875, 0.150625, 0.201562, 0.217812, 0.249375, 0.303437, 0.322187, 0.369375, 0.419375, 0.486875, 0.538437, 0.592812, 0.661562
#*# 0.259062, 0.211562, 0.134062, 0.146562, 0.102812, 0.079375, 0.042812, 0.029687, -0.025000, 0.016562, 0.047500, 0.062187, 0.041875, 0.050000, 0.078125, 0.108125, 0.146562, 0.169687, 0.210312, 0.268437, 0.297187, 0.337500, 0.365937, 0.449687, 0.476875, 0.553750, 0.596875, 0.675625
#*# 0.173437, 0.137812, 0.099062, 0.059062, 0.065312, 0.011250, -0.010938, -0.042188, -0.032500, -0.007500, 0.011562, 0.030312, 0.035625, 0.053437, 0.076250, 0.115312, 0.112812, 0.147187, 0.196250, 0.232812, 0.296250, 0.341250, 0.375312, 0.427500, 0.493437, 0.558125, 0.643125, 0.678125
#*# 0.064687, 0.053750, 0.030312, -0.045938, -0.017188, -0.067188, -0.078438, -0.093750, -0.119688, -0.067500, -0.067813, -0.069063, -0.025938, 0.006250, 0.038125, 0.090000, 0.076250, 0.145625, 0.177812, 0.239062, 0.296562, 0.330937, 0.386562, 0.412187, 0.471562, 0.538750, 0.625000, 0.701250
#*# 0.038750, 0.005312, -0.043750, -0.070938, -0.087500, -0.061563, -0.100313, -0.099063, -0.081563, -0.073125, -0.070313, -0.038125, -0.006563, -0.009375, 0.021250, 0.057187, 0.083437, 0.161875, 0.189375, 0.238437, 0.285312, 0.346250, 0.384687, 0.427187, 0.532812, 0.580000, 0.667187, 0.739687
#*# 0.035000, 0.000312, -0.009688, -0.063750, -0.027188, -0.044063, -0.045313, -0.067500, -0.014688, -0.045313, -0.015625, 0.004375, 0.017187, 0.038125, 0.069687, 0.104375, 0.177187, 0.199062, 0.236250, 0.325000, 0.330312, 0.398437, 0.446562, 0.523125, 0.562187, 0.621250, 0.686562, 0.782187
#*# 0.047500, -0.008438, -0.017500, 0.002812, 0.025625, -0.002188, -0.050313, 0.017500, -0.025938, 0.021875, 0.027812, 0.022812, 0.071250, 0.103750, 0.145937, 0.174687, 0.198125, 0.264687, 0.277812, 0.383750, 0.398125, 0.462812, 0.482812, 0.558125, 0.605937, 0.645312, 0.728437, 0.781250
#*# 0.129375, 0.089687, 0.057500, 0.059062, 0.052187, 0.056562, 0.062500, 0.054687, 0.095937, 0.090625, 0.134687, 0.134687, 0.176562, 0.196875, 0.223750, 0.305000, 0.295312, 0.349375, 0.398125, 0.429375, 0.495000, 0.539062, 0.579687, 0.630312, 0.691562, 0.709375, 0.798750, 0.873750
#*# 0.200000, 0.209062, 0.191562, 0.141875, 0.185312, 0.148437, 0.186875, 0.150625, 0.192187, 0.193750, 0.232812, 0.256250, 0.286250, 0.311562, 0.362500, 0.392500, 0.420937, 0.434687, 0.519687, 0.542812, 0.584375, 0.596875, 0.697812, 0.702500, 0.776562, 0.834375, 0.890312, 0.994375
#*# 0.283125, 0.290000, 0.252500, 0.257187, 0.282812, 0.249687, 0.296250, 0.315625, 0.312812, 0.328437, 0.360625, 0.424062, 0.406250, 0.454375, 0.492187, 0.525312, 0.544062, 0.614375, 0.626562, 0.675625, 0.685937, 0.756250, 0.810312, 0.850000, 0.889687, 0.947812, 1.011250, 1.059687
#*# tension = 0.2
#*# min_x = 15.0
#*# algo = bicubic
#*# y_count = 13
#*# mesh_y_pps = 2
#*# min_y = 15.0
#*# x_count = 28
#*# max_y = 459.96
#*# mesh_x_pps = 2
#*# max_x = 464.82
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 19.661
#*# pid_ki = 0.819
#*# pid_kd = 117.969
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 64.455
#*# pid_ki = 1.659
#*# pid_kd = 626.020