Sensorless Homing does not work for Duet 3
-
Hello, I'm trying to configure my printer to use sensorless homing. I've read the documentation and created homing config, but when I try to home printer's head, it keeps bashing on the walls. How do I fix this?
My homex.g config:
;homex.g M915 X Y S2 F0 H75 R0 M574 X1 Y1 S3 M569 P0 D3 V40 M569 P1 D3 V40 M913 X50 Y50 M566 X1 Y1 M201 X300 Y300 G4 P100 G91 ;G1 H2 X0.2 Y0.2 F3000 G4 P100 M400 G1 H1 X-350 F1200 G1 X5 F1200 M400 M913 X100 Y100 M569 P0 D3 V1000 M569 P1 D3 V1000 M566 X600 Y600 M201 X3500.00 Y3500.00 G90
Thanks!
-
@grantstevens have you read https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#main ?
Which firmware version are you using, and which Duet 3 do you have?
You have set the M915 H value to 75, well below the default which is 200. You may find it difficult to get stall detection working at such slow speeds. Try increasing that to 200, and increase the homing speed (F parameter in the G1 H1 commands) too. On my E3D tool changer using Duet 3 MB6HC I use these values. In config.g:
M915 P1:2 S2 F0 H280 R0
Drivers 1 and 2 are the X and Y motors. In homex.g:
G91 ; use relative positioning G1 H2 X0.5 Y0.5 F10000 ; energise motors to ensure they are not stalled M400 ; make sure everything has stopped before we change the motor currents M913 X25 Y25 ; drop motor currents to 25% G1 H2 Z3 F5000 ; lift Z 3mm G1 H1 X-400 F3000 ; move left 400mm, stopping at the endstop G1 H2 X2 Y2 F2000 ; move away from end G1 H1 X-400 F3000 ; repeat the homing move because it doesn't always work first time G1 H2 X2 Y2 F2000 ; move away from end G1 H2 Z-3 F1200 ; lower Z G90 ; back to absolute positioning M400 ; make sure everything has stopped before we reset the motor currents M913 X100 Y100 ; motor currents back to 100%
-
@dc42 Thanks for response! I have
FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet 3 MB6HC v0.6 or 1.0
Yes, i've read the manual on sensorless homing, but haven't managed to configure it for my printer. I tried your config for homing X axis and it worked like a charm, however modifying it for Y doesn't work and my X axis keeps bashing on the wall
-
I figured that for some reason in
M915 P0:1 S2 F0 H280 R0
parameterP0:1
does not work, however if I remove P parameter homing works fine -
undefined Phaedrux marked this topic as a question
-
undefined Phaedrux has marked this topic as solved
-
@grantstevens can you post the M915 commands you are using wherever you have them (config.g and your homing files?)