Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [include kiauh.cfg]
- [virtual_sdcard]
- path: ~/sdcard
- [pause_resume]
- [display_status]
- [mcu]
- ## MCU for X/Y/E steppers main MCU
- ## [X in X] - B Motor
- ## [Y in Y] - A Motor
- ## [E in E0] - Extruder
- ## Obtain definition by "ls -l /dev/serial/by-path/" then unplug to verify
- ##--------------------------------------------------------------------
- serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0
- ##--------------------------------------------------------------------
- [mcu z]
- ## MCU for Z steppers
- ## [Z in X] - Front Left
- ## [Z1 in Y] - Rear Left
- ## [Z2 in Z] - Rear Right
- ## [Z3 in E0]- Front Right
- ## Obtain definition by "ls -l /dev/serial/by-path/" then unplug to verify
- ##--------------------------------------------------------------------
- serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
- ##--------------------------------------------------------------------
- [printer]
- kinematics: corexy
- max_velocity: 300
- max_accel: 10000 #Max 4000
- max_accel_to_decel: 10000
- max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
- max_z_accel: 350 #Max ?
- square_corner_velocity: 5.0 #Can experiment with 8.0, default 5.0
- #####################################################################
- # X/Y Stepper Settings
- #####################################################################
- [input_shaper]
- [stepper_x]
- step_pin: P2.2
- dir_pin: !P2.3
- enable_pin: !P2.1
- rotation_distance: 40
- microsteps: 16
- full_steps_per_rotation: 400
- endstop_pin: !P1.29
- position_min: 0
- position_endstop: 301
- position_max: 303
- homing_speed: 50 #Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_x]
- uart_pin: P1.1
- interpolate: True
- run_current: 1.2
- hold_current: 0.8
- sense_resistor: 0.110
- stealthchop_threshold: 0
- [stepper_y]
- step_pin: P0.19
- dir_pin: P0.20
- enable_pin: !P2.8
- rotation_distance: 40
- microsteps: 16
- full_steps_per_rotation: 400
- endstop_pin: !P1.27
- position_min: 0
- position_endstop: 302
- position_max: 306
- homing_speed: 50 #Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_y]
- uart_pin: P1.8
- interpolate: True
- run_current: 1.2
- hold_current: 0.8
- sense_resistor: 0.110
- stealthchop_threshold: 0
- #####################################################################
- # Z Stepper Settings
- #####################################################################
- ## Z MCU - In X Position
- ## Z0 Stepper - Front Left
- [stepper_z]
- step_pin: z:P2.2
- dir_pin: z:P2.3
- enable_pin: !z:P2.1
- rotation_distance: 40
- gear_ratio: 80:16
- microsteps: 16
- endstop_pin: z:P1.25
- position_max: 290
- position_min: -5
- homing_speed: 15.0
- second_homing_speed: 3.0
- homing_retract_dist: 3.0
- ## Make sure to update below for your relevant driver (2208 or 2209)
- [tmc2209 stepper_z]
- uart_pin: z:P1.1
- interpolate: true
- run_current: 0.8
- hold_current: 0.8
- sense_resistor: 0.110
- stealthchop_threshold: 0
- ## Z MCU - In Y Position
- ## Z1 Stepper - Rear Left
- [stepper_z1]
- step_pin: z:P0.19
- dir_pin: !z:P0.20
- enable_pin: !z:P2.8
- rotation_distance: 40
- gear_ratio: 80:16
- microsteps: 16
- ## Make sure to update below for your relevant driver (2208 or 2209)
- [tmc2209 stepper_z1]
- uart_pin: z:P1.8
- interpolate: true
- run_current: 0.8
- hold_current: 0.8
- sense_resistor: 0.110
- stealthchop_threshold: 0
- ## Z MCU - In Z Position
- ## Z2 Stepper - Rear Right
- [stepper_z2]
- step_pin: z:P0.22
- dir_pin: z:P2.11
- enable_pin: !z:P0.21
- rotation_distance: 40
- gear_ratio: 80:16
- microsteps: 16
- ## Make sure to update below for your relevant driver (2208 or 2209)
- [tmc2209 stepper_z2]
- uart_pin: z:P1.10
- interpolate: true
- run_current: 0.8
- hold_current: 0.80
- sense_resistor: 0.110
- stealthchop_threshold: 0
- ## Z MCU - In E0 Position
- ## Z3 Stepper - Front Right
- [stepper_z3]
- step_pin: z:P2.13
- dir_pin: !z:P0.11
- enable_pin: !z:P2.12
- rotation_distance: 40
- gear_ratio: 80:16
- microsteps: 16
- ## Make sure to update below for your relevant driver (2208 or 2209)
- [tmc2209 stepper_z3]
- uart_pin: z:P1.15
- interpolate: true
- run_current: 0.8
- hold_current: 0.80
- sense_resistor: 0.110
- stealthchop_threshold: 0
- #####################################################################
- # Extruder
- #####################################################################
- # E0 on MCU X/Y
- [extruder]
- step_pin: P0.22
- dir_pin: !P2.11
- enable_pin: !P0.21
- max_extrude_only_distance: 1000
- rotation_distance: 34.161
- gear_ratio: 7.5:1
- full_steps_per_rotation: 200
- microsteps: 16
- nozzle_diameter: 0.400
- filament_diameter: 1.75
- heater_pin: P2.7
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: P0.23
- min_temp: 10
- max_temp: 270
- max_power: 1.0
- min_extrude_temp: 10
- ## Try to keep pressure_advance below 1.0
- pressure_advance: 0.043
- ## Default is 0.040, leave stock
- pressure_advance_smooth_time: 0.040
- ## E0 on MCU X/Y
- ## Make sure to update below for your relevant driver (2208 or 2209)
- [tmc2209 extruder]
- uart_pin: P1.10
- interpolate: false
- run_current: 0.33
- hold_current: 0.33
- sense_resistor: 0.110
- stealthchop_threshold: 0
- #####################################################################
- # Bed Heater
- #####################################################################
- [heater_bed]
- ## SSR Pin - Z board, Fan Pin
- heater_pin: z:P2.4
- sensor_type: NTC 100K MGB18-104F39050L32
- sensor_pin: z:P0.24
- ## Adjust Max Power so your heater doesn't warp your bed
- max_power: 0.6
- min_temp: 0
- max_temp: 120
- #control: pid
- #pid_kp: 58.437
- #pid_ki: 2.347
- #pid_kd: 363.769
- #####################################################################
- # Probe
- #####################################################################
- [probe]
- ## Inductive Probe
- ## This probe is not used for Z height, only Quad Gantry Leveling
- ## Z_MAX on mcu_z
- ## If your probe is NO instead of NC, add change pin to !z:P0.10
- pin: ^z:P2.0
- x_offset: 0
- y_offset: 25.0
- z_offset: 0
- speed: 10.0
- samples: 3
- samples_result: median
- sample_retract_dist: 3.0
- samples_tolerance: 0.006
- samples_tolerance_retries: 3
- #####################################################################
- # Fan Control
- #####################################################################
- [heater_fan hotend_fan]
- ## Hotend Fan - XYE board, HE1 Connector
- pin: P2.6
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- ## If you are experiencing back flow, you can reduce fan_speed
- #fan_speed: 1.0
- [fan]
- ## Print Cooling Fan - XYE board, Fan Pin
- pin: z:P1.4
- kick_start_time: 0.5
- ## Depending on your fan, you may need to increase this value
- ## if your fan will not start. Can change cycle_time (increase)
- ## if your fan is not able to slow down effectively
- off_below: 0.10
- [heater_fan controller_fan]
- ## Controller fan - Z board, HE1 Connector
- pin: z:P2.6
- kick_start_time: 0.5
- heater: heater_bed
- heater_temp: 45.0
- fan_speed: 0.4
- max_power: 0.4
- cycle_time: 0.00004
- shutdown_speed: 0.0
- [heater_fan exhaust_fan]
- ## Exhaust fan - Z board, HE0 Connector
- pin: z:P2.7
- max_power: 1.0
- shutdown_speed: 0.0
- kick_start_time: 5.0
- heater: heater_bed
- heater_temp: 60
- fan_speed: 1.0
- #####################################################################
- # LED Control
- #####################################################################
- #[output_pin caselight ]
- #pin: P2.5
- #pwm: true
- #value: 0
- #scale: 10
- #####################################################################
- # Homing and Gantry Adjustment Routines
- #####################################################################
- [idle_timeout]
- timeout: 1800
- [quad_gantry_level]
- gantry_corners:
- -60,-10
- 360,370
- ## Probe points
- points:
- 50,25
- 50,225
- 250,225
- 250,25
- speed: 100
- horizontal_move_z: 10
- retries: 5
- retry_tolerance: 0.0075
- max_adjust: 10
- [temperature_sensor bedcorner]
- sensor_type: NTC 100K beta 3950
- sensor_pin: P0.24
- [display]
- lcd_type: uc1701
- cs_pin: z:P0.18
- a0_pin: z:P0.16
- rst_pin: z:P0.15
- contrast: 63
- encoder_pins: ^z:P3.26, ^z:P3.25
- click_pin: ^!z:P1.30
- spi_software_miso_pin: z:P0.8
- spi_software_mosi_pin: z:P0.9
- spi_software_sclk_pin: z:P0.7
- [output_pin beeper]
- pin: z:P1.31
- [neopixel fysetc_mini12864]
- pin: z:P0.17
- chain_count: 3
- initial_RED: 0.4
- initial_GREEN: 0.4
- initial_BLUE: 0.4
- color_order: RGB
- [delayed_gcode setdisplayneopixel]
- initial_duration: 1
- gcode:
- SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0
- SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
- SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
- #####################################################################
- # Macros
- #####################################################################
- [gcode_macro G32]
- gcode:
- BED_MESH_CLEAR
- G28
- QUAD_GANTRY_LEVEL
- CLEAN_NOZZLE
- G28 Z
- G0 X150 Y150 Z20 F6000
- [gcode_macro PRINT_START]
- default_parameter_BED_TEMP: 100
- default_parameter_EXTRUDER_TEMP: 235
- gcode:
- M117 Heating...
- M140 S{BED_TEMP} ; set bed final temp
- M104 S{EXTRUDER_TEMP} ; set extruder final temp
- M190 S{BED_TEMP} ; wait for bed final temp
- M109 S{EXTRUDER_TEMP} ; wait for extruder final temp
- G21 ; set units to millimeters
- G90 ; use absolute coordinates
- M83 ; use relative distances for extrusion
- G32 ; home all axes
- BED_MESH_PROFILE LOAD=90
- G1 Z20 F3000 ; move nozzle away from bed
- [safe_z_home]
- home_xy_position: 205,304
- speed: 80.0
- z_hop: 5
- z_hop_speed: 20.0
- move_to_previous: False
- [gcode_macro PRINT_END]
- # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
- gcode:
- M400 ; wait for buffer to clear
- G92 E0 ; zero the extruder
- G1 E-5.0 F3600 ; retract filament
- G91 ; relative positioning
- G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
- TURN_OFF_HEATERS
- M107 ; turn off fan
- G1 Z20 F3000 ; move nozzle up 20mm
- G90 ; absolute positioning
- G0 X125 Y250 F3600 ; park nozzle at rear
- BED_MESH_CLEAR
- #######################################################################################################################################
- # Sample macro config to be used in conjunction with the Decontaminator Purge Bucket & Nozzle Scrubber mod. Created by Hernsl
- # (hernsl#8860 on Voron Design discord) and edited by Edwardyeeks (edwardyeeks#6042 on Voron Design Discord).
- # The goal of this macro is to provide a nozzle scrubbing and purging routine that is easily copied/referenced into your printer.cfg.
- # Users can simply change parameters and enable/disable options in the first half. Descriptions are laid out in sequence to be read
- # first; PLEASE READ CAREFULLY.
- # This sample config assumes the following: The user has implemented the default decontaminator purge bucket & nozzle scrubber mod
- # for the VORON 1/2.
- # Features in this macro: option of putting the bucket at the rear or front of the bed. Purge routine that can be enabled/disabled.
- # By default, bucket is located at rear left of bed and purge routine is enabled.
- # Default parameters are set for safe speeds and movements. Where necessary, tweak the parameters for the nozzle scrub procedure
- # to fit your printer.
- # To avoid adding length of lines to your main printer.cfg config file, one can upload a config file separately into klipper and
- # include it into the main printer config. Upload nozzle_scrub.cfg to the same directory as printer.cfg. Usually, it is in /home/pi/.
- # Once uploaded, add the following to your printer.cfg in the Macros section: [include /home/pi/nozzle_scrub.cfg]
- # Those running mainsail will need to use the following location instead: [include /home/pi/klipper_config/nozzle_scrub.cfg]
- #######################################################################################################################################
- # Name of the macro is clean_nozzle.
- [gcode_macro clean_nozzle]
- # If you are putting your purge bucket at the rear left of the bed as per default installation, enable True on your location_bucket_rear
- # variable. If you want to put your purge bucket elsewhere (perhaps the front), then set it to False. See diagrams and description
- # further below on how to set your XY position.
- variable_location_bucket_rear: True
- # If you want the purging routine in your bucket enabled, set to True (and vice versa).
- variable_enable_purge: False
- # These parameters define your filament purging. Update as necessary. If you decided to not enable purge, you can ignore this section.
- variable_purge_len: 10 ; Amount of filament, in mm, to purge.
- variable_purge_spd: 150 ; Speed, in mm/s, of the purge.
- variable_purge_temp_min: 240 ; Minimum nozzle temperature to permit a purge. Otherwise, purge will not occur.
- # Adjust this so that your nozzle scrubs within the brush. Currently defaulted to be a lot higher for safety. Be careful not to go too low!
- variable_brush_top: -1
- # These parameters define your scrubbing, travel speeds, safe z clearance and how many times you want to wipe. Update as necessary.
- variable_clearance_z: 5 ; When traveling, but not cleaning, the clearance along the z-axis between nozzle and brush.
- variable_wipe_qty: 10 ; Number of complete (A complete wipe: start left, go right, go left) wipes.
- variable_prep_spd_xy: 10000 ; Travel (not cleaning) speed along x and y-axis in mm/min.
- variable_prep_spd_z: 1500 ; Travel (not cleaning) speed along z axis in mm/min.
- variable_wipe_spd_xy: 10000 ; Nozzle wipe speed in mm/min.
- # These parameters define the size of the brush. Update as necessary. A visual reference is provided below. Note that orientation of
- # parameters remain the same whether bucket is at rear or front.
- #
- # ← brush_width →
- # _________________ ↑
- # | | ↑ If you chose location_bucket_rear = True, Y position is acquired
- # brush_start (x) | | brush_depth from your stepper_y position_max. Adjust your brush physically in
- # |_________________| ↓ Y so that the nozzle scrubs within the brush.
- # (y) ↓
- # brush_front
- # __________________________________________________________
- # PRINTER FRONT
- #
- #
- ## For V1.8, you may need to measure where your brush is on the x axis and input manually into any of the variable_brush_start uncommented.
- ## For V2.4 250mm build, uncomment this below:
- #variable_brush_start: 25
- ## For V2.4 300mm build, uncomment this below:
- variable_brush_start: 50
- ## For V2.4 350mm build, uncomment this below:
- #variable_brush_start: 75
- ## These are only used if location_bucket_rear is False. You specify a custom location in y axis for your brush - see diagram above. ##
- variable_brush_front: 0
- variable_brush_depth: 0
- # These parameters define the size of your purge bucket. Update as necessary. If you decided to not enable purge, you can ignore
- # this section. A visual reference is provided below. Note that orientation of parameters remain the same whether bucket is at rear
- # or front.
- #
- # bucket_gap
- # ← ---- →
- # __________________________________________
- # | | | |
- # | | | |
- # bucket_start (x) | |______| |
- # | | | |
- # | | | |
- # |_________________|. . . |_________________|
- # ← ------------- → ← ------------- →
- # bucket_left_width bucket_right_width
- # _______________________________________________________________________________________
- # PRINTER FRONT
- #
- ## For V2.4 250mm build, uncomment below
- #variable_bucket_left_width: 42
- ## For V2.4 300mm build, uncomment below
- variable_bucket_left_width: 67
- ## For V2.4 350mm build, uncomment below
- #variable_bucket_left_width: 92
- # For V1.8, you may need to measure where your bucket start is and input into bucket_start. Otherwise, a value of 0 is for a default
- # installation of purge bucket at rear left.
- variable_bucket_start: 0
- ###############################################################################################################################################
- ###############################################################################################################################################
- ### From here on, unless you know what you're doing, it's recommended not to change anything.
- ###############################################################################################################################################
- ###############################################################################################################################################
- # Placeholder. The variable will contain at random a number representing the left or right bucket.
- variable_bucket_pos: 1
- # This value is defaulted from brush location in CAD (rear left). Refer to diagram for visual reference.
- variable_brush_width: 52
- # These values are defaulted from bucket geometry in CAD (rear left location). Refer to diagram for visual reference.
- variable_bucket_right_width: 40
- variable_bucket_gap: 22
- gcode:
- # First, check if the axes are homed.
- {% if "xyz" in printer.toolhead.homed_axes %}
- ## Save the gcode state in this macro instance.
- SAVE_GCODE_STATE NAME=clean_nozzle
- ## Set to absolute positioning.
- G90
- ## Grab max position of Y-axis from config to use in setting a fixed y position for location_bucket_rear = True.
- {% set Ry = printer.configfile.config["stepper_y"]["position_max"]|float %}
- ## Check if user enabled purge option or not.
- {% if enable_purge %}
- ### Randomly select left or right bin for purge.
- SET_GCODE_VARIABLE MACRO=clean_nozzle VARIABLE=bucket_pos VALUE={(range(0, 1) | random)}
- ### Raise Z for travel.
- G1 Z{brush_top + clearance_z} F{prep_spd_z}
- ### Check if user chose to use rear location.
- {% if location_bucket_rear %}
- G1 Y{Ry} F{prep_spd_xy}
- {% else %}
- G1 Y{brush_front + (brush_depth / 2)} F{prep_spd_xy}
- {% endif %}
- ### Position for purge. Randomly selects middle of left or right bucket. It references from the middle of the left bucket.
- G1 X{bucket_start + (bucket_left_width / 2) + (bucket_pos * bucket_gap) + (bucket_pos * (bucket_right_width / 2))}
- ### Perform purge if the temp is up to min temp. If not, it will skip and continue executing rest of macro.
- {% if printer.extruder.temperature >= purge_temp_min %}
- M83 ; relative mode
- G1 E{purge_len} F{purge_spd}
- G92 E0 ; reset extruder
- {% endif %}
- {% endif %}
- ## Position for wipe.
- G1 Z{brush_top + clearance_z} F{prep_spd_z}
- G1 X{brush_start} F{prep_spd_xy}
- ## Check if user chose to use rear location.
- {% if location_bucket_rear %}
- G1 Y{Ry}
- {% else %}
- G1 Y{brush_front + (brush_depth / 2)}
- {% endif %}
- ## Move nozzle down into brush.
- G1 Z{brush_top} F{prep_spd_z}
- ## Perform wipe.
- {% for wipes in range(1, (wipe_qty + 1)) %}
- G1 X{brush_start + brush_width} F{wipe_spd_xy}
- G1 X{brush_start} F{wipe_spd_xy}
- {% endfor %}
- ## Clear from area.
- M117 Cleaned!
- G1 Z{brush_top + clearance_z} F{prep_spd_z}
- G1 X{bucket_left_width / 4} F{prep_spd_xy}
- ## Restore the gcode state to how it was before the macro.
- RESTORE_GCODE_STATE NAME=clean_nozzle
- {% else %}
- ## raise error will stop any macros that clean_nozzle is referenced in from proceeding for safety.
- { action_raise_error("Please home your axes!") }
- M117 Please home first!
- {% endif %}
- ## Thermistor Types
- ## "EPCOS 100K B57560G104F"
- ## "ATC Semitec 104GT-2"
- ## "NTC 100K beta 3950"
- ## "Honeywell 100K 135-104LAG-J01"
- ## "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
- ## "AD595"
- ## "PT100 INA826"
- #[bed_mesh]
- #speed: 200
- #horizontal_move_z: 10
- #probe_count: 7,7
- #fade_start: 0.5
- #fade_end: 25.0
- #split_delta_z: .01
- #move_check_distance: 3
- #mesh_pps: 2,2
- #algorithm: bicubic
- #relative_reference_index: 24
- #mesh_min: 20,50
- #mesh_max: 270,270
- [mcu rpi]
- serial: /tmp/klipper_host_mcu
- [temperature_sensor Pi]
- sensor_type: rpi_temperature
- min_temp: 0
- max_temp: 90
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 24.367
- #*# pid_ki = 1.321
- #*# pid_kd = 112.393
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 39.431
- #*# pid_ki = 1.511
- #*# pid_kd = 257.289
- #*#
- #*# [stepper_z]
- #*# position_endstop = -1.025
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = mzv
- #*# shaper_freq_x = 58.8
- #*# shaper_type_y = mzv
- #*# shaper_freq_y = 44
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement