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

    Using deactivated Heater as switch

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    6
    230
    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.
    • dawgheartundefined
      dawgheart
      last edited by

      I have been trying to configure my duet wifi to control an electrolyser (new idea!). I have disabled heater 3 (E2) on the DUEX5 expansion board and connected this heater to a relay so that I can turn it on and off with a GCODE. I have looked through all the G-CODES on duetwiki but can't find a suitable solution. Does anyone know the G Code to activate and deactivate a disabled heater for use as a switch?

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M42_Switch_I_O_pin ?

        1 Reply Last reply Reply Quote 0
        • botundefined
          bot
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • dawgheartundefined
            dawgheart
            last edited by

            Thank you so much. You're a star! I will give this a go in the morning and let you know how it goes.

            1 Reply Last reply Reply Quote 0
            • dawgheartundefined
              dawgheart
              last edited by

              Thanks again Bearer. This solution works brilliantly!

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

                @dawgheart, if it's a bare relay (not a relay with a transistor switch on it), connect a flyback diode in parallel with the relay coil, to protect the heater output mosfet on the Duet. Make sure you connect the diode the right way round!

                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