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

    Control 5 volt relay

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    10
    307
    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.
    • davidvh86undefined
      davidvh86
      last edited by davidvh86

      Hey I'm new to duet coming from smoothieware just wondering whats the best way to control a 5 volt relay to control my heated chamber fan, and multiple 12 volt fans that were previously installed on the printer (now using 24v supply)? In smoothie i just just assign gcode command and what the output pin is, is it a similar process in marlin. I just ordered a board, and wanna prepare for the intall.

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        What board did you order?

        If a Duet 2
        You can probably connect the fans directly. You can supply a separate voltage source (12v in your case) directly to the fan connectors via the V_Fan voltage selector pin. It can be provided by a separate PSU or a buck converter.

        https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans

        Duet 3 has a built in 12v regulator

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • davidvh86undefined
          davidvh86
          last edited by davidvh86

          Thanks for the reply. that would work great for the 12 v fans and any leds i need to power ( since i just want the leds on during the print anyway) . I also planned on powering my heated chamber with a gpio to leave room for another extruder, is that not doable?

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            There are a lot of options, but I still don't know what board you're going to be using, so I'll just say that in general anything is possible.

            On the Duet wifi the pins are a bit more proscribed than they are on the duet 3 which has very generalized io pins, but they can still be repurposed rather broadly.

            If you just want to trigger a relay for the heater that's easy enough to do.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • davidvh86undefined
              davidvh86
              last edited by

              Yea sorry i ordered a duet wifi . Yea sorry about all the questions just dont wanna burn up a board assuming i know something i dont lol. would i need to get a 3.3v relay or is 5 volt fine?

              dc42undefined 1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                No worries, ask away, that's what the forum is for.

                What exactly do you want to control? Perhaps it would be best to give us some detail on your hardware current setup and then when we have a general idea of what you want, we can give you suggestions on the best way to obtain that.

                There is also a wealth of info to be found in the documentation.

                https://duet3d.dozuki.com/

                Z-Bot CoreXY Build | Thingiverse Profile

                davidvh86undefined 1 Reply Last reply Reply Quote 0
                • davidvh86undefined
                  davidvh86 @Phaedrux
                  last edited by

                  @Phaedrux well i think i figured out a easier plan for the fans, ill just buy 24 volt fans and avoid all the complication and wires. My First real issue is turning on the chamber heater fan when i set the temp (same unit separate leads), i know there's a temp trigger option but i dont want it powered up without air flow, i know i can just hook it up to the always on fan output but i dont want it on 24/7. Second less important issue is sending a signal to the ssr for the chamber heater without using the e1 hookup incase i need add another hot end in the future. My third issue is powering leds, id like an independent command to power them using a 5v relay but i guess i can just hook them up to the third fan output and just use a m206 command to power them on and off.

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

                    @davidvh86 said in Control 5 volt relay:

                    would i need to get a 3.3v relay or is 5 volt fine?

                    Most 5V relay boards should work fine with a 3.3V control input. If your board doesn't, then there will be a resistor (the one in series with the control input) whose value you can reduce to make it work with 3.3V.

                    Most SSRs are specified to work with any input from 3 to 32V, so again can be driven directly from a 3.3V output.

                    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

                    davidvh86undefined 1 Reply Last reply Reply Quote 0
                    • davidvh86undefined
                      davidvh86 @dc42
                      last edited by

                      @dc42 Thanks for the reply, how would i designate that pin as the output in the configuration files. Like i said earlier im used to smoothieware where i have one config file where i specify the pin output and whether its pwm or not.

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

                        @davidvh86 said in Control 5 volt relay:

                        @dc42 Thanks for the reply, how would i designate that pin as the output in the configuration files. Like i said earlier im used to smoothieware where i have one config file where i specify the pin output and whether its pwm or not.

                        For maximum flexibility in allocating pins, I suggest you use RepRapFirmware 3.01. This is close to release now and the release candidate is stable.

                        You can use the online configuration tool to specify which pins you want to use. It will generate M950 commands in the config.g file to assign those pins. See https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M950_Create_heater_fan_or_GPIO_servo_pin.

                        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