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

    RC Low-Pass Filter for Blower Fan

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    9
    57
    9.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.
    • Iamturbo1978undefined
      Iamturbo1978 @wilriker
      last edited by

      @wilriker I'm glad it helped you to understand whats going on.

      With your open question; the PWM cycle does not reset, so the remaining 1ms after the filter would be added to the next cycle.

      cycle 1)
      high for 5ms, low for 4ms

      cycle 2)
      low for 1ms, high for 5ms, low for 3ms

      cycle 3)
      low for 2ms, high for 5ms, low for 2ms

      I agree with @dc42, to get the best output is to use a L-C filter.

      1 Reply Last reply Reply Quote 0
      • wilrikerundefined
        wilriker
        last edited by

        Thanks @dc42 and @Iamturbo1978 for all your patience with me so far and for your very understandable explanations in this topic! ๐Ÿ‘

        Just to make sure I understood everything correct here is a drawing of what it should look like:
        0_1533646989326_LC-circuit.png

        Of course power-source, MOSFET and flyback diode are already on the board and I would have to add the right half of the diagram. Right?

        Manuel
        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
        with probably always latest firmware/DWC (incl. betas or self-compiled)
        My Tool Collection

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

          Yes, that's correct.

          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
          • wilrikerundefined
            wilriker
            last edited by

            @dc42 Yesterday I connected the tacho output of the fan to my Duet. Although this fan is obviously not a 4-wire PWM fan it gives me quite stable RPM readings when I set my fan to a specific speed.

            You said it might be that still this would give me bogus values and I found something really strange so maybe you could tell me if that could fall under what you warned me about:

            My fan according to its specs (TFD-B5015M12B) has a top speed of 4500 RPM@12V. If I run it with M106 S1 it will get full Vin which in my case is 13.6V so of course it will run faster. But tacho readings tell me it runs at 6500 RPM. If I then run it with M106 S0.88 it should get very close to 12V and the tacho reads 5500 RPM. Interestingly there is another model of the same family that would have exactly this speed @12V but I checked my order as well as the type label on my fan to not be the faster model.

            Of course there is a chance that my fan is labelled wrong or that they have changed the specs since this specific fan was produced. But I just wonder would it be possible for the RPM reading to be off at around 1000 RPM and scale according to this?

            Manuel
            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
            with probably always latest firmware/DWC (incl. betas or self-compiled)
            My Tool Collection

            JoergS5undefined 1 Reply Last reply Reply Quote 0
            • JoergS5undefined
              JoergS5 @wilriker
              last edited by

              @wilriker so this could be the H type with 5500. If you measure the current also, and it is 0.18 A instead of 0.14, then you have the other type.

              wilrikerundefined 1 Reply Last reply Reply Quote 0
              • wilrikerundefined
                wilriker @JoergS5
                last edited by

                @joergs5 To measure the current I would have to put my multimeter in series, right? Never done that so far.

                Manuel
                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                with probably always latest firmware/DWC (incl. betas or self-compiled)
                My Tool Collection

                JoergS5undefined 1 Reply Last reply Reply Quote 0
                • JoergS5undefined
                  JoergS5 @wilriker
                  last edited by JoergS5

                  @wilriker directly into one of the main lines of the blower. Disconnecting the line and putting the current meter at those two open contacts. Be aware to set the maximum measure value of the current meter high first (above the maximum ampere, e. g. 1 A).

                  If it's a Molex connection, you can turn current off, draw out one of the cables (the pin have a barb, by pressing down you can remove the cable), connect to amperemeter at both sides, turn on and then measure.

                  wilrikerundefined 1 Reply Last reply Reply Quote 0
                  • wilrikerundefined
                    wilriker @JoergS5
                    last edited by

                    @joergs5 OK, thanks for confirming. As I already cut my wires to the fan I think I can quite easily insert the multimeter in this circuit using some screw terminals... I need to put ferrules on the wire ends anyway, so that's up next.

                    Then again it would be really strange to have the H type when buying the M type that is also labelled as being the M type (including the amperage). I would expect this on a super-cheapo Chinese fan but not from a brand. But let's wait and see. ๐Ÿ˜€

                    Manuel
                    Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                    with probably always latest firmware/DWC (incl. betas or self-compiled)
                    My Tool Collection

                    JoergS5undefined 1 Reply Last reply Reply Quote 0
                    • JoergS5undefined
                      JoergS5 @wilriker
                      last edited by JoergS5

                      @wilriker maybe labeled by someone who needs better glasses, M and H are similar ๐Ÿ˜‰

                      I thought it may be the H type because your 5500 measuring fits exactly to this higher model.

                      wilrikerundefined 1 Reply Last reply Reply Quote 0
                      • wilrikerundefined
                        wilriker @JoergS5
                        last edited by

                        @joergs5 I know it would fit perfectly. Also about 6500 RPM @13.6V would match that quite well.

                        Manuel
                        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                        with probably always latest firmware/DWC (incl. betas or self-compiled)
                        My Tool Collection

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

                          @phaedrux said in RC Low-Pass Filter for Blower Fan:

                          https://www.digikey.ca/short/jrmcdf

                          I was reading through this thread and was hoping someone could clarify the value of the inductor in the diagram above? I'm familiar with 1uH (micro-Henry) and 1nH (nano-Henry), but what does 1mH stand for? mili-Henry (1000uH)? for such a small amount of current?

                          wilrikerundefined 1 Reply Last reply Reply Quote 0
                          • wilrikerundefined
                            wilriker @SnowCrash
                            last edited by

                            @snowcrash said in RC Low-Pass Filter for Blower Fan:

                            I was reading through this thread and was hoping someone could clarify the value of the inductor in the diagram above? I'm familiar with 1uH (micro-Henry) and 1nH (nano-Henry), but what does 1mH stand for? mili-Henry (1000uH)? for such a small amount of current?

                            Yes, mH is milli-Henry.

                            Manuel
                            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                            with probably always latest firmware/DWC (incl. betas or self-compiled)
                            My Tool Collection

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

                              Thanks @wilriker!

                              But that's HUGE just for a fan that draws maybe 0.15mA, no? (ok, the fan will draw more current at startup but still...). Is there some calculation behind this value?

                              wilrikerundefined dc42undefined 2 Replies Last reply Reply Quote 0
                              • wilrikerundefined
                                wilriker @SnowCrash
                                last edited by

                                @snowcrash Actually I have no clue about all this stuff. I just took those numbers for granted (even though I would also like to learn about where they come from).

                                But just as an update: I dropped all this anyway since connecting the signal line showed that the fan actually turns at the speed I set it to, it just feels/sounds a lot lower - but then my ears and fingers are probably the worst way of measuring fan speed in the first place. ๐Ÿ˜‚

                                Manuel
                                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                with probably always latest firmware/DWC (incl. betas or self-compiled)
                                My Tool Collection

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

                                  @wilriker happy you got your fan working quietly (though perhaps not in the way you were hoping to achieve this ๐Ÿ™‚ )

                                  Anyway, at another discussion, @dc42 insisted that an inductor-capacitor circuit is necessary for preventing a non-PWM fan from potentially being damaged while being run with a high frequency PWM signal, and just I started looking into the idea of making a little add-on module that would provide this circuitry for all 3 PWM outputs on the Duet (plus the ability to choose between 12V and 24V for each fan which is the main reason for the module).

                                  So hopefully @dc42 or someone else familiar with this subject would chime in and clarify this point about the inductor's value.

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

                                    @snowcrash said in RC Low-Pass Filter for Blower Fan:

                                    Thanks @wilriker!

                                    But that's HUGE just for a fan that draws maybe 0.15mA, no? (ok, the fan will draw more current at startup but still...). Is there some calculation behind this value?

                                    Yes 1mH. The fan draws 0.15A (150mA), not 0.15mA.

                                    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

                                      Thanks for the confirmation, @dc42! But what's the calculation behind it?

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

                                        The calculation is L = V * t/I where V is the voltage across the inductor, I is the maximum ripple current current you want to allow, and t is the time involved. Or, turning it around, I = V * t/L. If we take the case of a 24V fan running at 50% PWM and 50kHz PWM frequency, then for L=1mH and 12V across the fan, we have I = 12V * 10us/1mh = 120mA. This is around the same as the fan current, so a capacitor is needed after the inductor to reduce the ripple current in the fan. For the capacitor, C=I*t/V where V is the allowed peak ripple voltage. So V=I * t/C and 1uF will give 120mA * 10us/1uF = 1.2V. This is 10% of the 12V average voltage at 50% PWM, so it is likely to be low enough.

                                        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 2
                                        • fmaundefined
                                          fma
                                          last edited by

                                          I recently added a Berd air pump for cooling the part, and I noticed that increasing the PWM frequency increased the efficiency: for the same PWM ratio, the higher was the frequency, the higher was the rotation speed. I went up to 100kHz.

                                          Is it normal? Could such low -pass filter improve things?

                                          Frรฉdรฉric

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

                                            That doesn't necessarily mean that the efficiency was increased. The increased rotation speed may have been caused by a EMI suppression capacitor within the motor having a smoothing effect.

                                            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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA