##########################################################################################################
## ##
## Printer ##
## ##
##########################################################################################################
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 10
max_z_accel: 250 # <---------- This can go much higher, I use 1250
max_accel_to_decel: 1250 # <----------- This can be used to reduce machine vibration when using high max_accel values (I usually run 5000-6000)
square_corner_velocity: 5 # <----------- See above
[mcu]
serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6021A9T-if00-port0
pin_map: arduino
# baud: 250000 # <----------- Most boards default to 115200, even if they can handle 250000
##########################################################################################################
## ##
## Auto Bed Leveling ##
## ##
##########################################################################################################
[probe]
pin: ^!ar18
x_offset: 47
y_offset: 0.0
speed: 2.0
sample_retract_dist: 2.75 <------ Why? not used if you don't collect multiple samples
lift_speed: 5.0
# samples: 5 <------ modern Z-probes are good, but not good enough to trust a single sample
[bed_mesh]
speed: 150
horizontal_move_z: 3
min_point: 5,40
max_point: 235,265
probe_count: 4,4 <------ the bicubic regression method works better with odd-numbered grid dimensions
algorithm: bicubic
mesh_pps: 3,3
[z_tilt]
z_positions: -40,150
330,150
points: 0,150
245,150
##########################################################################################################
## ##
## Steppers ##
## ##
##########################################################################################################
[stepper_x]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
step_distance: 0.0125
endstop_pin: ^ar3
position_endstop: 0
position_min: 0
position_max: 280
homing_speed: 50
#homing_retract_dist: 10 <---------- these are beneficial, and only add a couple of seconds to your homing sequence
#homing_retract_speed: 25
#second_homing_speed: 10
[stepper_y]
step_pin: ar60
dir_pin: !ar61
enable_pin: !ar56
step_distance: 0.0125
endstop_pin: ^ar14
position_endstop: -12
position_min: -12
position_max: 288
homing_speed: 50
#homing_retract_dist: 10
#homing_retract_speed: 25
#second_homing_speed: 10
[stepper_z]
step_pin: ar46
dir_pin: ar48
enable_pin: !ar62
step_distance: 0.0025
endstop_pin: probe:z_virtual_endstop
position_min: -5.0
position_endstop: 0.0
position_max: 265
#homing_speed: 10
#homing_retract_dist: 5
#homing_retract_speed: 10
#second_homing_speed: 2.5
[stepper_z1]
step_pin: ar36
dir_pin: ar34
enable_pin: !ar30
step_distance: 0.0025
##########################################################################################################
## ##
## Heaters ##
## ##
##########################################################################################################
[extruder]
step_pin: !ar26
dir_pin: ar28
enable_pin: !ar24
step_distance: 0.002408
nozzle_diameter: 0.4
filament_diameter: 1.750
heater_pin: ar10
sensor_type: ATC Semitec 104GT-2
sensor_pin: analog13
min_temp: 0
max_temp: 300
# pressure_advance: 0.05
control: pid
pid_kp: 30.371
pid_ki: 1.131
pid_kd: 203.867
[verify_heater extruder]
max_error: 200
hysteresis: 2
heating_gain: 1
[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
min_temp: 0
max_temp: 130
control: pid
pid_kp: 70.482
pid_ki: 0.826
pid_kd: 1503.908
##########################################################################################################
## ##
## TMC2208 ##
## ##
##########################################################################################################
[tmc2208 stepper_x]
uart_pin: ar63
microsteps: 16
run_current: 0.71
#hold_current: 0.2 <------ Defaults to the same as run_current, which is unneccessary and puts a lot of thermal strain on your steppers
stealthchop_threshold: 300
[tmc2208 stepper_y]
uart_pin: ar40
microsteps: 16
run_current: 0.71
#hold_current: 0.2
stealthchop_threshold: 300
[tmc2208 stepper_z]
uart_pin: ar42
microsteps: 16
run_current: 0.6
#hold_current: 0.5 <----- Z-axis hold current should be higher than X or Y because a lot of time is spent holding the z-axis in place while the X and Y move
stealthchop_threshold: 300
[tmc2208 stepper_z1]
uart_pin: ar44
microsteps: 16
run_current: 0.6
#hold_current: 0.5
stealthchop_threshold: 300
[tmc2208 extruder]
uart_pin: ar64
microsteps: 16
run_current: 0.8
#hold_current: 0.4
stealthchop_threshold: 0 <-------- ALWAYS ZERO! Using stealthchop in fast-paced extrude-retract-extrude sequences will cause it to disable the driver entirely, without throwing an error (the print will continue like nothing is wrong)
#interpolate: False <-------- Same thing. The is True by default, which doesnt play nice with extruders
##########################################################################################################
## ##
## Macros ##
## ##
##########################################################################################################
[gcode_macro M600]
default_parameter_X: 50
default_parameter_Y: 0
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
[gcode_macro G80]
gcode:
G28
Z_TILT_ADJUST
BED_MESH_CALIBRATE
[gcode_macro G81]
gcode:
BED_MESH_OUTPUT
##########################################################################################################
## ##
## Other ##
## ##
##########################################################################################################
[fan]
pin: ar9
[idle_timeout]
gcode: <---- why do you have this section?
[pause_resume]
recover_velocity: 50.0
[force_move]
enable_force_move: True
[filament_switch_sensor my_sensor]
pause_on_runout: True
#event_delay: 3 <----- runout sensor must be triggered for 3 seconds before halting the print. Prevents accidental runout vents, which are a thing
runout_gcode:
M600
switch_pin: ^!ar19
[homing_override]
set_position_z: 15
axes: z
gcode: G91 <----- I'm guessing you're using these two lines to prevent from dragging the nozzle on the bed. This should be a relative command, not absolute
G1 Z30 F480
G91 <------
G28 X0 Y0 <--- techncially the 0's are unnecessary
;G1 X125 Y125 F3600
G1 X150 Y150 F3600
G28 Z0
G1 Z10 F480
[virtual_sdcard]
path: ~/.octoprint/uploads/
##########################################################################################################
## ##
## Display ##
## ##
##########################################################################################################
[display]
lcd_type: st7920
cs_pin: ar16
sclk_pin: ar23
sid_pin: ar17
encoder_pins: ^ar31, ^ar33
click_pin: ^!ar35
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*#
#*# [bed_mesh default]
#*# points =
#*# 0.067500, 0.135000, 0.025000, -0.157500
#*# -0.025000, 0.037500, 0.007500, -0.180000
#*# 0.002500, 0.005000, -0.050000, -0.217500
#*# 0.175000, 0.155000, 0.050000, -0.137500
#*# x_count = 4
#*# y_count = 4
#*# min_x = 5.0
#*# max_x = 234.98
#*# min_y = 40.0
#*# max_y = 265.0
#*# x_offset = 47.0
#*# y_offset = 0.0
#*# mesh_x_pps = 3
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.2
#*#
#*# [probe]
#*# z_offset = 0.250
Comments