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

    Duet 2 Ethernet and SBC

    Scheduled Pinned Locked Moved
    Beta Firmware
    29
    302
    33.2k
    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.
    • deadwood83undefined
      deadwood83
      last edited by

      OK, here's my thinking on an easy way to connect SBC regardless of ethernet or wifi version.

      The header on the side is a 2.54mm, could accept female or male, protrudes past the board edge and sits forward and next to the paneldue header. The adapter is soldered to the bottom in the same manner the ESP is attached to the top. It could also be mounted with pins through it.

      Hole for plastic push-fitting to reinforce.

      Relief is left for up to a 7mm diameter fastening post around the board mounting screw. Resistors are 470-Ohm.

      Anything I am missing?
      SBCAdapter.JPG

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

        @deadwood83 said in Duet 2 Ethernet and SBC:

        Anything I am missing?

        maybe some pull downs to the reset/enable lines to ensure no interference (unless rff 3.2 handles that in firmware) could be jumpered for flexibility i guess.

        1 Reply Last reply Reply Quote 0
        • deadwood83undefined
          deadwood83
          last edited by deadwood83

          @bearer I think it would be much less intrusive to figure out a way to pull PE4 and PE5 low in firmware.

          I poked around in the Duet3 designs and I see that someone (Tony?) had a great idea for v1.1.

          Input buffers. With that in mind, I present version two! All parts available for SMT from JLC, incorporates the design guidelines laid out in the duet3, comes to $19.5USD per 10 (please note I am not selling these, this is the price from JLCPCB) (plus shipping). Sadly I did have to bump it to a dual layer PCB.

          For V1.04 Duet Wifi, the CS/NPCS0 pin already has a 2k2 resistor. R2 can be bridged in that case.SBCAdapterv2.JPG

          Fixed the dims.

          arhiundefined 1 Reply Last reply Reply Quote 1
          • arhiundefined
            arhi @deadwood83
            last edited by

            @deadwood83 why solder to board instead plugin in to the header?

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

              @arhi said in Duet 2 Ethernet and SBC:

              @deadwood83 why solder to board instead plugin in to the header?

              presumably because wifi boards don't have headers?

              arhiundefined 1 Reply Last reply Reply Quote 0
              • arhiundefined
                arhi @A Former User
                last edited by

                @bearer wifi boards you have to desolder the board right? so if you do that you can solder on the 2 headers thats easier than removing the esp module 😄 ...

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

                  @arhi said in Duet 2 Ethernet and SBC:

                  @bearer wifi boards you have to desolder the board right?

                  simply disabling it in either RRF or WiFi firmware seems to work, but can't say I've done a ton of testing (there is a thread with a pogo pin thing to slap on top of existing wifi module and worked for the limited testing i did)

                  arhiundefined 1 Reply Last reply Reply Quote 0
                  • arhiundefined
                    arhi @A Former User
                    last edited by arhi

                    @bearer ah, that's cool then 🙂 ... I dislike wifi in general so never even tried the duet2wifi board 🙂 all my duet's are eth ... anyhow it's rather easy to solder a header on this board too so not a biggy even as is it is very useful

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

                      @arhi said in Duet 2 Ethernet and SBC:

                      anyhow it's rather easy to solder a header on this board too so not a biggy even as is it is very useful

                      true, but the headers holes are covered by the wifi module which is probably not for everyone to remove.

                      1 Reply Last reply Reply Quote 0
                      • deadwood83undefined
                        deadwood83
                        last edited by deadwood83

                        It is version agnostic. It is attached to the back of the board, so it works with both ethernet and wifi versions. No desoldering required, only attaching pins to the Pi header. I will publish the public EasyEDA links once I verify all my measurements in KiCad.duetFit.JPG

                        EDIT:
                        -Updated image to be proper scaling.
                        -Created non-hollow version with plated through-holes for ethernet users who want to stick it on the headers
                        -License is CERN open hardware, feel free to commercialize it if anybody feels so motivated.
                        -Strengthened top section, re-scaled text, verified clearance against paneldue header, extended bottom of board to index against duet mainboard.
                        -NO DESOLDERING NECESSARY
                        -Updated grounding to star/bus ground pattern

                        The schematics/PCB

                        I took the plunge. JLC.JPG

                        I will keep 5 for me. The others can go to homes in the US at the cost of a flat rate envelope.

                        arhiundefined T3P3Tonyundefined tekstyleundefined 3 Replies Last reply Reply Quote 1
                        • deadwood83undefined
                          deadwood83
                          last edited by

                          I think I may have messed up in my design.

                          @T3P3Tony I have a question about the SBC conn on the duet 3 v1.01. On my little breakout I put a 470-Ohm in series with the input buffers on SCLK and only just realized (after ordering some) that your placement of the 470 was NOT on the clock line but rather on PC23/IO_7_OUT. Looking at TI's guidelines for matching a series damping resistor: https://www.ti.com/lit/an/scba012a/scba012a.pdf

                          Assuming worst-case scenario, at max output current for the SN74LVG2G34 (12mA) we get Irms of ~8mA

                          Using PCBWay's trace impedance tool shows a line impedance of roughly 105-Ohm for 2 layer FR4 1.6mm 1-Oz copper PCB using the trace width of .61mm

                          My worry is that the 470-Ohm resistor will provide too much dampening and round off the waveform peaks too much since SCK on the daughterboard lives at the termination rather than origination (or could this be considered the origination due to the amount of PCB the signal must travel?). Do you think this is a valid worry, or should it be OK with the resistor there at the current speed of 8MHz?

                          Considering other solutions to this point involved some wires with crimped/socketed resistors, and one instance of a breadboard, am I just overthinking it now?

                          A Former User? 1 Reply Last reply Reply Quote 0
                          • arhiundefined
                            arhi @deadwood83
                            last edited by

                            @deadwood83 said in Duet 2 Ethernet and SBC:

                            The schematics/PCB

                            awesome 🙂 thanks
                            Did you made this in kicad and exported to easyeda or you made it directly in easyeda. I can redraw it in kicad but if you already have it in kicad it would save me some time 😄

                            deadwood83undefined 1 Reply Last reply Reply Quote 0
                            • smoki3undefined
                              smoki3
                              last edited by smoki3

                              @deadwood83 Cool design. I use a would use a similar one but with an integrated 5V DCDC converter to power the raspberry. Otherwise you need an external one which is not so pretty and easy to use.

                              I also integrated the same pin layout as on the raspberry to use a simple ribbon cable.

                              But actually the firmware is the first thing which need to be fixed 🙂

                              1 Reply Last reply Reply Quote 0
                              • PCRundefined
                                PCR
                                last edited by

                                @deadwood83 Wrote you a PM

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

                                  @deadwood83 said in Duet 2 Ethernet and SBC:

                                  2 layer FR4 1.6mm 1-Oz copper PCB

                                  4 layer and 2 Oz for the Duets

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

                                    @deadwood83 R100,R101,R105 on the SPI lines on the Duet 2 side are 47R. There are relatively short lines from those resistors to the relevant pins. External copper is 2Oz and these are 0.25mm traces. internal solder is 1Oz, same trace width.

                                    Where we use those buffers on the Duet 3 we don't have series resistors in the circuit as well as the buffers so the 470R is probably unnecessary

                                    www.duet3d.com

                                    1 Reply Last reply Reply Quote 0
                                    • deadwood83undefined
                                      deadwood83 @arhi
                                      last edited by

                                      @arhi said in Duet 2 Ethernet and SBC:

                                      @deadwood83 said in Duet 2 Ethernet and SBC:

                                      The schematics/PCB

                                      awesome 🙂 thanks
                                      Did you made this in kicad and exported to easyeda or you made it directly in easyeda. I can redraw it in kicad but if you already have it in kicad it would save me some time 😄

                                      I made it in EasyEDA. I keep trying to go to KiCAD but snap to grid just... drives me completely insane. I wager that will become pretty much mandatory once I graduate beyond 2-layer.

                                      @smoki3 said in Duet 2 Ethernet and SBC:

                                      @deadwood83 Cool design. I use a would use a similar one but with an integrated 5V DCDC converter to power the raspberry. Otherwise you need an external one which is not so pretty and easy to use.

                                      I also integrated the same pin layout as on the raspberry to use a simple ribbon cable.

                                      But actually the firmware is the first thing which need to be fixed 🙂

                                      I fear that any buck which would fit on a reasonable sized board would not be up to snuff. I have seen LMs and MP bucks burn Pi's faaaar too many times to feel comfortable putting one in one of my designs. Also, when you put power to the pi through GPIO it is my understanding that it bypasses a significant section of input protection. I will stick to $10 10A converters. Much safer to run 10-30% of a very cheap piece of kit's rating IMO when it has questionable pedigree.

                                      RE: Ribbon cable; My personal preference is to twist MISO/MOSI lines from individual conductors. CS has a buffer resistor near the node end (and doesn't have the sensitivity of the other 3) and 3v3_Pi isn't near the SPI pins anyway. Plus anybody soldering to a 3d printer controller probably has some dupont connectors #DiabloEternal

                                      RE: Firmware fix; from the RF3.2 excel spreadsheet -
                                      Duet+SBC support
                                      Duet 2 SBC support Done
                                      🤘

                                      @PCR said in Duet 2 Ethernet and SBC:

                                      @deadwood83 Wrote you a PM

                                      Replied

                                      @bearer said in Duet 2 Ethernet and SBC:

                                      @deadwood83 said in Duet 2 Ethernet and SBC:

                                      2 layer FR4 1.6mm 1-Oz copper PCB

                                      4 layer and 2 Oz for the Duets

                                      Understood, my impedance calcs were based on my cheap PCB though. I am not worried about the Duet circuitry since it comes from more capable designers than I

                                      @T3P3Tony said in Duet 2 Ethernet and SBC:

                                      @deadwood83 R100,R101,R105 on the SPI lines on the Duet 2 side are 47R. There are relatively short lines from those resistors to the relevant pins. External copper is 2Oz and these are 0.25mm traces. internal solder is 1Oz, same trace width.

                                      Where we use those buffers on the Duet 3 we don't have series resistors in the circuit as well as the buffers so the 470R is probably unnecessary

                                      Thanks Tony. I have updated my PCB layout to remove that and will put a simple solder bridge once my PCBs arrive. Being 0403 size, it could probably be bridged with a c-store lighter! (I will use my T12 station)

                                      arhiundefined wilrikerundefined 2 Replies Last reply Reply Quote 0
                                      • arhiundefined
                                        arhi @deadwood83
                                        last edited by

                                        @deadwood83 said in Duet 2 Ethernet and SBC:

                                        I keep trying to go to KiCAD but snap to grid just

                                        😄 😄 😄 I'm still getting used to KiCAD since I don't have access to licenced Altium any more and since I don't allow "cured" software on my computers had to find alternative and KiCAD is kinda best I managed to find.

                                        The grid thing .. what I do is I make my own set of trace widths and my own grid values and then I switch between them ... there's probbly a better way to do it but...

                                        I wanted to steal from your design the dimensions - position of headers vs that hole on top and the screw and ... but since I'm doing a push-on daughterboard (I used eth modules so remove eth board, plug in this one) with 5A DCDC and maybe some leds I might actually don't need to worry about positions...

                                        deadwood83undefined 1 Reply Last reply Reply Quote 0
                                        • deadwood83undefined
                                          deadwood83 @arhi
                                          last edited by

                                          @arhi

                                          There is a PCB in the EasyEDA link which is closed off and with through-holes for the ethernet board for those who want to just stick on some headers and go. The components are low-profile so it will fit top or bottom.

                                          The only things you would need to add are 5v buck and some LEDs. Look in the EasyEDA project for ethernetPCB and you will find it there, ready for you.👍

                                          arhiundefined 1 Reply Last reply Reply Quote 0
                                          • wilrikerundefined
                                            wilriker @deadwood83
                                            last edited by wilriker

                                            @deadwood83 said in Duet 2 Ethernet and SBC:

                                            RE: Firmware fix; from the RF3.2 excel spreadsheet -
                                            Duet+SBC support
                                            Duet 2 SBC support Done

                                            Unfortunately this support is currently limited to Duet 2 only, i.e. no DueX2/DueX5 connected.

                                            EDIT: the above is still considered a preliminary limitation and it is being worked on to get this resolved.

                                            Explicitly pulling the ESP_Enable line down (for a still present Wifi module) should be added to firmware soon.

                                            Manuel
                                            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                            with probably always latest firmware/DWC (incl. betas or self-compiled)
                                            My Tool Collection

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