Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [include mainsail.cfg]
- [pause_resume]
- [virtual_sdcard]
- path: ~/printer_data/gcodes
- on_error_gcode: CANCEL_PRINT
- [display_status]
- [gcode_arcs]
- [exclude_object]
- [mcu]
- #serial: /dev/serial/by-id/usb-Klipper_stmblahblahblah
- serial: /dev/ttyACM0
- [mcu OrbitoolO2]
- serial:/dev/serial/by-id/usb-Klipper_stm32f042x6_OrbitoolO2-if00
- restart_method: command
- [output_pin O2run_led]
- pin = OrbitoolO2:PB8
- value: 1
- shutdown_value: 0
- [lis2dw]
- cs_pin: OrbitoolO2:PA4
- spi_bus: spi1
- axes_map: y, z, x
- [resonance_tester]
- accel_chip: lis2dw
- probe_points: 175,175,30
- min_freq: 10
- max_freq: 200
- [printer]
- kinematics: cartesian
- max_velocity: 1500
- max_accel: 2500
- max_z_velocity: 10
- max_z_accel: 100
- square_corner_velocity: 20
- #-------------------------------------
- # Bed Leveling
- #-------------------------------------
- [bltouch]
- sensor_pin: ^OrbitoolO2:PB3
- control_pin: OrbitoolO2:PA15
- pin_move_time: 0.675
- stow_on_each_sample: true
- probe_with_touch_mode: true
- pin_up_touch_mode_reports_triggered: true
- speed: 100
- lift_speed: 200
- samples: 3
- sample_retract_dist: 10
- samples_tolerance_retries: 4
- x_offset: -43.00
- y_offset: -5.00
- #z_offset: 0.00
- [bed_mesh]
- speed: 100
- horizontal_move_z: 10
- probe_count: 5, 5
- algorithm: bicubic
- mesh_min: 40,40
- mesh_max: 290,290
- [screws_tilt_adjust]
- screw1: 58,50
- screw1_name: front_left
- screw2: 355,50
- screw2_name: front_right
- screw3: 58,315
- screw3_name: back_left
- screw4: 355,315
- screw4_name: back_right
- [safe_z_home]
- speed: 100
- z_hop: 10
- z_hop_speed: 100
- home_xy_position: 175,175
- [fan]
- pin: PB15
- max_power: 1.0
- cycle_time: 0.0001
- hardware_pwm: false
- kick_start_time: 0.333
- off_below: 0.05
- [heater_fan hotend_fan]
- pin: OrbitoolO2:PB1
- max_power: 1.0
- fan_speed: 1.0
- heater: extruder
- heater_temp: 50.0
- [fan_generic part_Fan]
- pin: OrbitoolO2:PA10
- max_power: 0.995
- shutdown_speed: 0.0
- cycle_time: 0.02
- kick_start_time: 0.2
- hardware_pwm: False
- [temperature_sensor raspberry_pi]
- sensor_type: temperature_host
- max_temp: 100
- [temperature_sensor mcu_temp]
- sensor_type: temperature_mcu
- max_temp: 100
- [temperature_sensor OrbitoolO2]
- sensor_type: temperature_mcu
- sensor_mcu: OrbitoolO2
- min_temp: 0
- max_temp: 100
- [heater_bed]
- heater_pin: PC9
- sensor_type: EPCOS 100K B57560G104F # Creality bed thermistor
- sensor_pin: PC4
- min_temp: 0
- max_temp: 125
- #control: pid # These settings are pretty accurate for me, try them first
- #pid_Kp: 131.06
- #pid_Ki: 11.79
- #pid_Kd: 971.23
- [stepper_x]
- step_pin: PB13
- dir_pin: !PB12
- enable_pin: !PB14
- endstop_pin: tmc2209_stepper_x:virtual_endstop
- rotation_distance: 40 # pitch 2mm, teeth 20
- full_steps_per_rotation: 200
- microsteps: 16
- homing_speed: 50
- position_min: 0
- position_max: 350
- position_endstop: 350
- [stepper_y]
- step_pin: PB10
- dir_pin: !PB2
- enable_pin: !PB11
- endstop_pin: tmc2209_stepper_y:virtual_endstop
- homing_retract_dist: 0
- rotation_distance: 40 # pitch 2mm, teeth 20?
- full_steps_per_rotation: 200
- microsteps: 16
- homing_speed: 50
- position_min: 0
- position_max: 365
- position_endstop: 365
- [stepper_z]
- step_pin: PB0
- dir_pin: !PC5
- enable_pin: !PB1
- endstop_pin: probe:z_virtual_endstop
- rotation_distance: 4 # pitch 2mm, threads 2
- full_steps_per_rotation: 200
- microsteps: 16
- position_min: -6.0
- position_max: 420
- #-------------------------------------
- # Extruder: Orbiter 2.0
- #-------------------------------------
- [extruder]
- step_pin: OrbitoolO2:PB7
- dir_pin: OrbitoolO2:PB6
- enable_pin: !OrbitoolO2:PB4
- microsteps: 32
- full_steps_per_rotation: 200
- rotation_distance: 4.69
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- max_extrude_only_distance: 500
- max_extrude_cross_section: 20
- max_extrude_only_velocity: 120
- pressure_advance: 0.015
- pressure_advance_smooth_time: 0.2
- heater_pin: OrbitoolO2:PA0
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: OrbitoolO2:PA3
- pullup_resistor: 2200
- #control: pid
- #pid_Kp: 22.2
- #pid_Ki: 1.08
- #pid_Kd: 114
- min_temp: 0
- max_temp: 300
- min_extrude_temp: 180
- max_power: 0.995
- pwm_cycle_time: 0.0100
- [firmware_retraction]
- retract_length: 1.2
- # The length of filament (in mm) to retract when G10 is activated,
- # and to unretract when G11 is activated (but see
- # unretract_extra_length below). The default is 0 mm.
- retract_speed: 120
- # The speed of retraction, in mm/s. The default is 20 mm/s.
- unretract_extra_length: 0.0
- # The length (in mm) of *additional* filament to add when
- # unretracting.
- unretract_speed: 120
- # The speed of unretraction, in mm/s. The default is 10 mm/s.
- # ---------- X Stepper ----------
- # Creality 42-34, 0.8A peak RMS (per phase)
- # -------------------------------
- [tmc2209 stepper_x]
- uart_pin: PC11
- tx_pin: PC10
- diag_pin: PC0
- driver_SGTHRS: 100
- uart_address: 0
- interpolate: true
- sense_resistor: 0.110
- run_current: 0.45
- stealthchop_threshold: 999999
- # ---------- Y Stepper ----------
- # Creality 42-48, 1.0A peak RMS (per phase)
- # -------------------------------
- [tmc2209 stepper_y]
- uart_pin: PC11
- tx_pin: PC10
- diag_pin: PC1
- driver_SGTHRS: 110
- uart_address: 2
- interpolate: true
- sense_resistor: 0.110
- run_current: 0.57
- stealthchop_threshold: 999999
- # ---------- Z Stepper ----------
- # Creality 42-34, 0.8A peak RMS (per phase)
- # -------------------------------
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- interpolate: true
- sense_resistor: 0.110
- run_current: 0.48
- stealthchop_threshold: 999999
- # ---------- E Stepper ----------
- # Creality 42-40
- # -------------------------------
- [tmc2209 extruder]
- uart_pin: OrbitoolO2:PB5
- interpolate: false
- run_current: 0.75 # 0.75
- sense_resistor = 0.11
- stealthchop_threshold: 0
- #-------------------------------------
- # Board screen
- #-------------------------------------
- [board_pins]
- aliases:
- # EXP1 header
- EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
- EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
- [display]
- lcd_type: emulated_st7920
- en_pin: EXP1_7
- spi_software_sclk_pin: EXP1_6
- spi_software_mosi_pin: EXP1_8
- spi_software_miso_pin: PA3
- encoder_pins: ^EXP1_5, ^EXP1_3
- click_pin: ^!EXP1_2
- #-------------------------------------
- # Additional Macros
- #-------------------------------------
- [gcode_macro G29]
- gcode:
- BED_MESH_CALIBRATE
- [gcode_macro PRINT_START]
- gcode:
- {% set intro_x = printer.configfile.config["stepper_x"]["position_max"]|float * 0.66 %}
- {% set min_x = printer.configfile.config["stepper_x"]["position_min"]|float * 0.1 %}
- {% set min_y = printer.configfile.config["stepper_y"]["position_min"]|float %}
- {% set BED = params.BED|default(60)|float %}
- {% set EXTRUDER = params.EXTRUDER|default(205)|float %}
- SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={BED} ; final bed temp
- M190 S{BED} ; Wait to heat bed
- SET_HEATER_TEMPERATURE HEATER=extruder TARGET=160 ; initial ext temp to avoid oozing
- G21 ; set to mm
- M220 S100 ; print speed 100%
- M221 S100 ; flow rate 100%
- M107 ; disable fans
- G90 ; use absolute positioning
- G28 ; home
- # BED_MESH_CALIBRATE
- G1 X{min_x} Y{min_y} F5000 ; zero x,y
- G1 Z5 F240
- SET_HEATER_TEMPERATURE HEATER=extruder TARGET={EXTRUDER} ; final extruder temp
- M109 S{EXTRUDER} ; Wait to heat extruder
- PRIME_NOZZLE
- [gcode_macro PRINT_END]
- gcode:
- {% set intro_x = printer.configfile.config["stepper_x"]["position_max"]|float * 0.66 %}
- {% set min_x = printer.configfile.config["stepper_x"]["position_min"]|float * 0.1 %}
- {% set min_y = printer.configfile.config["stepper_y"]["position_min"]|float %}
- G1 X{min_x} Y{min_y} F5000 ; move to min
- TURN_OFF_HEATERS
- M107 ; disable fans
- M84 X Y E ; disable motors x,y,e
- [gcode_macro CANCEL_PRINT]
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- M107 ; disable fans
- M84 X Y E ; disable motors x,y,e
- [gcode_macro PRIME_NOZZLE]
- gcode:
- {% set intro_x = printer.configfile.config["stepper_x"]["position_max"]|float * 0.66 %}
- {% set min_x = printer.configfile.config["stepper_x"]["position_min"]|float * 0.1 %}
- {% set min_y = printer.configfile.config["stepper_y"]["position_min"]|float %}
- M83 ; extruder relative mode
- G92 E0
- G1 X{min_x} Y{min_y} Z0.3 F5000 ; move to start position
- G1 X{intro_x} Y{min_y} Z0.3 F1500.0 E15 ; draw first line
- G92 E0
- G1 X{intro_x} Y{min_y + 0.3} Z0.3 F5000 ; move over
- G1 X{min_x / 2} Y{min_y + 0.3} Z0.3 F1500 E35 ; draw second line
- G91 E0
- [gcode_macro m205]
- gcode:
- G4
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 3.735
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.341667, 0.033750, -0.215417, -0.472917, -0.681250
- #*# 0.482917, 0.127500, -0.159583, -0.422083, -0.624167
- #*# 0.489167, 0.216667, -0.081250, -0.342500, -0.579167
- #*# 0.509167, 0.225417, -0.050417, -0.331667, -0.572917
- #*# 0.478750, 0.217500, -0.052083, -0.337500, -0.599167
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 40.0
- #*# max_x = 290.0
- #*# min_y = 40.0
- #*# max_y = 290.0
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 25.757
- #*# pid_ki = 1.419
- #*# pid_kd = 116.873
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 63.946
- #*# pid_ki = 0.563
- #*# pid_kd = 1815.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement