Skip to content

Instantly share code, notes, and snippets.

@ambethia
Last active October 24, 2019 23:27
Show Gist options
  • Save ambethia/2a27520b3b6bf0b399dc2c59089a3b0f to your computer and use it in GitHub Desktop.
Save ambethia/2a27520b3b6bf0b399dc2c59089a3b0f to your computer and use it in GitHub Desktop.
[mcu]
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
[mcu z]
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_9573534363335151D012-if00
pin_map: arduino
restart_method: arduino
[printer]
kinematics: corexy
max_velocity: 350
max_accel: 3000
max_z_velocity: 25
max_z_accel: 350
[stepper_x] # B Stepper
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
step_distance: 0.0125
endstop_pin: ^!P1.28
position_min: 0
position_endstop: 348
position_max: 348
homing_speed: 50
homing_retract_dist: 5
homing_positive_dir: true
[tmc2208 stepper_x]
uart_pin: P1.17
microsteps: 16
interpolate: true
run_current: 0.9
hold_current: 0.9
sense_resistor: 0.110
stealthchop_threshold: 200
[stepper_y] # A Stepper
step_pin: P0.19
dir_pin: P0.20
enable_pin: !P2.8
step_distance: 0.0125
endstop_pin: ^!P1.26
position_min: 0
position_endstop: 352
position_max: 355
homing_speed: 50
homing_retract_dist: 5
homing_positive_dir: true
[tmc2208 stepper_y]
uart_pin: P1.15
microsteps: 16
interpolate: True
run_current: 0.9
hold_current: 0.9
sense_resistor: 0.110
stealthchop_threshold: 200
[stepper_z]
step_pin: z:ar54
dir_pin: !z:ar55
enable_pin: !z:ar38
step_distance: 0.00250
endstop_pin: ^!z:ar18
position_endstop: -0.14
position_max: 350
position_min: -5
homing_speed: 5.0
second_homing_speed: 1.0
homing_retract_dist: 3.0
homing_positive_dir: false
[stepper_z1]
step_pin: z:ar60
dir_pin: z:ar61
enable_pin: !z:ar56
step_distance: 0.00250
[stepper_z2]
step_pin: z:ar46
dir_pin: !z:ar48
enable_pin: !z:ar62
step_distance: 0.00250
[stepper_z3]
step_pin: z:ar26
dir_pin: z:ar28
enable_pin: !z:ar24
step_distance: 0.00250
[extruder]
step_pin: P2.13
dir_pin: P0.11
enable_pin: !P2.12
step_distance: 0.00180180
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_only_distance: 1000
heater_pin: P2.7
max_power: 1.0
sensor_type: ATC Semitec 104GT-2
sensor_pin: P0.24
smooth_time: 3.0
min_extrude_temp: 170
min_temp: 0
max_temp: 300
max_extrude_cross_section: 100
control: pid
pid_kp: 27.526
pid_ki: 0.690
pid_kd: 274.567
[tmc2208 extruder]
uart_pin: P1.8
microsteps: 16
interpolate: False
run_current: 0.9
hold_current: 0.9
sense_resistor: 0.110
stealthchop_threshold: 600
[probe]
pin: ^!z:ar19
x_offset: 0.0
y_offset: 25.0
z_offset: 0.00
speed: 20
samples: 1
sample_retract_dist: 2
[fan]
pin: P2.4
kick_start_time: 0.5
cycle_time: 0.001
[heater_fan heater_fan]
pin: z:ar9
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
fan_speed: 0.8
[controller_fan controller_fan]
pin: P2.3
kick_start_time: 0.5
[heater_bed]
heater_pin: z:ar11
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: z:analog15
smooth_time: 3.0
max_power: 0.75
min_temp: 0
max_temp: 115
control: pid
pid_Kp:41.985
pid_Ki:1.200
pid_Kd:367.235
[idle_timeout]
gcode:
TURN_OFF_HEATERS
M84
timeout: 1800
[verify_heater extruder]
heating_gain: 2
check_gain_time: 1800
hysteresis: 100
max_error: 200
[verify_heater heater_bed]
hysteresis: 0.5
check_gain_time: 120
[homing_override]
axes: z
set_position_z: 0
gcode:
BED_MESH_CLEAR
SET_SKEW CLEAR=1
M117 Homing.
G21
G90
M83
G0 Z5 F2000
G28 X Y
G0 X222.5 Y354 F9000
G28 Z
M117 Cleaning.
SCRUB_NOZZLE
M117 Re-homing Z.
G0 X222.5 Y354 F9000
G28 Z
G0 Z10 F1800
G0 X175 Y175 Z10 F9000
[quad_gantry_level]
gantry_corners:
-59.65, -6
408, 380.66
points:
30,5
30,290
320,290
320,5
speed: 100
horizontal_move_z: 10
retries: 10
retry_tolerance: 0.01
[display]
lcd_type: st7920
cs_pin: z:ar16
sclk_pin: z:ar23
sid_pin: z:ar17
menu_timeout: 40
encoder_pins: ^z:ar31, ^z:ar33
click_pin: ^!z:ar35
kill_pin: ^!z:ar41
[bed_mesh]
speed: 100
horizontal_move_z: 10
min_point: 30,20
max_point: 310,285
probe_count: 5,5
fade_start: 1
fade_end: 2
split_delta_z: .025
move_check_distance: 5.0
mesh_pps: 2,2
algorithm: bicubic
relative_reference_index: 12
[firmware_retraction]
retract_length: 3.0
retract_speed: 30
unretract_extra_length: 0
unretract_speed: 30
[skew_correction]
[force_move]
enable_force_move: true
### Macros ###
[gcode_macro G32]
gcode:
G28
SET_SKEW CLEAR=1
BED_MESH_CLEAR
QUAD_GANTRY_LEVEL
G0 X175 Y175 Z10 F6000
[gcode_macro PRINT_START]
gcode:
G21
G90
M83
M104 S{NOZZLE}
M140 S{BED}
M109 S{NOZZLE}
M190 S{BED}
G28
SET_SKEW XY=141.25,140.10,99.6
M117
default_parameter_NOZZLE: 245
default_parameter_BED: 100
[gcode_macro PRINT_END]
gcode:
M400
SAVE_GCODE_STATE
G91
G0 Z+20 F6000
G90
G0 X175 Y350 F3600
RESTORE_GCODE_STATE
M106 S0
SET_SKEW CLEAR=1
BED_MESH_CLEAR
M117 Finished!
[gcode_macro UNLOAD_FILAMENT]
gcode:
SAVE_GCODE_STATE
M83
G1 E10 F300
G1 E-1000 F1800
RESTORE_GCODE_STATE
[gcode_macro LOAD_FILAMENT]
gcode:
SAVE_GCODE_STATE
M83
G1 E900 F1800
G1 E15 F300
G1 E5 F150
RESTORE_GCODE_STATE
[gcode_macro PURGE_NOZZLE]
variable_position_x: 5
variable_position_y: 7
variable_layer_height: 0.5
variable_length: 20
gcode:
M117 Purging Nozzle...
SAVE_GCODE_STATE
M83
G1 Z20 F6000
G0 X{position_x} Y{position_y} Z{layer_height} F3000
G1 X{position_x + length} E{length * 1.4} F200
G1 X{position_x + length + 5} Z0.1 E0 F3000
G1 E-2
G1 Z0
G1 Z1
RESTORE_GCODE_STATE
[gcode_macro SCRUB_NOZZLE]
gcode:
G91
G1 Z10
G90
G1 X135 Y352 F9000
G1 X110 Z-0.5 F9000
G1 X160
G1 X110
G1 X160
G1 Z10 F6000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment