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-1I want to create a new fan on heater 4 pin:
M106 P2 A4I get:
Error: M106: Fan number 2 is invalid, must be between 0 and 1Is 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.
-
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.6Settings 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-1Duet 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. -
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.
-
@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.6Config.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-1M106 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.
-
Thanks. Please try the new 1.24RC2 release, which should behave exactly the same 1.24RC1+1.
-
@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. -
@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.