vcore/printer-20230124_212703.cfg

305 lines
13 KiB
INI
Raw Normal View History

2023-01-27 22:34:37 +01:00
# 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.910
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.756250, 0.660312, 0.556562, 0.486875, 0.458750, 0.339687, 0.305312, 0.262812, 0.213750, 0.233125, 0.214062, 0.187812, 0.229375, 0.226250, 0.215937, 0.249062, 0.259062, 0.268750, 0.301875, 0.340000, 0.352500, 0.398125, 0.432187, 0.481875, 0.502500, 0.583437, 0.605000, 0.698750
#*# 0.730937, 0.616250, 0.543125, 0.496562, 0.411250, 0.362500, 0.328750, 0.267500, 0.262500, 0.236562, 0.249062, 0.217500, 0.228125, 0.258437, 0.232812, 0.250000, 0.260000, 0.271562, 0.303750, 0.357812, 0.405312, 0.416562, 0.488437, 0.510000, 0.591250, 0.575312, 0.683125, 0.716250
#*# 0.675312, 0.593750, 0.485312, 0.391562, 0.372187, 0.332187, 0.281250, 0.265937, 0.227500, 0.228437, 0.213437, 0.180937, 0.200312, 0.183437, 0.241875, 0.229062, 0.214687, 0.281875, 0.334375, 0.361875, 0.370312, 0.407187, 0.464687, 0.500000, 0.557187, 0.632812, 0.672500, 0.715625
#*# 0.541250, 0.448437, 0.387812, 0.338125, 0.272812, 0.219062, 0.204687, 0.183750, 0.164375, 0.161250, 0.162812, 0.155000, 0.133750, 0.154062, 0.165000, 0.166875, 0.199375, 0.257187, 0.269062, 0.319375, 0.350937, 0.373125, 0.405937, 0.498437, 0.485937, 0.586250, 0.640937, 0.709062
#*# 0.374062, 0.293750, 0.260000, 0.242187, 0.165625, 0.113750, 0.095625, 0.136562, 0.094062, 0.070937, 0.098125, 0.130000, 0.094687, 0.102500, 0.152187, 0.154375, 0.171875, 0.224687, 0.247812, 0.283437, 0.328750, 0.389062, 0.417812, 0.450000, 0.512187, 0.578125, 0.649062, 0.735625
#*# 0.285937, 0.226562, 0.164062, 0.139687, 0.122500, 0.067500, 0.040937, 0.043437, 0.014375, 0.049375, 0.046250, 0.056562, 0.101875, 0.102812, 0.135000, 0.143437, 0.163750, 0.174375, 0.269687, 0.289375, 0.331875, 0.363750, 0.404687, 0.439687, 0.545312, 0.608750, 0.668437, 0.730000
#*# 0.164062, 0.116562, 0.064687, 0.031875, 0.010937, 0.009062, -0.004063, 0.003125, -0.003750, -0.010000, -0.018438, 0.016562, 0.050625, 0.043125, 0.053750, 0.104687, 0.170625, 0.218750, 0.205625, 0.278750, 0.312500, 0.356875, 0.381250, 0.481875, 0.495937, 0.598437, 0.659687, 0.731875
#*# 0.121250, 0.075000, 0.035312, 0.036562, 0.010000, -0.047813, -0.054375, -0.018438, -0.036250, -0.059063, -0.036875, -0.025313, 0.041875, 0.020937, 0.084687, 0.122187, 0.172500, 0.212812, 0.250000, 0.259375, 0.352812, 0.389062, 0.447500, 0.460000, 0.544062, 0.604062, 0.680937, 0.754687
#*# 0.096875, 0.081562, 0.058125, 0.028125, 0.026562, 0.014062, 0.025937, 0.028437, -0.018125, 0.038437, 0.034062, 0.045625, 0.058125, 0.063125, 0.132187, 0.171875, 0.181562, 0.254375, 0.272187, 0.356250, 0.410625, 0.458750, 0.529062, 0.535625, 0.620625, 0.650937, 0.734062, 0.801562
#*# 0.130625, 0.071250, 0.089687, 0.085312, 0.083437, 0.066562, 0.052812, 0.069062, 0.048750, 0.055937, 0.085625, 0.112187, 0.158125, 0.172500, 0.171562, 0.205000, 0.247812, 0.331250, 0.340625, 0.402812, 0.462812, 0.489062, 0.571875, 0.600625, 0.614687, 0.749375, 0.796562, 0.855937
#*# 0.211562, 0.181875, 0.151875, 0.172812, 0.160000, 0.133125, 0.135937, 0.131875, 0.144687, 0.207812, 0.185625, 0.193437, 0.200312, 0.231562, 0.290312, 0.339375, 0.354375, 0.373437, 0.444375, 0.487500, 0.526875, 0.605625, 0.590937, 0.669062, 0.720937, 0.746875, 0.827812, 0.924687
#*# 0.300937, 0.287500, 0.252812, 0.267187, 0.268125, 0.220625, 0.208125, 0.221875, 0.219375, 0.285312, 0.312187, 0.337187, 0.362812, 0.381562, 0.364062, 0.426250, 0.520937, 0.497187, 0.575000, 0.593750, 0.613125, 0.667187, 0.716250, 0.791875, 0.794375, 0.851875, 0.921875, 0.991250
#*# 0.387187, 0.382500, 0.381562, 0.374687, 0.343437, 0.340625, 0.323750, 0.356875, 0.373125, 0.404375, 0.428437, 0.509062, 0.490312, 0.510625, 0.535937, 0.550312, 0.529687, 0.618437, 0.673437, 0.702500, 0.695000, 0.793125, 0.801875, 0.872812, 0.930312, 0.981250, 1.057812, 1.102187
#*# 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