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

    Maximum Acceleration Calculator

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    13
    23
    12.1k
    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.
    • wilrikerundefined
      wilriker
      last edited by

      Based on the calculations discussed in this thread and the resulting spreadsheet that @deckingman was so kind to provide to me I created an online version:

      Maximum Acceleration Calculator

      Just enter your details and the calculator will provide the maximum possible acceleration that your motor could handle.

      By default it does not take any friction into account but under Advanced Settings you can find the "Axis friction factor" that can be used as a multiplier on the mass to move.


      As always: feedback very welcome! 🙂

      Manuel
      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
      with probably always latest firmware/DWC (incl. betas or self-compiled)
      My Tool Collection

      1 Reply Last reply Reply Quote 4
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Very cool. Now I know I can accelerate much faster than I'd ever want to. 😁

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • RCarlyleundefined
          RCarlyle
          last edited by

          That seems very, very low. Where is the 1.98N-cm coming from in the example calculation?

          wilrikerundefined 1 Reply Last reply Reply Quote 0
          • gtj0undefined
            gtj0
            last edited by

            At 18347.40mm/s² I think I'd be splattering hot plastic on the walls. 🙂

            Seriously though, good info!

            1 Reply Last reply Reply Quote 0
            • RCarlyleundefined
              RCarlyle
              last edited by

              When you do corner jerks, it’s not at all uncommon to have several g’s of acceleration. 20,000mm/s^2 isn’t an unusual jerk accel if you have big motors and small moving mass. The printer is “instantly” changing velocity at the corner, which in practice means it accelerates as hard as it can up to around 25-50% of the motor’s max, depending on how aggressive your tuning is.

              1 Reply Last reply Reply Quote 0
              • wilrikerundefined
                wilriker @RCarlyle
                last edited by

                @rcarlyle said in Maximum Acceleration Calculator:

                That seems very, very low. Where is the 1.98N-cm coming from in the example calculation?

                Look at the linked original thread. The second post. There is this 9.8% factor for lag no more than 1/16th. I have to admit I only partly understood this factor and added it as "Minimal lag requirement" under "Advanced Settings" because I had no better wording for this. Especially with this part feedback by native speakers is very welcome!

                I will also add a description to every line of the calculation. Though not before tonight (CEST) or worst-case only on Monday.

                Manuel
                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                with probably always latest firmware/DWC (incl. betas or self-compiled)
                My Tool Collection

                1 Reply Last reply Reply Quote 0
                • RCarlyleundefined
                  RCarlyle
                  last edited by

                  Ah, ok, so that’s the factor to make sure the motor’s following error isn’t very large. I though that might be what you were doing. A stepper motor has 1 full step of angle/position error when exerting maximum torque, which is a lot of position error in most drivetrains, and is on the edge of stalling at that point, so de-rating to a smaller value is a good idea.

                  What you might do is put an “absolute max” value which is basically just the motor’s rated holding torque * 71% (for one-coil-on & microstepping operation) and then clearly label the “safe” value at 9.8% of that max.

                  wilrikerundefined 1 Reply Last reply Reply Quote 1
                  • wilrikerundefined
                    wilriker @RCarlyle
                    last edited by

                    @rcarlyle said in Maximum Acceleration Calculator:

                    What you might do is put an “absolute max” value which is basically just the motor’s rated holding torque * 71% (for one-coil-on & microstepping operation) and then clearly label the “safe” value at 9.8% of that max.

                    A safety factor, yeah, that is a lot more understandable than the current term. Thanks! 👍

                    Manuel
                    Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                    with probably always latest firmware/DWC (incl. betas or self-compiled)
                    My Tool Collection

                    1 Reply Last reply Reply Quote 0
                    • wilrikerundefined
                      wilriker
                      last edited by

                      OK, I changed "minimal lag requirement" to "safety factor" now and added descriptions to each line of the result calculation.

                      I also added gear ratio to Advanced Settings.

                      Manuel
                      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                      with probably always latest firmware/DWC (incl. betas or self-compiled)
                      My Tool Collection

                      1 Reply Last reply Reply Quote 0
                      • TimVukmanundefined
                        TimVukman
                        last edited by

                        !!Brilliant!!

                        Thanks for putting this together and letting me know about it.

                        1 Reply Last reply Reply Quote 0
                        • 3DOesteundefined
                          3DOeste
                          last edited by

                          Hi, does it works for CoreXY machines? The worst condition is a diagonal motion as that is made by only one motor.

                          deckingmanundefined garisundefined 2 Replies Last reply Reply Quote 0
                          • deckingmanundefined
                            deckingman @3DOeste
                            last edited by

                            @3doeste It should do. The way to treat it is to use the mass to be moved in the Y direction, which is the worse case. That is to say, the mass will be the X carriage plus the X rails and Y carriages. As you rightly say, pure X or pure Y moves will use both motors but 45 degree infill will use only one. So spec the motors as you would for moving Y on a Cartesian.

                            Ian
                            https://somei3deas.wordpress.com/
                            https://www.youtube.com/@deckingman

                            1 Reply Last reply Reply Quote 0
                            • garisundefined
                              garis @3DOeste
                              last edited by

                              @3doeste I have 2 Hypercube Evolutions and have been doing some testing before the calculator was available. My next Step is to weigh my X and Y moving masses. But the calculator is just a starting point. For example one of my machines is very light so I have also been wondering about jerk that the calculator doesn’t address and which smaller CoreXY s should perform quite well. When I get home from holidays I will see how high I can push jerk.
                              Another factor is the overall flexibility of the machine, including the belt stretch and associated resonances, X rod flex, hotend mount etc. I have no feel yet for how the belts affect performance - others might be able to comment.

                              I suspect the best acceleration is much lower than the calculator provides, depending on your machine construction and quality preferences.

                              deckingmanundefined 1 Reply Last reply Reply Quote 0
                              • deckingmanundefined
                                deckingman @garis
                                last edited by deckingman

                                @garis The calculator is for stepper motors only. It is an attempt to calculate the maximum acceleration that a given stepper motor can produce for a given mass.

                                Whether the rest of the machine is capable of attaining those acceleration values without problems, is of course an entirely different thing.

                                Ian
                                https://somei3deas.wordpress.com/
                                https://www.youtube.com/@deckingman

                                1 Reply Last reply Reply Quote 0
                                • 3DOesteundefined
                                  3DOeste
                                  last edited by

                                  I have a fully machine aluminum CoreXY, I weigh my Y axis and it's around 1500gr of moving mass and my motors have 65n.cm of torque.
                                  The calculator give an aceleration of around 4000, I tried 6000 without problems but used 4000. And with jerk I was using 1800 until I had to do a print with sharp corners and they got wavy in Z (only on corners), so I put the jerk at 600 and it came out perfect, but otherwise, 1800 works great.
                                  I can't get more than 200 mm/s of speed though without losing steps. Perhaps that will improve with 24v and / or 20T pulleys. I have 16T currently.

                                  1 Reply Last reply Reply Quote 0
                                  • RCarlyleundefined
                                    RCarlyle
                                    last edited by

                                    CoreXY is complicated.

                                    X axis moves divide the force to accelerate the X carriage by two, split between the motors. Likewise Y axis moves divide the force to accelerate the entire bridge by two. That’s straightforward enough.

                                    Diagonal moves are weeeiiiird. The CoreXY belt path is effectively a sqrt(2):1 compound pulley. IE each 1 mm of diagonal XY travel requires 1.41mm of belt travel, and you get a corresponding force multiplication effect because of that travel ratio. That’s one little-appreciated reason why CoreXY tends to produce nicer prints than an equivalent Cartesian — you’ve effectively geared down the motors.

                                    OG3Dundefined 1 Reply Last reply Reply Quote 0
                                    • OG3Dundefined
                                      OG3D @RCarlyle
                                      last edited by

                                      @rcarlyle " That’s one little-appreciated reason why CoreXY tends to produce nicer prints than an equivalent Cartesian — you’ve effectively geared down the motors. "

                                      So is it worth it running at .9deg motor?

                                      RCarlyleundefined 1 Reply Last reply Reply Quote 0
                                      • RCarlyleundefined
                                        RCarlyle @OG3D
                                        last edited by

                                        @og3d depends on your PSU voltage and desired speeds. 0.9 degree motors can only spin half as fast, all else being equal, and CoreXY can only move on diagonals 71% as fast as Cartesian, all else being equal. But the typical 24v Cartesian printer with 1.8 degree steppers can do like 300mm/s without any issues as far as the motors are concerned and people seldom ever go that fast.

                                        OG3Dundefined 1 Reply Last reply Reply Quote 0
                                        • OG3Dundefined
                                          OG3D @RCarlyle
                                          last edited by

                                          Well on average the printers usual do not get close to 300mm/s, so on CoreXY using a .9 deg I wont see much improvement vs a 1.8deg motor, since by design CoreXY is geared down. Just making sure I understood it correctly.

                                          I have a delta but at speeds 100mm/s quality is not good and seeing Rail Core II print results at 100mm/s got me inspired to build a CoreXY for my second printer.

                                          1 Reply Last reply Reply Quote 0
                                          • genewildundefined
                                            genewild
                                            last edited by

                                            Hi! Thanks for making this tool, it is very handy.

                                            I'm currently trying to grasp the limitation of accelleration on stepper motor drives. I've used your calculator on a few motors, and i noticed that generally people report running 2-4 times higher accelleration on their printers before running into issues than your calculator says is possible.

                                            I am not sure these printers actually run at the requested speed, but certainly there is some difference between running at the speed your calculator produces and a vastly higher speed, i can see that on my own printer which accellerates more violently.

                                            So i am wondering, what gives? Shouldn't the stepper skip steps if you ask it to go TOO fast? The stepper driver has no feedback loop to tell. I can't notice lost steps below 20.000 mm/s² accelleration using really small NEMA 17 motors with only 1.68 A capability and a rated torque of only 36Ncm, inertia of 54 g/cm² driving a rather heavy gantry at 800gr.

                                            I would really apprechiate if someone could explain this discrepancy to me, i am not very familiar with stepper drives.

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