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

    External 5v Source

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    7
    43
    2.1k
    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.
    • javitopiaundefined
      javitopia
      last edited by

      For those using the PS_ON signal, remember that it is an open drain output switched by a AO3400A. That means:

      • When it is active (M80) this signal is pulled low (so it is like a short to GND)

      • When it is inactive (M81) this signal is floating, so you need to add a pull-up if you want a proper high level voltage.

      • The AO3400A maximum ratings are 30V 5.7A (but the current rating depnds on many factors, divide it by half to make sure)

      • If you are controlling inductive loads like relays by themselves (withouth a module), add a flyback diode

      GoremanXundefined 1 Reply Last reply Reply Quote 0
      • GoremanXundefined
        GoremanX @javitopia
        last edited by

        @javitopia said in External 5v Source:

        For those using the PS_ON signal, remember that it is an open drain output switched by a AO3400A. That means:

        • When it is active (M80) this signal is pulled low (so it is like a short to GND)

        • When it is inactive (M81) this signal is floating, so you need to add a pull-up if you want a proper high level voltage.

        I wonder if you could clarify something that's been bugging me about this.

        What's the default state of that pin? Because when I boot up, it's definitely not pulled low. Not until I actually issue an M80 command. And it can't be floating, otherwise an ATX power supply would be shut down as soon as the board boots. So is it just open? And is it possible to return it to its default state without rebooting?

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

          @GoremanX said in External 5v Source:

          And it can't be floating, otherwise an ATX power supply would be shut down as soon as the board boots.

          Isn't that the part of the point? you supply the board with 5v standby to counter act that, which isn't affected by the ps_on input.

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

            @bearer said in External 5v Source:

            @GoremanX said in External 5v Source:
            Isn't that the part of the point? you supply the board with 5v standby to counter act that, which isn't affected by the ps_on input.

            So is it floating at startup?

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

              Haven't checked the code or measured the signal, but from the behaviour on the one printer I have set up with a ATX supply it does seems so. On power on the ATX supply only provide 5v standby until you turn on the ps_on output (pulling it low) and then you get 12v Vin.

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

                (You'll want to check the current rating for 5v standby if you plan on using it for the pi)

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

                  @bearer said in External 5v Source:

                  (You'll want to check the current rating for 5v standby if you plan on using it for the pi)

                  I'm changing my mind on that. I think I'll just feed the Pi 4 directly with a separate 5v power supply set to 5.2v and have the Pi provide 5v to the Duet 3 via the ribbon cable. My tests with that setup have been successful, and I get better 5v on the Duet 3 than with the onboard converter, despite the resistance in the ribbon cable. The Duet 3 draws barely any current over 5v anyways, and this is one of the "supported" modes so I won't be running afoul of the "rules" 🤣

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

                    @bearer said in External 5v Source:

                    Haven't checked the code or measured the signal, but from the behaviour on the one printer I have set up with a ATX supply it does seems so. On power on the ATX supply only provide 5v standby until you turn on the ps_on output (pulling it low) and then you get 12v Vin.

                    I'm trying to set it up to work in reverse. That option is supposedly on the to-do list for the 3.x firmware series, but I haven't seen it in the 3.2 changelog so far so I'm assuming it didn't make it yet. I've been trying to figure out how to get it to provide 5v when pulled high, but I'm not sure how to go about it... I was considering a high pullup resistor between the 5v and ps_on pins

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

                      Reverse? For the ATX supply or the output? Yes, the output will support inverting the signal to support some Meanwell supplies i think.

                      The ATX supply will need modification to work otherwise, or simpler throw a 5v relay in there and always on the supply.

                      You can't supply any serious current through a pull up resistor btw.

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

                        @bearer I'm using a Meanwell power supply with remote control, hence the need to reverse the behavior.

                        So if I understand correctly, if I add a resistor (say, 10k?) between the 5v and ps_on pins, then when ps_on is floating (M80), it'll provide 5v but when it's pulled low (M81), it'll provide 0v? That way I could connect the - (minus) pin of the Meanwell remote control to the GND pin and the M80 and M81 commands would function as expected?

                        I'm hurting my brain...

                        achrnundefined 1 Reply Last reply Reply Quote 0
                        • achrnundefined
                          achrn @GoremanX
                          last edited by

                          @GoremanX I think you've tied your brain in knots.

                          The board powers up in a floating state.

                          M80 switches a power supply (that has an active-low input) on by pulling pson low.

                          M81 switches a power supply (that has a active-low input and its own pullup) off by letting pson float.

                          If you add a pull-up resistor to 5V it will power up at 5V, then when you issue M80 it will go low. As to whether this casuses your PSU to do what you want depends on the PSU. You mention a Meanwell RS-25-5, but I don't think that has a input that will work with pson - it's just on when mains is supplied and off when not.

                          In my system I have an opto-isolator across 5V and pson. That activates a relay. Yes it has a flyback diode.

                          GoremanXundefined 1 Reply Last reply Reply Quote 0
                          • GoremanXundefined
                            GoremanX @achrn
                            last edited by

                            @achrn My 24v power supply is a Meanwell RSP-150-24, that's the one I'm trying to control with the ps-on pin. The remote control pins on that power supply function in reverse to an ATX power supply

                            achrnundefined 1 Reply Last reply Reply Quote 0
                            • oliofundefined
                              oliof
                              last edited by

                              Possibly stupid question: If I use an external 5V PSU, do I need to remove the INT_5V jumper?

                              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                              GoremanXundefined 1 Reply Last reply Reply Quote 0
                              • achrnundefined
                                achrn @GoremanX
                                last edited by

                                @GoremanX said in External 5v Source:

                                RSP-150-24

                                Ah, of course - I was being stupid thinking it was the 5V you'd control with pson.

                                However, my reading of the RSP-150-24 data sheet shows it as active low, same as a ATX. The data sheet I've found says "CN1: < 0~0.8VDC POWER ON , 4~10VDC POWER OFF".

                                So yes, I think you could connect a pullup between pson and +5V, then connect pson to CN+ and ground to CN-. I don't know what current that needs - 10k might be a bit high- I'd probbaly start at 1k.

                                GoremanXundefined 1 Reply Last reply Reply Quote 1
                                • GoremanXundefined
                                  GoremanX @oliof
                                  last edited by

                                  @oliof Yes. If you're feeding 5v to the board from an external source (either from a Pi or through the ext_5v pin), then you no longer need to use the onboard 5v converter. Removing that jumper disables the onboard converter

                                  1 Reply Last reply Reply Quote 1
                                  • javitopiaundefined
                                    javitopia
                                    last edited by

                                    Just think of the mosfet (the device controlling the pin) as a switch between the pin and GND.

                                    When you issue an M80, the switch closed, so there is a path to GND.

                                    When you issue an M81, the switch opens, so there is not path to any of the power levels.

                                    As far as i know, you can't change this behaviour (use m81 to "close" the pin) so if you need to control a device that is active high you will need external circuitry like a 7404).

                                    What you can do, is changing the default state. If you want your duet to power on as soon as it is supplied power, just add M80 to your con fig.g

                                    If you want your duet to start powered down (i mean the ps_on signal) you don't have to do anything, but you should add M81 in your con fig.g, so the power control appears in your duet web control interface (in RRF3 the ATC power control block won't appear until you have issued a m80 or m81 command)

                                    and lastly @oliof YES if you feed 5v via the ext 5v header you have to remove the int_5v jumper.

                                    Nuramoriundefined 1 Reply Last reply Reply Quote 0
                                    • GoremanXundefined
                                      GoremanX @achrn
                                      last edited by GoremanX

                                      @achrn Woohoo! That worked. Ended up going with a 100ohm pull up resistor, and it works great. Anything higher would cut the voltage down below the 4v threshold for the remote control. The draw from the mosfet doing the switching on the power supply is negligible, so my tiny 1/4 watt resistor isn't being stressed at all. I'll wrap it in heat shrink tubing and call it done.

                                      alt text

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

                                        @GoremanX said in External 5v Source:

                                        my tiny 1/4 watt resistor isn't being stressed at all.

                                        unless I'm missing something it will be when ps_on is pulled to ground? 100 ohm and 5v = 250mW no?

                                        1 Reply Last reply Reply Quote 0
                                        • GoremanXundefined
                                          GoremanX
                                          last edited by GoremanX

                                          @bearer oohh, maybe. Good call. Technically that's exactly its capacity and it hasn't been an issue so far, but it might be in the long run. Could try 220 ohm instead and that would be half its capacity. 1kohm was definitely too high, I was getting just over 3v and it wasn't enough to turn off the power supply.

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

                                            (just keep an eye on the temp)

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