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

    Duet 2 Ethernet and SBC

    Scheduled Pinned Locked Moved
    Beta Firmware
    29
    302
    33.5k
    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.
    • resamundefined
      resam
      last edited by

      Since this post is getting rather long, let me summarize briefly and post a few bits that I haven't found here yet:

      @deadwood83 has made a nice PCB nice PCB here with PCB and schematic sources in EasyEDA. It fits nicely on a Duet 2 WiFi and DuetEthernet without desoldering the existing WiFi module.

      The pins on the PCB are mostly self-explanatory to hook them up to a Raspberry Pi:

      • GND to GND / multiple physical pins
      • SCK to GPIO11 / SPI0 SCLK / Physical Pin 23
      • MOS to GPIO10 / SPI0 MOSI / Physical Pin 19
      • MISO to GPIO9 / SPI0 MISO / Physical Pin 21
      • 3V3 to 3V3/Physical Pin 1 or 17
      • RDY to GPIO25 (TransferReadPin) / Physical Pin 22
      • CS to GPIO8 / SPI0 CE0 / Physical Pin 24

      (see this for a Raspberry Pi pin out table to double check)

      GeneRisiundefined 1 Reply Last reply Reply Quote 3
      • keyz182undefined
        keyz182
        last edited by

        Has anyone got tips on connecting optimally?

        Currently I'm using a 4 core and a 2 core shielded cables, to connect up, with the shield as ground. Still have to drop the SPI speed to 2MHz though.

        When I'm able, I'll rearrange things to reduce the cable length further (about 15cm currently). I've tried to route other wires (steppers etc) away from the Comms cable.

        1 Reply Last reply Reply Quote 0
        • resamundefined
          resam
          last edited by

          I successfully connected (default settings) with a piece of 25cm ethernet cable (without the shield mesh - just the twisted pairs + outer insulation) soldered to pin headers on both sides. I paid no attention to the twisted pairs and just chose a good color mapping that worked nicely with the physical world.

          I haven't run any prints yet, but DSF is working and M122 shows no SPI errors, and plenty of successful transfers after 30min idling. Jogging the axis works via PanelDue and DWC perfectly.

          A snippet of my M122:

          === Diagnostics ===
          RepRapFirmware for Duet 2 SBC version 3.2.2 running on Duet 2 1.02 or later + SBC (SBC mode)
          === RTOS ===
          Static ram: 17008
          Dynamic ram: 60600 of which 72 recycled
          Never used RAM 34400, free system stack 160 words
          === Platform ===
          Last reset 00:16:35 ago, cause: power up
          === SBC interface ===
          State: 4, failed transfers: 0
          Last transfer: 5ms ago
          RX/TX seq numbers: 34553/34553
          SPI underruns 0, overruns 0
          Number of disconnects: 0, IAP RAM available 0x0dad4
          Buffer RX/TX: 0/0-0
          === Duet Control Server ===
          Duet Control Server v3.2.2
          Code buffer space: 4096
          Configured SPI speed: 8000000 Hz
          Full transfers per second: 35.44
          Maximum length of RX/TX data transfers: 2560/512
          
          1 Reply Last reply Reply Quote 0
          • keyz182undefined
            keyz182
            last edited by

            I had run quite a lot of successful prints previously on 3.2.

            Switched to 3.3 beta today to do some testing and found prints stopping after a layer or two, and logs complaining about SPI. I think I read that 3.3 is more vocal about SPI errors, so just making sure hardware is good before looking at software, especially when it's beta.

            keyz182undefined 1 Reply Last reply Reply Quote 0
            • GeneRisiundefined
              GeneRisi @resam
              last edited by

              @resam Is anyone ordering a batch of these boards and doesn't need all 10 of them? Please PM me if you want to sell one. I'm in the US. Thanks!

              1 Reply Last reply Reply Quote 0
              • keyz182undefined
                keyz182 @keyz182
                last edited by

                FYI - I found adding a simple ferrite core to the cabling from the Duet to the Pi has silenced the SPI errors.

                I have a ~10CM run with shielded cables, but I guess it's still noisy there, but that core appears to have reduced the noise enough to bump the frequency back to 4MHz. Haven't tried the full 8MHz yet as I want to get some prints finished before I do anymore testing.

                gloomyandyundefined 1 Reply Last reply Reply Quote 0
                • gloomyandyundefined
                  gloomyandy @keyz182
                  last edited by

                  @keyz182 Could you post details of the type of core you used and perhaps a picture of how you have it installed?

                  keyz182undefined 1 Reply Last reply Reply Quote 0
                  • keyz182undefined
                    keyz182 @gloomyandy
                    last edited by

                    @gloomyandy can't get to the back of the printer right now. As for which ones, I litterally typed "ferrite core" into Amazon and bought the first ones that came up. Just clipped them straight onto the cable. I did have to trim the insulation a bit as it was a bit too fat ( I have a pair of 4core shielded cables, so trimmed the outer insulation). If you have loose cables, they should just fit, all of them through the one core.

                    It came to mind as I had to do the same with my Paneldue. It's got maybe a meter of cable to it, and it was very intermittent without the core

                    gloomyandyundefined 1 Reply Last reply Reply Quote 0
                    • gloomyandyundefined
                      gloomyandy @keyz182
                      last edited by

                      @keyz182 Thanks! So I guess it was one of those clip on versions rather than a ferrite ring? Assume you just passed the wires through once?

                      keyz182undefined 1 Reply Last reply Reply Quote 0
                      • keyz182undefined
                        keyz182 @gloomyandy
                        last edited by

                        @gloomyandy yup, the clip ons, and just the once.

                        1 Reply Last reply Reply Quote 1
                        • TopperHarleyundefined
                          TopperHarley
                          last edited by TopperHarley

                          I have ordered some boards from @deadwood83 at JLCPCB.

                          If you are from Germany and need one, feel free to contact me: https://forum.duet3d.com/topic/22545/3x-duet-2-ethernet-sbc-adapter-to-sell-germany-only

                          CNCModellerundefined 1 Reply Last reply Reply Quote 0
                          • CNCModellerundefined
                            CNCModeller @TopperHarley
                            last edited by

                            Hi @topperharley, I'd like to order some for my Duet ethernet from JLC for myself.

                            I'm in the UK, but I have no idea how to go about it. Is there a brief summary (for a total JLC noob) of what I need to do? I've created an account but am not sure where to go from there.

                            Polar Duet3 Mini + 1HCL
                            https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                            Wanhao D4S: Duet2
                            https://forum.duet3d.com/post/296755
                            K40 Laser, Duet2
                            https://forum.duet3d.com/post/312082
                            Wanhao D5S
                            https://www.youtube.com/CNCModellerUK

                            GeneRisiundefined 1 Reply Last reply Reply Quote 0
                            • TopperHarleyundefined
                              TopperHarley
                              last edited by

                              Hello guys!

                              I have installed the SBC daughterboard from @deadwood83, because i want to switch to SBC mode later with the next release of RRF. It seem like my printer can't access to my network anymore with the installed daughter board (running standard image Duet2CombinedFirmware.bin 3.2.2).

                              I was expecting there should be no issues running the standard image with installed SBC daughterboard.

                              1 Reply Last reply Reply Quote 0
                              • GeneRisiundefined
                                GeneRisi @CNCModeller
                                last edited by

                                @cncmodeller I am also a noob to JLC and wonder the same thing!

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

                                  @generisi maybe open a topic in "Off Topic" category ... that would make much more sense.

                                  JLC service works just like any other pcb manufacturing service, you send them gerbers for layers and drill files for holes and they make you pcb's... if you want assembly you generate BOM files and position files (what and where) and they get you the parts and solder them on boards ... everything is properly documented on their site

                                  GeneRisiundefined 1 Reply Last reply Reply Quote 0
                                  • GeneRisiundefined
                                    GeneRisi @arhi
                                    last edited by GeneRisi

                                    @arhi Thank you very much! I just ordered 5 boards

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

                                      @arhi @PCR @deadwood83
                                      Sorry for digging out this old thread, but I was curious if it would make sense to make a Duet2 adapter board for the RasPi Zero 2W?
                                      @PCR has already made an adapter for Duet3 (mini), but IMHO it would be easy to combine it with the circuits mentioned here.

                                      Unfortunately I'm still a NOOB in KiCad, but maybe I can trigger someones interest?

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

                                        @o_lampe said in Duet 2 Ethernet and SBC:

                                        @arhi @PCR @deadwood83
                                        Sorry for digging out this old thread, but I was curious if it would make sense to make a Duet2 adapter board for the RasPi Zero 2W?

                                        I have very bad experience with rpizero boards so...

                                        As for the duet2+sbc, I made this for test, it worked and I let it be, I focused on making some adaption software as external network app and not something that would run on sbc... and that was looong time ago (from when this thread was live) and since then I maybe had 2 hours of printing time total 😞 .. too busy with work ... hopefully I'll be able to come back to 3d printers in spring but I got me some resin printers dunno if I'll spend much time with duet boards I want to spend some time with them first

                                        1 Reply Last reply Reply Quote 0
                                        • tekstyleundefined
                                          tekstyle @deadwood83
                                          last edited by tekstyle

                                          @deadwood83 do you still have some kit left for sale? in need of one for my duet 2. are the chip already soldered?

                                          Baenwortundefined 1 Reply Last reply Reply Quote 0
                                          • Baenwortundefined
                                            Baenwort @tekstyle
                                            last edited by

                                            I'm still hopeful someone will post instructions I can follow for converting a Duet2Ethernet to d2+SBC as I'd like to have the extra processing ability for some of the hoped to have plugins.

                                            1 Reply Last reply Reply Quote 1
                                            • resamundefined resam referenced this topic
                                            • chrishammundefined chrishamm referenced this topic
                                            • jay_s_ukundefined jay_s_uk referenced this topic
                                            • infiniteloopundefined infiniteloop referenced this topic
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA