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

Coolstep configuration

Scheduled Pinned Locked Moved
Tuning and tweaking
3
8
1.5k
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
    patakopecek
    last edited by 1 Jan 2019, 19:58

    Hi, I want to configure Coolstep on my HEVO, but I do not know what to include in the M915 gcode, the wiki is not too helpful

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 2 Jan 2019, 08:46

      The value you enter in the M914 T parameter goes into the coolstep configuration register of the TMC2660. Read the section of the TMC2660 datasheet about coolStep for more information.

      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
      • undefined
        patakopecek
        last edited by 5 Jan 2019, 13:17

        @dc42 I read it a lot of times but I still don't know how to configure it

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 7 Jan 2019, 10:01

          From section 5.1 of the TMC2660 datasheet:

          Before tuning coolStep, first tune the stallGuard2 threshold level SGT, which affects the range of the load measurement value SG. coolStep uses SG to operate the motor near the optimum load angle of +90°.

          SGT is set by the M915 S parameter. You can use the min/max SG values reported by M122 to help find an appropriate value.

          After that, set SEMIN according to whether you want the minimum current to be 1/2 or 1/4 of the configured current, and SEUP and SEDN depending on how fast you want coolStep to react to changes in load.

          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
          • undefined
            patakopecek
            last edited by 7 Jan 2019, 15:21

            Yeah, I get that, but I dont get how to enter it as a 16bit integer into the T part

            undefined 1 Reply Last reply 22 Jan 2019, 15:31 Reply Quote 0
            • undefined
              dc42 administrators @patakopecek
              last edited by 22 Jan 2019, 15:31

              @patakopecek said in Coolstep configuration:

              Yeah, I get that, but I dont get how to enter it as a 16bit integer into the T part

              Use the table in section 6.7 of the datasheet to work out the bit pattern, and express bits 0-15 as a 16-bit integer.

              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
              • undefined
                kiwi
                last edited by 5 Apr 2020, 19:07

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • undefined
                  kiwi
                  last edited by 10 Apr 2020, 23:24

                  Hi everybody, I need help. I am trying to implement coolstep feature (I have DUET 3 and firmware 3.0). I am sending a command e.g. M915 X T32904 (I tried little/big - endian) and there is no change in log - still coolstep is 0 - and the motor sound is also the proof - my parameter S (stallguard) is well set - about 300 with no load (bigger stepper is set for 600 with no load). My answer is - is it impelentet for TMC516x and duet 3? with firmware 3.0? Because - sending a command e.g. M915 X T99505454 - return no error etc. and after many tries (combination from tmc datasheet) - there is still no change and coolstep is in the log 0. Please @dc42 , could you provide en example of setting a coolstep command? Thanks for any help

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