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

Sensorless homing, not working

Scheduled Pinned Locked Moved
Using Duet Controllers
4
13
806
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
    StevePS3
    last edited by 2 Oct 2021, 17:06

    I've done a search of the forum and found a couple of related posts but so far I've not found a solution.

    Board: Duet 3 Mini 5+ (Mini5plus)
    Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.2.2 (2021-02-11)
    Duet WiFi Server Version: 1.25

    I am trying to setup sensorless homing but no matter what I do, the head simple crashes into the end of the carriage and carries on trying to move.

    I've set the parameters for the X and Y

    ; Endstops - sensorless
    M574 X1 S3 ; configure sensorless endstop for low end on X
    M574 Y1 S3 ; configure sensorless endstop for low end on Y

    ; Motor Stall
    M915 X Y S5 R0 F0

    I then cribbed the homeX from the documentation.
    M400
    M913 X75 Y75 ; drop motor current to 75%
    M400 G91; relative positioning
    G1 H2 Z10 F12000 ; lift Z relative to current position
    G1 H1 X-320.5 F2000 ; move quickly to X axis endstop and stop there (first pass)
    G1 H2 X5 F12000 ; go back a few mm
    G1 H1 X-320.5 F1000 ; move slowly to X axis endstop once more (second pass)
    G1 H2 Z-10 F6000 ; lower Z again
    G90 ; absolute positioning
    M400
    M913 X100 Y100 ; return current to 100%
    M400

    So far I've not managed to induce a stall. Can anyone help?

    undefined 1 Reply Last reply 2 Oct 2021, 17:19 Reply Quote 0
    • undefined
      T3P3Tony administrators @StevePS3
      last edited by 2 Oct 2021, 17:19

      @steveps3 have you followed th steps here:
      https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing#Section_Configuring_Stall_Detection

      www.duet3d.com

      undefined 1 Reply Last reply 2 Oct 2021, 17:21 Reply Quote 0
      • undefined
        StevePS3 @T3P3Tony
        last edited by 2 Oct 2021, 17:21

        @t3p3tony Yes, that is the document that I have been using

        undefined 1 Reply Last reply 2 Oct 2021, 17:27 Reply Quote 0
        • undefined
          T3P3Tony administrators @StevePS3
          last edited by 2 Oct 2021, 17:27

          @steveps3

          Set the S parameter to the lowest value at which you do not get false stall reports. Typical values for nema 17 motors are between 1 and 3. False stall reports are most likely during fast travel moves, because the acceleration increases the load on the motor. False stall reports are also more likely when the motors are hot.

          Have you tried reducing the S parameter until you get a stall?

          https://duet3d.dozuki.com/Wiki/M915

          Snnn Stall detection threshold (-64 to +63, values below -10 not recommended). Lower values make stall detection more sensitive. S3 is a good starting point for many motors.

          At some point there will be an S value that stalls when you reach the end of the axis. For most motors/setups that should be a higher number than what you get when you have it so low that it detects a stall on a normal move.

          www.duet3d.com

          undefined 1 Reply Last reply 2 Oct 2021, 17:30 Reply Quote 0
          • undefined
            StevePS3 @T3P3Tony
            last edited by 2 Oct 2021, 17:30

            @t3p3tony I set it to -64 and it still doesn't stall

            M915 X Y S-64 R0 F0

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 2 Oct 2021, 17:43

              @steveps3 said in Sensorless homing, not working:

              Board: Duet 3 Mini 5+ (Mini5plus)
              Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.2.2 (2021-02-11)

              Upgrade there firmware to 3.3. There is a known issue with sensorless homing on Duet 3 Mini using firmware 3.2.2 and earlier. There is a workaround for it, but it is simpler to upgrade to firmware 3.3.

              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 2 Oct 2021, 17:44 Reply Quote 0
              • undefined
                StevePS3 @dc42
                last edited by 2 Oct 2021, 17:44

                @dc42 Thanks, I'll give that a try.

                undefined 1 Reply Last reply 2 Oct 2021, 17:57 Reply Quote 0
                • undefined
                  StevePS3 @StevePS3
                  last edited by 2 Oct 2021, 17:57

                  OK, I am now on 3.3 and the results are the same. Just lots of belt slipping as the head crashes into the side of the printer.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    StevePS3
                    last edited by 3 Oct 2021, 11:14

                    I have reduced the current to the steppers so that they stall as soon as they start to move. Yet all they do is continue to try to move. I was assuming that they would stop moving as soon as they stall?

                    undefined 1 Reply Last reply 3 Oct 2021, 12:21 Reply Quote 0
                    • undefined
                      jay_s_uk @StevePS3
                      last edited by 3 Oct 2021, 12:21

                      @steveps3 make sure you have something like D3 V40 on each M569 you want to run sensorless on so they are in stealthchop.
                      This is a nice bit of test code to make sure your motors are stalling

                      M915 P0 S-127 H10 R1 ; Set very sensitive stall detect
                      M574 X1 S3 ; configure endstop for stall detection
                      G1 X200 H1 ; Should stall pretty much immediately

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      undefined 1 Reply Last reply 3 Oct 2021, 12:51 Reply Quote 0
                      • undefined
                        StevePS3 @jay_s_uk
                        last edited by StevePS3 10 Mar 2021, 13:06 3 Oct 2021, 12:51

                        @jay_s_uk
                        Yes, that worked. OK, so now maybe I can start to tweak the settings until it works. -127 definitely causes an instant stall 🙂

                        undefined 2 Replies Last reply 3 Oct 2021, 13:12 Reply Quote 1
                        • undefined
                          StevePS3 @StevePS3
                          last edited by 3 Oct 2021, 13:12

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • undefined
                            StevePS3 @StevePS3
                            last edited by 3 Oct 2021, 13:19

                            A value of about 30 seems to work just fine.

                            1 Reply Last reply Reply Quote 2
                            1 out of 13
                            • First post
                              1/13
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA