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

Question about controlling a PWM fan.

Scheduled Pinned Locked Moved Solved
General Discussion
2
7
136
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.
  • undefined
    gw3d3
    last edited by 25 Jun 2024, 13:44

    I use this fan to move air over my chamber heating element.

    The RPM range is listed as 750-3000RPM and when I start the printer it is on, at full speed. When I look at DWC the fan says that it is at "0" on the slider. When I move the slider to anything other than zero the fan turns off and won't turn back on until I put the slider back to "0". I will post my fans from config.g below.

    Is this a wiring issue or did I miss something in my firmware configuration?

    Thanks!

    ; Fans
    M950 F0 C"out7" ; create fan #0
    M106 P0 C"Part Cooling Fan" S0 L0 X1 B0.1 ; configure fan #0
    M950 F1 C"out8" ; create fan #1
    M106 P1 C"Hot End Fan" S0 B0.1 H1 T35 ; configure fan #1
    M950 F2 C"out4+out4.tach" ; create fan #2
    M106 P2 C"Chamber Fan" S0 L0.2 X1 B1 ; configure fan #2

    undefined 1 Reply Last reply 25 Jun 2024, 14:10 Reply Quote 0
    • undefined
      jay_s_uk @gw3d3
      last edited by 25 Jun 2024, 14:10

      @gw3d3 if its 4 wire PWM controlled fan , you have to invert the PWM pin https://docs.duet3d.com/en/User_manual/Connecting_hardware/Fans_connecting#firmware-settings

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      undefined 1 Reply Last reply 25 Jun 2024, 14:24 Reply Quote 0
      • undefined
        gw3d3 @jay_s_uk
        last edited by 25 Jun 2024, 14:24

        @jay_s_uk Oh ok, it is a 4-wire fan. Is the the PWM pin inverted by the "!" sign?

        undefined 1 Reply Last reply 25 Jun 2024, 14:25 Reply Quote 0
        • undefined
          jay_s_uk @gw3d3
          last edited by 25 Jun 2024, 14:25

          @gw3d3 yes. see the example at that link i posted
          e.g.

          M950 F2 C"!out4+out4.tach" ; create fan #2
          

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          undefined 1 Reply Last reply 25 Jun 2024, 14:35 Reply Quote 1
          • undefined
            gw3d3 @jay_s_uk
            last edited by 25 Jun 2024, 14:35

            @jay_s_uk So, that did invert the behavior but now anything under 100 is just off.

            undefined 1 Reply Last reply 25 Jun 2024, 14:36 Reply Quote 0
            • undefined
              jay_s_uk @gw3d3
              last edited by 25 Jun 2024, 14:36

              @gw3d3 You may need to adjust the Q value on M950

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              undefined 1 Reply Last reply 25 Jun 2024, 18:07 Reply Quote 0
              • undefined
                gw3d3 @jay_s_uk
                last edited by 25 Jun 2024, 18:07

                @jay_s_uk Thank you, I set the Q value to 25kHz as per Noctua's specs and it is working well now!

                1 Reply Last reply Reply Quote 1
                • undefined dc42 marked this topic as a question 25 Jun 2024, 18:51
                • undefined dc42 has marked this topic as solved 25 Jun 2024, 18:51
                4 out of 7
                • First post
                  4/7
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA