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

    how to monitor the fan speed tacho / alarm when low or 0

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    6
    259
    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.
    • Simon 4undefined
      Simon 4
      last edited by

      In my printer you can´t see the extruder fan not that good and sometimes filament is blocking it an I do not see it always.
      The fan has a tacho output, which works good and is displayed in DWC.
      But how can I react of a too low rpm ?

      achrnundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
      • achrnundefined
        achrn @Simon 4
        last edited by

        @Simon-4 do you just want a warning alert to pop up when the fan is too slow? Or do you want the printer to actually take some action when the fan is too slow (for example, it could pause printing)? What reaction do you want?

        1 Reply Last reply Reply Quote 0
        • T3P3Tonyundefined
          T3P3Tony administrators @Simon 4
          last edited by

          @Simon-4 see here:
          https://forum.duet3d.com/topic/18617/gpio-fan-tacho-and-print-cancelation/5?_=1715860524928

          www.duet3d.com

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @T3P3Tony
            last edited by

            @T3P3Tony I have added a feature request to use the vent system for this at some point in the future. Its low priority because it is possible to use daemon.g

            www.duet3d.com

            1 Reply Last reply Reply Quote 0
            • Simon 4undefined
              Simon 4
              last edited by

              thanks for input, I will test this linked advises.

              @achrn pausing the print would be good

              achrnundefined 1 Reply Last reply Reply Quote 0
              • achrnundefined
                achrn @Simon 4
                last edited by achrn

                @Simon-4 If the fan you want to monitor is fan 1, and your tool is using heater 1 the basics would be something like this:

                ; pause if fan is slow
                if state.status = "processing" & heat.heaters[1].current > 50 & fans[1].rpm <= 1000
                    M118 S"fan problem"
                    M25
                
                

                Loops are indicated by the indentation, so make sure you copy the indentation - you need the equal spaces at the start of the lines after the 'if'.

                This checks to see if the printer is currently printing, and heater 1 is currently at more than 50 and fan 1 is at less than 1000 rpm, if all that is true, it displays a message and does M25 to pause the print. You will need to remedy the problem before resuming the print manually.

                You should create a file in sys folder, it doesn't matter what it is called, put that text in it and save it. Then rename the file to 'daemon.g'. The file will run every ten seconds, and check the fan speed.

                If you want to edit the file rename it to something else (I normally just make it daemon.g.x), edit the file and then rename it back. If you just edit it when the machine is trying to run it every 10 seconds things can go wrong.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA