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

    Duet 3 Mini 5+ sensorless homing configuration

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    solved
    8
    42
    4.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.
    • floblerundefined
      flobler @dc42
      last edited by flobler

      @dc42 that was me who posted the config 🙂

      I can confirm that I am running 3.2RC2. I will reduce the V parameter and try again. I will report back.

      Thanks for the help!

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti @jay_s_uk
        last edited by

        @jay_s_uk said in Duet 3 Mini 5+ sensorless homing configuration:

        we've had good success with sensorless homing on the LPC port using D3 V40 after each M569 for the axis being homed.
        we typically suggest running

        tried it again with your settings and the motors keep grinding away

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @Veti
          last edited by jay_s_uk

          @Veti even with setting S to -63?
          If it doesn't immediately trigger that means there's something not right somewhere.
          I can maybe have a go with it this morning with mine.
          Will report back

          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

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            i even tried with -64

            1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk
              last edited by

              I can also confirm that sensorless homing does not appear to be working on the mini5+ with RC2.

              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

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

                @jay_s_uk said in Duet 3 Mini 5+ sensorless homing configuration:

                I can also confirm that sensorless homing does not appear to be working on the mini5+ with RC2.

                It worked for me during testing. I will try to find the configuration that I used.

                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
                • gregsaunundefined
                  gregsaun
                  last edited by

                  Thanks everyone for helping @flobler , he is working on an official Bear config for the Mini 5+ 🙂

                  github.com/gregsaun - Papa Bear

                  1 Reply Last reply Reply Quote 0
                  • floblerundefined
                    flobler
                    last edited by

                    Yeah, thanks for the help everyone, really appreciated!

                    I just wanted to add that I am using version 0.4 of the Mini 5+. I also tried all the above and sensorless homing did not work for me. Motor was operating in stealthChop.

                    1 Reply Last reply Reply Quote 0
                    • floblerundefined
                      flobler
                      last edited by flobler

                      Actually, that combo got it to stall the first time I tried homing X. It stalled immediately when trying to move.

                      homex.g config.g

                      What is weird though is that it did not work afterwards again. I need to power cycle the printer (emergency stop did not do it) for it to work again and then again it only works on the first try. This worked 5/5 times so far.

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

                        Bear in mind that you need to execute a tuning procedure when using stealthChop mode.

                        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

                        floblerundefined 1 Reply Last reply Reply Quote 0
                        • floblerundefined
                          flobler
                          last edited by flobler

                          Thanks! Just found the docs on that. Will apply and report back.

                          1 Reply Last reply Reply Quote 0
                          • floblerundefined
                            flobler @dc42
                            last edited by

                            @dc42 I think I made progress.

                            I am still only trying to home X for testing purposes. Here is the config: homex.g
                            config.g

                            Initially when first I power on the printer and then try to home X, it does result in a crash. But if I then press the emergency stop to end the crash and tell X to home again, X homes successfully (not elegant yet but it homes).

                            Homing then works until I power cycle the printer or use the emergency stop. Once I do that I am back at the start. Homing X results in a crash, then I use the emergency stop and after that I can repeatedly home X successfully until I power cycle the printer or use the emergency stop again.

                            I suspect this must have something to to with how I configured homex.g...

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

                              You need to run the stealthChop tuning procedure first. You can do this is the homing files.This is what I suggest:

                              1. Execute a tiny move (1 or 2 microsteps) away from the homing direction.
                              2. Pause for 100ms using G4.
                              3. Execute a small move away from the homing direction, e.g. 10mm.
                              4. Execute the homing move.

                              Don't forget to reduce current for the homing move (M913).

                              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

                              floblerundefined 1 Reply Last reply Reply Quote 1
                              • floblerundefined
                                flobler @dc42
                                last edited by flobler

                                @dc42 thanks, I am not sure if I am doing this correct though. So far I am still getting quite mixed results (stalling after power cycle before home point is reached and after that only homing correctly when the extruder is within 10mm of the homing location, and then also not all the time).

                                I am trying the following (again only trying X for now):

                                1. Set stall detection sensitivity and reduce V+H+T parameter
                                  0135d6d9-3919-40bc-8d10-ab9b9771a4a1-image.png

                                2. Run tuning procedure and reduce motor current
                                  2b09ec7d-1a51-4134-b9b8-a9e6397cd95d-image.png

                                3. Homing move
                                  1885c967-8d4f-4a26-89b3-f4430893bebf-image.png

                                4. Reset sensitivity, V+H+T and return current to 100%
                                  bcd2f31d-8e06-4732-952d-732755e5aa61-image.png

                                The above is all my homex.g contains... Is there still something I am doing obviously wrong?

                                1 Reply Last reply Reply Quote 0
                                • Sindariusundefined
                                  Sindarius
                                  last edited by

                                  I have been running sensorless homing on my Bear using the Mini5 since it was implemented a few weeks back.

                                  These are my settings in my config.g for the x axis

                                  M569 P0.0 S0 D3 V100                                         ; physical drive 0.0 goes forwards (x)
                                  M574 X1 S3 												; configure sensorless endstop for low end on X  (Sensorless)
                                  

                                  My homex.g

                                  
                                  M400 						; wait til stuff stops
                                  M574 X1 S3 			  ; use stall guard for endstops
                                  M913 X60 Y60  		; drop motor currents to 50% 
                                  M201 X1000 Y1000	 ; reduce acceleration on X/Y to stop false triggers
                                  
                                  M915 X S0 R0 F0 H200	;  Sensitivity 4, don’t take action, don’t filter, 400steps/sec
                                  G91 											; set relative
                                  G1 H2 Z5 F1200 
                                  G1 H1 X-250 F3000			 ; move left 250mm, stopping at the endstop
                                  G1 X10 F1200							; move away from end
                                  G1 H2 Z-5 F1200 
                                  G90 												; back to absolute positioning
                                  M400										 ; wait again
                                  M913 X100 Y100 					 ; motor currents back to 100%
                                  M201 X500 Y500			 ; accel back to original 
                                  M915 S63 X Y R0					 ; Disable Logging and lower stall detection
                                  

                                  Feel free to give it a shot and tweak it as needed. I have not spent a lot of time trying to fine tune it but it works well.

                                  floblerundefined 1 Reply Last reply Reply Quote 1
                                  • floblerundefined
                                    flobler @Sindarius
                                    last edited by

                                    @Sindarius thank you, I will try that! Are you using Pruse MK3 LDO motors?

                                    What part in your homex.g is covering the tuning procedure that David described above?

                                    Sindariusundefined 1 Reply Last reply Reply Quote 0
                                    • floblerundefined
                                      flobler
                                      last edited by

                                      Ok, so I tried this @Sindarius. It definitely works the best it has so far, thanks for sharing!

                                      A couple of things are not working yet though:

                                      1. After a power cycle, when I try to home the axis, it detects a home instantly, before the actual home position and then moves away 10mm. Each homing command moves the axis therefore 10mm further away from its homing position.

                                      2. After an emergency stop, I can get it to home correctly, that works as many times I want as long as I do not make any other moves in between and as long as I am within 10mm of the actual homing position. As soon as I move e.g. 100mm away from the homing position and I try to re-home then, I get a crash.

                                      1 Reply Last reply Reply Quote 0
                                      • Sindariusundefined
                                        Sindarius @flobler
                                        last edited by

                                        @flobler I am using a different set of motors for my bear build. Mine was done with some trial and error and tweaking settings I used on my Duet 2 wifi. I would only use what I have as a start point and incorporate dc42’s recommendations. Don’t trust my comments since the numbers won’t match everywhere.

                                        1 Reply Last reply Reply Quote 0
                                        • floblerundefined
                                          flobler
                                          last edited by

                                          In-cooperating all the above tips with some trial and error got it running. I simply had my current reduced way too much for it to work consistently, which was the last bit that needed adjusting.

                                          This is configuration gives good results now homex.g

                                          Thanks everyone for your help!

                                          1 Reply Last reply Reply Quote 1
                                          • floblerundefined
                                            flobler
                                            last edited by

                                            I thought I´d post a quick update for anyone reading this later:

                                            I now realized that the bug described here was also contributing to my issues:
                                            https://forum.duet3d.com/topic/21108/stall-detection-on-duet-3-mini

                                            Taking this into account, it was a breeze finding a good value for sensitivity and getting sensorless homing to work smoothly.

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