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

    Blown fan MOSFET, using different pin on RRF2.x

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    15
    593
    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.
    • supermarioprofundefined
      supermarioprof @Phaedrux
      last edited by supermarioprof

      @Phaedrux I'm gonna changing them, with the aid of a local laboratory.

      Concerning expansion port, I know I can't use for a direct load,
      so I should use a simple Fotek SSR.
      But...which command and which pin?

      It should be M42, but I'm having difficulties in order to understand the online guide and docs, which pin is available of PWM and pin numbering,
      so any help will be appreciated, at least an example (ok, I don't want to get out of contest, here we are for mosfets)

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

        @supermarioprof Assuming you're using RRF 3.x, most ports are available. However, only some offer PWM. See the list here https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/Duet_2_WiFi_Ethernet_Hardware_Overview#inputoutput

        So for PWM, it's bedheat, e[0-1]heat, exp.heater[3-7], or fan[0-2]. For example, you could use HEATER3, which is pin 8 on the Expansion header, pin name 'exp.heater3'. Define it with M950, then set PWM with M42, eg:

        M950 P0 C"exp.heater3" Q100 ; create output/servo port 0 attached to heater 3 pin on expansion connector, 100Hz PWM frequency
        M42 P0 S0.5                                 ; set 50% PWM on GPIO port 0
        

        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

        supermarioprofundefined 1 Reply Last reply Reply Quote 0
        • supermarioprofundefined
          supermarioprof @droftarts
          last edited by

          @droftarts thanks for your help!
          I understand your code, the problem is I'm under RRF 2.05.
          Yes I know I should upgrade, it will be the next step.

          But: what to do with pins, PWM and expansion port under RRF 2.x?
          I know about M42 but, obviously, I get an error, like

          M42 P3 I1 S240 --> Error: M42: Logical pin X is not available for writing

          this sounds ok, since I didn't define that pin with M950 like you did,
          but M950 is for RRF 3.x only.
          Which command for RRF 2.x?

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

            @supermarioprof see the notes under the pin table. In RRF 2, pins are pre assigned, so you need to unassign them first:

            RRF 2.x - Disable a heater using M307 H# A-1 C-1 D-1 to make the pin available, where # is the heater number, and make sure that no tool is configured to use that heater.
            RRF 2.x - Disable a fan using M106 P# I-1 to make the pin available, where # is the fan number.

            https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/Duet_2_WiFi_Ethernet_Hardware_Overview#inputoutput

            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

            supermarioprofundefined 1 Reply Last reply Reply Quote 0
            • supermarioprofundefined
              supermarioprof @droftarts
              last edited by supermarioprof

              @droftarts Oh my god I totally missed that line in the guide!
              so, if I correctly understood:

              say I wanna use pin 8 <--> HEATER3

              this should be these gcodes:
              M307 H3 A-1 C-1 D-1
              M42 P3 I1 S240

              I can't try right now, my damaged Duet3D is still under repair, but I will try as soon as possible.

              Last question:
              I will need to change my gcodes and my slicer settings, will I?
              because FAN0, FAN1 e FAN2 are connected to specific pins (20-22), but my new fan1 should be pin 8, so what?

              p.s.: I would like to change the thread title so that it will be more inherent with current content, but....is it possible? I can't find any button or settings

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

                Is there a reason to stay on RRF2?

                Z-Bot CoreXY Build | Thingiverse Profile

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

                  @supermarioprof said in FAN mosfet probably blown:

                  I will need to change my gcodes and my slicer settings, will I?
                  because FAN0, FAN1 e FAN2 are connected to specific pins (20-22), but my new fan1 should be pin 8, so what?

                  Are you going to have an external MOSFEt? Pin 8, and all expansion pins, are 3.3V signalling, ie not enough to run a fan directly. You can control it with M106, by using the A parameter in RRF 2.x, see https://docs.duet3d.com/User_manual/Reference/Gcodes#m106-fan-on and the notes:

                  The A parameter can be used to assign a fan to a different output pin, for example a spare heater output (use a M307 command to disable the heater and free up the pin first).

                  p.s.: I would like to change the thread title so that it will be more inherent with current content, but....is it possible? I can't find any button or settings

                  Edit the first post, you can change the thread title there.

                  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

                  supermarioprofundefined 2 Replies Last reply Reply Quote 0
                  • supermarioprofundefined
                    supermarioprof @Phaedrux
                    last edited by

                    @Phaedrux Summer laziness, now I need my 3d printer to be working reliably for a while. during Christmas holiday I will upgrade to RRF3

                    1 Reply Last reply Reply Quote 0
                    • supermarioprofundefined
                      supermarioprof @droftarts
                      last edited by

                      @droftarts sure I can use an external MOSFET or a Fotek SSR.
                      thank you very much, M106... A is exactly what I was looking for!

                      1 Reply Last reply Reply Quote 0
                      • supermarioprofundefined
                        supermarioprof @droftarts
                        last edited by

                        @droftarts said in FAN mosfet probably blown:

                        Edit the first post, you can change the thread title there.
                        Ian

                        impossible, too late... 🥺

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

                          @supermarioprof Okay, I can, what do you want it to say?

                          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

                          supermarioprofundefined 1 Reply Last reply Reply Quote 0
                          • supermarioprofundefined
                            supermarioprof @droftarts
                            last edited by supermarioprof

                            @droftarts "Fan MOSFET blown - using different pin on RRF2.x" could be good, or something like that, it's up to you, thanks!

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

                              @supermarioprof Done, going to mark as solved too.

                              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

                              1 Reply Last reply Reply Quote 0
                              • droftartsundefined droftarts marked this topic as a question
                              • droftartsundefined droftarts has marked this topic as solved
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA