Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Resume from power outage, really only with 24V?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    6
    69
    5.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User?
      A Former User @Veti
      last edited by A Former User

      @Veti said in Resume from power outage, really only with 24V?:

      @the_dragonlord said in Resume from power outage, really only with 24V?:

      if the power supply disappears at the "light speed", what's the difference between 12VDC or 24VDC if they go immediately off

      have you ever turned off electronics and noticed that they stay on for a bit? thats the capacitors in the power supply draining.

      the duet will notice the drop in voltage and use its last bit of power to save the state to the sd card.

      there is a bigger margine for the duet to operate on from 24v until there is not enough to operate on.

      from 12v lets say the duet starts its writing at 10v and has to finish before it reaches lets say 5v.

      at 24v there is more room from going to 22v to 5v .

      forget about safe stop of the print head. its all about saving just saving the current position of the g code.

      ok, thanks but so for the writing of the gcode maybe 12VDC PS could be enough? In case if I'm not wrong it can be possible to instruct the printer about "what to do" in event of power failure so maybe it would be possible to tell t not to home, right? In case is there some third part hardware that can be combined with the board to increase the life time after a failure? I've seen that there's some boards with a lot of capacitors that can be driven by other boards, is there something alike for the Duet? I already have a UPS connected with the printer so if I'm near the printer I can park it and stop it safely, the trouble is that I'm not home....where I live when they cut off the power usually they do for several hours....

      A Former User? 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User @A Former User
        last edited by

        @the_dragonlord said in Resume from power outage, really only with 24V?:

        @Veti said in Resume from power outage, really only with 24V?:

        @the_dragonlord said in Resume from power outage, really only with 24V?:

        if the power supply disappears at the "light speed", what's the difference between 12VDC or 24VDC if they go immediately off

        have you ever turned off electronics and noticed that they stay on for a bit? thats the capacitors in the power supply draining.

        the duet will notice the drop in voltage and use its last bit of power to save the state to the sd card.

        there is a bigger margine for the duet to operate on from 24v until there is not enough to operate on.

        from 12v lets say the duet starts its writing at 10v and has to finish before it reaches lets say 5v.

        at 24v there is more room from going to 22v to 5v .

        forget about safe stop of the print head. its all about saving just saving the current position of the g code.

        I've seen that there's some boards with a lot of capacitors that can be driven by other boards, is there something alike for the Duet?

        I meant external circuits with a lot of capacitor connected to the VIN of the board and driven by the board itself in some way (I found circuits like theese for the SKR boards)

        1 Reply Last reply Reply Quote 0
        • Vetiundefined
          Veti
          last edited by

          @the_dragonlord said in Resume from power outage, really only with 24V?:

          ok, thanks but so for the writing of the gcode maybe 12VDC PS could be enough?

          try it.

          is power that unreliable in your area? i never spend any time on this, because a power outage is something that does not happen very often in my area.

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            If you don't have a PanelDue or anything else external powered from the Duet's 5V rail then saving the state may work at 12V. If you do have a PanelDue then the chances are not as good.

            Back up your SD card before you test it, because there is a risk that the SD card may become corrupted if the power drops too low while it is still writing.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            A Former User? 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @dc42
              last edited by

              @dc42 said in Resume from power outage, really only with 24V?:

              If you don't have a PanelDue or anything else external powered from the Duet's 5V rail then saving the state may work at 12V. If you do have a PanelDue then the chances are not as good.

              Back up your SD card before you test it, because there is a risk that the SD card may become corrupted if the power drops too low while it is still writing.

              i have a panel due

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators
                last edited by

                The Duet has 200uF capacitance on the input to the 5V regulator, isolated from VIN by a diode. At 12V input, this stores around 12mJ of available energy. At 24V it rises to 55mJ.

                The Duet itself draws around 0.5W, so 12mJ will last about 24ms and 55mJ will last 110ms. 24ms should be enough to save the data unless it is a slow SD card and it has just started an internal wear-levelling operation.

                If you add a PanelDue 7i, that's another 2W or so of energy consumption, so the power will only last for one fifth of the time. With 24V power that still leaves around 20ms. With 12V power it is just 5ms.

                All figures are approximate. Your mileage may vary.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                A Former User? 1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @dc42
                  last edited by

                  @dc42 said in Resume from power outage, really only with 24V?:

                  The Duet has 200uF capacitance on the input to the 5V regulator, isolated from VIN by a diode. At 12V input, this stores around 12mJ of available energy. At 24V it rises to 55mJ.

                  The Duet itself draws around 0.5W, so 12mJ will last about 24ms and 55mJ will last 110ms. 24ms should be enough to save the data unless it is a slow SD card and it has just started an internal wear-levelling operation.

                  If you add a PanelDue 7i, that's another 2W or so of energy consumption, so the power will only last for one fifth of the time. With 24V power that still leaves around 20ms. With 12V power it is just 5ms.

                  All figures are approximate. Your mileage may vary.

                  is there a way to add some external hardware (capacitors) to improve the save - resume?

                  Vetiundefined 1 Reply Last reply Reply Quote 0
                  • Vetiundefined
                    Veti @A Former User
                    last edited by Veti

                    @the_dragonlord

                    @dc42
                    would something like this work?
                    https://www.aliexpress.com/i/32967985788.html

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @Veti
                      last edited by A Former User

                      @Veti said in Resume from power outage, really only with 24V?:

                      @the_dragonlord

                      dc42
                      would something like this work?
                      https://www.aliexpress.com/i/32967985788.html

                      exactly but it should be interfaceable by the Duet and RRF....when the external board connected to a pin detects a failure the pin goes at low level and RRF starts the failure save procedure....I don't know if this is possible....is it?

                      stuartofmtundefined 1 Reply Last reply Reply Quote 0
                      • stuartofmtundefined
                        stuartofmt @A Former User
                        last edited by stuartofmt

                        @the_dragonlord
                        If you are just using a bank of capacitors - then its simplest to just have them across VIN. This is because VIN would keep the capacitors charged and they are only used by the Duet when there is no input from the power supply. Based on @dc42 comment. You may get away with just adding a 200uF capacitor - but if it were me I'd think in terms of 1000uF. This is one of those situations were more is better.

                        It looks like the BIGTREE mini UPS is just a bank of capacitors with circuitry to detect low power and tell the printer to trigger to save the printer state. Duet already has that circuitry - so it seems that the BIGTREE option is no better than a bank of capacitors (in the Duet context).

                        Having "something" detect a power failure and turn on is really only beneficial if that something can provide power (typically a battery bank or generator) for a longer period of time.

                        It seems from your description that keeping it simple is what you want.

                        A Former User? 1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User @stuartofmt
                          last edited by

                          @stuartofmt said in Resume from power outage, really only with 24V?:

                          @the_dragonlord
                          If you are just using a bank of capacitors - then its simplest to just have them across VIN. This is because VIN would keep the capacitors charged and they are only used by the Duet when there is no input from the power supply. Based on @dc42 comment. You may get away with just adding a 200uF capacitor - but if it were me I'd think in terms of 1000uF. This is one of those situations were more is better.

                          It looks like the BIGTREE mini UPS is just a bank of capacitors with circuitry to detect low power and tell the printer to trigger to save the printer state. Duet already has that circuitry - so it seems that the BIGTREE option is no better than a bank of capacitors (in the Duet context).

                          Having "something" detect a power failure and turn on is really only beneficial if that something can provide power (typically a battery bank or generator) for a longer period of time.

                          It seems from your description that keeping it simple is what you want.

                          i want to keep it as simple as possible... how many capacitor do you think I'd need to make an efficient failure saver as it would be if I had a 24vdc power supply? Should them be connected in parallel to each other and in parallel with the VIN? should be needed some other circuitry in case?

                          stuartofmtundefined 1 Reply Last reply Reply Quote 0
                          • stuartofmtundefined
                            stuartofmt @A Former User
                            last edited by

                            @the_dragonlord

                            @dc42 would likely provide a more informed answer than I in terms of the overall capacitance. But basically - one or more capacitors in parallel with each other (capacitance adds in this situation) and in parallel with VIN - observing the correct polarity.

                            A Former User? 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User @stuartofmt
                              last edited by

                              @stuartofmt said in Resume from power outage, really only with 24V?:

                              @the_dragonlord

                              @dc42 would likely provide a more informed answer than I in terms of the overall capacitance. But basically - one or more capacitors in parallel with each other (capacitance adds in this situation) and in parallel with VIN - observing the correct polarity.

                              I supposed this too, lets wait to see if @dc42 has some suggestion for me about this

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator
                                last edited by

                                This is basically the same advice given when power resume functionality isn't working as expected, even on 24v power. Add capacitors. So you're on the right path.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                A Former User? 1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @Phaedrux
                                  last edited by

                                  @Phaedrux said in Resume from power outage, really only with 24V?:

                                  This is basically the same advice given when power resume functionality isn't working as expected, even on 24v power. Add capacitors. So you're on the right path.

                                  yesss! now the only thing to know is how many capacitors and what "size" they got to have

                                  1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator
                                    last edited by

                                    I think the advice from @stuartofmt with regards to that is good.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • stuartofmtundefined
                                      stuartofmt
                                      last edited by

                                      They are not expensive but I would go for a "brand name" - since quality can vary. Working Voltage is important. Since this is being attached to the output of an already smoothed power supply - a bit more than the highest VIN voltage. May as well go for 35V (fairly common) in case you later upgrade to a 24V Power Supply. So something like a 1000 uF @ 35V.

                                      Depending where you live -Amazon (or similar) or a local electronics parts supplier.

                                      A Former User? 1 Reply Last reply Reply Quote 1
                                      • A Former User?
                                        A Former User @stuartofmt
                                        last edited by A Former User

                                        @stuartofmt said in Resume from power outage, really only with 24V?:

                                        They are not expensive but I would go for a "brand name" - since quality can vary. Working Voltage is important. Since this is being attached to the output of an already smoothed power supply - a bit more than the highest VIN voltage. May as well go for 35V (fairly common) in case you later upgrade to a 24V Power Supply. So something like a 1000 uF @ 35V.

                                        Depending where you live -Amazon (or similar) or a local electronics parts supplier.

                                        ok, excellent! I've bought 10 of them from Amazon (10 was the minumu orderable number) How many capacitors should I use? Just one or two or more in parallel to each other?
                                        I think it's mandatory to add a resistor in series with the capacitor because in the very first moment when you turn on the power supply tha capacitor act almost like a shortcut and with the resistor we are able to compute the charge time with the formula Time=5R*C...in the same time I'm afraid that adding a resistor in series with the capacitor (and so in series with the board) could bring to a partial loss of voltage for the board itself....how about it?

                                        This is the circuitry i was thinking with C1 surely used and C2 to Cn as optional capacitor to add more "time" to the board and the resistor as optional....is it correct? How about the resistor?

                                        Thanks20201030_113453.jpg

                                        A Former User? stuartofmtundefined arhiundefined 3 Replies Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @A Former User
                                          last edited by

                                          @the_dragonlord I have read this: https://forum.duet3d.com/topic/19150/ups-24v-on-skr-pro-rrf-3/2?_=1604067164270 maybe buying the micro capacitor UPS and using like this could be the easiest way?

                                          1 Reply Last reply Reply Quote 0
                                          • stuartofmtundefined
                                            stuartofmt @A Former User
                                            last edited by stuartofmt

                                            @the_dragonlord
                                            As long as you keep the capacitance modest you will not have a problem. It's been years since I was an active elec engineer - but with the aid of an online calculator .... The max current draw at 24V (12V) for a 1000uF capacitor is ~ 3A (1.5A) assuming a rise time from the power supply ~10mS (likely much longer). I.e. the power supply at switch on is not instantaneous at VIN. Your power supply is likely rated at 20A or more.

                                            Now to the resistor -- if used - it will have to dissipate heat all the time because the rest of the components consume multiple amps. Also - it would cause a voltage drop and diminish the effect you are after (i.e. energy storage as opposed to continuous voltage smoothing). So in this context - not a good idea (unless it's quite small) - and you do not need it (unless maybe you add something like 1F of capacitors 🙄 ).

                                            A Former User? 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA