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

    How to tune Stall Detection?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    41
    7.2k
    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.
    • GaRv3undefined
      GaRv3
      last edited by

      So this means, Z is simply to fast?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Use the link in my previous post to work out whether Z is too fast for stall detection to work, or not.

        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

        1 Reply Last reply Reply Quote 0
        • GaRv3undefined
          GaRv3
          last edited by

          Unfortunately I do not know all the required information because there is no chart with all specifications available for my stepper motors. These are Anet 42SHDC3025-24B motors.
          Phase inductance is the one that is missing.

          I entered all values I know (left phase inductance as it was) and got these results:
          [c]Speed at which torque starts to drop (mm/sec), low slip angle 22,3
          Step pulse frequency at this speed and x16 microstepping 8,9
          Speed at which torque starts to drop (mm/sec), high slip angle 29,7
          Step pulse frequency at this speed and x16 microstepping 11,9
          [/c]

          So the maximum speed for stall detection should be 22,3 mm/s, right?
          My Z axis speed is 16.7mm/s but I never got a false stall detection with M915 Z S-10 F0 R1.
          Is this possible? I would like to make sure it works.

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            You really do need the phase inductance. To estimate it, search a good range of stepper motors (e.g. the ones at stepperonline.com) for another Nema 17 motor with the same length and a similar phase resistance and rated current.

            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

            1 Reply Last reply Reply Quote 0
            • GaRv3undefined
              GaRv3
              last edited by

              Well I tried to find similar stepper motors or other sources for the required information. After several hours I gave up now. I wrote the Anet support an email but to be honest, I do net expect to get a useful answer.

              So I could reduce the speed and try to find a speed where I get false stall reports, reduce the speed even more (additional -2mm/s or so) and tune the S value again. Would this work to give me precise stall detection?

              1 Reply Last reply Reply Quote 0
              • GaRv3undefined
                GaRv3
                last edited by

                What I did now is:
                I switched to using two stepper drivers (Z and E1) for my Z axis.
                I added axes U and V for Z1 and Z2. I zero them when Z is homed so homing does not throw errors.
                Changed [c]M915 Z S-10 F0 R1[/c] to [c]M915 P2:4 S-10 F0 R1[/c] just to be sure.

                What I expected:
                Using two drivers instead of one with the motors cinnected in series should double the maximum speed for stall detection. Is this correct?

                The result:
                Even at the very low speed of 5mm/s no false stall detections occur.

                I am stuck now 😕

                Edit:
                Now I wrote a gcode script that moves Z up and down with 5mm/s over and over again.
                No stalls detected.
                When I reduce the current of the motors to 20mA, it stopps moving up (obviously), but still no stalls are detected.
                M950 S was -50 during this test!

                1 Reply Last reply Reply Quote 0
                • GaRv3undefined
                  GaRv3
                  last edited by

                  Well, no other suggestions?
                  I need to make this work!

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    Are you definitely running 1.20 or 1.21RC series firmware, on a Duet WiFi or Duet Ethernet?

                    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

                    1 Reply Last reply Reply Quote 0
                    • GaRv3undefined
                      GaRv3
                      last edited by

                      Sure!

                      1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators
                        last edited by

                        What are your Z steps/mm?

                        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

                        1 Reply Last reply Reply Quote 0
                        • GaRv3undefined
                          GaRv3
                          last edited by

                          It's 400 steps/mm

                          1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators
                            last edited by

                            From comparing other motors, I estimate the inductance of that motor to be about 8 to 10mH. What maximum Z speed at full torque does that give?

                            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

                            1 Reply Last reply Reply Quote 0
                            • GaRv3undefined
                              GaRv3
                              last edited by

                              I am not 100% sure, if all the other values I have are correct.
                              I took them from this site: http://www.mytechnologie.de/2017/05/22/projekt-3d-drucker-die-motoren/

                              I suppose by "maximum Z speed at full torque" you mean "Speed at which torque starts to drop (mm/sec), high slip angle".

                              For 8mH this gives me 32,7mm/s and for 10mH it is 27,9mm/s.

                              1 Reply Last reply Reply Quote 0
                              • GaRv3undefined
                                GaRv3
                                last edited by

                                No additional suggestions?
                                This feature was one of the main reasons for buying the Duet 😕

                                1 Reply Last reply Reply Quote 0
                                • dc42undefined
                                  dc42 administrators
                                  last edited by

                                  Is it just the Z motor that you can't get stall detection working on? Does it work on the X and Y motors? How about U?

                                  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

                                  1 Reply Last reply Reply Quote 0
                                  • GaRv3undefined
                                    GaRv3
                                    last edited by

                                    It works on X and Y. I tuned the values until I got no more false detections. S22 seems to be the value to go on these axes.

                                    I tried [c]M915 Z S-50 F0 R1[/c] and [c]M915 P2:4 S-50 F0 R1[/c] for Z but never got stall detections on drives other than 0 and 1 (X and Y).

                                    1 Reply Last reply Reply Quote 0
                                    • dc42undefined
                                      dc42 administrators
                                      last edited by

                                      I have added this to my list of pending investigations. I should get to it before the end of this coming week.

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • GaRv3undefined
                                        GaRv3
                                        last edited by

                                        Great, thank you!

                                        1 Reply Last reply Reply Quote 0
                                        • GaRv3undefined
                                          GaRv3
                                          last edited by

                                          Any news on this already?

                                          1 Reply Last reply Reply Quote 0
                                          • GaRv3undefined
                                            GaRv3
                                            last edited by

                                            😞

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA