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

    PMW fan inversed output

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    207
    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.
    • x_pedro_xundefined
      x_pedro_x
      last edited by

      I'm having an issue with the pwm fan setup in a duet 3 - 6hc, when using a 2 wire fan it works as expected but recently I decided to upgrade to pwm fans from noctua. When connecting them the fan will be running at 100% when the pwm in the interface is set to 0% and it will be off when the fan is set to 100% in the web interface.
      The intermediate speed will also be decreasing as we increase the fan values in the web frontend.

      I'm using the following sw version:

      ii  duetcontrolserver                 3.2.2                               armhf        Control server application for Duet 3 series
      ii  duetruntime                       3.2.2                               armhf        .NET Core runtime libraries for the Duet software framework
      ii  duetsd                            1.1.0                               all          Virtual SD card directory for the Duet software framework
      ii  duetsoftwareframework             3.2.2                               armhf        Meta package for the full Duet software framework
      ii  duettools                         3.2.2                               armhf        Optional tools (code examples)
      ii  duetwebcontrol                    3.2.2                               all          Official web interface for Duet electronics
      ii  duetwebserver                     3.2.2                               armhf        Optional web server for Duet 3 series
      

      And the following configuration for the fan:

      M950 F1 C"out4" Q500                               ; create fan 1 on pin out4
      M106 P1 C"Layer fan" S0 H-1 -L255                  ; set fan 1 value. Thermostatic control is turned off
      

      Does someone have an ideia of what it could be, I suspect the L parameter on M106 but would like to confirm it.

      Cheers,
      Pedro

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

        @x_pedro_x said in PMW fan inversed output:

        M950 F1 C"out4" Q500 ; create fan 1 on pin out4

        Use this instead for 4-wire fans:

        M950 F1 C"!out4+out4.tach" Q25000

        The ! inverts the output, the +out4.tach enables the tacho input so that you can read the fan RPM, and Q25000 sets the PWM frequency to 25kHz which is the recommended value for 4-wire fans.

        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

        x_pedro_xundefined 1 Reply Last reply Reply Quote 1
        • x_pedro_xundefined
          x_pedro_x @dc42
          last edited by

          @dc42 Awsome, it worked like a charm! Thanks for the quick answer on a weekend.

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