From 79bff0e08c4c206274406cb75d73c85b78d84902 Mon Sep 17 00:00:00 2001 From: Martyn Date: Fri, 20 Jun 2025 13:19:38 +0100 Subject: [PATCH] Everything but scan working --- carto.cfg | 26 ++++++++++++++++++++++ printer.cfg | 64 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 62 insertions(+), 28 deletions(-) create mode 100644 carto.cfg diff --git a/carto.cfg b/carto.cfg new file mode 100644 index 0000000..72e77c2 --- /dev/null +++ b/carto.cfg @@ -0,0 +1,26 @@ +[mcu scanner] +canbus_uuid: ef8cd9ee57d8 + +[scanner] +mcu: scanner +x_offset: 0 +y_offset: 15 +backlash_comp: 0.00478 +sensor: cartographer +sensor_alt: carto +mesh_runs: 2 + +[bed_mesh] +zero_reference_position: 175,175 +speed: 200 +horizontal_move_z: 5 +mesh_min: 30,30 +mesh_max: 310,310 +probe_count: 30,30 +algorithm: bicubic + +[temperature_sensor Cartographer_MCU] +sensor_type: temperature_mcu +sensor_mcu: scanner +min_temp: 0 +max_temp: 105 diff --git a/printer.cfg b/printer.cfg index 912d52f..fd682cf 100644 --- a/printer.cfg +++ b/printer.cfg @@ -36,6 +36,7 @@ canbus_uuid: 970febd72165 [include stealthburner_leds.cfg] [include bedfans.cfg] [include martyn_macros.cfg] +[include carto.cfg] [printer] kinematics: corexy @@ -115,13 +116,13 @@ enable_pin: !PG5 rotation_distance: 40 gear_ratio: 80:16 microsteps: 32 -#endstop_pin: probe:z_virtual_endstop -endstop_pin: !ebb36:PB7 +endstop_pin: probe:z_virtual_endstop +#endstop_pin: !ebb36:PB7 ## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0) ## (+) value = endstop above Z0, (-) value = endstop below ## Increasing position_endstop brings nozzle closer to the bed ## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config -position_endstop: 0 +#position_endstop: 0 position_max: 310 position_min: -5 homing_speed: 15 @@ -422,22 +423,6 @@ sensor_type: temperature_mcu # SET_TMC_CURRENT STEPPER=stepper_z2 CURRENT={run_current} # SET_TMC_CURRENT STEPPER=stepper_z3 CURRENT={run_current} -[bed_mesh] -speed: 800 -horizontal_move_z: 2 -mesh_min: 30, 30 -mesh_max: 310, 310 -zero_reference_position: 175, 175 -mesh_pps: 9, 9 -algorithm: bicubic -bicubic_tension: 0.2 -probe_count: 9,9 - -[gcode_macro BED_MESH_CALIBRATE] -rename_existing: BTT_BED_MESH_CALIBRATE -gcode: - BTT_BED_MESH_CALIBRATE METHOD=rapid_scan - [input_shaper] shaper_freq_x: 91.4 shaper_freq_y: 70.0 @@ -452,15 +437,15 @@ enable_force_move: True #*# [bed_mesh default] #*# version = 1 #*# points = -#*# 0.025126, 0.014223, 0.018317, 0.053334, 0.047339, 0.039272, 0.047339, 0.056692, 0.027783 -#*# 0.027113, 0.048656, 0.032502, 0.043309, 0.021724, 0.040593, 0.066647, 0.070654, 0.031177 -#*# 0.012886, 0.037950, 0.025126, 0.034566, 0.041913, 0.029851, 0.060685, 0.037950, 0.045287 -#*# 0.008814, 0.000616, 0.002713, 0.019650, 0.006722, 0.012234, 0.034566, 0.039272, 0.032502 -#*# -0.010299, 0.002983, 0.000616, 0.016984, -0.000727, 0.001959, 0.020393, 0.029104, 0.019650 -#*# 0.004043, -0.013759, 0.014906, 0.029851, 0.014906, 0.020393, 0.045287, 0.049972, 0.025126 -#*# 0.022390, 0.005389, 0.023055, 0.039208, 0.046605, 0.042649, 0.065350, 0.040593, 0.052020 -#*# 0.029104, 0.028816, 0.013570, 0.045287, 0.047339, 0.062664, 0.084536, 0.061355, 0.049972 -#*# 0.048656, 0.030141, 0.016984, 0.029851, 0.034566, 0.042649, 0.048656, 0.075290, 0.045287 +#*# 0.025126, 0.014223, 0.018317, 0.053334, 0.047339, 0.039272, 0.047339, 0.056692, 0.027783 +#*# 0.027113, 0.048656, 0.032502, 0.043309, 0.021724, 0.040593, 0.066647, 0.070654, 0.031177 +#*# 0.012886, 0.037950, 0.025126, 0.034566, 0.041913, 0.029851, 0.060685, 0.037950, 0.045287 +#*# 0.008814, 0.000616, 0.002713, 0.019650, 0.006722, 0.012234, 0.034566, 0.039272, 0.032502 +#*# -0.010299, 0.002983, 0.000616, 0.016984, -0.000727, 0.001959, 0.020393, 0.029104, 0.019650 +#*# 0.004043, -0.013759, 0.014906, 0.029851, 0.014906, 0.020393, 0.045287, 0.049972, 0.025126 +#*# 0.022390, 0.005389, 0.023055, 0.039208, 0.046605, 0.042649, 0.065350, 0.040593, 0.052020 +#*# 0.029104, 0.028816, 0.013570, 0.045287, 0.047339, 0.062664, 0.084536, 0.061355, 0.049972 +#*# 0.048656, 0.030141, 0.016984, 0.029851, 0.034566, 0.042649, 0.048656, 0.075290, 0.045287 #*# x_count = 9 #*# y_count = 9 #*# mesh_x_pps = 9 @@ -476,3 +461,26 @@ enable_force_move: True #*# xy_skew = 0.002269819397871509 #*# xz_skew = 0.0 #*# yz_skew = 0.0 +#*# +#*# [scanner] +#*# mode = touch +#*# scanner_touch_threshold = 3000 +#*# scanner_touch_speed = 3 +#*# +#*# [scanner model default] +#*# model_coef = 1.4660235274886952, +#*# 1.8088603709207522, +#*# 0.7349055898946472, +#*# 0.2687409591730736, +#*# 0.47813534708329936, +#*# 0.669955108628895, +#*# -0.3235976797345473, +#*# -0.6702739199959514, +#*# 0.2940760023005045, +#*# 0.3745733001336773 +#*# model_domain = 3.2050348407481734e-07,3.335190657416707e-07 +#*# model_range = 0.200000,5.100000 +#*# model_temp = 30.248095 +#*# model_offset = 0.00000 +#*# model_mode = touch +#*# model_fw_version = CARTOGRAPHER 5.0.0