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

    Air pump too fast at minimum pwm

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    37
    1.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.
    • Nxt-1undefined
      Nxt-1
      last edited by

      I recently aquired a 24V berd air-style air pump to provide part cooling. I have it connected to my previously unused second heater output (Duet Wifi with rrf3.1.1) with V_in also at 24V. I have the following lines in my config.g to control the pump from DWC manually.
      I have a MBR360G schottky rectifier connected across the contacts of the pump. The positive wire and the diode cathode are connected together and the anode+negative wire to the other pump terminal.

      M950 F2 C"e1heat" Q22500
      M106 P2 I0 H-1 C"Compressor"
      

      The issue I am facing is that even at 1% pwm the pump outputs more air than I need/expected. I decided to dive a little deeper and connected my Scope meter to the pump terminals to check how the pwm waveform actually looked. I noticed a couple of things:

      • Peak voltage is at 35V
      • The fall time is terrible, ~5V is the lowest ever reached

      2c270174-1933-443c-aa25-493f3790d052-image.png

      Duet3D and delta printer enthousiast. Buildlog
      Looking for Duet3D configuration support, check out Nxt-3D

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

        I think either your measurements are incorrect, or the Schottky diode is open circuit. If the Schottky diode was doing its job, it would be impossible to get more than VIN + about 0.5V at the HEAT- output.

        The fall time doesn't make any sense either.

        The PWM frequency appears to be about 22kHz, which is very high. I suggest you use a much lower PWM frequency

        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

        Nxt-1undefined 2 Replies Last reply Reply Quote 0
        • Nxt-1undefined
          Nxt-1 @dc42
          last edited by

          @dc42 said in Air pump too fast at minimum pwm:

          I think either your measurements are incorrect, or the Schottky diode is open circuit. If the Schottky diode was doing its job, it would be impossible to get more than VIN + about 0.5V at the HEAT- output.

          The fall time doesn't make any sense either.

          The PWM frequency appears to be about 22kHz, which is very high. I suggest you use a much lower PWM frequency

          I agree that that this seems like a fault in the measurements. Altough I can't really think where I would be making an error 🤔 . The measurements I get do correspond with the behaviour I am observing, ie. the pump running faster then expected.

          I measured the diode (in cirquit as it is soldered in place) with a DMM and got about 13-17 Ohms depending on the polarity. In diode test mode I get 0.005V no matter the polarity. I am not sure how to interpret this.

          With regards to the frequency, I deliberately used 22,5kHz because users previously reported using higher pwm frequencies makes these berd-air style pump run quite a bit cooler and more quiet. Of course I can try running lower frequencies for testing.

          Duet3D and delta printer enthousiast. Buildlog
          Looking for Duet3D configuration support, check out Nxt-3D

          1 Reply Last reply Reply Quote 0
          • alankilianundefined
            alankilian
            last edited by

            My first thought is to replace the pump motor (or SSR?) with a simple 1K Ohm resistor and look at the signal on the scope.

            Fiddle around until you get a signal that makes sense and THEN hook back the pump.

            That will insure you are presenting a reasonable signal to the pump.

            Nxt-1undefined 1 Reply Last reply Reply Quote 1
            • Nxt-1undefined
              Nxt-1 @alankilian
              last edited by Nxt-1

              @alankilian said in Air pump too fast at minimum pwm:

              My first thought is to replace the pump motor (or SSR?) with a simple 1K Ohm resistor and look at the signal on the scope.

              Fiddle around until you get a signal that makes sense and THEN hook back the pump.

              That will insure you are presenting a reasonable signal to the pump.

              The pump motor with driven straight from the e1 heateroutput, no SSR.

              I did some desodering work and two more measurements as seen below:

              PWM at 1%, nothing connected.
              20f59a91-36f1-4689-a700-940b776c6562-image.png
              PWM at 1%, 550Ohm resister connected.
              e8ebfadc-1c79-48e1-b58e-ec55c7c5a1a1-image.png
              Connecting a diode in that second setup has no effect on the waveform, as one would expect. Connecting the pump+diode again still results in the 1st post behaviour. Which leaves me with a diode that does not seem to behave very diode'y as @dc42 pointed out.

              EDIT: I did try connect a 2nd diode in parallel, that I measured good out of circuit. Just to make sure that I was not dealing with an actually faulty diode before.

              Duet3D and delta printer enthousiast. Buildlog
              Looking for Duet3D configuration support, check out Nxt-3D

              1 Reply Last reply Reply Quote 0
              • Nxt-1undefined
                Nxt-1 @dc42
                last edited by

                @dc42 said in Air pump too fast at minimum pwm:

                The PWM frequency appears to be about 22kHz, which is very high. I suggest you use a much lower PWM frequency

                I have since also tried with 5kHz PWM frequency and this still results in a terrible fall time and relatively huge voltages
                734bd113-2f57-4d24-93bf-a6a4176f16c6-image.png

                Duet3D and delta printer enthousiast. Buildlog
                Looking for Duet3D configuration support, check out Nxt-3D

                1 Reply Last reply Reply Quote 0
                • alankilianundefined
                  alankilian
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • Nxt-1undefined
                    Nxt-1
                    last edited by Nxt-1

                    The last two tests I did before going to bed are 1) connecting a 1N4001 in parallel, just to try it out, 0 difference. 2) remove all diodes completely, voltage spikes up 50V, yikes.

                    Duet3D and delta printer enthousiast. Buildlog
                    Looking for Duet3D configuration support, check out Nxt-3D

                    1 Reply Last reply Reply Quote 0
                    • alankilianundefined
                      alankilian
                      last edited by

                      You've got the pump (or 1KOhm resistor) connected from the heater-out to ground right?

                      And the scope connected from the heater-out to ground also right?

                      I'm trying to understand that slowly-falling edge first and I'm confused, so I want to check.

                      Nxt-1undefined 1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt
                        last edited by fcwilt

                        Hi,

                        I don't know if it really matters but according to the docs the I parameter in M106 is not supported in v3 firmware.

                        From the docs:

                        Innn Invert PWM (I1), disable fan (I-1), or normal mode (I0, default) (not supported in RRF_3, use M950)

                        Could you connect just the 1K on the output and show the waveform for 1% at 1000 Hz?

                        Thanks.

                        Frederick

                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

                          Do those traces you posted show the voltage at the Heater- terminal? Or did you take a differential measurement of the voltage across the pump motor?

                          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
                          • Nxt-1undefined
                            Nxt-1 @alankilian
                            last edited by Nxt-1

                            @alankilian said in Air pump too fast at minimum pwm:

                            You've got the pump (or 1KOhm resistor) connected from the heater-out to ground right?

                            And the scope connected from the heater-out to ground also right?

                            I'm trying to understand that slowly-falling edge first and I'm confused, so I want to check.

                            Forgive the crudity of the schematic, apparently I did not renew my DaveCAD licence 😞
                            1e7676c0-b968-49dd-9163-ad7c057a2fd9-image.png

                            @dc42 said in Air pump too fast at minimum pwm:

                            Do those traces you posted show the voltage at the Heater- terminal? Or did you take a differential measurement of the voltage across the pump motor?

                            I believe the above sketch answers your question as well? If it makes a difference, I physically connected the scopemeter probes at the pump terminals.

                            @fcwilt said in Air pump too fast at minimum pwm:

                            Hi,

                            I don't know if it really matters but according to the docs the I parameter in M106 is not supported in v3 firmware.

                            From the docs:

                            Innn Invert PWM (I1), disable fan (I-1), or normal mode (I0, default) (not supported in RRF_3, use M950)

                            Could you connect just the 1K on the output and show the waveform for 1% at 1000 Hz?

                            Thanks.

                            Frederick

                            Are you sure M106 is not supported in rrf3? Because the docs I read here specifically mention that is how it should be done with rrf3
                            I will post the trace of the 1K or similar at 1kHz tomorrow.

                            Duet3D and delta printer enthousiast. Buildlog
                            Looking for Duet3D configuration support, check out Nxt-3D

                            1 Reply Last reply Reply Quote 0
                            • Nxt-1undefined
                              Nxt-1 @fcwilt
                              last edited by

                              @fcwilt I see I read your post to quickly and missing that you specifically called the I paramter in M106. Good spot, I removed it but no difference.

                              Duet3D and delta printer enthousiast. Buildlog
                              Looking for Duet3D configuration support, check out Nxt-3D

                              1 Reply Last reply Reply Quote 1
                              • alankilianundefined
                                alankilian
                                last edited by alankilian

                                Yeah, that's going to give you some strange traces.

                                Connect the scope ground to a Ground pin, not to E1-

                                Since E1- is connected to the drain-side of a FET, it becomes floating when the output is not being driven and you lose your ground reference.

                                I think things will look better if you connect the scope ground to ground and scope-signal to E1-.

                                You'll see a zero-volt signal when the pump is "on" and a woozy-doozy signal probably getting up to 24 Volts when the pump is "off".

                                fcwiltundefined Nxt-1undefined 2 Replies Last reply Reply Quote 1
                                • fcwiltundefined
                                  fcwilt @alankilian
                                  last edited by

                                  @alankilian said in Air pump too fast at minimum pwm:

                                  Yeah, that's going to give you some strange traces.

                                  It depends on the design of the scope.

                                  I use a battery powered scope and I could connect it as shown and get a pseudo-differential view of the voltage across the motor.

                                  A line powered scope can be designed to allow the same though a true differential probe would be preferred.

                                  How you connect the scope depends mostly on the signal you wish to view.

                                  Frederick

                                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                  alankilianundefined 1 Reply Last reply Reply Quote 0
                                  • alankilianundefined
                                    alankilian @fcwilt
                                    last edited by

                                    @fcwilt True, but the voltage across the motor without a ground reference isn't going to tell you things about the risetime and falltime of the control signal.

                                    That's likely why you see 39 Volts across the motor. It's just inductive kickback.

                                    Maybe you should add a very small value series resistor attached to the VIN side of the motor and measure from VIN to the other side of the resistor. That would get you motor current which is probably what you're looking for.

                                    To get back to your problem, what kind of motor is in the air pump?
                                    It might not even be able to be speed-adjusted much by varying the PWM of it's power supply.

                                    Maybe you'd be better off looking into an adjustable blowoff valve to toss some of the air overboard.

                                    I'm thinking as hard as I can about how to get you what you want and I'm not coming up with great ideas, I'm sorry.

                                    1 Reply Last reply Reply Quote 0
                                    • alankilianundefined
                                      alankilian
                                      last edited by

                                      One other thought is to use a high-current medium-value inductor in series with your pump motor.

                                      I've used those in systems where the motor's armature inductance was too low to get good speed control from a PWM signal.

                                      Something to try anyway.

                                      1 Reply Last reply Reply Quote 0
                                      • Nxt-1undefined
                                        Nxt-1 @alankilian
                                        last edited by

                                        @alankilian You are right, the low side switching has gotten me several times over the years. Below is a trace of the motor running at 1% pwm with the scope gnd connected to actual gnd and the signal probe to the negative terminal of the motor.

                                        For those who requested it, here a link to the pump I got.

                                        a4c6288b-2c42-4899-aa1c-96b301071cec-image.png

                                        Duet3D and delta printer enthousiast. Buildlog
                                        Looking for Duet3D configuration support, check out Nxt-3D

                                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                                        • fcwiltundefined
                                          fcwilt @Nxt-1
                                          last edited by

                                          @Nxt-1

                                          Hi,

                                          How are you setting the 1%?

                                          The scope image simple doesn't look like 1% to me - unless I'm completely looking at it wrong.

                                          Thanks.

                                          Frederick

                                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                          Nxt-1undefined 1 Reply Last reply Reply Quote 0
                                          • Nxt-1undefined
                                            Nxt-1 @fcwilt
                                            last edited by

                                            @fcwilt I am setting the 1% in the DWC machine control dashboard tab

                                            Duet3D and delta printer enthousiast. Buildlog
                                            Looking for Duet3D configuration support, check out Nxt-3D

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