Sensorless homing issues
-
Hey, i dont know why, i cant create a new post, sadly. So im trying my luck here.
So, ive been trying to set up sensorless homing and am completely unable to.
My setup :
Duet 3 Mini 5+
E3D High Torque MotorsI've followed the official guide step by step and tried many parameters. I believe i was on 3.2 firmware, which i now updated to the latest which is like 3.3beta2
I had it working according to a guide on this forum where it was setup like this :
M400 M913 Y75 M915 Y S-15 R0 F0 H200 M569 P0.0 V0 G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 H2 Y20 F6000 G1 H1 Y-415 F4000 ; move quickly to X axis endstop and stop there (first pass) ;G1 H2 X10 F6000 ; go back a few mm ;G1 H1 X-415 F2000 ; move slowly to X axis endstop once more (second pass) G1 H2 Z-5 F6000 ; lower Z again G90 ; absolute positioning M913 Y100
Sensorless homing worked at that point, but i had a issue where in stealthchop the motors made a horrible noise, much louder than in spreadcycle for whatever reason.
I than turned the board off, plugged in a second motor (had just the X motor plugged in atm) and that issue went away, but here i go with the same issue as before - when homing, my motor reaches the "end of the axis" and starts skipping steps without rotating the shaft, just vibrates on one spot.
Thats even if the load is taken off, it gets stuck in this state. I know my description is pretty hektic but i have honestly no idea of why this is happening... Anyone have any ideas ? Thank you !
- list item
-
@tomkamin Ok so i managed to log off and in, and i was able to create this post. Thank god for that hah.
I also wanted to add, i was on 3.2.2 when trying innitialy.
I want to ask as well, can i fry my drivers when testing this ? I had a couple of short to grounds and one or two overheats...will i be ok ?
-
Can you post your full config.g as well?
Do you get those error messages for short to ground etc normally, or just after trying stall homing a few times?
-
@phaedrux will post the config today. I've asked in some discord and got it to work relatively well now, without shorts etc. But what i don't understand is how should i correctly setup the switching between stealthchop and spread cycle. The way i got it to work is i have a m569 P0 V10 command at the start of HomeX and m569P0 V2000 (default) at the end. It seems a little odd tho. That i need to set that up. However the issue with stealthchop being super loud remains. It vibrates my motor when I'm doing the homing and its forced into stealthchop. I'll post the config in an hour or so.
-
Have you dsone this?
"You need to run the stealthChop tuning procedure first. You can do this is the homing files.This is what I suggest:
Execute a tiny move (1 or 2 microsteps) away from the homing direction.
Pause for 100ms using G4.
Execute a small move away from the homing direction, e.g. 10mm.
Execute the homing move.
Don't forget to reduce current for the homing move (M913)." -
Configuration file for Duet 3 Mini 5+ (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Wed Apr 21 2021 17:40:42 GMT+0200 (Středoevropský letní čas) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"My Printer" ; set printer name ;M669 K1 unqote to make CoreXY ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M584 X0.0 Y0.1 Z0.2 ; set drive mapping M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation M92 X160.00 Y160.00 Z400.00 ; set steps per mm M566 X1200 Y1200 Z60.00 ; set maximum instantaneous speed changes (mm/min) M203 X50000.00 Y50000.00 Z180.00 ; set maximum speeds (mm/min) M201 X20000.00 Y20000.00 Z20.00 ; set accelerations (mm/s^2) M906 X1400 Y1400 Z1400 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X510 Y510 Z510 S0 ; set axis maxima ; Endstops M574 X1 S3 ; configure sensorless endstop for low end on X M574 Y1 S3 ; configure sensorless endstop for low end on Y ; Z-Probe M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed M557 X15:215 Y15:195 S20 ; define mesh grid ; Heaters M140 H-1 ; disable heated bed (overrides default heater mapping) ; Fans ; Tools M563 P0 F0 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined
-
@tomkamin I cant find a calibration rutin for stealthchop in your homeall. You are also doing 2 passes which are only needed for switches. Here are my homeall.g that works for me with my mini 5+. I know it is messy, i need to clean this up but it works atleast.
M400 ; finishes all current moves and and thus clears the buffer
M913 X60 Y60 ; drop motor current to 33%
M569 P0.0 D3 V60 ; reduce V to ensure stealthChop is enabled
M569 P0.1 D3 V60 ; reduce V to ensure stealthChop is enabled
M915 P0 S0 R0 F0 H400 ; sensitivity X, don’t take action, don’t filter -4
M915 P1 S0 R0 F0 H400 ; sensitivity Y, don’t take action, don’t filter -4
M400 ; finishes all current moves and and thus clears the buffer
G91 ; relative positioning
G1 H1 Z10 F5000 ; lift Z relative to current position
G1 H1 X5
G4 P300
G1 H1 X20 F3000
G1 H1 X-400 F3000 ; move to X
G1 H1 Y-5
G4 P200
G1 H1 Y-20 F3000
G1 H1 Y400 F3000 ; move to Y
M913 X100 Y100 ; return current to 100%
G90 ; absolute positioning
G1 X167.5 Y167.5 F5000
G30 ; home Z by probing the bed
M402 ; retract probe
G1 Z5 F5000
M400 ; finishes all current moves and and thus clears the buffer
M569 P0.0 D2 ; restore default for motor
M569 P0.1 D2 ; restore default for motor
M913 X100 Y100 ; return current to 100%
M400 ; finishes all current moves and and thus clears the buffer