# WARNING. THIS FILE IS GENERATED BY THE RATOS CONFIGURATOR. # CHANGES YOU MAKE HERE WILL BE OVERWRITTEN. KEEP YOUR CHANGES IN PRINTER.CFG. # Config generated for Rat Rig V-Core Pro v1.3 300 # Documentation: https://os.ratrig.com ############################################################################################################# ### CONTROLBOARD & TOOLBOARD ############################################################################################################# [include RatOS/boards/rpi/config.cfg] [board_pins btt-skrat-10] aliases: #----------------------------------------------- X motor pins ----------------------------------------------- # Assigned to slot: "X" #------------------------------------------------------------------------------------------------------------ x_step_pin=PF9, x_dir_pin=PD7, x_enable_pin=PD6, x_uart_pin=PF10, x_diag_pin=PB5, x_endstop_pin=PB5, #----------------------------------------------- Y motor pins ----------------------------------------------- # Assigned to slot: "Y" #------------------------------------------------------------------------------------------------------------ y_step_pin=PD3, y_dir_pin=PD2, y_enable_pin=PD5, y_uart_pin=PD4, y_diag_pin=PC1, y_endstop_pin=PC1, #----------------------------------------------- Z motor pins ----------------------------------------------- # Assigned to slot: "Z" #------------------------------------------------------------------------------------------------------------ z0_step_pin=PA15, z0_dir_pin=PF8, z0_enable_pin=PC9, z0_uart_pin=PC8, z0_diag_pin=PC0, #---------------------------------------------- Z1 motor pins ----------------------------------------------- # Assigned to slot: "E0" #------------------------------------------------------------------------------------------------------------ z1_step_pin=PC7, z1_dir_pin=PC6, z1_enable_pin=PD9, z1_uart_pin=PD8, z1_diag_pin=PF4, #---------------------------------------------- Z2 motor pins ----------------------------------------------- # Assigned to slot: "E1" #------------------------------------------------------------------------------------------------------------ z2_step_pin=PB10, z2_dir_pin=PE15, z2_enable_pin=PA8, z2_uart_pin=PB11, z2_diag_pin=PF5, #----------------------------------------------- GENERAL PINS ----------------------------------------------- e_heater_pin=PE11, e_sensor_pin=PA3, stepper_spi_mosi_pin=null, stepper_spi_miso_pin=null, stepper_spi_sclk_pin=null, adxl345_cs_pin=PB12, bltouch_sensor_pin=PE5, bltouch_control_pin=PE6, probe_pin=PE5, fan_part_cooling_pin=PD15, fan_toolhead_cooling_pin=PD14, fan_controller_board_pin=PD13, heater_bed_heating_pin=PB3, heater_bed_sensor_pin=PB2, 4p_fan_part_cooling_pin=PE9, 4p_fan_part_cooling_tach_pin=PD11, 4p_toolhead_cooling_pin=PE14, 4p_toolhead_cooling_tach_pin=PD10, 4p_controller_board_pin=PE14, 4p_controller_board_tach_pin=PD10 [mcu] serial: /dev/RatOS/btt-skrat-10 [temperature_sensor SKRat_v1.0] sensor_type: temperature_mcu [adxl345 controlboard] cs_pin: PB12 spi_bus: spi2 [board_pins toolboard_t0] mcu: toolboard_t0 aliases: #------------------------------------------- EXTRUDER motor pins -------------------------------------------- e_step_pin=PD0, e_dir_pin=PD1, e_enable_pin=PD2, e_uart_pin=PA15, #----------------------------------------------- GENERAL PINS ----------------------------------------------- e_heater_pin=PB13, e_sensor_pin=PA3, stepper_spi_mosi_pin=null, stepper_spi_miso_pin=null, stepper_spi_sclk_pin=null, adxl345_cs_pin=PB12, bltouch_sensor_pin=PB8, bltouch_control_pin=PB9, probe_pin=PB9, fan_part_cooling_pin=PA0, fan_toolhead_cooling_pin=PA1, fan_controller_board_pin=null, heater_bed_heating_pin=null, heater_bed_sensor_pin=null, 4p_fan_part_cooling_pin=null, 4p_fan_part_cooling_tach_pin=null, 4p_toolhead_cooling_pin=null, 4p_toolhead_cooling_tach_pin=null, 4p_controller_board_pin=null, 4p_controller_board_tach_pin=null [mcu toolboard_t0] serial: /dev/RatOS/btt-ebb42-12-t0 [temperature_sensor EBB42_v1.2_T0] sensor_type: temperature_mcu sensor_mcu: toolboard_t0 [adxl345 toolboard_t0] axes_map: x, z, y # Assumes back-facing vertical toolboard mounting cs_pin: toolboard_t0:PB12 spi_software_mosi_pin: toolboard_t0:PB11 spi_software_miso_pin: toolboard_t0:PB2 spi_software_sclk_pin: toolboard_t0:PB10 ############################################################################################################# ### BASE SETUP ############################################################################################################# [include RatOS/homing.cfg] [include RatOS/macros.cfg] [include RatOS/shell-macros.cfg] [include RatOS/printers/v-core-3/v-core-3.cfg] [include RatOS/printers/v-core-3/macros.cfg] [include RatOS/printers/v-core-3/300.cfg] # Extruder # T0 Bondtech BMG definition (from RatOS/extruders/bmg.cfg) [extruder] rotation_distance: 7.68 full_steps_per_rotation: 400 filament_diameter: 1.750 max_extrude_only_velocity: 60 [firmware_retraction] retract_speed: 40 unretract_extra_length: 0 unretract_speed: 40 # Hotend # T0 Phaetus Dragonfly definition (from RatOS/hotends/dragonfly.cfg) [extruder] max_extrude_only_distance: 200 nozzle_diameter: 0.4 heater_pin: toolboard_t0:PB13 sensor_type: Generic 3950 sensor_pin: toolboard_t0:PA3 min_extrude_temp: 170 min_temp: 0 max_temp: 290 pressure_advance: 0.03 [firmware_retraction] retract_length: 0.5 # ADXL345 resonance testing configuration [resonance_tester] accel_chip_x: adxl345 toolboard_t0 accel_chip_y: adxl345 toolboard_t0 probe_points: 150,150,20 ############################################################################################################# ### STEPPER MOTORS, DRIVERS & SPEED LIMITS ############################################################################################################# #---------------------------------------------------- X ----------------------------------------------------- # The A motor in the CoreXY system, located at the rear left of the printer # Connected to X on BIGTREETECH SKRat v1.0 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH48-2504AC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 stepper_x] stealthchop_threshold: 0 interpolate: False uart_pin: PF10 run_current: 1.1 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 0 driver_HSTRT: 0 sense_resistor: 0.11 [stepper_x] step_pin: PF9 dir_pin: PD7 enable_pin: !PD6 microsteps: 64 full_steps_per_rotation: 200 rotation_distance: 40 homing_speed: 50 #---------------------------------------------------- Y ----------------------------------------------------- # The B motor in the CoreXY system, located at the rear right of the printer # Connected to Y on BIGTREETECH SKRat v1.0 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH48-2504AC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 stepper_y] stealthchop_threshold: 0 interpolate: False uart_pin: PD4 run_current: 1.1 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 0 driver_HSTRT: 0 sense_resistor: 0.11 [stepper_y] step_pin: PD3 dir_pin: PD2 enable_pin: !PD5 microsteps: 64 full_steps_per_rotation: 200 rotation_distance: 40 homing_speed: 50 #---------------------------------------------------- Z ----------------------------------------------------- # The left Z motor for the kinematic bed # Connected to Z on BIGTREETECH SKRat v1.0 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH48-2504AC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 stepper_z] stealthchop_threshold: 0 interpolate: False uart_pin: PC8 run_current: 1.1 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 0 driver_HSTRT: 0 sense_resistor: 0.11 [stepper_z] step_pin: PA15 dir_pin: PF8 enable_pin: !PC9 microsteps: 64 full_steps_per_rotation: 200 rotation_distance: 8 position_min: -5 homing_speed: 10 endstop_pin: probe:z_virtual_endstop #---------------------------------------------------- Z1 ---------------------------------------------------- # The rear Z motor for the kinematic bed # Connected to E0 on BIGTREETECH SKRat v1.0 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH48-2504AC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 stepper_z1] stealthchop_threshold: 0 interpolate: False uart_pin: PD8 run_current: 1.1 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 0 driver_HSTRT: 0 sense_resistor: 0.11 [stepper_z1] step_pin: PC7 dir_pin: PC6 enable_pin: !PD9 microsteps: 64 full_steps_per_rotation: 200 rotation_distance: 8 #---------------------------------------------------- Z2 ---------------------------------------------------- # The right Z motor for the kinematic bed # Connected to E1 on BIGTREETECH SKRat v1.0 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH48-2504AC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 stepper_z2] stealthchop_threshold: 0 interpolate: False uart_pin: PB11 run_current: 1.1 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 0 driver_HSTRT: 0 sense_resistor: 0.11 [stepper_z2] step_pin: PB10 dir_pin: PE15 enable_pin: !PA8 microsteps: 64 full_steps_per_rotation: 200 rotation_distance: 8 #------------------------------------------------- EXTRUDER ------------------------------------------------- # The extruder motor used on your toolhead # Connected to EBB42 v1.2 # Driver: BTT TMC2209 v1.3 # Motor: LDO-42STH25-1404MAC # Voltage: 24 #------------------------------------------------------------------------------------------------------------ [tmc2209 extruder] stealthchop_threshold: 0 interpolate: False uart_pin: toolboard_t0:PA15 run_current: 0.85 driver_TBL: 1 driver_TOFF: 3 driver_HEND: 2 driver_HSTRT: 0 sense_resistor: 0.11 [extruder] step_pin: toolboard_t0:PD0 dir_pin: toolboard_t0:PD1 enable_pin: !toolboard_t0:PD2 microsteps: 64 full_steps_per_rotation: 400 rotation_distance: 7.68 [printer] max_velocity: 300 max_accel: 3000 minimum_cruise_ratio: 0.5 max_z_velocity: 30 max_z_accel: 15 square_corner_velocity: 5 [gcode_macro RatOS] variable_macro_travel_speed: 300 variable_macro_travel_accel: 3000 [bed_mesh] speed: 300 [z_tilt] speed: 300 ############################################################################################################# ### HOMING ############################################################################################################# [include RatOS/z-probe/bltouch.cfg] # BLTouch configuration [bltouch] control_pin: toolboard_t0:PB9 sensor_pin: ^toolboard_t0:PB8 # Physical X endstop configuration [stepper_x] endstop_pin: toolboard_t0:PB6 [gcode_macro RatOS] variable_homing_x: "endstop" # Physical Y endstop configuration [stepper_y] endstop_pin: PC1 [gcode_macro RatOS] variable_homing_y: "endstop" ############################################################################################################# ### FANS ############################################################################################################# # Part cooling fan [fan] # 2-pin fan connected to 2-pin header on T0 (EBB42 v1.2) - input voltage pwm pin: toolboard_t0:PA0 # Hotend cooling fan [heater_fan toolhead_cooling_fan] heater: extruder # 2-pin fan connected to 2-pin header on T0 (EBB42 v1.2) - input voltage pwm pin: toolboard_t0:PA1 # Controller cooling fan [controller_fan controller_fan] # 4-pin fan connected to 2-pin header on SKRat v1.0 - digital pwm pin: !PD13 cycle_time: 0.00004 ############################################################################################################# ### MACRO CONFIGURATION ############################################################################################################# [gcode_macro T0] variable_join: 0 variable_remap: 0 variable_alert: "" variable_filament_name: "" variable_filament_type: "" variable_filament_temp: 0 variable_runout_sensor: "" variable_active: True variable_color: "7bff33" # Used in frontends variable_hotend_type: "SF" variable_has_cht_nozzle: False variable_cooling_position_to_nozzle_distance: 40 # heatbreak length from cold zone to nozzle variable_tooolhead_sensor_to_extruder_gear_distance: 15 # distance in mm from the sensor to the extruder gear variable_extruder_gear_to_cooling_position_distance: 30 # distance in mm from the extruder gear to the end of the hotend cold zone variable_filament_loading_nozzle_offset: -5 variable_filament_grabbing_length: 5 variable_filament_grabbing_speed: 1 variable_enable_insert_detection: True # enables filament sensor insert detection variable_enable_runout_detection: True # enables filament sensor runout detection variable_enable_clog_detection: True # enables filament sensor clog detection variable_unload_after_runout: True # unload filament after a runout has been detected variable_purge_after_load: 0 variable_purge_before_unload: 0 variable_extruder_load_speed: 60 variable_filament_load_speed: 10 variable_standby: False variable_temperature_offset: 0 # hotend temperature offset variable_has_oozeguard: False # toolhead has a oozeguard variable_has_front_arm_nozzle_wiper: False # toolhead has front arm nozzle wipers variable_resume_after_insert: False # resumes the print after inserting new filament gcode: {% set x = params.X|default(-1.0)|float %} {% set y = params.Y|default(-1.0)|float %} {% set z = params.Z|default(0.0)|float %} {% set s = params.S|default(1)|int %} {% if printer["gcode_macro _SELECT_TOOL"] is defined %} _SELECT_TOOL T=0 X={x} Y={y} Z={z} TOOLSHIFT={s} {% endif %} # Macro variable overrides [gcode_macro RatOS] variable_bed_margin_x: [0, 0] variable_bed_margin_y: [0, 0] variable_x_driver_types: ["tmc2209"] variable_x_axes: ["x"] variable_y_driver_types: ["tmc2209"] variable_y_axes: ["y"] variable_z_driver_types: ["tmc2209", "tmc2209", "tmc2209"] variable_z_axes: ["z", "z1", "z2"] # Save variables [save_variables] filename: /home/pi/printer_data/config/ratos-variables.cfg