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

    DUET 2 relay switch as external trigger

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    relay switching trigger
    3
    12
    674
    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.
    • HughesyMendesundefined
      HughesyMendes @jay_s_uk
      last edited by

      @jay_s_uk

      if you're not using any fan outputs, set them as 5v and use those

      How would I go about doing that? I tried setting Fan 2 as a GPIO with the M950 command; M950 P0 C"fan2" and then plugged one dupont connector onto the left hand pin of Fan 2 and another to ground so I could switch it on and off with the M42 command but nothing happened?

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

        @hughesymendes all the fan outputs switch on the ground, not on the voltage.
        either use the fan + supply or use 5v from elsewhere.

        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

        HughesyMendesundefined 1 Reply Last reply Reply Quote 0
        • HughesyMendesundefined
          HughesyMendes @jay_s_uk
          last edited by

          @jay_s_uk

          So does that mean its on by default and then I should switch off? As I can make that work by switching over my NO and NC on the relay. The only problem I have there is that when I run the FAN2 output through my multimeter and switch it off I'm only getting 0.6V as opposed to 5V when its on. Did you say it was possible to set the voltage on the Fan?

          Again, sorry to ask such basic questions. I'm trying to learn this as I go without shorting anything out and blowing it up!

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

            @hughesymendes which duet board do you have?

            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

            HughesyMendesundefined 1 Reply Last reply Reply Quote 0
            • HughesyMendesundefined
              HughesyMendes @jay_s_uk
              last edited by

              @jay_s_uk The DUET 2 Ethernet running Duet web control 3.3.0

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

                @hughesymendes using this jumper here
                e3ad439c-ce24-481a-804a-d4ff9d284b4a-image.png

                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
                • HughesyMendesundefined
                  HughesyMendes
                  last edited by

                  Yeah I have that jumper set on the left two pins for the 5V selection but I'm still reading 0.5V. When I run a test script to switch the output off and on it works, it just isn't supplying 5V?

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

                    @hughesymendes as @jay_s_uk mentioned the fan2 control pin switches the ground side, not the 5V side. so you need to connect it to the negative side of the relay and 5V to the positive side of the relay. Before you do though, what current does the relay draw when switching?

                    Probably wirth doing a quick drawing of how you are planning on connecting everything.

                    www.duet3d.com

                    HughesyMendesundefined 1 Reply Last reply Reply Quote 0
                    • HughesyMendesundefined
                      HughesyMendes @T3P3Tony
                      last edited by

                      @t3p3tony
                      Ahh I see. Sorry i misunderstood what @jay_s_uk meant by that. Its been a steep learning curve to say the least!

                      The relay has a 2A max draw to ensure I don't blow anything.

                      I've tested it and the relay now supplies the neccesary power, thanks for all your help @jay_s_uk @T3P3Tony 🙂

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

                        @hughesymendes great you got it working. Just to be clear you don't want to be drawing 2A at 5V from the Duet 2, I assume you mean that the relay is switching 2A max?

                        www.duet3d.com

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