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

    Fan 0 either giving 0V or 5V

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    10
    839
    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.
    • ComedianTF2undefined
      ComedianTF2
      last edited by

      So i'm trying to setup the part cooling with fan0.

      i have setup fan0 as such:

      M563 P0 D0 H1 F0
      M106 P0 S0 I0 F11000 H-1

      When measuring with the multimeter, I get very weird results

      S0 0V
      S1 5V
      S0.1 5V
      S0.2 5V
      S100 5V
      S200 5V

      So it seems to be only fully on, or fully off. and I can't seem to make any sense of it.

      I've added the config.g file

      0_1553003302261_config.g

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

        What sort of fan is it? You are using a high PWM frequency, F11000. If the fan has a smoothing capacitor built into it, that and the high PM frequency might explain the problem.

        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
        • ComedianTF2undefined
          ComedianTF2
          last edited by

          I'm using a three phase brushless DC fan with a speed controller. The speed controller is usually controlled by a pot meter (5v output, speed control signal in, ground). The manufacturer says that it requires a 10khz or higher PWM signal to control the fan.

          It's connected as such:
          0_1553006592437_fan control.jpg

          It's connected to fan0 on the duet board. The red wire on the bottom is +5v output, which is adjusted by the potmeter via the gray cable. I was not having any luck with this setup, so I hooked up a multimeter to the duet, and was getting the readings mentioned above.

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

            You may need to add a pullup resistor between the Duet Fan- pin that feeds the ESC and +5V. Try 1K.

            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
            • ComedianTF2undefined
              ComedianTF2
              last edited by

              I think that I broke the MOSFET controlling the FAN0 output. whatever gcode commands I send I try it doesn't change really. Either 5V or 0V.

              FAN2 does work, but the output voltage only goes between 2.5V and 5V, not betwee 0-5V, is that correct?

              1.0 : 4.97V
              0.9 - 4.97V
              0.8 - 4.93V
              0.7 - 4.83V
              0.6 - 4.66V
              0.5 - 4.43V
              0.4 - 4.14V
              0.3 - 3.81V
              0.2 - 3.44V
              0.1 - 3.02V
              0.0 - 0V

              1 Reply Last reply Reply Quote 0
              • Stephen6309undefined
                Stephen6309
                last edited by

                Don't the fan mosfets control the negative side? The amount of voltage output is what the VFAN is set to, it just has a frequency of off/on The mosfets don't do variable voltage.

                1 Reply Last reply Reply Quote 0
                • ComedianTF2undefined
                  ComedianTF2
                  last edited by

                  Ah, I must have misunderstood what mosfets are for. In any case, something seems to be broken on the FAN0 side, and the FAN2 doesn't seem to be able to go below 3v (which is a real shame, I'd like to run the fan around 1-2v)

                  dragonnundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
                  • dragonnundefined
                    dragonn @ComedianTF2
                    last edited by

                    @comediantf2 You still don't understand what mosfets do. You fan output never goes anything below VFAN (in you case 5V), they just switch very fast on and off between 0V and 5V and changing the "output" is just changing how much time is the on time compared to off time.
                    So they is no variable voltage on any fan output, that values with you get com only from that that you multimetter does some averaging when taking measurements. And probably this is not perfectly linear that is why you don't get any thing below 3V.

                    1 Reply Last reply Reply Quote 1
                    • deckingmanundefined
                      deckingman @ComedianTF2
                      last edited by

                      @comediantf2 As others have been trying to point out, the fan speed is adjusted using PWM, not by varying the voltage. PWM stands for Pulse Width Modulation - look it up but here is a Wikipedia link https://en.wikipedia.org/wiki/Pulse-width_modulation

                      Ian
                      https://somei3deas.wordpress.com/
                      https://www.youtube.com/@deckingman

                      1 Reply Last reply Reply Quote 1
                      • ComedianTF2undefined
                        ComedianTF2
                        last edited by

                        Thanks everyone, that makes a lot of sense. Will do more reading!

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