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

    How to let MCU temp control a fan?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    4
    262
    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.
    • Velviaundefined
      Velvia
      last edited by

      The MCU fan settings:

      M950 F1 C"out6"                                    ; create fan 1 on pin out6 and set its frequency
      M106 P1 S255 H100 T30                      ; set fan 1 value. Virtual thermostatic control is turned on, turn on and off
      M912 P1 S-10.8                                      ; MCU temperature calibration
      

      I'm using the above gcode for the fan, but it is always on. I want to to turn on at 30C and shut off below it. I read in the documentation, and the example showed H100 was the virtual temp sensor for the MCU? It's a Duet 3 MB6HC.

      Homegrown, grass fed and organically built 350mm delta

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Velvia
        last edited by

        @velvia see https://docs.duet3d.com/en/User_manual/Connecting_hardware/Temperature_configuring_mcu_temp

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        Velviaundefined 1 Reply Last reply Reply Quote 1
        • Velviaundefined
          Velvia @droftarts
          last edited by

          @droftarts

          Thank you! It worked. Now it's:

          M308 S10 Y"mcu-temp" A"MCU"                        ; MCU temp on temp sensor 10
          M950 F1 C"out6"                                    ; create fan 1 on pin out6 and set its frequency
          M106 P1 S255 H10 T30                               ; set fan 1 value. Virtual thermostatic control is turned on, turn on and off
          M912 P1 S-10.8                                     ; MCU temperature calibration
          

          Homegrown, grass fed and organically built 350mm delta

          apakundefined 1 Reply Last reply Reply Quote 1
          • apakundefined
            apak @Velvia
            last edited by

            @velvia
            If you want the fan to start at 30% at 40ºC, and increase till 100% when it reaches 65ºC could use something like this...

            ; Fan2 = MotherBoard Cooling
            ;----MCU & DRIVERS sensors------
            M308 S3 Y"mcu-temp"	A"MCU"								; create sensor for MCU temp
            M308 S4 Y"drivers"	A"Drivers"							; create sensor for drivers temp 
            M912 P0 S-0.8                                           ; Calibrate MCU temp
            M950 F2 C"fan2" Q500									; create fan 2 on pin fan2 
            M106 P2 H3:4 L.3 B.5 X1 T40:65 					; Set fan 2 PWR fan. Turns on when MCU temperature, hits 40C and full when the MCU temperature reaches 65C or any TMC2660 alarms
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA