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

    duet 3 6hc - tmc5160

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    7
    19
    893
    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.
    • spllgundefined
      spllg
      last edited by

      according to https://www.trinamic.com/products/integrated-circuits/details/tmc5160/ the tmc5160 supports stealthchop2.

      according to https://duet3d.dozuki.com/Wiki/Gcode#Section_M569_Set_motor_driver_direction_enable_polarity_and_step_pulse_timing using m569 this operation mode can only be enabled for tmc22xx.

      how can stealthchop2 be enabled for the tmc5160 which are installed on the duet 3 6hc?

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by

        If the datasheet for the TMC22xx and the 5160 state that stealthchop is set by the same register (by offset) and the same bits, I'd be willing to bet the M569 D3 would still work.

        If not, @DC42 will have to make a firmware change.

        It really can't hurt anything to try.

        Delta / Kossel printer fanatic

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

          @spllg said in duet 3 6hc - tmc5160:

          m569 this operation mode can only be enabled for tmc22xx.

          not all of the documentation was updated for the duet3 yet. it should work however.

          1 Reply Last reply Reply Quote 2
          • deckingmanundefined
            deckingman
            last edited by

            Extract from Trinamic's data sheet for the TMC 5160 quote ....

            "StealthChop2 does not require any configuration. It automatically learns the
            best settings during the first motion after power up and further optimizes the settings in subsequent
            motions. An initial homing sequence is sufficient for learning." .........end of quote.

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

            1 Reply Last reply Reply Quote 1
            • Danalundefined
              Danal
              last edited by Danal

              It learns... but you still have to turn it on. Register 0 bit 2 turns it on. The register section notes that all registers are set to 0 at power up, with any exceptions noted. Bit 2 does not note an exception.

              Delta / Kossel printer fanatic

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

                @Danal Dunno. Not my field but "StealthChop2 does not require any configuration" to me implies what it says.

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

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

                  stealthchop2 autoconfigures its parameter on the first move.

                  the statement does not include setting the stepper mode.

                  i dont know which mode is enabled by default on the duet3 but on the maestro stealthchop2 is enabled by default with a very low hybrid mode velocity when it switches to spreadcycle.

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

                    @Veti The wiki for M569 states this. "The default is spreadCycle for TMC2660 drivers and stealthChop2 for TMC22xx". I'd have thought that David would have left the default the same for the tmc 5160s but who knows?

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

                    1 Reply Last reply Reply Quote 1
                    • Danalundefined
                      Danal
                      last edited by Danal

                      That is an absolutely true statement. It does not require configuration. And I can see how that reads "it requires nothing; it is always there unless something else is going on". However, I can assure its bit is off at power up.

                      Why am I so certain? Photo of another project, non-duet, below. (Prototype of a clock where Stepper Motors use a W linkage to push hands into place once per minute).

                      The biggest sub-board is an ESP8266, programmed in the "PlatformIO" toolset. Which is just a way of getting C or C+ code onto the chip with no OS.

                      Doing it that way requires direct SPI manipulation of the registers. Reg 00 Bit 2 is off at power up. I have to turn it on to have Stealthchop active.

                      And, yes, those are 2130s. Their dataset says the same thing.

                      IMG_0171.jpeg

                      Delta / Kossel printer fanatic

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

                        @Danal Fair enough. However, the wiki does also state that the default is for stealth chop to be enabled so I'd be a bit surprised if DC reversed that for the gen 3 drivers but who knows?.....

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

                        1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User
                          last edited by

                          Given the Duet3 is targeted at heavier machines it would surprise me if stealthchop was default, but I suppose one could browse the code to find out.

                          I only recall the stand still noise not being that much quieter than the Gecko that came off the machine, but I'm definitively not willing to give up torque to have it quieter like I would on a smaller printer.

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

                            This is purely anecdotal but my 6 extruder motors are completely silent to my ears with my gen 3 boards, whereas with my gen 2 duet ethernet, they were audible. It threw me completely the first time I loaded filament because I thought they weren't working until I looked. I can't say one way or the other about the main axis motors though because I changed some of them from Nema17s to Nema 23s at the same time that I changed the boards.

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

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

                              The default on Duet 3 is spread cycle mode. You can use the D parameter of the M569 command to change to stealthChop.

                              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
                              • deckingmanundefined
                                deckingman
                                last edited by

                                Just an addendum to this thread. I tried changing my Duet 3 configuration to include the D (D3) parameter in M569 on my XYUVA and B axes and can say that I can't detect any difference, audible or otherwise. That's with a mixture of Nema 17s and Nema23s. However, for reasons of scientific accuracy, I must add that my ears are 66 years old and although I can hear 12kHz, that is my cut off frequency - I am oblivious to anything 15kHz or higher ☺

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

                                danym21undefined 1 Reply Last reply Reply Quote 1
                                • danym21undefined
                                  danym21 @deckingman
                                  last edited by

                                  @deckingman
                                  Hello,
                                  do you have found a solution why stealth chop is not working on the Duet 3?
                                  I still trying to enable it but it looks like the board use it only under 119 mm/min (1,9mm/sec)
                                  all above is noisy like spreadCycle.
                                  same printer and motors with different boards and tmc5160 are much more quiet as with the duet 3 6hc.

                                  deckingmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
                                  • deckingmanundefined
                                    deckingman @danym21
                                    last edited by

                                    @danym21 I didn't say that stealth chop wasn't working - just that I can't tell any difference, audibly or otherwise on my machine for any of the XY axes with or without the "D" parameter. I can't really compare Duet 2 with Duet 3 because I changed some of motors from Nema 17s to Nema23s at the same time as I changed the boards. The Nema 23s are inherently more noisy than the Nema 17s. I can say that my extruders are silent (to my ears) using Duet 3, whereas they were audible with Duet 2.

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

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

                                      @danym21 said in duet 3 6hc - tmc5160:

                                      I still trying to enable it but it looks like the board use it only under 119 mm/min (1,9mm/sec)
                                      all above is noisy like spreadCycle.

                                      I started an investigation into this, but I haven't completed it. In the process, i discovered that there are at least four conditions that must be met or stealthchop to be used. I listed them in another thread about the same subject.

                                      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

                                      danym21undefined 1 Reply Last reply Reply Quote 0
                                      • danym21undefined
                                        danym21 @deckingman
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • danym21undefined
                                          danym21 @dc42
                                          last edited by

                                          @dc42

                                          ok then let us discuss it on my original thread for the problem.

                                          https://forum.duet3d.com/topic/16297/help-needed-with-duet-3-6hc-tmc5160-stealthchop-config/14

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