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

    Duex5 - 5v for relay

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    8
    712
    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.
    • markundefined
      mark
      last edited by mark

      I am looking to switch a relay (https://www.ebay.co.uk/itm/3-3V-5V-16A-Relay-Module-for-Arduino-Nano-Due-Raspberry-Pi-ESP8266-Optocoupler/272377230993?epid=12021202256&hash=item3f6af2b691:g:bB0AAOSwLF1X2m2p) which will turn my Bed heater PSU on and off in G-code at the start and end of a print

      alt text

      1. Can I use the "PWM FANS(1.5A Max)" output on the Duex5 to switch the reply?
      2. The relay require 5v, do I just have to move the "V Fan Jumper select" to 5v? do i need to supply 5v to the board somewhere or will it get the 5v from the 12v input
      3. What would be the G-code to turn on/off the fan?

      Many Thanks,

      Mark

      dc42undefined 1 Reply Last reply Reply Quote 0
      • sinned6915undefined
        sinned6915
        last edited by sinned6915

        I had similar challenge. I ended up wiring up a MOSFET to be triggered by the pin. The MOFSET can get triggered by anything as low as 2.5V.

        If you control the ground wire of the circuit, you can then use almost any relay, 5V or 12V. I am basically following the Duet schematic for the circuit. I described it here -

        https://forum.duet3d.com/topic/10758/powering-on-using-tp-link-smart-plug

        1 Reply Last reply Reply Quote 1
        • markundefined
          mark
          last edited by

          Anybody able to give feedback on my original questions, not sure I am trying to do the same thing as Sinned6915 as I am just wanting to switch on/off my secondary PSU.

          1 Reply Last reply Reply Quote 0
          • DocTruckerundefined
            DocTrucker
            last edited by

            Is using PS_ON not an option? That is triggered by M80 and M81 and can be configured to drop out on a heater fault.

            Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

            1 Reply Last reply Reply Quote 0
            • sinned6915undefined
              sinned6915
              last edited by

              is your bed heater mains voltage or dc?
              have you considered an SSR instead? maybe something like this will work in a more direct fashion?

              https://www.sainsmart.com/products/2-channel-3v-32v-solid-state-relay

              1 Reply Last reply Reply Quote 0
              • DocTruckerundefined
                DocTrucker
                last edited by DocTrucker

                SSRs are not safety devices. The documentation from Omron for their devices and the Duet documentation says as much.

                Edit: ...because the failure mode is fail closed circuit and SSRs are less tollerant of transient voltages that can be caused by general noise or nearby electrcal storms.

                Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

                1 Reply Last reply Reply Quote 0
                • markundefined
                  mark
                  last edited by

                  My bed is dc, basically I have 2 PSU's one that powers the duet and one that powers just the bed via a mosfet.

                  The power supply that powers the duet is fan-less and so is silent, but it does not have enough power to use for the bed.

                  The second power supply for the bed has a fan and makes quite a bit of noise, so I would like to be able to turn this second PSU on/off when I am not printing via the G code in the slicer.

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

                    @mark said in Duex5 - 5v for relay:

                    I am looking to switch a relay (https://www.ebay.co.uk/itm/3-3V-5V-16A-Relay-Module-for-Arduino-Nano-Due-Raspberry-Pi-ESP8266-Optocoupler/272377230993?epid=12021202256&hash=item3f6af2b691:g:bB0AAOSwLF1X2m2p) which will turn my Bed heater PSU on and off in G-code at the start and end of a print

                    alt text

                    1. Can I use the "PWM FANS(1.5A Max)" output on the Duex5 to switch the reply?
                    2. The relay require 5v, do I just have to move the "V Fan Jumper select" to 5v? do i need to supply 5v to the board somewhere or will it get the 5v from the 12v input
                    3. What would be the G-code to turn on/off the fan?

                    Many Thanks,

                    Mark

                    Check that your relay module has an optically isolated input. Is it does then that will work, alternatively connect it between +5V and the FAN- pin, then you can set VFAN to whatever is right for your fans. Or connect the relay module input with a series resistor to the Fan output, then you can keep VFAN at 12V or 24V.

                    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

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