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

    Print cooling fan not working properly

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    7
    27
    3.4k
    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.
    • jckrayundefined
      jckray
      last edited by

      Okay nevermind. I have solved it! Should have waited another minute before making that last post. I had a bad line of code in a separate file I have set up to run on startup. Everything is golden now.

      Thanks for everyone's help and ideas!

      John
      Founder of Hydra Research LLC, developers of the open-source 3D printers and providers of 3D printing services.
      https://www.hydraresearch3d.com/

      1 Reply Last reply Reply Quote 0
      • SnowCrashundefined
        SnowCrash
        last edited by SnowCrash

        Hi @jckray,

        Glad you got it sorted out.

        Just thought I'd chip in about the issue of PWM frequencies for the benefit of anyone else struggling with pulsating fans and potentially reading this thread. 100Hz (or even 1000Hz for that matter) is way too low for PWM fan signals. Although there's no one frequency that's suitable for all PWM fans, conventional wisdom puts the number at 25,000Hz (or 25MHz), while some even opting for a little higher (around 30MHz). Often times, changing the frequency to that level makes a significant difference in terms of the fan's acoustics.

        Red Sand Robotundefined dc42undefined 2 Replies Last reply Reply Quote 1
        • Red Sand Robotundefined
          Red Sand Robot @SnowCrash
          last edited by

          @snowcrash Not sure if I am understanding exactly how PWM affects the fans, but could setting a high frequency (as in the mHz range as you mentioned) damage the fans or the board at all?

          I'm running a 24v blower fan and any time I set it lower than 100% it emits a high pitched whine (at 500hz). Curious as to if changing the frequency to much higher will remove the whine without damaging anything

          almost an engineer

          SnowCrashundefined 1 Reply Last reply Reply Quote 0
          • SnowCrashundefined
            SnowCrash @Red Sand Robot
            last edited by SnowCrash

            @red-sand-robot said in Print cooling fan not working properly:

            @snowcrash Not sure if I am understanding exactly how PWM affects the fans, but could setting a high frequency (as in the mHz range as you mentioned) damage the fans or the board at all?

            I'm running a 24v blower fan and any time I set it lower than 100% it emits a high pitched whine (at 500hz). Curious as to if changing the frequency to much higher will remove the whine without damaging anything

            Raising the PWM frequency to the levels I mentioned won't cause any damage to the fan or board (btw, I previously verified with @dc42 in another thread that the board can generate these frequencies and indeed it can). I'm not surprised your blower whines at 500Hz. Give 25MHz a go and see if it solves the problem (don't forget the value is entered in Herz, so 25000).

            1 Reply Last reply Reply Quote 1
            • samlogan87undefined
              samlogan87
              last edited by

              @SnowCrash so 25kHz is what you recommend for even a 2 wire fan that is pwm’d? The wife got sick of the whine so I ordered some 4 wire fans but in the mean time should I bump it up that high as it might be a few weeks before the others show up.

              Regards,
              Sam

              Custom Core-XY

              SnowCrashundefined 1 Reply Last reply Reply Quote 0
              • SnowCrashundefined
                SnowCrash @samlogan87
                last edited by SnowCrash

                @samlogan87 said in Print cooling fan not working properly:

                @SnowCrash so 25kHz is what you recommend for even a 2 wire fan that is pwm’d? The wife got sick of the whine so I ordered some 4 wire fans but in the mean time should I bump it up that high as it might be a few weeks before the others show up.

                Regards,
                Sam

                Hi Sam,

                No reason not to try and see. Though certainly not all 2-wire fans like to be PWM'd as they weren't designed for this kind of operation, still in many instances there will be a significant improvement with higher frequency in terms of noise (and functioning).

                Btw, if you're hooking up a PWM fan to the Duet by running the blue (=pwm signal) wire to the GND pin of the fan header and independent power lines to the fan, don't forget to add the protection diode on the signal line.

                For anyone interested, I dug up 2 previous discussions on this topic in which @dc42 took part (and also include instructions on the said protection diode):

                https://forum.duet3d.com/topic/6054/help-configuring-pwm-fan-in-thermostatic-mode-for-duet-drivers/4

                https://forum.duet3d.com/topic/5248/maximum-frequency-of-pwm-fans

                Red Sand Robotundefined 1 Reply Last reply Reply Quote 1
                • Red Sand Robotundefined
                  Red Sand Robot @SnowCrash
                  last edited by

                  @snowcrash Hey, thanks for the tip to turn the frequency up to 25kHz! completely fixed the electronic whine I was hearing from my blower fan, didn't even think it turned on when I set it to 30% speed!

                  almost an engineer

                  SnowCrashundefined 1 Reply Last reply Reply Quote 0
                  • SnowCrashundefined
                    SnowCrash @Red Sand Robot
                    last edited by

                    Very cool, @red-sand-robot, I'm happy this helped 🙂

                    1 Reply Last reply Reply Quote 0
                    • samlogan87undefined
                      samlogan87
                      last edited by

                      @SnowCrash Thanks for that. I am running them at 25000hz and I think there is a slight improvement but still noticeable. I am guessing the fans that I got are not the best.

                      Kind Regards,
                      Sam

                      Custom Core-XY

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

                        @snowcrash said in Print cooling fan not working properly:

                        Hi @jckray,

                        Glad you got it sorted out.

                        Just thought I'd chip in about the issue of PWM frequencies for the benefit of anyone else struggling with pulsating fans and potentially reading this thread. 100Hz (or even 1000Hz for that matter) is way too low for PWM fan signals. Although there's no one frequency that's suitable for all PWM fans, conventional wisdom puts the number at 25,000Hz (or 25MHz), while some even opting for a little higher (around 30MHz). Often times, changing the frequency to that level makes a significant difference in terms of the fan's acoustics.

                        The 25kHz figure is quoted for 4-wire fans with a separate PWM input. You shouldn't use high PWM frequencies with ordinary 2-wire fans unless you use a series inductor followed by a parallel capacitor to smooth the PWM into DC.

                        Most 2-wire fans were never designed to be used with PWM, and it's amazing that they work as well as they do.

                        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

                        Red Sand Robotundefined SnowCrashundefined 2 Replies Last reply Reply Quote 0
                        • Red Sand Robotundefined
                          Red Sand Robot @dc42
                          last edited by

                          @dc42 Is there any danger to the electronics from using a high PWM frequency (in the 25kHz range)? Or would the other danger be to the fan itself?

                          almost an engineer

                          1 Reply Last reply Reply Quote 0
                          • SnowCrashundefined
                            SnowCrash @dc42
                            last edited by SnowCrash

                            The 25kHz figure is quoted for 4-wire fans with a separate PWM input. You shouldn't use high PWM frequencies with ordinary 2-wire fans unless you use a series inductor followed by a parallel capacitor to smooth the PWM into DC.

                            Most 2-wire fans were never designed to be used with PWM, and it's amazing that they work as well as they do.

                            @dc42, to pick up on @Red-Sand-Robot most recent question, while I completely agree with your second statement, I'm a bit baffled by the first.

                            What's the specific electrical/mechanical problem with using high PWM on 2 wire fans?

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

                              High frequency PWM is ineffective if the fan has a capacitor across its power terminals. Switching losses in the MOSFET increase with PWM frequency, so if you do use 25kHz PWM to switch the power input to a fan, watch out for the MOSFET overheating.

                              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

                              SnowCrashundefined 1 Reply Last reply Reply Quote 0
                              • SnowCrashundefined
                                SnowCrash @dc42
                                last edited by SnowCrash

                                @dc42 said in Print cooling fan not working properly:

                                High frequency PWM is ineffective if the fan has a capacitor across its power terminals. Switching losses in the MOSFET increase with PWM frequency, so if you do use 25kHz PWM to switch the power input to a fan, watch out for the MOSFET overheating.

                                Thanks for the clarification. @dc42.

                                For me, this is one of those cases where theory & practice seem to diverge somewhat - at least in my experience. I've been working with every possible kind of fan for years now and run them off every conceivable (dc) supply type and although it's certainly true that some 2-wire fans really don't like to be PWMed, I never had a fan fail in the manner you describe. On the other hand, I've had quite a few 2-wire fans with which the noise level was significantly reduced when run in the 25-30KHz frequencies and they worked fine throughout their lifespan.

                                Perhaps I've just been extraordinary lucky in this context or possibly the danger here is very marginal. Either way, everyone's millage is different, as they say, and I guess each of us can make his/her own choices as to the level of risk they'd like to take and how to go about it.

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