• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

RRF 3.4.0 Sensorless Homing Issues after Power Cycle

Scheduled Pinned Locked Moved Solved
Beta Firmware
8
28
1.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    flobler @gloomyandy
    last edited by flobler 4 Oct 2022, 12:14 10 Apr 2022, 12:10

    @gloomyandy Thanks for the input! I tried to make the move longer and also to add the second M400 which both did not change the behavior.

    What I also tried is to play with the sensitivity for stall detection as I thought maybe something changed here and the drivers are just being configured too sensitive. I used S3 for both axes on RRF 3.3. With RRF 3.4.0 I went all the way up to the least sensitive value (63) which also did not help. The motors still stall immediately when trying to home after a power-cycle.

    So to me there is two things than could be going wrong:

    a) I am doing something wrong with the tuning move (but I am not sure what and the docs are not very clear here); then I am still a bit confused why it did not happen in RRF 3.3

    b) Something changed from RRF 3.3 to 3.4.0 that breaks the stealthChop tuning procedure

    If any of my other settings were wrong (i.e. speed, current, acceleration or jerk) then I don't think the motors would home properly after this initial false stall after a power-cycle.

    1 Reply Last reply Reply Quote 0
    • undefined
      flobler
      last edited by flobler 24 Apr 2022, 13:30

      @dc42 @Phaedrux I have not managed to figure out what I am doing wrong yet and the behavior is still consistent across two machines.

      Do you have any hints? Is my driver tuning procedure configured wong?

      Thank you 🙂

      P.S.: May I aske why this is categorized under "Beta Firmware"?

      undefined 1 Reply Last reply 24 Apr 2022, 14:08 Reply Quote 0
      • undefined
        oliof @flobler
        last edited by 24 Apr 2022, 14:08

        @flobler I had issues with sensorless homing after updating to 3.4 until I did M569 Pxx D3 at the beginning of the homing file and switched back to normal hybrid mode doing M569 Pxxx D2 at the end. Maybe that helps. Also the documentation recommends homing moves to be above 40mm/sec so I moved to 40mm/sec just so. With the reduced motor power it is just a light tap and the axis is homed.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        undefined 1 Reply Last reply 24 Apr 2022, 14:10 Reply Quote 1
        • undefined
          flobler @oliof
          last edited by 24 Apr 2022, 14:10

          @oliof thank you, I will give that a go and report back!

          1 Reply Last reply Reply Quote 0
          • undefined
            flobler
            last edited by 24 Apr 2022, 14:56

            @oliof this did not help in my case. I think in your case you utilized that the drivers were defaulting to stealthChop before going to RRF 3.4.0 and therefore you needed to give them instructions to use stealthChop2 after the upgrade (as with RRF 3.4.0 the default now is spreadCycle).

            My problem is not really that homing is not working generally. Homing works totally fine and smooth just not right after I power-cycle my printer when trying to home for the first time.

            Thank you for the suggestion though!

            undefined 1 Reply Last reply 24 Apr 2022, 14:57 Reply Quote 0
            • undefined
              oliof @flobler
              last edited by 24 Apr 2022, 14:57

              @flobler well, without my change homing usually did not work at all, including right after turning on the printer. So yours is a bit of a weird one.

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

              undefined 1 Reply Last reply 24 Apr 2022, 15:00 Reply Quote 0
              • undefined
                flobler @oliof
                last edited by 24 Apr 2022, 15:00

                @oliof yes, that makes sense. I assume before you upgraded to RRF 3.4.0 you did not specifically configure your drivers as D3 (because they did that by default). Now they default to D2, hence you need to tell them specifically to operate in stealthChop2 before homing (via D3).

                If you just configure your drivers as D3 now in config.g you should also be able to home just fine without switching between D2 and D3.

                May I ask how your homing files look like? I'd like to see if you are doing something different to tune your drivers. Thank you!

                undefined undefined 2 Replies Last reply 25 Apr 2022, 15:24 Reply Quote 0
                • undefined
                  oliof @flobler
                  last edited by 25 Apr 2022, 15:24

                  @flobler https://github.com/oliof/printerconfigs/blob/main/v-minion/sys/homex.g

                  <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators @flobler
                    last edited by dc42 25 Apr 2022, 21:17

                    @flobler your homing files are not right for the Duet 3 Mini because you are not executing the required stealthChop tuning move. For example, the first X move you do in homeall.g is this:

                    G1 H1 X5 F1200

                    Try this instead:

                    M17 X
                    G4 P140
                    G1 H2 X5 F1200

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    undefined 1 Reply Last reply 26 Apr 2022, 06:50 Reply Quote 1
                    • undefined
                      flobler @dc42
                      last edited by 26 Apr 2022, 06:50

                      @dc42 Thank you! I just tried that but the behavior did not change. X and Y are still stalling immediately when trying to home after a power cycle and home fine after that initial false stall until I power cycle the printer again.

                      I had a tuning move included in homing-modifications.g (which I removed to test what you suggested).

                      undefined undefined 2 Replies Last reply 26 Apr 2022, 06:52 Reply Quote 0
                      • undefined
                        dc42 administrators @flobler
                        last edited by 26 Apr 2022, 06:52

                        @flobler when you try to home after a power cycle, does each of the X and Y axes move 5mm away from the endstop before the premature stall?

                        Duet WiFi hardware designer and firmware engineer
                        Please do not ask me for Duet support via PM or email, use the forum
                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                        undefined 1 Reply Last reply 26 Apr 2022, 06:53 Reply Quote 0
                        • undefined
                          flobler @flobler
                          last edited by 26 Apr 2022, 06:52

                          For reference, this is what I just tried:

                          homeall.g

                          ;----------------------------------------------------------------------------
                          ; homeall.g
                          ;
                          ; Description:
                          ; 	- system file
                          ; 	- called to home all axes
                          ; 	- used in homez.g
                          ;----------------------------------------------------------------------------
                          
                          
                          ;----------------------------------------------------------------------------
                          ; Preparation
                          ;----------------------------------------------------------------------------
                          
                          M98 P"homing-modifications.g" ; calls homing-modifications.g
                          
                          ; Lift Z Axis
                          G91                           ; relative positioning
                          G1 H2 Z5 F1200                ; lift Z axis by 5mm	
                          M400                          ; wait for current moves to finish
                          
                          
                          ;----------------------------------------------------------------------------
                          ; Home X Axis
                          ;----------------------------------------------------------------------------
                          
                          M17 X
                          G4 P140
                          G1 H2 X5 F1200
                          
                          G1 H1 X5 F1200                ; move X axis away from homing position by 5mm
                          G1 H1 X-255 F3000             ; move to X axis endstop and stop there
                          G1 X5 F1200                   ; move back by 5mm
                          G1 H1 X-10 F3000              ; move to X axis endstop again
                          G1 X10 F1200                  ; move back by 10mm
                          M400                          ; wait for current moves to finish
                          
                          ;----------------------------------------------------------------------------
                          ; Home Y Axis
                          ;----------------------------------------------------------------------------
                          
                          M17 Y
                          G4 P140
                          G1 H2 Y5 F1200
                          
                          G1 H1 Y5 F1200                ; move Y axis away from homing position by 5mm
                          G1 H1 Y-220 F3000             ; move to Y axis endstop and stop there
                          G1 Y5 F1200                   ; move back by 5mm
                          G1 H1 Y-10 F3000              ; move to Y axis endstop again
                          G1 Y10 F1200                  ; move back by 10 mm
                          M400                          ; wait for current moves to finish
                          
                          ;----------------------------------------------------------------------------
                          ; Home Z Axis
                          ;----------------------------------------------------------------------------
                          
                          G90                           ; absolute positioning
                          G1 X11.5 Y4.5 F6000           ; go to first probe point
                          G30                           ; home Z axis by probing the bed
                          G1 Z0.6 F500                  ; move Z axis to 0.6mm
                          G91                           ; relative positioning
                          G1 Z1 F500                    ; lift Z axis by 1mm
                          M400	     	              ; wait for current moves to finish
                          
                          
                          ;----------------------------------------------------------------------------
                          ; Restore Defaults
                          ;----------------------------------------------------------------------------
                          
                          M98 P"homing-modifications-reset.g" ; calls homing-modifications-reset.g
                          

                          homing-modifications.g

                          ;---------------------------------------------------------------------------------
                          ; homing-modifications.g
                          ;
                          ; Description:
                          ; 	- system file
                          ; 	- sets motor current and V parameter for homing moves
                          ; 	- tunes motor drivers
                          ; 	- used in all homing system files
                          ;---------------------------------------------------------------------------------
                          
                          
                          ;---------------------------------------------------------------------------------
                          ; Modifications
                          ;---------------------------------------------------------------------------------
                          
                          M569 P0.3 V10           ; reduce V parameter to ensure stealthChop is enabled for X
                          M569 P0.2 V10           ; reduce V parameter to ensure stealthChop is enabled for Y
                          M913 X60 Y60            ; drop X and Y motor current to 60%
                          G4 P150                 ; wait 150ms
                          
                          

                          homing-modifications-reset.g

                          ;-----------------------------------------------------------------------
                          ; homing-modifications-reset.g
                          ;
                          ; Description:
                          ; 	- system file
                          ; 	- resets all homing modifications applied in homing_modifications.g
                          ; 	- used in all homing system files
                          ;-----------------------------------------------------------------------
                          
                          
                          M913 X100 Y100  ; reset X and Y motor current to 100%
                          M569 P0.3 V2000 ; restore default V parameter for X
                          M569 P0.2 V2000 ; restore default V parameter for Y
                          G90             ; absolute positioning
                          
                          1 Reply Last reply Reply Quote 0
                          • undefined
                            flobler @dc42
                            last edited by 26 Apr 2022, 06:53

                            @dc42 Yes, they do and as soon as the axes move towards the endstop, they stall. If it helps I can send you a video of the behavior?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              flobler
                              last edited by 26 Apr 2022, 06:55

                              @dc42 my bad, as you can see above I failed to remove the G1 H1 X5 F1200

                              I re-tested without and this works now. Thank you very much!

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined Phaedrux marked this topic as a question 27 Apr 2022, 00:06
                              • Phaedruxundefined Phaedrux has marked this topic as solved 27 Apr 2022, 00:06
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA