Duet 085 and Fans

  • 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?

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

  • 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.

  • administrators

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

  • Thanks, David.
    I will test it.

  • @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.

  • administrators

    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.


Looks like your connection to Duet3D was lost, please wait while we try to reconnect.