Duet 2 Fans linked to driver temperature?



  • Hi there I'm trying to make fan0 and fan1 run from the drivers temp sensor on the duet2 wifi board (RRF3.1). A couple of failed attempts lead me to ask for advice please. Will this work in config.g?
    ; Fans
    M308 S0 P"drv_temp" Y"drivers" ; define drivers temperature sensor

    M950 F0 C"!fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0.5 H0 T45 ; set fan 0 value. Thermostatic control is turned on

    M950 F1 C"!fan1" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P1 S0.5 H0 T45 ; set fan 1 value. Thermostatic control is turned on

    Thanks Neil


  • administrators

    Bear in mind that the drivers don't report actual temperature, only overheat warnings and errors. So the reading from the drivers sensor will be 0C under normal conditions, 100C if any driver reports an overheat warning, or 130C if any driver reports overheat shutdown.

    When the drivers generate a lot of heat, some of this is passed to the MCU, so using the MCU temperature to control the fan too is useful. On one of my printers I use this:

    M308 S10 y"mcutemp" a"Mcu"
    M308 S11 y"drivers" a"Drivers"
    M950 F2 C"fan2"
    M106 P2 H10:11 T45:55 L0.3

    The fan will start to come on of the MCU temperature exceeds 45C. it will be fully on of the MCU temperature exceeds 45C or if any driver reports an overheat warning.


Log in to reply