Extending the Duet2 with Maestro
-
Hello.
I saw a hew topics created around this and the great article https://duet3d.dozuki.com/Wiki/Using_external_stepper_motor_drivers. Since I'm working on something (for the community, if someone is interested, a 3 Z belted design as an addition to the linked thing is what I'm working on) that would require 6 drives and I only have a Duet 2 Wifi with no option to get anything else due to the crisis I would like to figure out a temporary installation for a 3 Z assembly with only what I have lying around: a Maestro 2 stepper expansion (still available in a store I can reach) and a few things I have already - some 8-bit MKS boards with TMC2130, TMC2208.
The question is should I go for the Maestro option and use that as a custom expansion? Or is it not advisable? I would like to try with those little stepper driver boards but the "up to 9V" sign scares me - I'm using 24V.
I understand that a DUEX2 is the way to go or even a Duet3 but until this sad thing ends I can't get those and I don't want to be blocked with this project of mine - it's a coping mechanism for me and I think some other people as well. Good people I ask for guidance (and a little bit of friendship as well I think )
Thank you,
Paweł Kucmus -
@McAbra said in Extending the Duet2 with Maestro:
but the "up to 9V" sign scares me
where does it say up to 9v?
https://hobbycomponents.com/motor-drivers/892-breakout-board-for-a4988-stepper-motor-driver says 5v logic and 8-34v supply.
the maestro expansion doesn't list any specs, but it would match the maestro of 3.3v logic and max 25v supply
(edit: if you're wanting to use a Duet 2 Maestro expansion with a Duet 2 Wifi you'd have to confirm you can configure the TMC2224 over a spare UART; or that they can be used without configuration. The docs say SPI but I believe that is incorrect for the 2224.) -
Thanks.
It's printed on the solder mask
Is it possible to "talk" to TMC UART or SPI drives as one would from a Marlin?
-
@McAbra said in Extending the Duet2 with Maestro:
It's printed on the solder mask
wouldn't worry about the solder mask not being 24v compatible jokes aside, 99.999% Vin/9v goes straight to Vmot and it'll be fine. Its probaly related to arduino and highlighting you need more than 8v to supply the motor driver.
so refer to Vmot for the driver you want to use instead.
@McAbra said in Extending the Duet2 with Maestro:
Is it possible to "talk" to TMC UART or SPI drives as one would from a Marlin?
it is, the Maestro does use UART and Duet duet 2 wifi does use SPI, combining the two will likely require some custom code and building the firmware which is a little less easy compared to Marlin (but 11 out of 10 users don't need to compile RepRapFirmware)
-
but this is an unorthodox approach to using smart stepper drivers with controllers that can't configure them correctly
-
The Maestro Expansion aside then. If I were to add TMC2130 (which are SPI) how would I set i.e. the spreadCycle mode for them in a Duet config? Or is that unsupported and would require firmware changes?
-
i think the default firmware expects all smart drivers to be of the same type. if the tmc2660 of the wifi and tmc2130 are compatible with respect to spi configs i do not know but should be doable to adapt the firmware if not a bit of work.
maybe dc42 or someone else can chime in on the compatability.
-
@bearer said in Extending the Duet2 with Maestro:
i think the default firmware expects all smart drivers to be of the same type. if the tmc2660 of the wifi and tmc2130 are compatible with respect to spi configs i do not know but should be doable to adapt the firmware if not a bit of work.
That's correct. The Duet WiFi/Ethernet firmware is only set up to drive TMC2660 drivers and dumb drivers, the Maestro firmware is only set up to drive TMC2208 or TMC2224 or dumb drivers (but would probably work with TMC2209 as well).
-
the 2130' stepsticks can be configured as dumb at least, path of least resistance.
or https://github.com/dc42/RepRapFirmware/blob/dev/BuildInstructions.md
-
Thank you. I got it to work. Had to plow through the datasheet to configure all the CFG pins (that are relevant in the "standalone" mode) to achieve the mode I wanted without any motor whining.
Should I document that somewhere?
-
@McAbra said in Extending the Duet2 with Maestro:
Thank you. I got it to work. Had to plow through the datasheet to configure all the CFG pins (that are relevant in the "standalone" mode) to achieve the mode I wanted without any motor whining.
Should I document that somewhere?
Yes please! https://duet3d.dozuki.com/Wiki/Using_external_stepper_motor_drivers#Section_Connecting_Pololu_style_drivers would be a good place.
-
@dc42 I made the change - please take a look - English is not my first language.