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

    Turning on lights when extruder heats up

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    4
    248
    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.
    • jens55undefined
      jens55
      last edited by

      This 'should' be pretty easy to do but I don't know where to even start ....
      I have 4 extruders running on tool boards controlled by a 6HC duet. Each extruder has a thermostatically controlled cooling fan. I am in the process of installing overhead lights and I would like these lights to come on when any one of my extruders exceed 45 degrees C (ie is active).
      I have previously used the cooling fan output on a single extruder printer to turn on the relay for lights but this will not work in this case because a) I have 4 extruders and b) because I don't want to run wires back from all the extruders to whatever controls the lights. Instead, I would like to turn on a pin on the duet which I can then use to turn on a relay to power the overhead lights.
      How can I do that ?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined Phaedrux moved this topic from Tuning and tweaking
      • OwenDundefined
        OwenD
        last edited by OwenD

        @jens55
        I would think the easiest way would be to create a thermostatically controlled "fan" using M950
        Then in your M106, specify all the heaters in the H parameter.
        If you're using a relay you'll have to set the PWM to 100%

        Alternatively, use daemon.g to check the temps in a loop and turn on/off a GPIO pin.

        Or if you want to use a neo pixel LED , you could go down this path and get different colours based on temp.
        https://forum.duet3d.com/topic/29269/temperature-controlled-led-display?_=1659422982700

        jens55undefined 1 Reply Last reply Reply Quote 1
        • jens55undefined
          jens55 @OwenD
          last edited by

          Thanks for that pointer Owen. I will give your first idea (fake fan) a try. Sounds a lot simpler (and more straight forward) than what I had envisioned.

          jens55undefined 1 Reply Last reply Reply Quote 0
          • jens55undefined
            jens55 @jens55
            last edited by jens55

            @OwenD .... works like a hot damn! Not only did I control the lights with the extruder temperature but I also threw in the bed temperature!
            M950 F9 C"out8" ; create fan 9 on pin out8 on main duet board
            M106 P9 C"Lights" S1 T40 H0:1:2:3:4 ; set custom name of "Lights" for this fan, set to run full speed (S1), Thermostatic mode at 45C (T45) for heaters 1 through 4 and build plate

            THANKS!

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