From 568fae4b3912938a332ef4b2c47c88fa3a3e7338 Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 21 Feb 2022 13:42:29 +0000 Subject: [PATCH] Multiple fixe: accell, bed, filament sensor, tune e-steps Add support to accelerometer Tune probe offset on Z Tune extrusor steps Add accel. files to .gitignore --- .gitignore | 1 + bed.g | 2 +- config.g | 42 +++++++++++++++++++++++++++--------------- resurrect.g | 39 --------------------------------------- 4 files changed, 29 insertions(+), 55 deletions(-) delete mode 100644 resurrect.g diff --git a/.gitignore b/.gitignore index 9ccbddd..cc17f2b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dwc-settings.json heightmap.csv config-override.g +accelerometer/* diff --git a/bed.g b/bed.g index a778789..22e2c93 100644 --- a/bed.g +++ b/bed.g @@ -4,7 +4,6 @@ M561 ; clear any bed transform - G30 P0 X5 Y5 Z-99999 ; probe near a leadscrew G30 P1 X5 Y20 Z-99999 ; probe near a leadscrew G30 P2 X20 Y5 Z-99999 ; probe near a leadscrew @@ -17,4 +16,5 @@ G30 P8 X470 Y5 Z-99999 ; probe near a leadscrew G30 P9 X450 Y5 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors M280 P0 S160 ; clear and reset BL touch +G1 Z10 F300 G29 S1 ; probe the bed and enable compensation diff --git a/config.g b/config.g index 2481be7..0f74146 100644 --- a/config.g +++ b/config.g @@ -9,19 +9,19 @@ M550 P"vcore3" ; set printer name fqdn: vcor M669 K1 ; select CoreXY mode ; Drives -M569 P0.0 S0 D3 H50 V50 ; physical drive 0.0 goes backwards -M569 P0.1 S0 D3 H50 V50 ; physical drive 0.1 goes backwards -M569 P0.2 S0 D3 H50 V50 ; physical drive 0.2 goes backwards -M569 P0.3 S1 D3 H50 V50 ; physical drive 0.3 goes forwards -M569 P0.4 S1 D3 H50 V50 ; physical drive 0.4 goes forwards -M569 P0.5 S0 D3 H50 V50 ; physical drive 0.5 goes backwards +M569 P0.0 S0 D3 H500 V500 ; physical drive 0.0 goes backwards +M569 P0.1 S0 D3 H500 V500 ; physical drive 0.1 goes backwards +M569 P0.2 S0 D3 H500 V500 ; physical drive 0.2 goes backwards +M569 P0.3 S1 D3 H500 V500 ; physical drive 0.3 goes forwards +M569 P0.4 S1 D3 H500 V500 ; physical drive 0.4 goes forwards +M569 P0.5 S0 D2 H500 V500 ; physical drive 0.5 goes backwards M584 X0.3 Y0.4 Z0.2:0.1:0.0 E0.5 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation -M92 X80.00 Y80.00 Z1600.00 E835 ; set steps per mm -M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) -M203 X20800.00 Y20800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) -M201 X6000.00 Y6000.00 Z3000.00 E3600.00 ; set accelerations (mm/s^2) -M906 X2000 Y2000 Z1200 E800 I20 ; set motor currents (mA) and motor idle factor in per cent +M92 X80.00 Y80.00 Z1600.00 E794 ; set steps per mm +M566 X500.00 Y500.00 Z4.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) +M203 X10800.00 Y10800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) +M201 X10800.00 Y10800.00 Z400.00 E3600.00 ; set accelerations (mm/s^2) +M906 X1500 Y1500 Z800 E800 I20 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits @@ -34,12 +34,13 @@ M574 Y2 S1 P"io1.in" ; configure active-high endst ; Z-Probe M950 S0 C"io7.out" ; create servo pin 0 for BLTouch -M558 P9 C"^io7.in" H2 F200 T10000 A5 ; set Z probe type to bltouch and the dive height + speeds, run probing 5x +M558 P9 C"^io7.in" H5 F300 T10000 A5 S0.05 R0.2 ; set Z probe type to bltouch and the dive height (H) + speeds (F), run probing 5x + ; tolerance when probing mm (S), probe recovery time (R), ;; Pay special attention to the values bellow on G31, the Z value needs to be validated for your printer ;; Start with something like 0.5 ;; Documentation available: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe -G31 P500 X-35 Y-0.5 Z3.175 ; set Z probe trigger value, offset and trigger height -M671 X-6:250:503 Y0:511:0 S5 ; define positions of Z leadscrews or bed levelling screws +G31 P500 X-35 Y-0.5 Z2.525 ; set Z probe trigger value, offset and trigger height +M671 X-6:250:503 Y0:511:0 S100 ; define positions of Z leadscrews or bed levelling screws M557 X5:465 Y5:465 P20 ; define 20x20 mesh grid ; Heaters @@ -72,7 +73,18 @@ G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Filament sensor - Duet3D laser filament monitor -M591 D0 P5 C"io3.in" R40:120 E3.0 S1 ; Duet3D laser sensor for extruder drive 0, connected to endstop input 4 (E0), tolerance 40 to 120%, 3mm comparison length, enabled filament monitoring +M591 D0 P5 C"io3.in" R30:125 E5.0 S1 ; Duet3D laser sensor for extruder drive 0, connected to endstop input 4 (E0), tolerance 30 to 125%, 5mm comparison length, enabled filament monitoring + +; Accelerometer - LIS3HD +;; More info: https://duet3d.dozuki.com/Wiki/Accelerometers +;; More info: regarding sensor orientation: https://www.dropbox.com/s/hu2w5mk57l4zqpg/Accelerometer%20Orientation.pdf +;; Possible orientations 01,02,05,06 +M955 P0 C"spi.cs3+spi.cs2" I01 S1344 R10; all wires connected to temperature daughter board connector, Orientation 01, Sampling rate 1344, 10b resolution + + +;M593 P"zvd" F40.5 ; use ZVD input shaping to cancel ringing at 40.5Hz +;M593 P"none" ; disable input shaping +;M593 P"custom" H0.4:0.7 T0.0135:0.0135 ; use custom input shaping ; Miscellaneous M575 P1 S1 B57600 ; enable support for PanelDue diff --git a/resurrect.g b/resurrect.g deleted file mode 100644 index b81764b..0000000 --- a/resurrect.g +++ /dev/null @@ -1,39 +0,0 @@ -; File "0:/gcodes/CFFFP_accel_support.gcode" resume print after print paused at 2022-02-13 17:05 -G21 -M140 P0 S90.0 -G29 S1 -G92 X215.634 Y137.576 Z0.400 -G60 S1 -G10 P0 S230 R230 -T0 P0 -M98 P"resurrect-prologue.g" -M116 -M290 X0.000 Y0.000 Z0.000 R0 -T-1 P0 -T0 P6 -; Workplace coordinates -G10 L2 P1 X0.00 Y0.00 Z0.00 -G10 L2 P2 X0.00 Y0.00 Z0.00 -G10 L2 P3 X0.00 Y0.00 Z0.00 -G10 L2 P4 X0.00 Y0.00 Z0.00 -G10 L2 P5 X0.00 Y0.00 Z0.00 -G10 L2 P6 X0.00 Y0.00 Z0.00 -G10 L2 P7 X0.00 Y0.00 Z0.00 -G10 L2 P8 X0.00 Y0.00 Z0.00 -G10 L2 P9 X0.00 Y0.00 Z0.00 -G54 -M106 S0.00 -M106 P1 S0.00 -M116 -G92 E-1.00000 -M83 -M486 S-1 -G17 -M23 "0:/gcodes/CFFFP_accel_support.gcode" -M26 S788 -G0 F6000 Z2.400 -G0 F6000 X215.634 Y137.576 -G0 F6000 Z0.400 -G1 F600.0 P0 -G21 -M24