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

    I was having a hard time getting my fans wired and working.

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    4
    22
    707
    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.
    • ROBOZILLAundefined
      ROBOZILLA
      last edited by

      I have been using a computer for over 20 years and never was able to get this to work. That's why I sent pic. Think it must have been out of necessity. Thanks for being patient.

      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      I dont know why I need looks like marlin just added thinking it might work with my slicer. It might be for pi users I set use millameters too.

      M555 P2 ; SET OUTPUT TO LOOK LIKE MARLIN

      ; Drives
      M569 P0.0 S0 ; physical drive 0.0 goes backwards
      M569 P0.1 S0 ; physical drive 0.1 goes backwards
      M569 P0.2 S0 ; physical drive 0.2 goes backwards
      M569 P0.3 S1 ; physical drive 0.3 goes forwards
      M584 X0.0 Y0.1 Z0.2 E0.3 ; set drive mapping
      M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
      M92 X160.00 Y160.00 Z2560.00 E1455.13 ; set steps per mm
      M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X12000.00 Y12000.00 Z300.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)
      M906 X1000 Y1000 Z2000 E1200 I50 ; set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 S1 ; set axis minima
      M208 X224 Y252 Z180 S0 ; set axis maxima

      G21 ;WORK IN MM
      G90 ; SEND ABOLUTE COORDINATES
      M88 ;BUT RELATIVE EXTRUDER MOVES

      ; Endstops
      M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io1.in
      M574 Y1 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin io2.in
      M574 Z1 S2 ; configure Z-probe endstop for low end on Z

      ; Z-Probe
      M558 P5 C"^io3.in" H1 F120 T12000 ; set Z probe type to switch and the dive height + speeds
      G31 P500 X0 Y0 Z-1 ; set Z probe trigger value, offset and trigger height
      M557 X17.5:224 Y20:252 S63 ; define mesh grid

      ; Heaters
      M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0
      M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
      M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H0 ; map heated bed to heater 0
      M143 H0 S80 ; set temperature limit for heater 0 to 80C
      M308 S1 P"temp1" Y"thermistor" T100000 B4388 ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
      M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit

      ; Fans
      M950 F0 C"out4" Q500 ; create fan 0 on pin out4 and set its frequency
      M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out5" Q500 ; create fan 1 on pin out5 and set its frequency
      M106 P1 S0 H1 T45 ; set fan 1 value. Thermostatic control is turned on

      ; Tools
      M563 P0 S"Extruder" D0 H1 F0:1 ; define tool 0
      G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
      G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

      ; Custom settings are not defined

      ; Miscellaneous
      M575 P1 S1 B57600 ; enable support for PanelDue
      M501 ; load saved parameters from non-volatile memory
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
      T0 ; select first tool

      Phaedruxundefined Vetiundefined 2 Replies Last reply Reply Quote 0
      • ROBOZILLAundefined
        ROBOZILLA @Phaedrux
        last edited by

        @Phaedrux
        I didn't realise how hard to read it was till I looked closer.

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

          @ROBOZILLA said in I was having a hard time getting my fans wired and working.:

          M88 ;BUT RELATIVE EXTRUDER MOVES

          M88 isn't a valid gcode. I think you want M83 for relative extrusion.

          I dont know why I need looks like marlin just added thinking it might work with my slicer. It might be for pi users I set use millameters too.

          M555 P2 ; SET OUTPUT TO LOOK LIKE MARLIN

          marlin mode just sends an OK after a command is received for compatibility with things like octoprint. that's the default mode. Nothing to worry about.

          ; Fans
          M950 F0 C"out4" Q500 ; create fan 0 on pin out4 and set its frequency
          M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
          M950 F1 C"out5" Q500 ; create fan 1 on pin out5 and set its frequency
          M106 P1 S0 H1 T45 ; set fan 1 value. Thermostatic control is turned on

          ; Tools
          M563 P0 S"Extruder" D0 H1 F0:1 ; define tool 0
          G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
          G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

          So you have fan 0 defined as a part cooling fan connected to Out4. So far so good.

          Then you have Fan 1 defined as a thermostatically controlled fan for the hotend connected to out5. that's good.

          Then your tool is set to use both fan 0 and 1 for the part fan, which is not so good.

          Change M563 P0 S"Extruder" D0 H1 F0:1 to remove the :1 at the very end.

          Now in your photo of the wiring it looks like you are using out4 and out5. that's good, but it looks like you are only connecting the ground pin and the tach pin. Are these 4 wire fans?

          Compare to the wiring diagram here: https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Wiring_Diagram

          If these are only 2 wire fans, use out7 and out8 instead and change the M950 pin name to match.

          https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Hardware_Overview#Section_Heating_Fans

          Z-Bot CoreXY Build | Thingiverse Profile

          ROBOZILLAundefined 2 Replies Last reply Reply Quote 0
          • ROBOZILLAundefined
            ROBOZILLA @Phaedrux
            last edited by

            @Phaedrux
            Ok yes I hooked up wrong type of fans to out 4/5. I had mentioned that I was using 3 wire fans. I just didin't hook up yellow wire.

            I looked in my PC parts and found a 4 wire fan. Just to check. Hooked up on out 5 and it cam on high then went to med and stayed on. It also did this on 4/6 same results.

            Ok wired fans to out 7/8 changed g code as directed. Extruder fan nothing. Used panel due to get extruder to temp nothing. I did get blips from my own wired led like when I had fan on out 5 when temp hit 45c but no go. Went back to the due and tryed to toggal fan that showed up nothing. tryed to toggal in slicer nothing. Part or extruder. The 4 wire fan on out 4 still on.

            1 Reply Last reply Reply Quote 0
            • ROBOZILLAundefined
              ROBOZILLA @Phaedrux
              last edited by

              @Phaedrux
              Before you say inline led or wiring. Pluged a compleatly differant fan in out 8 nothing. heated Extruder to 50c at 45 you can see the fan blip but no go.

              1 Reply Last reply Reply Quote 0
              • Vetiundefined
                Veti @ROBOZILLA
                last edited by

                @ROBOZILLA said in I was having a hard time getting my fans wired and working.:

                M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0
                M308 S1 P"temp1" Y"thermistor" T100000 B4388 ; configure sensor 1 as thermistor on pin temp1

                on a side note. your thermistor config is wrong. 4138 is the default and most likely wrong.
                What thermistor is 4388 ?

                1 Reply Last reply Reply Quote 0
                • ROBOZILLAundefined
                  ROBOZILLA
                  last edited by

                  4388 saw that for E3d V6 some where. I made some prints temp looks and acts good have a ir thermomiter seams to read a little low. I do have a sock on and it wasn't made for high temp. Reads bed ok.

                  Vetiundefined 1 Reply Last reply Reply Quote 0
                  • Vetiundefined
                    Veti @ROBOZILLA
                    last edited by

                    @ROBOZILLA

                    E3D hotends use Semitec 104-gt2 if you set it in the configurator you get B4725 C7.060000e-8

                    ROBOZILLAundefined 2 Replies Last reply Reply Quote 0
                    • ROBOZILLAundefined
                      ROBOZILLA @Veti
                      last edited by

                      @Veti
                      I might have seen that as well. I wase't going to change it at all. I am wrighting down this note thou. I will see what happens.

                      Thanks.

                      1 Reply Last reply Reply Quote 0
                      • ROBOZILLAundefined
                        ROBOZILLA @Veti
                        last edited by

                        @Veti
                        4388 was for old firmwair. I made the change.

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

                          @Phaedrux said in I was having a hard time getting my fans wired and working.:

                          M106 P1 S0 H1 T45 ; set fan 1 value. Thermostatic control is turned on

                          Change the S0 to S1. That might do it for the thermostatic fan.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          ROBOZILLAundefined 1 Reply Last reply Reply Quote 0
                          • ROBOZILLAundefined
                            ROBOZILLA @Phaedrux
                            last edited by

                            @Phaedrux Both fans work. Thanks for the help! So the out 4-6 more for case fans?

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

                              @ROBOZILLA said in I was having a hard time getting my fans wired and working.:

                              So the out 4-6 more for case fans?

                              They're for any low voltage output, not just fans. If you don't need PWM and tach pins, they would be more appropriate on those ports.

                              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