From 5be90cd8dcccbc1e7a2a1a7b3c1d0c70c5631a63 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sun, 1 Aug 2021 12:30:41 +0100 Subject: [PATCH] prusa-mini: add pid and heightmap calibration --- printer.cfg | 56 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/printer.cfg b/printer.cfg index 1218aaf..564f740 100644 --- a/printer.cfg +++ b/printer.cfg @@ -29,7 +29,6 @@ [virtual_sdcard] path: ~/gcode_files - [stepper_x] step_pin: PD1 dir_pin: PD0 @@ -78,10 +77,11 @@ filament_diameter: 1.750 heater_pin: PB1 sensor_type: ATC Semitec 104GT-2 sensor_pin: PC0 -control: pid -pid_Kp: 7 -pid_Ki: 0.5 -pid_Kd: 45 +#control: pid +# Prusa's firmware defaults. +#pid_Kp: 7 +#pid_Ki: 0.5 +#pid_Kd: 45 min_temp: 10 max_temp: 305 @@ -124,10 +124,11 @@ sense_resistor: 0.22 heater_pin: PB0 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA4 -control: pid -pid_Kp: 120 -pid_Ki: 1.5 -pid_Kd: 600 +#control: pid +# Prusa's firmware defaults. +#pid_Kp: 120 +#pid_Ki: 1.5 +#pid_Kd: 600 min_temp: 10 max_temp: 110 @@ -181,6 +182,7 @@ restart_method: command [printer] kinematics: cartesian +# Prusa firmware defaults. max_velocity: 180 max_accel: 1250 max_z_velocity: 12 @@ -194,3 +196,39 @@ cs_pin: PC9 rs_pin: PD11 encoder_pins: ^PE13, ^PE15 click_pin: ^!PE12 + +#*# <---------------------- SAVE_CONFIG ----------------------> +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. +#*# +#*# [extruder] +#*# control = pid +#*# pid_kp = 21.307 +#*# pid_ki = 0.911 +#*# pid_kd = 124.644 +#*# +#*# [heater_bed] +#*# control = pid +#*# pid_kp = 57.528 +#*# pid_ki = 1.059 +#*# pid_kd = 780.942 +#*# +#*# [probe] +#*# z_offset = 1.480 +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# -0.080000, -0.012500, 0.085000, 0.021250 +#*# -0.110000, -0.061250, -0.072500, -0.017500 +#*# -0.026250, -0.112500, -0.081250, -0.017500 +#*# -0.123750, -0.120000, -0.072500, -0.072500 +#*# tension = 0.2 +#*# min_x = 10.0 +#*# algo = lagrange +#*# y_count = 4 +#*# mesh_y_pps = 2 +#*# min_y = 10.0 +#*# x_count = 4 +#*# max_y = 166.99 +#*# mesh_x_pps = 2 +#*# max_x = 140.98