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

Assissted open loop Mode

Scheduled Pinned Locked Moved Unsolved
Tuning and tweaking
2
11
294
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
    Tech_Sam03
    last edited by 4 Mar 2025, 09:01

    Hi, i run two 1HCL with magnetic enoders in my printer, first i wanted to use closed loop mode but with low inductanse motor and 48V they are really loud at low speeds and standstill. Now I want to go with assisted open loop. But I have some questions about it.

    1. Is the stepper driver running in spreadcycle when I use assisted open loop?

    2. If that's the case, can you also optimize the driver using the stepper register?

    3. If a step is lost, is it actively corrected or is the Motor current just increased to minimize the error

    4. Is the current reduction based on coolstep?

    5. How low should I go with Motor current min Limit?

    Thx

    undefined 1 Reply Last reply 4 Mar 2025, 09:39 Reply Quote 0
    • undefined
      dc42 administrators @Tech_Sam03
      last edited by 4 Mar 2025, 09:39

      @Tech_Sam03 said in Assissted open loop Mode:

      Hi, i run two 1HCL with magnetic enoders in my printer, first i wanted to use closed loop mode but with low inductanse motor and 48V they are really loud at low speeds and standstill.

      With which firmware version? More recent firmware versions are much quieter on the 1HCL than the earlier versions.

      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 4 Mar 2025, 10:04 Reply Quote 1
      • undefined
        Tech_Sam03 @dc42
        last edited by 4 Mar 2025, 10:04

        @dc42

        I run Version 3.5.4 on them.

        undefined 1 Reply Last reply 4 Mar 2025, 10:08 Reply Quote 0
        • undefined
          dc42 administrators @Tech_Sam03
          last edited by 4 Mar 2025, 10:08

          @Tech_Sam03 something isn't right, maybe the tuning. Using 3.5.4 firmware, if correctly set up they should be silent at standstill, even quieter than in open loop mode.

          Assisted open loop mode does not correct for lost steps. It increases the motor current when the error gets high in an attempt to pre-empt missing a step. The current reduction isn't based on coolstep. The driver runs in spreadCycle 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

          undefined 1 Reply Last reply 4 Mar 2025, 10:22 Reply Quote 1
          • undefined
            Tech_Sam03 @dc42
            last edited by Tech_Sam03 3 Apr 2025, 10:43 4 Mar 2025, 10:22

            @dc42

            I tried a P therm of 10/15/20/25/30/40. Smaller P therms with smaller D therms were quieter but still loud.Also a high A therm makes it also noisy. What I noticed was that if I put light pressure with a finger on the axis when it is stationary, the noise almost completely disappears. It's the same at slow speeds. At first I thought it was oscillations from a too high D therm, so I tried to go down to a D therm of only 0.01, but then my P therm oscillates a bit +/- ~5 .Then they are actually very quiet. How much oscillation is ok for the P therm?

            undefined 1 Reply Last reply 4 Mar 2025, 13:59 Reply Quote 0
            • undefined
              dc42 administrators @Tech_Sam03
              last edited by 4 Mar 2025, 13:59

              @Tech_Sam03 yes the D term makes the greatest contribution to motor noise. There is a balance to be struck between the P and D terms. A larger P term is more prone to oscillation and needs a larger D term to control it. So I suggest you pick the highest D term in the range 0.01 to 0.05 that doesn't make the motor noise excessive, and then adjust the P term to be as high as possible while ensuring that any oscillation when the speed changes is heavily damped.

              Keep the I term at zero initially while adjusting this, because the I term can also contribute towards oscillation if it is too high.

              The A term will make the motor noisier during acceleration, but if you have tuned the A term as we suggest then this is necessary if you want to ensure precise tracking between actual and commanded movement. On a CoreXY machine I suggest you try pure X movements, pure Y movements and diagonal movements while tuning the A term because a single value won't be optimum for all of these move types. A smaller A term will result in a slight lag between commanded and actual position, which you would get in open loop mode anyway.

              @T3P3Tony runs a CoreXY machine with closed loop motors so he may be able to offer further advice.

              HTH David

              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 4 Mar 2025, 21:09 Reply Quote 1
              • undefined
                Tech_Sam03 @dc42
                last edited by 4 Mar 2025, 21:09

                @T3P3Tony
                @dc42 I followed your instructions and it helped a little, but the loud noise persists. Here are some videos

                P=25 D=0.1
                D0.1.mp4
                P=25 D=0.0
                D0.0.mp4
                Driver in spreadcycle
                spreadcycle.mp4

                Also, what I noticed is that when standing still my d therm oscillates slightly which is not visible in the tuning plot in the duet documentation guide.
                Bild_2025-03-04_220751899.png
                Screenshot 2025-03-04 213620.png

                1 Reply Last reply Reply Quote 0
                • undefined Tech_Sam03 marked this topic as a question 5 Mar 2025, 18:48
                • undefined
                  Tech_Sam03
                  last edited by Tech_Sam03 3 May 2025, 20:01 5 Mar 2025, 19:59

                  @T3P3Tony
                  @dc42
                  I found the problem!!!

                  the load noise is caused by a slight misplacement of the encoder, if I turn the motor another 90 degrees the noise disappears completely when I slightly move the pcb. Is there a good way to align the encoder pcb? Also the D therm goes almost to zero when the motors are standing still!

                  Here is a video:
                  encoder.mp4

                  undefined 1 Reply Last reply 8 Mar 2025, 09:51 Reply Quote 1
                  • undefined Tech_Sam03 has marked this topic as solved 6 Mar 2025, 21:07
                  • undefined
                    dc42 administrators @Tech_Sam03
                    last edited by 8 Mar 2025, 09:51

                    @Tech_Sam03 what size motor are you using the encoder with?

                    D=0.1 is rather high. Try a value around 0.02 and reduce the P term if that fails to control instability.

                    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 8 Mar 2025, 15:00 Reply Quote 1
                    • undefined
                      Tech_Sam03 @dc42
                      last edited by Tech_Sam03 3 Aug 2025, 15:07 8 Mar 2025, 15:00

                      @dc42

                      I run two LDO 42SHT48-2504AC Steppers. I connected a quadrature encoder with 1000PPR for testing and now they are completly silent also the d therm goes almost to zero at motor standstill. Is it maybe electrical noise that interrupt the magnetic encoder signal?

                      1 Reply Last reply Reply Quote 0
                      • undefined Tech_Sam03 marked this topic as a regular topic 13 Mar 2025, 11:30
                      • undefined Tech_Sam03 marked this topic as a question 13 Mar 2025, 11:30
                      • undefined
                        Tech_Sam03
                        last edited by 14 Mar 2025, 19:34

                        After extensive testing, I concluded that something was distorting my sensor reading. Since I had two SameSky CUI AMT10E3 capacitive encoders.
                        WhatsApp Image 2025-03-14 at 20.22.22.jpeg

                        I set them to 2500PPR and mounted them. Now closed loop runs whisper quiet. Here are two examples:

                        stealthchop.mp4
                        closed loop.mp4

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