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

    FAN ON OFF while extruder motor runs

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    12
    338
    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.
    • droftartsundefined
      droftarts administrators @adhanabal
      last edited by

      @adhanabal Is it to cool the extruder motor? Because stepper motors often get hotter when they are on idle hold, so you should cool it all the time it is powered (or reduce the current).

      Otherwise, here's a couple of options I can think of:

      • You could use the daemon.g (see https://duet3d.dozuki.com/Wiki/Macros#Section_daemon_g) which runs once a second, to check for a moving extruder and turn the fan on or off (unfortunately I'm not an expert in this area, so you'll have to wait for someone else to show you an example script!)
      • If it's to cool the extruder motor, you could connect a thermistor to the motor and set the fan to thermostatic control.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      adhanabalundefined 1 Reply Last reply Reply Quote 0
      • adhanabalundefined
        adhanabal @droftarts
        last edited by

        @droftarts Hi
        It is not to cool the extruder, i want to switch on a fan when ever My Extruder motor is running,
        There is a option With M571 command Set output on extrude.
        I tried this way on using this command...
        I disabled PWM Fan2.
        And Put the script in config.g as M571 P22 S1,
        But it didnt work

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

          @adhanabal said in FAN ON OFF while extruder motor runs:

          Is there any option that would switch on and off a PWM fan only while extruder motor is running? and the fan should turn off when extruder motor stops.

          Yes, the M571 command can be used for that. Which version of RRF are you using? If it's 2.x, how did you disable Fan 2?

          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

          adhanabalundefined 1 Reply Last reply Reply Quote 0
          • adhanabalundefined
            adhanabal @dc42
            last edited by

            @dc42 Hi
            M122
            === Diagnostics ===
            RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later + DueX5.

            And i disabled the the Fan using M106 P22 I-1

            Im using PWM fan 2 for this option

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

              @adhanabal said in FAN ON OFF while extruder motor runs:

              And i disabled the the Fan using M106 P22 I-1

              That should be: M106 P2 I-1

              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

              adhanabalundefined 1 Reply Last reply Reply Quote 0
              • adhanabalundefined
                adhanabal @dc42
                last edited by adhanabal

                @dc42 I did this config by studying this.
                It is saying the fan is disabled.
                eed45e46-3e76-4eef-af09-c5cf9c3cb192-image.png

                Now i will do as you told,
                After doing the disable, I must use M571 P22 S1 right??

                And in config.g in which line i should use this?

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

                  To be clear, the fan number is 2; but the GPIO pin number to access the Fan2 output when you disable the fan is 22. GPIO pin 2 is the Heater 2 output pin.

                  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

                  adhanabalundefined 1 Reply Last reply Reply Quote 0
                  • adhanabalundefined
                    adhanabal @dc42
                    last edited by

                    @dc42 But i can not use Heater 2 port, i have duex5 connected and im using 3 extruders, what should i do now?
                    im becoming noob understanding this pin configurations!

                    1 Reply Last reply Reply Quote 0
                    • droftartsundefined
                      droftarts administrators
                      last edited by

                      @adhanabal

                      M106 P2 I-1 ; this disables Fan 2, so it's available for M571
                      M571 P22 S1 ; this sets 100% PWM on pin 22 (Fan 2) on extrude
                      

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      adhanabalundefined 2 Replies Last reply Reply Quote 0
                      • adhanabalundefined
                        adhanabal @droftarts
                        last edited by

                        @droftarts thank you i will put this in the config.g and check, after checking i will update the status.

                        1 Reply Last reply Reply Quote 0
                        • adhanabalundefined
                          adhanabal @droftarts
                          last edited by

                          @droftarts Hi
                          Thank you it worked.. thanks alot

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