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

    Duet and rele

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    6
    748
    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.
    • peirofundefined
      peirof
      last edited by

      Hi,

      I d'like control one Relé with Duet...

      For what?

      I have installed a ip webcam for remote monitoring prints... And this webcam has nightvision. But when nightvision turn on, the image quality its regular /poor...

      I am thinking, that, maybe Duet, with expansion socket can command a relé that power on a light, with some gcode...

      This will be possible? How?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti
        last edited by

        You can connect LED strips to unused heater or fan outputs.

        1 Reply Last reply Reply Quote 0
        • Jacotheronundefined
          Jacotheron
          last edited by

          If you have a spare Fan output on the Duet, that can be used. If you want the light to always be on when the printer is on, you can use one of the always on Fan outputs, otherwise, you can use an open Fan Output. It is also possible to use a heater output, but you will need to ensure that your relay have a fly-back diode to protect those outputs.

          Lets say your FAN_2 (3rd Fan) output is open, and you want to use that:
          In your config.g file, you will need to configure the fan:
          M106 P2 S1 F500 H-1 C"Light"; - details on the M106 command at https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On, basics:

          • P selects the fan output to use (0-indexed, so first fan is P0)
          • S sets the start output (0 is off on startup, 1 is full on at startup - for a relay you do not want to use any value between 0 and 1)
          • F is the frequency for the PWM - default is 500
          • H-1 simply sets the fan to be manually controlled, compared to thermostatic control (where a heater's temperature control the fan).
          • C this simply allows us to name the fan inside of Duet Web Control.

          I use the above code to directly control an LED strip to illuminate my print - typically LEDs use less power for more light output and comes in different options. Mine is running from 12V, and having the PWM frequency set at max, I can dim them to practically any level I need (at lower frequencies you will get flicker when dimming).

          I made a few macros for my LEDs, but practically you simply need to call M106 P2 S1 to put it on, and M106 P2 S0 to switch it off.

          1 Reply Last reply Reply Quote 0
          • peirofundefined
            peirof
            last edited by

            Hi...

            I have not see leds for 24v operations.

            I need to do something for power 12v leds from fan shocket?

            dc42undefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @peirof
              last edited by dc42

              @peirof said in Duet and rele:

              I have not see leds for 24v operations.

              There are lots of 24V LED strips available on eBay (10,769 results).

              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
              • Phaedruxundefined
                Phaedrux Moderator @peirof
                last edited by

                @peirof Buck Converter.

                Z-Bot CoreXY Build | Thingiverse Profile

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