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

    PWM to constant DC voltage for fan control

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    22
    1.3k
    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.
    • Egon.Netundefined
      Egon.Net @dc42
      last edited by

      @dc42 said in PWM to constant DC voltage for fan control:

      @egon-net did you include the resistance of the inductor in your simulation? It's 2.1 ohms for the inductor that @bananapuppy is thinking of using. If the capacitor is electrolytic then you should include its ESR in the simulation too.

      What happens if you simulate using a lower value capacitor, or no capacitor at all?

      I added a 2 Ohm series resistor to the inductor, but didn't add anything to the capacitor (I'm used to use low ESR electrolytics). I'll perform a test and show the results.
      Regarding the capacitor, the lower the capacitor the smaller the transient, but the worse the ripple too.

      Egon.Netundefined 1 Reply Last reply Reply Quote 0
      • Egon.Netundefined
        Egon.Net @Egon.Net
        last edited by

        @dc42 here are the results:

        2.1 Ohm ESR for Inductor, 7 Ohm ESR for capacitor, 100%PWM:
        65535HZ-100PWM-ESR.png

        It still overshoots, but less than before.

        Now, witha 100nF capacitor, 50% PWM:
        65535HZ-100PWM-ESR-100nF.png
        The overshoot is almost gone, but ripple increases.

        And finally without capacitor at all (same 50% PWM):
        65535HZ-100PWM-ESR-noCAP.png
        No transient, but lots of ripple.

        dc42undefined bananapuppyundefined 2 Replies Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @Egon.Net
          last edited by

          @egon-net thanks, looks like 100nF might be a good value to use then.

          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

          1 Reply Last reply Reply Quote 0
          • bananapuppyundefined
            bananapuppy @Egon.Net
            last edited by

            @egon-net thanks for making these graphs, very useful to me! Does the voltage still overshoot to about 16V with 100% PWM, when using a 100nF capacitor?

            How about a capacitor somewhere between 100nF and 1ยตF? I.e. 0.47ยตF for instance, I figure that might be a nice middle ground for ripple with not too much of an overshoot ๐Ÿ˜„?

            Egon.Netundefined 1 Reply Last reply Reply Quote 0
            • Egon.Netundefined
              Egon.Net @bananapuppy
              last edited by

              @bananapuppy you are welcome ๐Ÿ™‚
              With a 100nF capacitor the overshoot should be about 1.5V (13.5V max for 12V), and ripple about 1Vpp

              The bigger the cap, the bigger the overshoot.

              dc42undefined bananapuppyundefined 2 Replies Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @Egon.Net
                last edited by

                A ripple of 1V p-p is unlikely to matter.

                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

                Egon.Netundefined 1 Reply Last reply Reply Quote 0
                • Egon.Netundefined
                  Egon.Net @dc42
                  last edited by

                  @dc42 said in PWM to constant DC voltage for fan control:

                  A ripple of 1V p-p is unlikely to matter.

                  I agree.

                  Is there any drawback for the Duet with the highest PWM frequencies (CPU/resource usage wise) besides a tiny bit more power consumed by the mosfet?

                  dc42undefined 1 Reply Last reply Reply Quote 0
                  • bananapuppyundefined
                    bananapuppy @Egon.Net
                    last edited by bananapuppy

                    @egon-net @dc42 thanks! I recon the following should do for a capacitor then? A ceramic one, as electrolytic doesn't even seem available at 100nF, does that matter? There was mention of ESR with use of an electrolytic capacitor / being used in the simulation?

                    SA105E104MARTB AVX

                    Egon.Netundefined 1 Reply Last reply Reply Quote 0
                    • Egon.Netundefined
                      Egon.Net @bananapuppy
                      last edited by

                      @bananapuppy said in PWM to constant DC voltage for fan control:

                      SA105E104MARTB AVX

                      Ceramic is ok, but I'd try to get one with X5R or X7R dielectric. The one you picked has Z5U dielectric which is not that good.

                      bananapuppyundefined 1 Reply Last reply Reply Quote 1
                      • bananapuppyundefined
                        bananapuppy @Egon.Net
                        last edited by

                        @egon-net no idea what that difference means (if someone can recommend me a good electronics course, please do ๐Ÿคฃ), but the following should be good then!? ๐Ÿ˜„

                        CM-100N-X7R SR PASSIVES

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

                          @bananapuppy said in PWM to constant DC voltage for fan control:

                          CM-100N-X7R

                          Yes, that's 100nF 100V X7R.

                          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

                          1 Reply Last reply Reply Quote 1
                          • dc42undefined
                            dc42 administrators @Egon.Net
                            last edited by

                            @egon-net said in PWM to constant DC voltage for fan control:

                            @dc42 said in PWM to constant DC voltage for fan control:

                            A ripple of 1V p-p is unlikely to matter.

                            I agree.

                            Is there any drawback for the Duet with the highest PWM frequencies (CPU/resource usage wise) besides a tiny bit more power consumed by the mosfet?

                            Just a little more heat dissipation in the mosfet, and perhaps slightly poorer resolution in the PWM setting.

                            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

                            Egon.Netundefined 1 Reply Last reply Reply Quote 0
                            • Egon.Netundefined
                              Egon.Net @dc42
                              last edited by

                              @dc42 nice, thanks!

                              1 Reply Last reply Reply Quote 0
                              • droftartsundefined droftarts referenced this topic
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA