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

    Duet 085 and Fans

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    11
    1.1k
    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.
    • AndreSundefined
      AndreS
      last edited by

      Firmware Name: RepRapFirmware for Duet
      Firmware Electronics: Duet 0.85
      Firmware Version: 1.24beta1 (2019-02-16b1)
      Web Interface Version: 1.22.6

      "Version 2.02 (Duet 2 series) and 1.23 (Duet 06/085)
      Upgrade notes:
      M106 supports a new A parameter to map the fan to a different fan output or a heater output, or to re-enable a disabled fan"

      I disable Heater 4:
      M307 H4 A-1 C-1 D-1

      I want to create a new fan on heater 4 pin:
      M106 P2 A4

      I get:
      Error: M106: Fan number 2 is invalid, must be between 0 and 1

      Is it possible to expand the valid fan numbers on Duet085?

      Stephen6309undefined 1 Reply Last reply Reply Quote 0
      • Stephen6309undefined
        Stephen6309 @AndreS
        last edited by Stephen6309

        @andres The Duet 085 only has two controllable fan headers: 0 and 1.

        1 Reply Last reply Reply Quote 0
        • AndreSundefined
          AndreS
          last edited by

          You can map fans to unused heater pins with the A parameter.
          With M106 P0 A4 you control the pin for heater 4 (on expansion header) instead of the pin header of fan0. So my question stays valid.
          On my printer with DuetWifi I have 4 fans in config.g:
          Fan0: part fan
          Fan1: bed fan (for cooling the build plate after printing)
          Fan2: LEDs
          Fan3: hotend fan on heater5 pin, thermostatically (with an additional MOSFET)
          On DuetWifi I can config more than 3 fans.

          So it would be nice to do the same on Duet085.

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

            I'll add 2 extra fans on the next Duet085 build, but I you will need to test that change.

            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
            • AndreSundefined
              AndreS
              last edited by

              Thanks, David.
              I will test it.

              1 Reply Last reply Reply Quote 0
              • AndreSundefined
                AndreS
                last edited by AndreS

                @dc42
                I have installed:
                Firmware Name: RepRapFirmware for Duet
                Firmware Electronics: Duet 0.85
                Firmware Version: 1.24beta2+1 (2019-03-25b5)
                Web Interface Version: 1.22.6

                Settings in config.g:
                M307 H0 A463.6 C845.6 D3.3 S1.00 B0
                M307 H1 A432.5 C186.7 D8.1 S1.00 B0
                M307 H5 A-1 C-1 D-1 ; Disable Heater
                M307 H4 A-1 C-1 D-1
                M307 H3 A-1 C-1 D-1
                M307 H2 A-1 C-1 D-1
                ; heater6 shares pin with fan1, so do not use
                M563 P0 D0 H1 ; Define tool 0 with 'extruder drive 0' and 'heater 1', default fan 0
                M106 P0 S0.1 I0 F100 H-1
                M106 P1 S0.3 I0 F100 H-1

                Duet 0.85 is sitting on the test bench with termistor on bed input and a resistor on E0 input so the reading is 83.7 degC.

                M106 P2 and P3 are possible, but the mapping with A parameter is all over the place. So i tried to find out whats going on with P1.

                Measures are at fan header F0 and F1, heater header on 50pin connector H3 (pin 18), H4 (pin 21), H5 (pin 22) and E1 heater with oscilloscope.

                After reboot:

                • F0 PWM ok and you can adjust it,
                • F1 PWM ok and you can adjust it, BUT same signal(inverted) on H3, this is wrong
                • H4, H5 low

                M106 P1 I-1 (disable F1):

                • F1 low
                • H3 low

                M106 P1 A2 S0.5:

                • E1 heater PWM ok
                • H3, H4, H5 low

                M106 P1 I-1:

                • E1 heater off, ok

                M106 P1 A3 S0.5:

                • PWM on E1 heater (wrong)
                • H3, H4, H5 low

                M106 P1 I-1:

                • E1 heater off

                M106 P1 A4 S0.5:

                • PWM on F1 and H3(inverted to F1) (wrong)
                • H4, H5 low

                M106 P1 I-1:

                • F1 low (LED lit), H3 high
                • H4, H5 low

                M106 P1 A5 S0.5:

                • F0 !! PWM is set to 0.5 (very wrong)
                • you can set F0 with P0 AND P1
                • H3 high, H4, H5 low

                M106 P1 I-1:

                • F0 low (LED lit), no pwm on F0
                • M106 P0 S0.2 brings PWM back on

                if I now use P2 I get the same behavior.
                I hope you can solve it.

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

                  I plan to rewrite the fan mapping mechanism in the next 2.03beta release, so that may solve it. Please note, there has been no official support for RRF on legacy Duets (06 and 085) for some time.

                  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
                  • AndreSundefined
                    AndreS
                    last edited by

                    @dc42
                    Installed:
                    Firmware Name: RepRapFirmware for Duet
                    Firmware Electronics: Duet 0.85
                    Firmware Version: 1.24RC1+1 (2019-05-11b1)
                    Web Interface Version: 1.22.6

                    Config.g (bench setup)
                    ; Heaters
                    M307 H0 A463.6 C845.6 D3.3 S1.00 B0
                    M307 H1 A432.5 C186.7 D8.1 S1.00 B0
                    M305 P0 T100000 B4480 C0 R4700 H34 L0; Set thermistor + ADC parameters for heater 0 (4138)
                    M305 P1 X501
                    M307 H5 A-1 C-1 D-1 ; Disable Heater, available for M42 P4(4,3) S0.xx, M106 A4 (Pin22)
                    M307 H4 A-1 C-1 D-1 ; available for M106 A3 (Pin21)
                    M307 H3 A-1 C-1 D-1

                    M106 P0 S0 I0 F15000 H-1 ; Tool fan (Fan0)
                    M106 P1 S0 I0 F500 H-1 ; Bed fan (Fan1)
                    M106 P2 A5 I1 S0.15 H-1 ; LEDs (Pin23)
                    M106 P3 S1 I1 F500 H1 T45 A4 ; Thermostatic control is turned on (Pin22)

                    all working fine. Thank you.

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

                      Thanks. Please try the new 1.24RC2 release, which should behave exactly the same 1.24RC1+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

                      AndreSundefined 1 Reply Last reply Reply Quote 0
                      • AndreSundefined
                        AndreS @dc42
                        last edited by

                        @dc42 said in Duet 085 and Fans:

                        Thanks. Please try the new 1.24RC2 release, which should behave exactly the same 1.24RC1+1.

                        Tested and its the same.

                        I also used this line:
                        M106 P3 S1 I1 F500 H1 T45:100 L0.6 A4
                        and PWM is working as expected.
                        Mapping with A3 (Pin 21) and A2 (E1 heater) works also.
                        A big thank you.

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

                          @andres said in Duet 085 and Fans:

                          @dc42 said in Duet 085 and Fans:

                          Thanks. Please try the new 1.24RC2 release, which should behave exactly the same 1.24RC1+1.

                          Tested and its the same.

                          I also used this line:
                          M106 P3 S1 I1 F500 H1 T45:100 L0.6 A4
                          and PWM is working as expected.
                          Mapping with A3 (Pin 21) and A2 (E1 heater) works also.
                          A big thank you.

                          Thanks for confirming this.

                          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