Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Fan not working as expected

    Duet Hardware and wiring
    2
    5
    75
    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.
    • AdrAs
      AdrAs last edited by

      I've got a weird behavior.

      I can turn the fan on using the command:
      m106 p1 s0 I1
      and turn it off by using:
      m106 p1 s0 I0

      And neither way, The value for the S parameter seems to be completely ignored.

      Can somebody please explain this?

      1 Reply Last reply Reply Quote 0
      • Danal
        Danal last edited by

        I is to invert the signal. S is the pulse width.

        0 is "always off". Invert "always off" and you have "always on".

        Delta / Kossel printer fanatic

        1 Reply Last reply Reply Quote 0
        • AdrAs
          AdrAs last edited by

          Ah, so I just inverts the value of S? so instead of ranging from 0 to 255 it ranges from 255 to 0?

          But I'm still wondering, why doesn't a change to S make any difference for me?

          1 Reply Last reply Reply Quote 0
          • Danal
            Danal last edited by

            It inverts the electrical signal, not the number.

            If S0 I0 is zero volts on the pin, than S0 I1 will be (fan voltage) on the pin.

            s25 I0 is a square wave with (fan voltage) 25% of the time, and zero volts 75% of the time
            S25 I1 is a square wave with zero volts 25% of the time, and (fan voltage) 75% of the time .

            What does a fan do with various percentages of voltage? Depends on the fan. Do keep in mind that the Duet (and almost all controllers) have the fans red wire at fan voltage all the time, and they actually switch the fans black (ground) wire. So any thoughts we have about zero volts vs something else may very well be backwards.

            To summarize: S sets the "duty cycle". I inverts the electrical signal. Fans may react in ways you don't expect to various combinations of duty and inversion, and this can vary from fan to fan.

            Delta / Kossel printer fanatic

            1 Reply Last reply Reply Quote 0
            • AdrAs
              AdrAs last edited by

              Thanks for your explanations. It turned out to be other issues.

              First of all, the fan I used for testing doesn't support PWM, I can get it running by tuning the F parameter, but overall I can't get it running consistently.

              Second, it turned out that I accidentally reversed the polarity of my other fans yikes. Luckily no damage.

              And at last I can highly recommend adding the H-1 parameter just to ensure it wasn't configured as a fan for a tool.

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