Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Check hotend FAN RPM

    Gcode meta commands
    4
    13
    378
    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.
    • PetrKroupa
      PetrKroupa last edited by

      Hello,
      I have hotend fan conected to 1LC tool board. It is noctua 3 wire fan. I configure tacho input and see around 4000 rpm. No problem. Is there way to pause/stop print when fan is stoped/slow down to some rpm? Or run some macro when this happend...
      Many thanks.

      BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
      SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

      Petr

      cosmowave 1 Reply Last reply Reply Quote 0
      • cosmowave
        cosmowave @PetrKroupa last edited by

        @petrkroupa You can check the rpm in daemon.g

        Mankati FSXT+, DeltaTowerV2, CBot3D

        1 Reply Last reply Reply Quote 0
        • tecno
          tecno last edited by

          Why bother with more than 2 wires and full speed as you need the air flow.

          My noctua starts at 45°C

          PetrKroupa 1 Reply Last reply Reply Quote 1
          • PetrKroupa
            PetrKroupa @tecno last edited by

            @tecno - Mine also starts at 45 degrees. Basically, you're right. That is, provided that everything works. The moment the fan is broken or blocked by some dirt, you have a problem. I wouldn't start dealing with it until it happened to me. For example, PRŮŠA checks both fans.

            BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
            SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

            Petr

            cosmowave 1 Reply Last reply Reply Quote 1
            • cosmowave
              cosmowave @PetrKroupa last edited by

              @petrkroupa like i said.
              Create the deamon.g file in sys folder. Check there your rpm from object model.
              Note: deamon.g will run every 10sec, so your check can be delayed 10sec. But i think, this should not be a problem...

              Mankati FSXT+, DeltaTowerV2, CBot3D

              PetrKroupa dc42 3 Replies Last reply Reply Quote 1
              • PetrKroupa
                PetrKroupa @cosmowave last edited by

                @cosmowave - OK, thanks. I will try.

                BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
                SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

                Petr

                1 Reply Last reply Reply Quote 0
                • PetrKroupa
                  PetrKroupa @cosmowave last edited by

                  @cosmowave - I can not find "fans" or RPM in objects. Do you please have some link with right sintax. Many thanks.

                  BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
                  SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

                  Petr

                  cosmowave 1 Reply Last reply Reply Quote 0
                  • cosmowave
                    cosmowave @PetrKroupa last edited by

                    @petrkroupa I think the rpm is somewhere in the "sensors"
                    i'm not at the machine now...

                    Mankati FSXT+, DeltaTowerV2, CBot3D

                    1 Reply Last reply Reply Quote 0
                    • dc42
                      dc42 administrators @cosmowave last edited by dc42

                      @cosmowave said in Check hotend FAN RPM:

                      Note: deamon.g will run every 10sec, so your check can be delayed 10sec. But i think, this should not be a problem...

                      If you want it to run more frequently, use a while-loop in daemon.g - but include a G4 delay command (e.g. G4 S2 to delay two seconds) within the loop, to prevent it using too much CPU time.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • PetrKroupa
                        PetrKroupa last edited by

                        I tried to find the right object but I was not successful. Please send where to look. Thanks

                        BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
                        SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

                        Petr

                        dc42 1 Reply Last reply Reply Quote 0
                        • dc42
                          dc42 administrators @PetrKroupa last edited by

                          @petrkroupa it's fans[N].rpm where N is the fan number.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          PetrKroupa 1 Reply Last reply Reply Quote 1
                          • PetrKroupa
                            PetrKroupa @dc42 last edited by

                            @dc42 - Many thanks! I will put here whole code when it works.

                            BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
                            SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

                            Petr

                            1 Reply Last reply Reply Quote 0
                            • PetrKroupa
                              PetrKroupa last edited by PetrKroupa

                              It can definitely be improved a lot, but it is enough for the basic function. Thanks to everyone for the help.

                              daemon.g

                              G4 S1
                              
                              if heat.heaters[1].current > 55	&&	heat.heaters[1].current < 1000	; hotend temp more than 55c ?
                              		; hotend temp more than 55c ?, termostacic fan set to 45c (fan have time to start spin)
                              
                              	if fans[1].rpm < 500.0 				; hotend fan spining faster than 500rpm?
                              	
                              		M150 R128						; Neopixel red!
                              		M104 S0							; set hotend temp to 0c
                              		M291 P"Hotend fan error!!!"  S1
                              		M98 P"pause.g"					; run pause.g
                              		
                              	else
                              		;M150 U128						; Neopixel green
                              		
                              else
                              	
                              	;M150 U128							; Neopixel green
                              	
                              G4 S1
                              

                              BigOne:Duet3 6HC +1LC + Rpi4, mosquito hotend, 400x400x420
                              SmallOne : Duet3 6HC +1LC + Rpi4, mosquito hotend, 210x250x210

                              Petr

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