Need a 0.5 sec UPS (prolonging agony for resurrection)
-
Triet
15 Jan 2025, 02:19
@Triet said in Need a 0.5 sec UPS (prolonging agony for resurrection):
I just read that discussion, looks a bit chaotic ...Fee flowing discussions usually are
@Triet said in Need a 0.5 sec UPS (prolonging agony for resurrection):
I would like to switch my printer on remotely (it is in an attic and I always have to go upstairs to switch it on) - a reversed question in comparison.I use Shelly products for this type of functionality (there are of course others). They are essentially WIFI equipped relays with built in http commands. The ones I use are powered by and switch mains voltage.
https://www.shelly.com/collections/smart-switches-dimmers
They are small and can even be fitted in a wall socket (if its deep enough). I have a Shelly 1 mounted in a small box (printed of course!) attached to my printer. That way I can remotely turned the printer on / off from a browser (or app that issues http).
Hope this helps.
-
@stuartofmt I am looking at different options and learned about a switch with a ESP8266 NodeMCU microprocessor, which is more elegant and flexible. It runs a Webserver as well.
If you are interested:
ESP8266 Button -
@Triet said in Need a 0.5 sec UPS (prolonging agony for resurrection):
@stuartofmt ...which is more elegant and flexible.
Than ? I guess it all depends on build vs buy. If you want to go down the buy route - you will find the Shelly has way more out-of-the box capability (than ESP8266 NodeMCU microprocessor) with no need for programming / building.
I'm not plugging Shelly just offering an idea. Way back, I considered building but for ~$15 to buy ... well you see where I am coming from
-
@dc42 I followed your advice and installed two supercap boards, connected through Schottky diode and resistor (both in parallel).
The printer is kept alive for about ten seconds after disrupting power supply - enough for any preparation for resurrection.
BUT:
I have an unexpected effect I dislike: When trying to switch off the printer from the PanelDue ("STOP") or from the DWC ("Emergency Stop") the printer shows a short flickering and... stays "alive". I can't switch the printer off remotely anymore
I suspect this is because PS_ON will still be kept high as the emergency power supply seems to be quite brisk, a good thing in principle. I don't like that I have to completely separate the mains leads to switch the printer off (I do have such a mains switch installed, but it is on the back side and it is intended for emergency cases, but I have to be physically in front of the printer to do that). My printer has no "soft" off switcher.
Interestingly, after every print job I execute
M81 S1 ; shutdown after all thermostatic fans have turned off
in my end-gcode script, and that seems to work well until now (why?). I will have to try the "M81" command from the console and check if it works manually when no print is running.
I am thinking about a solution to this - perhaps disrupting the PS_ON line using a mechanical momentary switch that I would press longer? But how long??
I just wanted to let you know, in case anyone tries such a solution.
-
@Triet said in Need a 0.5 sec UPS (prolonging agony for resurrection):
I don't like that I have to completely separate the mains leads to switch the printer off (I do have such a mains switch installed, but it is on the back side and it is intended for emergency cases, but I have to be physically in front of the printer to do that). My printer has no "soft" off switcher.
Can you show us a drawing on how you have things (electrically) connected. From your description, it almost sounds like the results could be as expected.
How long does it take for your UPS to completely run out of power? If the UPS is triggered by a power outage - its not clear what the comment about manually turning off the power means.
In the documentation for M112 it states:
"PSU power (if controlled by the Duet via the PS_ON pin) is NOT turned off"Also the "Emergency Stop" in DWC (M112 followed by M999) will restart the board - so it sounds like your UPS is still providing enough power to allow this to happen.
-
@stuartofmt Yes, I think I can follow, after reviewing the Duet3D documentation, particularly:
Connecting an Emergency StopThe board is switched on by mechanically closing the lead going through the SSR (purple) for at least 1 sec, thus enabling PSU and allowing the board to start, and then it would maintain PS_ON by itself, at which point the momentary start switch can be released. The board keeps itself alive by keeping the SSR output closed.
```
In order to get the "Stop" button in the PanelDue and the "Emergency Stop" button from the DWC to work as usual, they would need to have the M81 command before the M112. The "Emergency Stop" has never reset my printer, the printer has always been shut down.
Describing what behaves "as expected" is relative to your expectation. I would expect an Emergency Stop to always unconditionally stop the printer if it is an emergency.
Anyway, if I can't redefine those buttons (and I think I can't without recompiling something) I will need to
a) install and configure a mechanical emergency stop as per docu
b) use M81 on the console, or use the BtnCmd plugin to create my own "Emergency Stop" button on the DWC. -
@Triet
A few questions to better understand your goal and in what circumstance? Sometimes that will free up some suggestions from others.Is it to provide enough time to gracefully shutdown in the event of a power failure? If so how are you detecting that?
Emergency Stop is defined in a particular way. It will stop a print job and turn off heaters etc. It will not, with your design, cut the power because you have effectively latched the SSR.
Why are you using an SSR in this manner? What functionality does it provide in your intended use-case? Earlier you mentioned that your printer is in the attic and you wanted to be able to remotely turn it on / off I can see that the current design does not allow turning off but how are you turning on?
Simple solutions usually take longer to think through the alternative strategies
-
@stuartofmt I wanted an emergency power supply, and I got it (thanks again to all participants in this thread). I won't have more spurious short plunges of the power supply. As a side effect, I can more comfortably rely on preparing resurrection.
My last comment was about a new issue, which is a consequence of this mod: Not being able to shut down the printer remotely as I was used to. But I just checked: Using M81 on the DWC console works; the printer has a delayed/starving shutdown and after about 10-12 sec it will be completely off. That is OK for me for the time being.
I expressed my surprise about how the term "Emergency Stop" is intended to work but ultimately I accept its definition, although it does not match my expectation. I can technically comprehend the modus operandi but since I prefer a more explicite, unconditional and reliable way of shutting down the printer (also remotely) I still have a follow-up task and depicted two solutions for that - feel free to contribute yours.
Until now and still currently, I can only switch the printer on when physically present in front of it - that's a different question that I will also address in the future and the modification should consider the option to keep an attached SBC alive if present. This is not an "issue" as such, just my belatedly request while modifying my custom printer.
So I am in peace with Duet and the world. Just a bit surprised, and not yet done (I think I will never be).
-
Understood …
Have a think about replacing the SSR with an ip relay e.g. Shelly 1. You can turn it on / off from a browser and/or a momentary switch. You would not need to use PS_ON to latch it. It would also operate independently of your emergency supply.
-
@stuartofmt I slowly tend to that Shelly thing as it looks like a manageable and straightforward solution, until I am forced to do something more fancy. Thanks.