MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.17k stars 19.21k forks source link

Feature request: Turn off ATX power after a timeout. #771

Closed andrewsil1 closed 9 years ago

andrewsil1 commented 10 years ago

After a long overnight print finishes, it'd be nice if the ATX power could shutdown automatically after an idle timeout. I suppose I could solve this with Gcode postscript too, of course, but I used Repetier firmware for a little while and this was a feature I appreciated that I don't think is in Marlin.

bkubicek commented 10 years ago

M81 On Feb 14, 2014 6:45 PM, "andrewsil1" notifications@github.com wrote:

After a long overnight print finishes, it'd be nice if the ATX power could shutdown automatically after an idle timeout. I suppose I could solve this with Gcode postscript too, of course, but I used Repetier firmware for a little while and this was a feature I appreciated that I don't think is in Marlin.

Reply to this email directly or view it on GitHubhttps://github.com/ErikZalm/Marlin/issues/771 .

andrewsil1 commented 10 years ago

Sure, I get that (e.g. the gcode work around in the postscript, but couldn't we automate that after a long print finishes and the user didn't send anything more after n minutes? There's a stepper-motor timeout, but M81 also turns off the fans and other stuff.

nothinman commented 10 years ago

If you do want to power it off, then you add M81 to your slicer. Steppers going off is slightly different form printer going off. When I finish large print I want printer to stay on and keep heating up my print bed for instance, as it is big, and takes 45 minutes to reach 120C. This should be handled in gcode IMHO. I guess one could add this "feature" to firmware too, but what's the point? Printer uses ~5W when it's idle/done printing. The same as a phone charger left in the power socket. Does this really bother you?

m.

andrewsil1 commented 10 years ago

It’s not the power consumption that bothers me. On my particular printer (Felix 3.0) the main extruder fan keeps running 24/7 unless the ATX power is turned off and it’s a bit noisy. I totally get that I can this via my slicer’s post-job script. I’m also not saying it should turn everything off immediately, I want it in firmware so that if the print finishes at 3am and I’m not there starting another job, after some firmware-defined delay, eventually the power shuts down, but not so quickly that if I’m awake and I have another job to do the bed has shut off as soon as the print completed, which is what’d happen if I do this via the slicer. Also, if my wife is working in the same room and I’m off at work for the day she appreciates it if the fan shuts itself off after a while.

I don’t think this is such a crazy idea, and as I said it was nice having this feature in Repetier, but I like Marlin better, but it’s your call (or I can try to write it myself).

bkubicek commented 10 years ago

I like it, actually... Maybe I'll find a nice way of implementing it. On Feb 14, 2014 8:07 PM, "andrewsil1" notifications@github.com wrote:

It's not the power consumption that bothers me. On my particular printer (Felix 3.0) the main extruder fan keeps running 24/7 unless the ATX power is turned off and it's a bit noisy. I totally get that I can this via my slicer's post-job script. I'm also not saying it should turn everything off immediately, I want it in firmware so that if the print finishes at 3am and I'm not there starting another job, after some firmware-defined delay, eventually the power shuts down, but not so quickly that if I'm awake and I have another job to do the bed has shut off as soon as the print completed, which is what'd happen if I do this via the slicer. Also, if my wife is working in the same room and I'm off at work for the day she appreciates it if the fan shuts itself off after a while.

I don't think this is such a crazy idea, and as I said it was nice having this feature in Repetier, but I like Marlin better, but it's your call (or I can try to write it myself).

Reply to this email directly or view it on GitHub.

codexmas commented 10 years ago

You could add a delay gcode before the M81 to achieve the same effect.

Cheers, Gord.

On Fri, Feb 14, 2014 at 11:10 AM, Bernhard Kubicek <notifications@github.com

wrote:

I like it, actually... Maybe I'll find a nice way of implementing it.

On Feb 14, 2014 8:07 PM, "andrewsil1" notifications@github.com wrote:

It's not the power consumption that bothers me. On my particular printer (Felix 3.0) the main extruder fan keeps running 24/7 unless the ATX power is turned off and it's a bit noisy. I totally get that I can this via my slicer's post-job script. I'm also not saying it should turn everything off immediately, I want it in firmware so that if the print finishes at 3am and I'm not there starting another job, after some firmware-defined delay, eventually the power shuts down, but not so quickly that if I'm awake and I have another job to do the bed has shut off as soon as the print completed, which is what'd happen if I do this via the slicer. Also, if my wife is working in the same room and I'm off at work for the day she appreciates it if the fan shuts itself off after a while.

I don't think this is such a crazy idea, and as I said it was nice having this feature in Repetier, but I like Marlin better, but it's your call (or I can try to write it myself).

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114585 .

bkubicek commented 10 years ago

This would only give the option to avoid shutdown if "stop sd print" does purge the code buffer. On Feb 14, 2014 8:12 PM, "Gord Christmas" notifications@github.com wrote:

You could add a delay gcode before the M81 to achieve the same effect.

Cheers, Gord.

On Fri, Feb 14, 2014 at 11:10 AM, Bernhard Kubicek < notifications@github.com

wrote:

I like it, actually... Maybe I'll find a nice way of implementing it.

On Feb 14, 2014 8:07 PM, "andrewsil1" notifications@github.com wrote:

It's not the power consumption that bothers me. On my particular printer (Felix 3.0) the main extruder fan keeps running 24/7 unless the ATX power is turned off and it's a bit noisy. I totally get that I can this via my slicer's post-job script. I'm also not saying it should turn everything off immediately, I want it in firmware so that if the print finishes at 3am and I'm not there starting another job, after some firmware-defined delay, eventually the power shuts down, but not so quickly that if I'm awake and I have another job to do the bed has shut off as soon as the print completed, which is what'd happen if I do this via the slicer. Also, if my wife is working in the same room and I'm off at work for the day she appreciates it if the fan shuts itself off after a while.

I don't think this is such a crazy idea, and as I said it was nice having this feature in Repetier, but I like Marlin better, but it's your call (or I can try to write it myself).

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub< https://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114585> .

Reply to this email directly or view it on GitHubhttps://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114752 .

ZetaPhoenix commented 10 years ago

Something nice to add as well might also be to let the printer to cool-down to a certain temp before shutting down.

On Fri, Feb 14, 2014 at 11:15 AM, Bernhard Kubicek <notifications@github.com

wrote:

This would only give the option to avoid shutdown if "stop sd print" does purge the code buffer.

On Feb 14, 2014 8:12 PM, "Gord Christmas" notifications@github.com wrote:

You could add a delay gcode before the M81 to achieve the same effect.

Cheers, Gord.

On Fri, Feb 14, 2014 at 11:10 AM, Bernhard Kubicek < notifications@github.com

wrote:

I like it, actually... Maybe I'll find a nice way of implementing it.

On Feb 14, 2014 8:07 PM, "andrewsil1" notifications@github.com wrote:

It's not the power consumption that bothers me. On my particular printer (Felix 3.0) the main extruder fan keeps running 24/7 unless the ATX power is turned off and it's a bit noisy. I totally get that I can this via my slicer's post-job script. I'm also not saying it should turn everything off immediately, I want it in firmware so that if the print finishes at 3am and I'm not there starting another job, after some firmware-defined delay, eventually the power shuts down, but not so quickly that if I'm awake and I have another job to do the bed has shut off as soon as the print completed, which is what'd happen if I do this via the slicer. Also, if my wife is working in the same room and I'm off at work for the day she appreciates it if the fan shuts itself off after a while.

I don't think this is such a crazy idea, and as I said it was nice having this feature in Repetier, but I like Marlin better, but it's your call (or I can try to write it myself).

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub< https://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114585> .

Reply to this email directly or view it on GitHub< https://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114752>

.

Reply to this email directly or view it on GitHubhttps://github.com/ErikZalm/Marlin/issues/771#issuecomment-35114983 .

Ziggy2013 commented 9 years ago

IMO this feature "Turn off ATX power after a timeout" (or after cooling down) is already available in Marlin - just not actually called that.

A very simple way to do what you want is use the output PIN(s) from the temp status leds. When a print finishes, the extruder/bed starts cooling down. When the temp of both is below 54C the red led is switched off. Use that led output to turn off your power supply. Might be nice to have the temperature defined as a config parameter as well though.

code from configuration.h

// Temperature status LEDs that display the hotend and bet temperature.
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
// Otherwise the RED led is on. There is 1C hysteresis.
#define TEMP_STAT_LEDS
boelle commented 9 years ago

This one i will close... it can all be done in Gcode... and also some simple rewire of the fan can make it turn off with the extruder

adding this feature will just make the more complex while the gain of it is just to little...

the best fix here is to wire the fan to the extruder so it turns off as soon the extruder is off

and turn off the ATX with a Gcode

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.