@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
Posts made by Triet
-
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
-
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
@stuartofmt I just read that discussion, looks a bit chaotic but the hint about the BTT Supercap UPS is valuable.
@T3P3Tony Thanks!I just wanted to clarify that it is really not necessary to build a pack of supercaps yourself. I was looking around and found some solutions. Often, supercap modules are offered to be used in automotive applications to protect the vehicle battery from to sudden current surge or to stabilize board voltage to satisfy hifi equipment (music listening people tend to be very demanding when it comes to sound quality).
For example, this one:
5PCS 1Set Super Capacitor 13.5V 12F Single Row Farad Capacitor2.7V 60F Automotive Super Farad Capacitor Module Supply Rectifier
Of course this would only be suitable for a 12V power supply, but you can connect two of them in series. This boards have voltage protection and balancing built-in. They are even oversized for this case (remember: the purpose is to allow a controlled shutdown, not to run the printer on UPS).For more ambitious people, a 24V module is also available, for about $100 on Amazon, or around $21 on AliExpress:
GDCPH 24V5.5F Supercapacitor Electronic Rectifier Module 2.7V50F Super Farad Capacitor Backup Power Supply 24.3V Electrolysis
Note that it is composed of 9x50F supercaps in series (resulting in 5.5F), which is plenty of energy.
Still, these are not full fledged UPS - you still need the combo of resistor and Shottky (in parallel to each other) between the module and the PSU.I even found a supercap module exactly as @dc42 proposed, if using two of them in series:
[16V 1F/2F Farad Capacitor Module 2.7V 10F Super Capacitors With Protection Board]
(https://www.aliexpress.com/item/1005002715223142.html)
You get one module for $6 or two for about $12, fairly affordable. That is currently my preferred option. The BigTreeTech 24V UPS mentioned above does not add any value because the Duet already has a power failure detection built-in.My impression is that supercap based UPS are becoming popular. There are some professional solutions, for example customized for a Raspberry Pi (if you use one):
Andino-UPS - Supercapacitor UPS for the Raspberry Pi
but I also found some DIY projects. They should be considered as "emergency power supply" rather than UPS due to the limited length of time they can keep a printer running.Engaging in this matter I have some new questions and ideas, namely: 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.
But also: What happens when I just switch the printer off in a regular manner when resurrection has been configured? The voltage will drop to the defined threshold in this situation too- will then the power failure procedure defined by M911 be executed? I have never checked that. OK, as a rule, no print job is running when I deliberately switch my printer off, so I suppose the procedure is only triggered in this case.
Why I come up with this question?
Assume that I have a small UPS that is able to detect failure of the mains power. It does not have to wait until DC voltage drops below say 22.5V to kick in. I can then save current coordinates and take some other precautions to prepare the resurrection, even before the voltage threshold is reached. Will then the power failure procedure defined with M911 still be executed a 2nd time when the DC voltage falls?A real UPS has one key advantage compared to an emergency power supply, even when it is not meant to run the printer accross the powerless time, since it allows to keep the hotend fan running for a couple of minutes until the hotend gets cold enough, so to avoid nozzle clogging. In this case, the question whether M911 kicks in and saves the current state a 2nd time would be relevant.
I am done.
Thanks again. -
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
@dc42 I wanted to wrap up some informations about this topic but found that I am not allowed to post links - I need two "reputations".
That's a pity. Would anyone be so kind to enable posting links for me? At least for this time. (Assuming that my findings are of general interest for the furure).
-
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
@dc42 Of course! Why didn't I myself come to the idea of combining several capacitors, so having even more design flexibility.
You gave me the decisive impulse to start this task. I would even use the remaining power to run the hotend fan a bit longer to avoid nozzle clogging after a sudden heater shutoff.
By the way: What I most appreciate using Duet hardware is... this help forum, definitely (beside their indisputable quality). Sincere thanks!
-
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
@samlogan87 Yes, I have already read that article a couple of hours ago. I found the solution very attractive but my concern is not to run the printer any long time at an outage. There are virtually no power outages in the country where I live, except very short ones most people won't even notice (probably caused by a more challenging management of the public power grid due to a large and increasing share of renewable, but discontinuous power sources). Right now I am running a 23 h print and I have no ambition to use a UPS for that. Frankly, I even suspect something is wrong in the electrical installation of my house.
After looking at the DC UPS mentioned in the article I found them to be oversized solutions for a 0.5 sec problem, and I thought I would find something similar, but self-powered, essentially like a supercap. I could only find supercaps for 12v only, for whatever reason.
Deckingman passed by? Well that's a loss indeed. He was an enthusiastic and respected comrade in the 3D printer community.
-
RE: Need a 0.5 sec UPS (prolonging agony for resurrection)
@droftarts Thanks a lot! OK, a 10mF capacitor, connected to the two 24v leads via a Schottky diode and a resistor (both in parallel to each other) would do the trick. I understand how this works. I would figure out the value of the resistor to limit the current, but I have no idea how to choose the Schottky diode.
Would anyone indicate a particular Schottky diode as a possible example for this purpose? Otherwise this will be trial and error for me.
And yes, I know that I have to care about the polarity . This simple circuit is nothing more than a kind of downsized DC UPS controler, and I would even have expected to find a board with a similar function but I couldn't. I don't think I am the first one coping with such a question, as many different devices need to be shut down in a controlled fashion (think of a NAS storage for example).
-
Need a 0.5 sec UPS (prolonging agony for resurrection)
Hello
I have experienced short voltage outages leaving the 3D printer in an undefined state or knocking it off. While implementing the resurrection procedure I found that the printer does not live long enough to prepare for the resurrection, so I need a way to extend the working time of the printer when voltage gets below 22.5v for, let's say, 0.5 sec (I actually don't know how long I need).My 3D printer uses a Duet 2 Wifi and there is nothing special to consider regarding power consumption. Of course power consumers are switched off or cut down as the first step when the outage procedure is triggered at 22.5 v.
In short, I don't really need a UPS, but a way to dampen the voltage decay. What would be the best way to achieve this? Should I simply connect a capacitor in parallel to the 24v, something like a supercap? How many farads would be appropriate? Or perhaps a small 24v pack of rechargeable Li-Ion batteries instead? I am afraid it won't be that simple, which is why I am asking help here. If there is a DIY solution I would willingly try to build it.
Thanks in advance.
-
G-code command to directly set extrusion rate (not M221)
I know the M221 command, which allows me to multiply the current extrusion rate defined in the slicer by a factor to increase or decrease it.
But how to I set the extrusion rate directly? I mean how to set it so that 100% would mean all e-steps per rotation (200 for example or as calibrated). I would then rather redefine the extrusion rate replacing (not correcting) what is set in the slicer, for the current gcode session.
Sorry if this is a stupid question, I did not find the answer looking at the RRF gcode dictionary.
-
RE: How to cancel waiting state
@DIY-O-Sphere OK, I knew I would make a fool of myself with this question, now I feel a bit embarrassed but well informed. Thanks!
-
How to cancel waiting state
If the printer is in the process of shutting down via "M81 S1", or perhaps due to a set dwell time, how do I cancel that? How do I stop the waiting without proceeding with what would have happened if the time had passed as originally designated?
I cannot find the command in the documentation because I am missing the right keywords when searching.
-
RE: Bed heater fuse always blowing
@dc42 said in Bed heater fuse always blowing:
Have you measured the resistance of the bed heater?
I should have begun with that question.
I measured 1.6 Ohm. Which brings us to 15 A. Nice, no? At times it takes weeks to blow, at times the second day. Chinese fuses are more tolerantI replaced the fuse with a 20A one and will keep an eye on that. I re-tightened the bed heater terminals to avoid additional heat there (I once already had an issue with bad loose contacts).
-
RE: Bed heater fuse always blowing
@dc42 Thanks!
I never thought it would be possible to use an external switch because I was asuming that the current is somehow regulated (not just on/off).What I already tried was to glue an aluminum heat dissipator on the fuse, but surprisingly, it blows even earlier then.
I will go for the mosfet switch but that is an effort.
-
Bed heater fuse always blowing
The 15A fuse for the bed heater in my Duet2 WiFi gets blown aprox. every week, or perhaps every dozen of times used. This always happens when starting to heat the bed (at aprox. 40 deg.C).
I have read that this is because the circuit is dimensioned up to 18A, but since there are no such fuses (at least I can't find one with the proper size), I have to use 15A, which is too small.
Is there a trick to limit the current used to heat the bed? Doing the heating slower for example? How would I do that?
Thanks in advance.
-
RE: Playing beep sound
@infiniteloop I have changed my start code as you proposed, next time I will see what happens.
Although I don't feel completely confident, since the documentation states for M400:"release all axes and extruders owned by the current motion system except for axes/extruders needed by the current tool"
and I don't know the exact meaning/repercutions of that release action. Steppers should stay available for printing!
-
Playing beep sound
I have put this on my start code for the slicer:
M300 S1024 P150 ; beep at 1 kHz for 150 ms
and according to the documentaion:
"Play beep sound, use to notify events like the end of printing. If an LCD device is attached to RepRapFirmware, a sound is played via the add-on touch screen control panel. Else the web interface will play a beep sound."So I would expect the PanelDue to play that sound, but I cannot hear anything.
What am I doing wrong?(using Duet2 WiFi and PanelDue 5" with current software).
-
RE: Equivalent to Klipper_Estimator for RRF available?
@chrishamm
I tried out the simulation in the DWC.
Actually, the simulation calculates more than just the total print time, since it shows duration for each layer grafically.
Is there a way to get that data as numerical values in a text file? Perhaps with a different granularity? -
RE: Equivalent to Klipper_Estimator for RRF available?
@chrishamm
Well, this is what one gets from Klipper_Estimator:$ ./klipper_estimator [config options] estimate ~/3DBenchy.data
Sequences:
Run 0:
Total moves: 42876
Total distance: 73313.01640025008
Total extrude distance: 3407.877500000097
Minimal time: 1h29m9.948s (5349.947936969622)
Average flow: 1.5321468696371368 mm3/s
Phases:
Acceleration: 27m4.291s
Cruise: 35m1.116s
Deceleration: 27m4.291s
Moves:
Layer times:
0 => 2.536s
... [some lines omitted for brevity]
48 => 4.834s
Kind times:
4m23.463s => FILL
2.639s => Other
18m0.185s => SOLID-FILL
28m29.706s => WALL-INNER
38m13.706s => WALL-OUTER(you might take a look at https://github.com/Annex-Engineering/klipper_estimator).
I am afraid that what the DWC outputs will not be enough, but I will check it.
Could I use that feature from a command line?
-
Equivalent to Klipper_Estimator for RRF available?
I use Orca to slice the models for my RRF printer and need to use a postprocessor which depends on more or less exact estimations of execution times for each move in the gcode file.
There is such a program for Klipper users called "Klipper_Estimator.exe" and I would need the equivalent to analyse a gcode in RRF flavor. I assume that the actual estimation calculations themselves would be similar but the program does not accept gcode generated for RRF due to some trivialities I think.
Does anyone know about such a program compatible with RRF gcode files?
-
RE: How to modify behaviour of the "STOP" button in PanelDue
@jay_s_uk You did a great job identifying the right place to customize the software (at least for me, it would have been a lot of work).
Anyways, considering that in this case I would need to host the whole programming environment for this minor change, which would not be persistent at the next release, I decided to rather try to create a macro and use the BtnCmd plugin to make it available in DWC.
Thanks for your help.