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

Controlling relay module with Duet 3

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
7
384
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.
  • undefined
    anagh
    last edited by 17 Dec 2021, 23:26

    I have a Duet 3. I am trying to control a relay module with it. I thought it would just involve using one of the out7, out8 or out9 pins by connecting the positive of one of these to the inputs of the relay module. But the relay switches immediately as soon as I connect the positive of the out7 pin to the relay input. How do I wire this?

    (https://www.amazon.com/HiLetgo-Channel-Module-Optocoupler-Trigger/dp/B00LW2GA5Y/ref=asc_df_B00LW2GA5Y/?tag=hyprod-20&linkCode=df0&hvadid=167156423255&hvpos=&hvnetw=g&hvrand=6184031387541659090&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9031349&hvtargid=pla-343992463844&psc=1)

    undefined 1 Reply Last reply 17 Dec 2021, 23:36 Reply Quote 0
    • undefined
      FrankV @anagh
      last edited by FrankV 17 Dec 2021, 23:36

      @anagh Maybe this is helpfull to you. I control a relay with a power module. https://forum.duet3d.com/topic/26396/connecting-lerdge-power-monitoring-module-did-i-do-well?_=1639784083332

      Normal open en normal close are how they respond to signal.

      undefined 1 Reply Last reply 18 Dec 2021, 00:02 Reply Quote 0
      • undefined
        anagh @FrankV
        last edited by 18 Dec 2021, 00:02

        @frankv I did try to connect the relay to the GPIO pin but it did not switch the relay. I am guessing that is because the GPIO pins do not put out enough current to switch the relay.

        undefined 1 Reply Last reply 18 Dec 2021, 00:49 Reply Quote 0
        • undefined
          FrankV @anagh
          last edited by FrankV 18 Dec 2021, 00:49

          @anagh I see they are 12V so I don't know if the switching power is also 12V. I don't assume that. Do you feed them with 12 volt to the coil? You can try to use the GPIO for signal. Should work. You can test it with an external power supply or buck.

          From the info it should work because you put it also low.

          1. DC +: 12V positive power supply
          2. DC-: negative power connection
          3. IN1-IN8: each way based on the settings , can be high or low to control the corresponding relay
          undefined 1 Reply Last reply 18 Dec 2021, 01:17 Reply Quote 0
          • undefined
            anagh @FrankV
            last edited by 18 Dec 2021, 01:17

            @frankv that is exactly what i tried. if i connect out7 (or out8) to the input, the relay immediately turns on and never turns off even when i switch off out7.
            if i use io0.out (or other io outputs), the relay does not switch at all.

            undefined 1 Reply Last reply 18 Dec 2021, 08:07 Reply Quote 0
            • undefined
              jumpedwithbothfeet @anagh
              last edited by 18 Dec 2021, 08:07

              @anagh I have the same board running on my duet 3 @24v, I also had the same issue! mine was solved by moving the jumpers on the relay board like @FrankV suggests above.

              6HC Voron Trident based, 6XD CNC, Mini 5 polar printer

              1 Reply Last reply Reply Quote 0
              • undefined
                anagh
                last edited by 23 Dec 2021, 23:33

                Here is what worked for me. I used a 5 pin relay which has 2 terminals for inputs. Made my life much easier.
                https://www.amazon.com/gp/product/B09FPVGC5V/ref=ppx_yo_dt_b_asin_image_o00_s00?ie=UTF8&psc=1

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