Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Rat Rig V-core 3 Klipper Config
- # Documentation: https://os.ratrig.com
- # The first thing you'll need to do is go through this file and comment out / uncomment
- # the files and/or settings you need.
- # You'll be able to print just fine with this config as it is, but it is recommended
- # that you follow these steps to properly calibrate your printer:
- # 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
- #############################################################################################################
- ### BASE SETUP
- #############################################################################################################
- [include config/printers/v-core-3/v-core-3.cfg]
- #############################################################################################################
- ### 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]
- # COOLED TMC 2209 + LDO-42STH48-2504AC
- # This increases motor torque, positional accuracy and speed limits.
- # don't enable this before your printer is fully configured and you have a fan blowing on your stepper drivers.
- [include config/printers/v-core-3/speed-limits-performance.cfg]
- [include config/printers/v-core-3/tmc2209-performance.cfg]
- [include config/steppers/ldo/42sth48-2504ac/2209/24v-1.6a-*.cfg]
- # STEALTH MODE (Enables stealthchop and limits velocity and acceleration)
- # NOTE: You still need to include one of the above stepper motor definitions.
- # NOTE: This will make your printer quiter but less accurate, it's an inherent side effect of stealthchop.
- #[include config/printers/v-core-3/speed-limits-stealth.cfg]
- #[include config/printers/v-core-3/tmc2209-stealth.cfg]
- #############################################################################################################
- ### HOMING
- ### Pick your probe and endstops
- #############################################################################################################
- # BLTouch configuration
- #[bltouch]
- #sensor_pin: PB2
- #control_pin: PB1
- #z_offset: 0.0 # Adjust this to fit your setup
- # Probe configuration
- [probe]
- pin: ^PB2 # For NPN NC probes such as the Super Pinda / Vinda / SupCR / Decoprobe probes.
- #pin: ^!PB2 # NPN NO (refer to the specs on your probe)
- #pin: PB2 # PNP NO (refer to the specs on your probe)
- #pin: !PB2 # PNP NC (refer to the specs on your probe)
- z_offset: 0.0 # Adjust this to fit your setup
- # Physical endstops
- [include config/printers/v-core-3/physical-endstops.cfg]
- # Sensorless homing (Beware: this requires manual tinkering and does not work if your x/y stepper drivers
- # have clipped DIAG pins). It is strongly encouraged to use physical endstops if you're a beginner.
- # If you still wish to proceed, copy config/templates/sensorless-homing-tmc2209.cfg to the root directory and
- # remove the # from the line below.
- #[include sensorless-homing-tmc2209.cfg]
- #############################################################################################################
- ### PHYSICAL DIMENSIONS
- ### Pick your printer size
- #############################################################################################################
- # Remove the # from your printer size below.
- # Similarly add a # in front of [include config/printers/v-core-3/300.cfg] if you have a bigger machine.
- #[include config/printers/v-core-3/200.cfg]
- [include config/printers/v-core-3/300.cfg]
- #[include config/printers/v-core-3/400.cfg]
- #[include config/printers/v-core-3/500.cfg]
- #############################################################################################################
- ### TOOLHEAD
- ### Pick your extruder and hotend
- #############################################################################################################
- # Extruder
- #[include config/extruders/bmg.cfg]
- [include config/extruders/lgx.cfg]
- #[include config/extruders/lgx-lite.cfg]
- #[include config/extruders/orbiter.cfg]
- #[include config/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor
- #[include config/extruders/hemera.cfg]
- #[include config/extruders/titan.cfg]
- # Hotend
- #[include config/hotends/v6.cfg]
- #[include config/hotends/revo.cfg]
- #[include config/hotends/dragonfly.cfg]
- [include config/hotends/rapido.cfg]
- #[include config/hotends/copperhead.cfg]
- #[include config/hotends/mosquito.cfg]
- #[include config/hotends/mosquito-magnum.cfg]
- #[include config/hotends/dragon-standard-flow.cfg]
- #[include config/hotends/dragon-high-flow.cfg]
- #############################################################################################################
- ### 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: "primeline"
- # 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: 300
- #############################################################################################################
- ### PRINTER CONFIGURATION
- ### Customize the defaults to your specific build
- #############################################################################################################
- [stepper_x]
- step_pin: PE2
- dir_pin: PB4
- enable_pin: !PC11
- endstop_pin: ^PF3
- rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
- position_endstop: 0 # Adjust this to your setup
- [stepper_y]
- step_pin: PF12
- dir_pin: PF11
- enable_pin: !PB3
- endstop_pin: ^PF4
- rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
- #position_endstop: 200 # 200mm printer
- position_endstop: 300 # 300mm printer
- #position_endstop: 400 # 400mm printer
- #position_endstop: 500 # 500mm printer
- [stepper_z]
- step_pin: PA10
- dir_pin: PD15
- enable_pin: !PA15
- rotation_distance: 4 # 4 for TR8*4 lead screws
- [stepper_z1]
- step_pin: PD12
- dir_pin: PD11
- enable_pin: !PD14
- rotation_distance: 4 # 4 for TR8*4 lead screws
- [stepper_z2]
- step_pin: PD10
- dir_pin: PD8
- enable_pin: !PD9
- rotation_distance: 4 # 4 for TR8*4 lead screws
- # Safe Z Home (Physical endstops only)
- [safe_z_home]
- #home_xy_position: 100,100 # 300mm printer
- 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.
- step_pin: PD7
- dir_pin: !PD6
- enable_pin: !PF10
- heater_pin: PE3 # HE0
- sensor_pin: PA1 # T0
- control: pid
- pid_kp: 28.413
- pid_ki: 1.334
- pid_kd: 151.300
- min_temp: -100
- #############################################################################################################
- ### USER OVERRIDES
- ### Anything custom you want to add, or RatOS configuration you want to override, do it here.
- #############################################################################################################
- [heater_bed]
- heater_pin: PB7
- sensor_pin: PA0 # TB
- sensor_type: ATC Semitec 104GT-2
- control: watermark
- min_temp: -100
- max_temp: 130
- [fan] ## for single or dual 5015
- pin: PE6
- #[fan] ## for 4028
- #pin = PE6
- #cycle_time: 0.00004
- #max_power: 0.8
- #shutdown_speed: 0
- #kick_start_time: 1.0
- [heater_fan toolhead_cooling_fan]
- pin: PE0
- fan_speed: 1
- [controller_fan controller_fan]
- pin: PC12
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_0600270011504B4633373520-if00 ## find yours with ls /dev/serial/by-id/
- ########################################
- # TMC2209 configuration
- ########################################
- [tmc2209 stepper_x]
- uart_pin: PC10
- ##diag_pin: PF3 ## uncomment for sensorless homing
- [tmc2209 stepper_y]
- uart_pin: PF13
- ##diag_pin: PF4 ## uncomment for sensorless homing
- [tmc2209 extruder]
- uart_pin: PF9
- [tmc2209 stepper_z]
- uart_pin: PF8
- [tmc2209 stepper_z1]
- uart_pin: PD13
- [tmc2209 stepper_z2]
- uart_pin: PC7
- ########################################
- # TMC2130 configuration
- ########################################
- #[tmc2130 stepper_x]
- #cs_pin: PC10
- #spi_bus: spi1
- ##diag1_pin: PF3
- #[tmc2130 stepper_y]
- #cs_pin: PF13
- #spi_bus: spi1
- ##diag1_pin: PF4
- #[tmc2130 extruder]
- #cs_pin: PF9
- #spi_bus: spi1
- #[tmc2130 stepper_z]
- #cs_pin: PF8
- #spi_bus: spi1
- #[tmc2130 stepper_z1]
- #cs_pin: PD13
- #spi_bus: spi1
- #[tmc2130 stepper_z2]
- #cs_pin: PC7
- #spi_bus: spi1
- ########################################
- # TMC5160 HV configuration for X and Y (uncomment others)
- ########################################
- #[tmc5160 stepper_x]
- #cs_pin: PC10
- #spi_bus: spi1
- ##diag1_pin: PF3
- #stealthchop_threshold: 0
- #interpolate: False
- #run_current: 1.768
- #driver_TBL: 0
- #driver_TOFF: 4
- #driver_HEND: 0
- #driver_HSTRT: 4
- #[tmc5160 stepper_y]
- #cs_pin: PF13
- #spi_bus: spi1
- ##diag1_pin: PF4
- #stealthchop_threshold: 0
- #interpolate: False
- #run_current: 1.768
- #driver_TBL: 0
- #driver_TOFF: 4
- #driver_HEND: 0
- #driver_HSTRT: 4
- ########################################
- # Other Macros
- ########################################
- [gcode_macro PID_HOTEND]
- description: PID calibration of the hotend with set temp.
- gcode:
- M106
- {% set TARGET_TEMP = params.TARGET_TEMP|default(250)|float %}
- PID_CALIBRATE HEATER=extruder TARGET={TARGET_TEMP}
- SAVE_CONFIG
- [gcode_macro PID_BED]
- description: PID calibration of the hotend with set temp.
- gcode:
- {% set TARGET_TEMP = params.TARGET_TEMP|default(100)|float %}
- PID_CALIBRATE HEATER=heater_bed TARGET={TARGET_TEMP}
- SAVE_CONFIG
- [gcode_macro PA_CALIBRATION]
- gcode:
- SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
- TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement