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

    Stallguard2 and Coolstep

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    5
    339
    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.
    • Jooandreundefined
      Jooandre
      last edited by

      Hi,

      I would like to have stallguard2 and coolstep configured on my machine. The intention is not to use sensorless homing but to have adaptable current delivered to the steppers so that they only take as much current as needed not to miss steps at any given speed/torque.

      I have been looking around the forum and seen some info here and there but not enough for me to understand how to configure it. I don't know much about gcode yet 🙂

      My stepper motors are from stepperonline:

      Manufacturer Part Number 23HM22-2804S
      Motor Type Bipolar Stepper
      Step Angle 0.9 deg
      Holding Torque 1.26Nm(178.4oz.in)
      Rated Current/phase 2.8A
      Phase Resistance 0.9ohms
      Recommended Driving Voltage 24-48V
      Inductance 4.5mH±20%(1KHz)

      I am using them on openbuilds C-beam linear actuators with leadscrew :

      Lead Screw Diameter 8mm
      Pitch 2mm
      Lead 8mm
      Starts 4

      My current settings are:

      microstepping 16x
      steps 800steps/mm
      speed 3600mm/m

      Can anyone help me to configure this features?

      Thanks,
      Joao

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

        I assume you are using a Duet WiFi or Duet Ethernet. I suggest you start by reading chapter 5 of the datasheet, https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC2660_datasheet.pdf.

        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
        • Jooandreundefined
          Jooandre
          last edited by

          Hi dc42, thank you for your reply. I am using a duet wifi.

          I have read the trinamic chapter 5 and noticed also that I had to start by tuning ''stallGuard2 threshold level SGT''. But the level of info provided does not allow me to advance I guess.

          I was looking for a more practical approach on how to do this, like a walkthrough maybe. I know people have more to do than attend singular requests, but maybe someone that had done this in the past could help me out?

          Maybe an example of a working configuration plus specifications or just the highlights of the steps to take?

          1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Jooandre
            last edited by

            @Jooandre This thread may help: https://forum.duet3d.com/topic/8394/coolstep-configuration

            Read the Trinamic documentation @dc42 linked above.
            Use M915 S and T parameters to configure Stallguard and Coolstep. The T paramater is a "16-bit unsigned integer".
            Use the information from table "6.7 coolStep Control Register (SMARTEN)" in the Trinamic documentation to set the T parameter, but you will need to finely tune Stallguard first (there are plenty of threads about this on the forum). Bear in mind this will change if you change other motor settings, so tune those first.

            There's really not much documentation on Coolstep, and each machine's setup will be different, so you'll need to experiment to find what works for your machine. The only forum post I could find with someone trying it out was this one: https://forum.duet3d.com/topic/10583/motor-currents-noise-vibration-and-heat

            Please do report back; it would be great to add a bit on Coolstep to https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            Kolbiundefined 1 Reply Last reply Reply Quote 1
            • Kolbiundefined
              Kolbi @droftarts
              last edited by

              @droftarts said in Stallguard2 and Coolstep:

              Please do report back; it would be great to add a bit on Coolstep to https://duet3d.dozuki.com/Wiki/Stall_detection_and_sensorless_homing

              I have mined additional information on this, see thread: https://forum.duet3d.com/topic/17371/duet-wifi-configuring-coolstep-rrf-3-11

              Cheers,
              Kolbi

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