Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [virtual_sdcard]
- path: /home/pi/printer_data/gcodes
- #path: ~/gcode_files
- [pause_resume]
- [display_status]
- [mcu]
- ###Change to device found by "ls -l /dev/serial/by-id/*" with just one this MCU connected to OPi
- serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
- #[mcu adxl]
- #serial: /dev/serial/by-id/usb-Klipper_rp2040_65CC9C960E566E53-if00
- #[adxl345]
- #cs_pin: adxl:gpio1
- #spi_bus: spi0a
- #axes_map: x,z,y
- #[resonance_tester]
- #accel_chip: adxl345
- #probe_points:
- # Somewhere slightly above the middle of your print bed
- # 155,145, 15
- [bltouch]
- sensor_pin: ^PB6
- control_pin: PE4
- x_offset: -47
- y_offset: -4
- z_offset: 1.92
- [safe_z_home]
- home_xy_position: 145,155 # Change coordinates to the center of your print bed
- z_hop: 10
- [printer]
- kinematics: corexy
- max_velocity: 300
- max_accel: 1500
- max_z_velocity: 5
- max_z_accel: 100
- square_corner_velocity: 5.0
- #####################################################################
- # X/Y Stepper Settings
- #####################################################################\
- ######
- #X motor slot on main board (B Motor)
- ###############
- [stepper_x]
- step_pin: PF0
- dir_pin: PF1
- enable_pin: !PD7
- microsteps: 16
- rotation_distance: 40
- full_steps_per_rotation: 200
- endstop_pin: !PK1 # PK2 for X-max / PK1=X+
- #position_min: 0
- position_endstop: 0
- position_max: 314
- homing_speed: 25 #Max 100
- homing_retract_dist: 5
- #homing_positive_dir: true
- ######
- #Y motor slot on main board (A Motor)
- ###############
- [stepper_y]
- step_pin: PF6
- dir_pin: PF7
- enable_pin: !PF2
- microsteps: 16
- rotation_distance: 40
- full_steps_per_rotation: 200
- endstop_pin: !PJ1 # PJ0 for Y-max / PJ1=Y-
- position_endstop: 23
- position_min:23
- position_max: 310 #noch nicht richtig
- homing_speed: 25 #Max 100
- homing_retract_dist: 5
- #homing_positive_dir: true
- #####################################################################
- # Z Stepper Settings
- #####################################################################
- ######
- # Z0 Stepper - Left Front
- # M1 motor slot on expander board
- ###############
- [stepper_z]
- step_pin: PL6
- dir_pin: !PL1
- enable_pin: !PF4
- microsteps: 16
- ##T8x4 Lead Screws. One rotation moves the bed 4mm
- ##Change according to integrated steppers purchased
- rotation_distance: 2
- full_steps_per_rotation: 200
- endstop_pin: probe:z_virtual_endstop # PE4 for Z-max
- # Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
- # (+) value = endstop above Z0, (-) value = endstop below
- # Increasing position_endstop brings nozzle closer to the bed
- # After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
- #position_endstop: -0.5
- ## All builds use same Max Z
- position_max: 310
- position_min: -5
- homing_speed: 35.0
- ######
- #M2 motor slot on expander board (Rear Z)
- ###############
- [stepper_z1]
- step_pin: PA4 #Extuder Anschluss
- dir_pin: !PA6
- enable_pin: !PA2
- microsteps: 16
- rotation_distance: 2
- full_steps_per_rotation: 200
- ######
- #M3 motor slot on expander board (Right Front Z)
- ###############
- [stepper_z2]
- step_pin: PC1 #Extruder 1 Anschluss
- dir_pin: !PC3
- enable_pin: !PC7
- microsteps: 16
- rotation_distance: 2
- full_steps_per_rotation: 200
- #E0 motor slot on main board
- [extruder]
- max_extrude_cross_section: 50
- max_extrude_only_distance: 700.00
- step_pin: PF5
- dir_pin: !PF3
- enable_pin: !PG1
- microsteps: 16
- rotation_distance: 7.865169315
- nozzle_diameter: 0.600
- filament_diameter: 1.750
- heater_pin: PE3
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PK4
- min_extrude_temp: 170
- min_temp: 10
- max_temp: 275
- #control = pid
- #pid_kp = 26.213
- #pid_ki = 1.304
- #pid_kd = 131.721
- pressure_advance: 0.67
- pressure_advance_smooth_time: 0.040
- #####################################################################
- # TMC UART Mode
- #####################################################################
- [tmc2208 stepper_x]
- uart_pin: PG3
- tx_pin: PJ2
- hold_current: 0.25
- run_current: 0.6 #1A IMAX*0,707*0,85
- stealthchop_threshold: 999999
- #0,85 ist die safety margin
- [tmc2208 stepper_y]
- uart_pin: PJ3
- tx_pin: PJ4
- hold_current: 0.25
- run_current: 0.6
- stealthchop_threshold: 999999
- [tmc2208 stepper_z]
- uart_pin: PE2
- tx_pin: PE6
- run_current: 0.5 #0,84A Imax
- stealthchop_threshold: 999999
- [tmc2208 stepper_z1]
- uart_pin: PJ5
- tx_pin: PJ6
- run_current: 0.5
- stealthchop_threshold: 999999
- [tmc2208 stepper_z2]
- uart_pin: PE7
- tx_pin: PD4
- run_current: 0.5
- stealthchop_threshold: 999999 #30 normal, 999999 für enabled
- [tmc2208 extruder]
- uart_pin: PA1
- tx_pin: PD5
- run_current: 0.42 #0,7A Imax
- stealthchop_threshold: 999999
- #####################################################################
- # Bed Heater
- #####################################################################
- [heater_bed]
- heater_pin: PH5
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PK7
- ##Adjust Max Power so your heater doesn't warp your bed
- max_power: 0.6
- min_temp: 5
- max_temp: 140
- #control: pid
- #pid_kp: 58.437
- #pid_ki: 2.347
- #pid_kd: 363.769
- #####################################################################
- # Fan Control
- #####################################################################
- ######
- #Part Cooling Fan
- #HE1 Connector on Main Board
- ###############
- [fan]
- pin: PL5
- ######
- #Hotend Cooling Fan
- #Fan0 Connector on Main Board
- ###############
- [heater_fan hotend_fan]
- pin: PL4
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- ## Any additional fans can be driven by Fan1/Fan3 slots
- ## at full power on the main board, or alternative solutions
- ## may be sought for MOSFET controlled ports.
- #####################################################################
- # Homing and Gantry Adjustment Routines
- #####################################################################
- [idle_timeout]
- timeout: 1800
- #####################################################################
- # Displays
- #####################################################################
- #Using the EXP-MOT Expander uses up standard Mini FYSETC Capable Display
- #Ports. Other solutions must be procured.
- #####################################################################
- # Macros
- #####################################################################
- [z_tilt]
- ## Use Z_TILT_ADJUST to level the bed .
- ## z_positions: Location of toolhead
- # Uncomment below for 300mm build
- #z_positions=positons screwrods
- z_positions:
- -45, 0
- 156, 353
- 353, 0
- #bltouch ist -47 in x und -4 in y
- points: #position toolhead
- 95, 30
- 205, 280
- 310, 30
- ## Uncomment below for 350mm build
- #z_positions:
- # -50, 18
- # 175, 398
- # 400, 18
- #points:
- # 30, 5
- # 175, 295
- # 320, 5
- ##--------------------------------------------------------------------
- speed: 200
- horizontal_move_z: 10
- retries: 5
- retry_tolerance: 0.0075
- [gcode_macro PRINT_START]
- # Use PRINT_START for the slicer starting script - PLEASE CUSTOMISE THE SCRIPT
- gcode:
- M117 Homing... ; display message
- G28 Y0 X0 Z0
- Z_TILT_ADJUST
- G28 Y0 X0 Z0
- ##Purge Line Gcode
- #G92 E0;
- #G90
- #G0 X5 Y5 F6000
- #G0 Z0.4
- #G91
- #G1 X120 E30 F1200;
- #G1 Y1
- #G1 X-120 E30 F1200;
- #G92 E0;
- #G90
- G1 Z15.0 F600 ;move the platform down 15mm
- G1 X125 Y125 F3000
- G92 E0 ;zero the extruded length again
- G1 F9000
- M117 Printing...
- [gcode_macro PRINT_END]
- # Use PRINT_END for the slicer ending script
- gcode:
- # Get Boundaries
- {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
- {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
- {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
- # Check end position to determine safe directions to move
- {% if printer.toolhead.position.x < (max_x - 20) %}
- {% set x_safe = 20.0 %}
- {% else %}
- {% set x_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.y < (max_y - 20) %}
- {% set y_safe = 20.0 %}
- {% else %}
- {% set y_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.z < (max_z - 2) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - printer.toolhead.position.z %}
- {% endif %}
- # Commence PRINT_END
- M400 ; wait for buffer to clear
- G92 E0 ; zero the extruder
- G1 E-4.0 F3600 ; retract
- G91 ; relative positioning
- G0 Z{z_safe} F3600 ; move nozzle up
- G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
- M104 S0 ; turn off hotend
- M140 S0 ; turn off bed
- M106 S0 ; turn off fan
- G90 ; absolute positioning
- G0 X{max_x / 2} Y{max_y} F3600 ; park nozzle at rear
- M117 Finished!
- [gcode_macro UNSAFE_LOWER_BED]
- description: Lower the bed 10mm without homing
- gcode:
- G90
- SET_KINEMATIC_POSITION Z=0
- G0 Z10 F600
- M84
- [gcode_macro UNSAFE_HIGHER_BED]
- description: Higher the bed 10mm without homing
- gcode:
- G90
- SET_KINEMATIC_POSITION Z=0
- G0 Z-10 F600
- M84
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- M220 S100 ; Reset Speed factor override percentage to default (100%)
- M221 S100 ; Reset Extrude factor override percentage to default (100%)
- G91 ; Set coordinates to relative
- {% if printer.extruder.temperature >= 170 %}
- G1 F1800 E-1 ; Retract filament 3 mm to prevent oozing
- {% endif %}
- ;if all axis are homed, lift the hotend to leave room for hot filament to ooze and to keep it clear of the bed.
- {% if printer.toolhead.homed_axes == "xyz" %}
- G1 F6000 Z10 ; Move Z Axis up 10 mm to allow filament ooze freely
- G90 ; Set coordinates to absolute
- G1 X10 Y221 F1000 ; Move Printer Head Out of Way
- ; M84 ; Disable stepper motors - don't so the gantry stays aligned
- {% endif %}
- ;set part fan speed to zero.
- M106 S0
- ;bed and hotend are left at the print temps in case I want to restart.
- CLEAR_PAUSE
- BASE_CANCEL_PRINT
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 45.307
- #*# pid_ki = 0.677
- #*# pid_kd = 757.767
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 28.100
- #*# pid_ki = 1.801
- #*# pid_kd = 109.591
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = 3hump_ei
- #*# shaper_freq_x = 56.0
- #*# shaper_type_y = 2hump_ei
- #*# shaper_freq_y = 54.4
Add Comment
Please, Sign In to add comment