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

Simple relay control... or not?

Scheduled Pinned Locked Moved
Duet Hardware and wiring
8
43
2.0k
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
    Nightowl @droftarts
    last edited by 27 Apr 2022, 10:13

    Thanks, @droftarts.

    There is no PSU. I need to provide a voltage (3-14v) to operate and hold the relay (it's non-latching) and then 0v to release it.

    undefined 1 Reply Last reply 27 Apr 2022, 10:22 Reply Quote 0
    • undefined
      droftarts administrators @Nightowl
      last edited by 27 Apr 2022, 10:22

      @nightowl999 You're running the board on USB power?

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      undefined 1 Reply Last reply 27 Apr 2022, 10:23 Reply Quote 0
      • undefined
        Nightowl @droftarts
        last edited by 27 Apr 2022, 10:23

        Sorry, @droftarts, I'm being a bit slow...

        No, the Duet3 is running from a 24V PSU.

        undefined 1 Reply Last reply 27 Apr 2022, 10:26 Reply Quote 0
        • undefined
          droftarts administrators @Nightowl
          last edited by 27 Apr 2022, 10:26

          @nightowl999 Then don't use the heater outputs, as 24V will be too much for the relay. You can use a fan output, with the fan voltage set to 12V. I would imagine the current draw of a relay is less than 2A.

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          undefined undefined undefined 3 Replies Last reply 27 Apr 2022, 10:46 Reply Quote 0
          • undefined
            Nightowl @droftarts
            last edited by 27 Apr 2022, 10:46

            Thanks, @droftarts. Does that mean I could use Out 7, 8 or 9 and change your code accordingly, or are they 24V because I'm using a 24V PSU?

            undefined 1 Reply Last reply 27 Apr 2022, 10:50 Reply Quote 0
            • undefined
              droftarts administrators @Nightowl
              last edited by 27 Apr 2022, 10:50

              @nightowl999 You can use out4, 5, 6, 7, 8 or 9. Above each bank (out4-6 and out7-9) there is a 3-pin header. This selects the voltage for each bank, and can be set to V_FUSED (fused VIN, ie 24V) or 12V (using the onboard 12V reglator).

              See the wiring diagram for setting: https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6HC_Hardware_Overview#wiring-diagram

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              undefined 3 Replies Last reply 27 Apr 2022, 10:54 Reply Quote 0
              • undefined
                Nightowl @droftarts
                last edited by 27 Apr 2022, 10:54

                Brilliant, thank you @droftarts!

                1 Reply Last reply Reply Quote 0
                • undefined
                  paolozampini1973 @droftarts
                  last edited by 27 Apr 2022, 12:16

                  @droftarts said in Simple relay control... or not?:

                  @nightowl999 Then don't use the heater outputs, as 24V will be too much for the relay. You can use a fan output, with the fan voltage set to 12V. I would imagine the current draw of a relay is less than 2A.

                  Ian

                  RELAY 20 MHA MAX 80MHA

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    jumpedwithbothfeet @droftarts
                    last edited by 27 Apr 2022, 13:39

                    @droftarts said in Simple relay control... or not?:

                    @nightowl999 Then don't use the heater outputs, as 24V will be too much for the relay. You can use a fan output, with the fan voltage set to 12V. I would imagine the current draw of a relay is less than 2A.

                    Ian

                    Isn't the maximum amps 800mA at 12V? or am I reading it wrong?

                    b4603a30-bc79-4558-94a9-4cbcde137b4f-image.png

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

                    undefined 1 Reply Last reply 27 Apr 2022, 13:48 Reply Quote 1
                    • undefined
                      droftarts administrators @jumpedwithbothfeet
                      last edited by 27 Apr 2022, 13:48

                      @jumpedwithbothfeet Yes, you're right. It's 2A with V_Fused, 800mA total current with 12V. Looks like the relay is well below this, though.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      undefined 1 Reply Last reply 27 Apr 2022, 13:54 Reply Quote 0
                      • undefined
                        jumpedwithbothfeet @droftarts
                        last edited by 27 Apr 2022, 13:54

                        @droftarts I was half hoping it was 2 amps it would of simplified my wiring a fair bit!

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

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Nightowl @droftarts
                          last edited by 27 Apr 2022, 14:34

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Nightowl @droftarts
                            last edited by Nightowl 27 Apr 2022, 17:45

                            @droftarts said in Simple relay control... or not?:

                            Just as a quick follow-up, this should work, then:

                            M950 R0 C"out4+out7"

                            ...with the relay wires connected to the pins of Out 7 and the Out 7-9 jumper between V_OUTLC2 and 12V?

                            Thank you 👍

                            undefined undefined 2 Replies Last reply 27 Apr 2022, 17:46 Reply Quote 1
                            • undefined
                              jay_s_uk @Nightowl
                              last edited by 27 Apr 2022, 17:46

                              @nightowl999 yep

                              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

                              undefined 1 Reply Last reply 27 Apr 2022, 17:54 Reply Quote 0
                              • undefined
                                Nightowl @jay_s_uk
                                last edited by 27 Apr 2022, 17:54

                                Spiffing, @jay_s_uk 😀 😀

                                And then it will 'activate' with M3 and deactivate with M5.

                                Thank you @jay_s_uk

                                1 Reply Last reply Reply Quote 1
                                • undefined
                                  alankilian @Nightowl
                                  last edited by 27 Apr 2022, 17:55

                                  @nightowl999

                                  I just read the Amazon description for your relay-control module and it says it can be triggered by an Arduino using any voltage from 3 to 14 Volts, so you don't need to worry about drawing too much power from the onboard 12 Volt supply at all.

                                  Where did you read that it takes 2 Amps to drive the module? I'd like to verify that.

                                  SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                  undefined 1 Reply Last reply 27 Apr 2022, 17:55 Reply Quote 0
                                  • undefined
                                    Nightowl @alankilian
                                    last edited by Nightowl 27 Apr 2022, 17:55

                                    Erm, I didn't @alankilian. That was @jumpedwithbothfeet wishing it was 2A!

                                    undefined 1 Reply Last reply 27 Apr 2022, 17:58 Reply Quote 0
                                    • undefined
                                      alankilian @Nightowl
                                      last edited by 27 Apr 2022, 17:58

                                      @nightowl999 said in Simple relay control... or not?:

                                      Erm, I didn't @alankilian. That was @jumpedwithbothfeet wishing it was 2A!

                                      OK, I got it.

                                      It looks like you're in good shape!

                                      🙂

                                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                      undefined 2 Replies Last reply 27 Apr 2022, 18:01 Reply Quote 1
                                      • undefined
                                        Nightowl @alankilian
                                        last edited by 27 Apr 2022, 18:01

                                        @alankilian
                                        Yep. Just keep an eye out for a big cloud of smoke in SW England. If there is one, it didn't work 😱 😱

                                        undefined 1 Reply Last reply 27 Apr 2022, 18:07 Reply Quote 0
                                        • undefined
                                          dc42 administrators @Nightowl
                                          last edited by dc42 27 Apr 2022, 18:07

                                          @nightowl999 have you considered using the Laser/VFD output to drive the relay module? It provides a 5V signal.

                                          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

                                          undefined 1 Reply Last reply 27 Apr 2022, 22:22 Reply Quote 1
                                          15 out of 43
                                          • First post
                                            15/43
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA