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

    Duet3 -> SBC wiring (without the ribbon cable)

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    9
    20
    1.3k
    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.
    • garyd9undefined
      garyd9
      last edited by

      I'm (currently) using the duet3 with an attached RaspPi 4. The RaspPi is powered via the RaspPi wall wart (not from the duet3.) Would it be reasonable to replace the bulky and cumbersome ribbon cable with just 6 wires with female dupont connectors?

      I'm guessing I could just connect the following pins from the duet3's SBC connector to the same numbered pins on the RaspPi:

      19 - SPI_MOSI
      20 - GND
      21 - SPI_MISO
      22 - TFR_RDY
      23 - SPI_SPCK
      24 - SPI_NPCS0

      (This would leave unconnected pins 2/4 (+5VDC) and pins 6/9/14/25 (all GND)) I think my biggest concern is if all 5 of the duet3 "GND" pins are interconnected on the duet. If they are, just using pin 20 should be okay.

      If so, would 24 AWG silicone wires be suitable for a length of 150 to 200mm?

      Thanks
      Gary

      "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

      1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk
        last edited by

        yes, that should work.
        I believe @bearer was using his own cable rather than the supplied one.

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        garyd9undefined 1 Reply Last reply Reply Quote 0
        • garyd9undefined
          garyd9 @jay_s_uk
          last edited by

          @jay_s_uk said in Duet3 -> SBC wiring (without the ribbon cable):

          yes, that should work.
          I believe @bearer was using his own cable rather than the supplied one.

          Thank you. I did see an old post from @bearer who said there might be an even older post showing a picture what he did, but I can't seem to find that oldest post, so wasn't sure which pins he used (and which ones he didn't.)

          So - figured I'd ask here to be certain that ignoring all but those 6 specific pins would be okay.

          "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

          1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk
            last edited by jay_s_uk

            we mainly wire up the SBC on the LPC/STM port stuff.
            All the correct pins on the pi are detailed here
            https://github.com/gloomyandy/RepRapFirmware/wiki/SKR-SBC

            pretty picture
            68747470733a2f2f692e6962622e636f2f713072703847582f717a756c6475302d496d6775722e6a7067.jpg

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            garyd9undefined 1 Reply Last reply Reply Quote 0
            • garyd9undefined
              garyd9 @jay_s_uk
              last edited by

              @jay_s_uk said in Duet3 -> SBC wiring (without the ribbon cable):

              we mainly wire up the SBC on the LPC/STM port stuff.
              All the correct pins on the pi are detailed here
              https://github.com/gloomyandy/RepRapFirmware/wiki/SKR-SBC

              That's interesting: You use pin 6 for GND instead of pin 20. Is there a particular reason? (My reasoning for using pin 20 was so that it'd be clustered with the other 5 required pins, allowing the use of two 1x3 or one 2x3 housing(s.)

              "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

              jay_s_ukundefined A Former User? 2 Replies Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk @garyd9
                last edited by

                @garyd9 no reason at all.
                I should probably change it to 20. They all do the same thing.

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                1 Reply Last reply Reply Quote 1
                • garyd9undefined
                  garyd9
                  last edited by

                  @jay_s_uk

                  I'm kind of curious: what kind of board is that diagram wiring to? If resistors are needed on the signal lines, I'm guessing it's not electrically identical to a duet3 board...

                  "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                  Phaedruxundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator @garyd9
                    last edited by

                    @garyd9 said in Duet3 -> SBC wiring (without the ribbon cable):

                    I'm kind of curious: what kind of board is that diagram wiring to?

                    BigTreeTech SKR V1.3

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @garyd9
                      last edited by

                      @garyd9 yep, an SKR 1.3. It was just the quickest thing I had to hand that showed the pi pins.
                      We have resistors on the SPI lines as on the duet they're built in whereas they aren't for us. Just adds a bit more protection.

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      1 Reply Last reply Reply Quote 0
                      • A Former User?
                        A Former User @garyd9
                        last edited by

                        @garyd9 said in Duet3 -> SBC wiring (without the ribbon cable):

                        That's interesting: You use pin 6 for GND instead of pin 20. Is there a particular reason? (My reasoning for using pin 20 was so that it'd be clustered with the other 5 required pins, allowing the use of two 1x3 or one 2x3 housing(s.)

                        which pin used for ground shouldn't matter, I used pin 20 along with the 5 signal lines and pin 6 & 9 along with the 5V for power. (i guess in theory more ground lines are more better from a signal integrity point of view but never had any issues with the SPI speed used at the time)

                        1 Reply Last reply Reply Quote 0
                        • chas2706undefined
                          chas2706
                          last edited by

                          @bearer said in Duet3 -> SBC wiring (without the ribbon cable):

                          which pin used for ground shouldn't matter, I used pin 20 along with the 5 signal lines and pin 6 & 9 along with the 5V for power. (i guess in theory more ground lines are more better from a signal integrity point of view but never had any issues with the SPI speed used at the time)

                          Maybe I'm just unlucky but tried to use my own cable a number of times and got random disconnections between SBC and Duet.
                          Have tried incorporating two ground connections instead of just pin 20 and also made a lead a short as possible.
                          The reason for using my own cable was that I needed some free gpio pins on the pi.
                          Back on the ribbon cable now without any problems and got access to the gpio pins by cutting back the appropriate cables on the ribbon.

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

                            I suggest using at least two ground wires, the two closest to the SPI signals. Run all the wires close together. Duets need the 3.3V connection too, except for MB6HC version 0.6.

                            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

                            garyd9undefined 1 Reply Last reply Reply Quote 0
                            • garyd9undefined
                              garyd9 @dc42
                              last edited by garyd9

                              @dc42 said in Duet3 -> SBC wiring (without the ribbon cable):

                              I suggest using at least two ground wires, the two closest to the SPI signals. Run all the wires close together. Duets need the 3.3V connection too, except for MB6HC version 0.6.

                              So pin1 (and/or pin 17?) also needs a connection for v1.0.x DHC boards? Can I suggest that the image shown on the wiki (https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Wiring_Diagram) updated to include that pin in the "SBC 26 Pin Header" list?

                              "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                              1 Reply Last reply Reply Quote 0
                              • T3P3Tonyundefined
                                T3P3Tony administrators
                                last edited by

                                @garyd9 Thanks for pointing that out, I have updated the diagram.

                                www.duet3d.com

                                garyd9undefined 1 Reply Last reply Reply Quote 0
                                • garyd9undefined
                                  garyd9 @T3P3Tony
                                  last edited by

                                  @T3P3Tony said in Duet3 -> SBC wiring (without the ribbon cable):

                                  @garyd9 Thanks for pointing that out, I have updated the diagram.

                                  Thank you. Thank you also for clarifying in the diagram that it's pin 17 (not pin 1) that needs the connection.

                                  That suggests that I can run a 5x2 covering pins 17-26 on a (much) smaller ribbon cable which would cover all the SPI related pins, 3.3vdc on 17, and the GND's on 20 and 25.

                                  It just so happens that I have a few 300mm 5x2 ribbon cables that I purchased for a duet/wifi to paneldue connection (that I later changed to a simple 4 wire connection.) I'll have to give one of them a try for a duet3/SBC connection and see what happens. (I'm not assuming success due to it being 300mm, but duet3d stuff tends to be over-engineered, so it might work fine.)

                                  Again - thank you!

                                  "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                                  1 Reply Last reply Reply Quote 0
                                  • carcamerarigundefined
                                    carcamerarig
                                    last edited by

                                    Could somebody confirm the latest pin outs for the sbc ribbon connects on a Mini 5 and Pi4B please?

                                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator @carcamerarig
                                      last edited by

                                      @carcamerarig Does this help? https://forum.duet3d.com/topic/22390/own-cable-for-duet3-mini-to-sbc

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      carcamerarigundefined 1 Reply Last reply Reply Quote 1
                                      • carcamerarigundefined
                                        carcamerarig @Phaedrux
                                        last edited by carcamerarig

                                        @Phaedrux got it thanks 😉

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

                                          @carcamerarig For Raspberry Pi pinout, see https://pinout.xyz/#
                                          For Duet 3 Mini 5+ pinout, see https://duet3d.dozuki.com/Wiki/Duet_3_Mini_5plus_Wiring

                                          Basically, the Duet SBC port is the same pinout as the Raspberry Pi, with the Duet replicating pins 1 to 26. The top of each header is pin 1 (on the top left) and pin 2 (top right).

                                          d6bd42d9-ba06-43cb-84c9-dab3f95f7d7e-image.png

                                          43bb7553-d54b-4481-bdb2-4a40426ec0b1-image.png

                                          You need to connect, pin to pin, pins
                                          17 (3.3V), 19 (SPIO MOSI), 20 (GND), 21 (SPIO MOSI), 22 (SBC_DATA_RDY), 23 (SPIO_SCK), 24 (SPIOSS) and 25 (GND).

                                          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

                                          carcamerarigundefined 1 Reply Last reply Reply Quote 2
                                          • carcamerarigundefined
                                            carcamerarig @droftarts
                                            last edited by

                                            @droftarts @Phaedrux Screenshot_2021-03-25_at_16_49_25.jpg

                                            5 x 2 Dupont block.

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