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

    Allocate tool heater as fan

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    9
    1.3k
    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.
    • bilschundefined
      bilsch
      last edited by

      I did something stupid and kinda killed one of my pwm fans ( fan1 ). Short of desoldering / replacing that mosfet is there a way to drive an external fan from one of the expansion ports?

      I actually have another need for doing this to control a water pump which is 12v and my systems are all 24v. I want to get PWM so I can control the speeds else I could just go on/off.

      I was looking over the wiring diagram. I don't see anything on the expansion header that calls out as a fan3+ pwm so I'm not sure what to look for.

      Is this possible?

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

        Firmware 2.02RC3 allows you to use a heater output as a fan, e.g.:

        M307 H2 A-1 C-1 D-1 ; disable heater 2 to make it available
        M106 P3 A2 S0 ; fan 3 uses logical pin 2, which is heater 2

        then you can do e.g. M106 P3 S0.5

        HTH David

        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

        bilschundefined 3 Replies Last reply Reply Quote 1
        • bilschundefined
          bilsch @dc42
          last edited by

          @dc42 nice thanks!

          1 Reply Last reply Reply Quote 0
          • bilschundefined
            bilsch @dc42
            last edited by

            @dc42 Also does this work for the pwm on the other extruder heaters? For instance extruders 3..5 or whatever? Are there separate breakout pins for the fans - how does that work with the expansion board?

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

              Yes it works with all heaters.

              The fans on the DueX expansion board are controlled using the I2C interface to the DueX, so there are no corresponding pins on the expansion header.

              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

              1 Reply Last reply Reply Quote 0
              • bilschundefined
                bilsch @dc42
                last edited by

                @dc42 So if I want to map heater 3 to fan 3, I would use the following correct?

                M307 H3 A-1 C-1 D-1 ; disable heater 2 to make it available
                M106 P3 A8 S0 ; fan 3 uses logical pin 8, which is heater 3
                

                Is that correct? And I could also change P3 to P0 if I want to override the first fan?

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

                  Heater 3 is logical pin 3, not 8. https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins#Section_Logical_pin_numbers

                  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

                  bilschundefined 1 Reply Last reply Reply Quote 0
                  • bilschundefined
                    bilsch @dc42
                    last edited by

                    @dc42 Got it working thanks!

                    I had to set it to inverted - guessing its just the mosfet I'm using?

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

                      @bilsch said in Allocate tool heater as fan:

                      @dc42 Got it working thanks!

                      I had to set it to inverted - guessing its just the mosfet I'm using?

                      Heater outputs on the expansion bus are inverted.

                      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

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