From 310b46245ef52784da771e634c2fdfd68657fc9f Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sun, 12 Mar 2023 18:56:57 +0100 Subject: [PATCH] ercf: calibrate --- ercf/hardware.cfg | 6 ++++-- ercf/software.cfg | 4 ++-- ercf/vars.cfg | 10 +++++----- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ercf/hardware.cfg b/ercf/hardware.cfg index 4f0ac54..2fdd503 100644 --- a/ercf/hardware.cfg +++ b/ercf/hardware.cfg @@ -58,8 +58,10 @@ stealthchop_threshold: 5000 [servo ercf_servo] pin: ercf:gpio21 maximum_servo_angle: 180 -minimum_pulse_width: 0.00085 -maximum_pulse_width: 0.00215 +# minimum_pulse_width: 0.00085 +# maximum_pulse_width: 0.00215 +minimum_pulse_width: 0.001 +maximum_pulse_width: 0.002 [duplicate_pin_override] pins: ercf:gpio15 diff --git a/ercf/software.cfg b/ercf/software.cfg index 4fc6e2c..7983ebd 100644 --- a/ercf/software.cfg +++ b/ercf/software.cfg @@ -4,7 +4,7 @@ [ercf] # Encoder -encoder_pin: ercf:gpio15 # easy brd +encoder_pin: ^ercf:gpio15 # easy brd # encoder_resolution: 1.365188 # in mm encoder_resolution: 1.349528 # from `ercf_calibrate_encoder` # Speeds and accels @@ -55,7 +55,7 @@ variable_servo_up_angle: 20 # Default values: # MG90S servo : 140 # SAVOX SH0255MG : 30 -variable_servo_down_angle: 130 # xk +variable_servo_down_angle: 120 # xk # Threshold for the final load check (i.e. the move from the toolhead sensor to the nozzle) # Check the _ERCF_GET_LOAD_THRESHOLD command to get the proper value for your setup variable_final_load_check_threshold: 10.0 diff --git a/ercf/vars.cfg b/ercf/vars.cfg index cc21fda..59a9861 100644 --- a/ercf/vars.cfg +++ b/ercf/vars.cfg @@ -1,15 +1,15 @@ [Variables] ercf_calib_0 = 1.0 -ercf_calib_1 = 0.999635726394 +ercf_calib_1 = 1.0017808674381732 ercf_calib_10 = 1.0 ercf_calib_11 = 1.0 -ercf_calib_2 = 1.00178086744 -ercf_calib_3 = 1.00070714732 -ercf_calib_4 = 1.00070714732 +ercf_calib_2 = 1.0007071473230196 +ercf_calib_3 = 0.9996357263944082 +ercf_calib_4 = 1.0050158971500294 ercf_calib_5 = 0.999635726394 ercf_calib_6 = 1.0 ercf_calib_7 = 1.0 ercf_calib_8 = 1.0 ercf_calib_9 = 1.0 -ercf_calib_ref = 774.629072 +ercf_calib_ref = 782.7262400000001