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

    Variable Enclosure Fans based on Temperature (no heater)

    Scheduled Pinned Locked Moved
    CNC
    4
    8
    643
    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.
    • EducatingSavvasundefined
      EducatingSavvas
      last edited by

      Hiya - I'm trying to wire up a couple fans (intake and exhaust) into a CNC enclosure so they only turn on at particular internal temperature. They are a bit noisy so this is why I'm doing it.

      I defined the thermistor with:

      M308 S0 P"e0temp" Y"thermistor" A"Enlosure_Temp"
      M950 F0 C"fan1+fan2"
      M106 P0 T50 H0

      Is this something possible to do without creating a heater. Plus is it possible to refer to the onboard CPU temperature?

      Many thanks, Savvas

      Argoundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • Argoundefined
        Argo @EducatingSavvas
        last edited by

        I would use daemon.g with that and conditional gcode. Already read through the Duet documentation about the topic?

        EducatingSavvasundefined 1 Reply Last reply Reply Quote 1
        • jay_s_ukundefined
          jay_s_uk
          last edited by

          @educatingsavvas you can only set one pin per M950 command

          M308 S0 P"e0temp" Y"thermistor" A"Enlosure_Temp"
          M950 F0 C"fan1"
          M950 F1 C"fan2"
          M106 P0 T50 H0
          M106 P1 T50 H0
          

          that should do, although don't forget to add the thermistor information to the M308 (at a minimum the T and B values)

          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

          EducatingSavvasundefined 1 Reply Last reply Reply Quote 1
          • EducatingSavvasundefined
            EducatingSavvas @Argo
            last edited by

            @argo it's been a little while since I played around with the conditional gcode but will give it a go when I next have time.

            1 Reply Last reply Reply Quote 0
            • EducatingSavvasundefined
              EducatingSavvas @jay_s_uk
              last edited by

              @jay_s_uk I pulled out the thermistor from an old 3D printer so might not know the values for those. But will tinker on the weekend.

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @EducatingSavvas
                last edited by

                @educatingsavvas said in Variable Enclosure Fans based on Temperature (no heater):

                Plus is it possible to refer to the onboard CPU temperature?

                Yes it is.

                M308 S0 P"mcu-temp" Y"mcu-temp"

                Z-Bot CoreXY Build | Thingiverse Profile

                EducatingSavvasundefined 1 Reply Last reply Reply Quote 1
                • EducatingSavvasundefined
                  EducatingSavvas @Phaedrux
                  last edited by

                  @phaedrux

                  I can confirm this works. My fans are still noisy when they do turn on, but they are on for small amounts of time.

                  M308 S0 P"mcu-temp" Y"mcu-temp"
                  M950 F0 C"Fan1"		;Intake
                  M106 P0 T36 H0	;
                  M950 F1 C"Fan2"		;Exhaust
                  M106 P1 T36 H0	;
                  

                  Many thanks, Savvas

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    You might be able to experiment with the min/max speed settings as well as the PWM frequency to see if you can improve the sound.

                    https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On
                    https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_spindle_or_GPIO_servo_pin

                    Z-Bot CoreXY Build | Thingiverse Profile

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