Solved duet 3 6hc - tmc5160
-
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?
-
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.
-
@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.
-
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. -
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.
-
@Danal Dunno. Not my field but "StealthChop2 does not require any configuration" to me implies what it says.
-
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.
-
@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?
-
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.
-
@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?.....
-
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.
-
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.
-
The default on Duet 3 is spread cycle mode. You can use the D parameter of the M569 command to change to stealthChop.
-
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
-
@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. -
@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.
-
@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.
-
This post is deleted! -
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