Driving ANDON light stick to report printer status
-
I have been using a Duet Wifi for years, but haven't really gone down the rabbit hole of any inputs or outputs beyond the default Configurator supported bits until now.
My employer bought a RailCore II printer, and then put it in a location (behind a partition) that is easily forgotten about.
We have an extra 24vdc status indicator light stick, and I'm looking to program some triggers that would turn on outputs on the DueX5, probably just extra PWM fan outputs or heater outputs, and use them to power the status lights.My initial thought was to trigger the one light any time the printer is on, easily done by just wiring it to the PSU output.
The second light would be if there is a print in progress, possibly blinking it slowly just to say that the printer is operating. (one of the spare extruder heater outputs set to bang-bang at low frequency, was my thought.)
The final thought was to trigger a red light or strobe if there was a fault, such as a thermal runaway and the printer locked out the heaters, etc.Can someone point me toward the right direction to get started with this, in the RepRapFirmware programming style?
I would like to understand it and do it, but I'm not sure where to start when it starts wandering away from the basics. -
@hey_allen said in Driving ANDON light stick to report printer status:
24vdc status indicator light stick
Can you give some more details on this device? What kind of LEDs? You could maybe do the simple parallel wiring for the different lights. That might be straight forward. But you could also make use of the object model, conditional gcode, and the daemon.g file to monitor different statuses and turn LEDs off and on as needed.
-
@phaedrux
The lights are a stacklite set, of course I don't have the actual brand and model, but like the one shown in this wiki's first image.
https://en.m.wikipedia.org/wiki/Stack_lightI believe they all share a common v+ wire, but diodes can be used to work around that, or I can roll a switching logic isolation board to go between the duet and the lights.
The part I was looking for advice on was where to get started in trying to trigger them.
I'll start reading on the functions you mentioned, and see what I can find, and other questions come up from there.
Thank you for the suggested reading.
-
@hey_allen if they are 24V common positive then you should be able to drive them from spare heater or fan outputs. I suggest you create code in daemon.g that monitors state.status in the object model every few seconds and sets the lights accordingly.