Turning on lights when extruder heats up
-
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 ? -
-
@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 -
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.
-
@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 plateTHANKS!