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

    Duet 2 Wifi with 2x Mellow TMC5160 Pro Stepper Drivers??

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    11
    506
    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.
    • dmandnundefined
      dmandn
      last edited by dmandn

      Hi everyone.

      Hoping I can avoid buying new control boards and simply add 2 of these Mellow TMC5160 stepper drivers as found here: https://www.aliexpress.com/item/1005004229433552.html Does anyone know how to connect/wire these into a duet wifi? Doe I need another componenet in between?

      I'm hoping to use these 5160 drivers for x and y/ab steppers on a voron 2.4. Then use the built in drivers for the 5 steppers. This leaves one leftover stepper fdriver onboard. I will use a canbus toolhead for extruder as running klipper.

      As I am running klipper, this question is more relating to the hardware of the duet2wifi and not reprap firmware. I will sort the klipper configuraiton out once I know if this is possible and how to wire up.

      dc42undefined o_lampeundefined 2 Replies Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @dmandn
        last edited by dc42

        @dmandn I can't speak for those particular drivers. You can connect TMC5160 drivers directly to a Duet 2 if the VIO voltage to the drivers is 3.3V. However, the Duet will not be able to control the drivers via SPI. This may be OK if the drivers provide an alternative way to set the current (normally a potentiometer) and jumpers to select between any modes that you might be interested in (e.g. spreadCycle vs. stealthChop).

        Make sure you have a good ground connection between the Duet and the drivers, because if that connection fails then it's likely that current from the main VIN supply to the drivers will be routed to the I/O pins connected to the Duet.

        Also I don't know whether the Klipper firmware for the Duet is as flexible as RRF is in terms of mixing on-board TMC2660 drivers with additional drivers that are not controlled via SPI.

        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

        dmandnundefined 1 Reply Last reply Reply Quote 0
        • dmandnundefined
          dmandn @dc42
          last edited by

          @dc42 Klipper requires a separate definition for each driver and stepper, so that should be ok.
          The driver apparently works with both 3.3v and 5v IO so should be ok there.

          However, no SPI might make things a bit difficult though.

          dmandnundefined 1 Reply Last reply Reply Quote 0
          • dmandnundefined
            dmandn @dmandn
            last edited by dmandn

            @dmandn Can any of the spi0 or spi1 pins be repurposed for SPI comms with the driver? (Asking as I don't think I can manually control these drivers).

            dc42undefined 1 Reply Last reply Reply Quote 0
            • o_lampeundefined
              o_lampe @dmandn
              last edited by

              @dmandn How do you want to use a CAN toolboard with a Duet2?

              I experiemented with BigTreeTech M5 expansion board a few years back. ( The Duex5 was sold out everywhere, due to supply shortage)
              It worked well, but the TMC5160 can't deliver more than ~2.4A with such a small PCB footprint before they overheat. They already need active cooling,

              Given the price of a single TMC5160 at that time, it's not worth doing that again. The Duex5 is available now
              BTT_M5.jpg

              dmandnundefined 1 Reply Last reply Reply Quote 1
              • dc42undefined
                dc42 administrators @dmandn
                last edited by

                @dmandn said in Duet 2 Wifi with 2x Mellow TMC5160 Pro Stepper Drivers??:

                @dmandn Can any of the spi0 or spi1 pins be repurposed for SPI comms with the driver? (Asking as I don't think I can manually control these drivers).

                In principle you could use the SPI pins on the temperature daughterboard connector to control external drivers, but of course the Klipper firmware for the Duet would need to be modified to support that SPI with TMC5160 drivers at the same time as supporting the TMC2660 drivers on the other SPI bus.

                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

                dmandnundefined 1 Reply Last reply Reply Quote 0
                • dmandnundefined
                  dmandn @o_lampe
                  last edited by

                  @o_lampe I'm not using the can toolboard with the duet 2 hardware directly. I am running klipper on a Raspberry Pi. The Can toolhead connects to a USB to CAN board which then connects tot he toolheat via the CAN interface. The UBS side of the USB to CAN board connects wiht the PI directly.

                  The duet 2 wifi was intended to run the bed heating and other steppers.

                  1 Reply Last reply Reply Quote 0
                  • dmandnundefined
                    dmandn @dc42
                    last edited by dmandn

                    I'm trying to determine what the pin allocations are. Anyone able to assist with this?

                    In Klipper, I need to specify either the spi_bus pin or if for software spi, the spi sclk_pin, spi mosi_pin and spi miso_pin. I have the other pins already but unsure what these would correlate to. I have connected the wires to pins Labelled SPI_MISO, SPI_MOSI and SPI_SCK of CONN_SD on the wiring diagram. However, I will need the GPIO pin names, for example:

                    Drivers

                    | Drive | DIR pin | STEP pin | ENDSTOP pin | SPI EN pin |

                    |-------|----------|-----------|--------------|-------------|

                    | X | PD11 | PD6 | PC14 | PD14 |

                    Misc pins

                    | (DUET) Name | (Klipper name) Pin |

                    |-------------|---------|

                    | SPI0_CS0 | PC24 |

                    o_lampeundefined 1 Reply Last reply Reply Quote 0
                    • o_lampeundefined
                      o_lampe @dmandn
                      last edited by o_lampe

                      @dmandn
                      On CONN_SD:
                      Pin3 == SPI_CS0
                      Pin4 == SPI_CLK
                      Pin5 == MOSI
                      Pin6 == MISO
                      pinmapping.jpg

                      dmandnundefined 1 Reply Last reply Reply Quote 0
                      • dmandnundefined
                        dmandn @o_lampe
                        last edited by dmandn

                        @o_lampe
                        I will try those (again), but normally those names are not used by klipper, instead it uses the internal GPIO pin names.

                        Update - No those definitely are the RRF specific remapped names, don't work outside of RRF.

                        dmandnundefined 1 Reply Last reply Reply Quote 0
                        • dmandnundefined
                          dmandn @dmandn
                          last edited by

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