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

    Observations on PID tuning

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    6
    16
    1.9k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      Heater tuning should normally be done using P1 (the default), unless you are using very old firmware. The only time P1 is likely to be problematic is if your hot end heater is over-powered, for example if you make the mistake of using a 12V heater cartridge on a 24V system.

      The heater tuning doesn't always establish the value of the dead time (D parameter in the M307 command) very accurately. If D is set too low then the temperature will oscillate; so if you see the temperature oscillating regularly even when not printing, then try increasing D, initially by about 50%. If D is set too high then the PID will be slow to respond to external changes, for example the print cooling fan turning on.

      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

      fcwiltundefined 1 Reply Last reply Reply Quote 0
      • garlicbreadundefined
        garlicbread
        last edited by garlicbread

        I'm using the latest stable firmware 2.01
        The supply voltage is 12V, and in theory the heater is 12V
        although the heater is a cheap china clone

        I just tried the following with some PLA in

        M303 H1 P1 S190
        

        This led to

        0_1534800806877_cbc89318-c2a8-436b-9f47-85f4668c1e27-image.png

        this was starting from room temperature

        0_1534801246394_16a4a294-b136-4981-a14b-8af4b4a081c2-image.png

        1 Reply Last reply Reply Quote 0
        • fcwiltundefined
          fcwilt @dc42
          last edited by

          @dc42 said in Observations on PID tuning:

          The only time P1 is likely to be problematic is if your hot end heater is over-powered, for example if you make the mistake of using a 12V heater cartridge on a 24V system.

          Curious.

          I check all my heaters to verify that they have a resistance which suggests they are 12v - which is what I need.

          And yet on all of my four printers using P1.00 has always resulted in the tuning process reporting "over powered".

          I usually end up in the 50% to 70% range.

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          3dmntbighkerundefined 1 Reply Last reply Reply Quote 0
          • garlicbreadundefined
            garlicbread
            last edited by

            P0.9 seems to be the highest I can go without generating a warning
            I think I might try that with adjusting the dead time
            since I now know that printing smooths out some of the oscilations

            1 Reply Last reply Reply Quote 0
            • 3dmntbighkerundefined
              3dmntbighker @fcwilt
              last edited by 3dmntbighker

              @fcwilt Mine is a 40W 24V cartridge, and my last PID run triggered the big red warning that it was likely to hit 600C in a thermal runaway. I used the numbers as generated anyway. Judging by the resistance I'm pretty sure the new cartridge is a 24V. But I got the warning at P1 anyway.

              Scratch built CoreXY with Maestro
              Heavily modified Ender 3 with Maestro
              MPCNC work in progress with Duet WiFi

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • fcwiltundefined
                fcwilt @3dmntbighker
                last edited by

                @3dmntbighker said in Observations on PID tuning:

                @fcwilt Mine is a 40W 24V cartridge, and my last PID run triggered the big red warning that it was likely to hit 600C in a thermal runaway. I used the numbers as generated anyway. Judging by the resistance I'm pretty sure the new cartridge is a 24V. But I got the warning at P1 anyway.

                I tend to be cautious when it comes to setting things on fire.

                Until dc42 tells us there is a bug in the code and the warnings are bogus I'm going to play it safe.

                Frederick

                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                1 Reply Last reply Reply Quote 0
                • brunofportoundefined
                  brunofporto
                  last edited by

                  Always measure you heat cartridge resistance to know your real power output.

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

                    The "over powered" warning for hot ends is very common, especially since E3D started shipping silicone socks with their hot ends without reducing the heater cartridge power to compensate. Most users ignore it. However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.

                    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

                    fcwiltundefined 3dmntbighkerundefined 2 Replies Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @dc42
                      last edited by

                      @dc42 said in Observations on PID tuning:

                      However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.

                      Thanks for the info.

                      So simply using a lower P setting is not sufficient to be safe?

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                      wilrikerundefined 1 Reply Last reply Reply Quote 0
                      • wilrikerundefined
                        wilriker @fcwilt
                        last edited by

                        @fcwilt said in Observations on PID tuning:

                        So simply using a lower P setting is not sufficient to be safe?

                        It will be OK as long as the MOSFET controlling the heater output does not fail short. In this case it would lead to full power heating at Vin voltage and no more control by the Duet. Given these fails are rare but they are a potential risk.

                        I am currently looking into introducing something like described in this thread to be able to cut power in this case.

                        Manuel
                        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                        with probably always latest firmware/DWC (incl. betas or self-compiled)
                        My Tool Collection

                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                        • fcwiltundefined
                          fcwilt @wilriker
                          last edited by

                          @wilriker said in Observations on PID tuning:

                          I am currently looking into introducing something like described in this thread to be able to cut power in this case.

                          There are network controlled outlets available.

                          https://3gstore.com/product/7755_single_outlet_remote_power_switch_app_controlled.html

                          I wonder if a Duet could send the needed command?

                          Frederick

                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                          wilrikerundefined 1 Reply Last reply Reply Quote 0
                          • wilrikerundefined
                            wilriker @fcwilt
                            last edited by

                            @fcwilt Technically they will work as well. I have a few concerns about them though.

                            1. First they are much more pricy then the linked solution
                            2. They are often proprietary systems where you have to use an app to switch them
                            3. Some of them offer to switch them from anywhere in the world but that requires to punch a hole in my firewall to some Chinese server I don't like that

                            Of course this is a ready built solution that is literally plug and play on the other hand.

                            Manuel
                            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                            with probably always latest firmware/DWC (incl. betas or self-compiled)
                            My Tool Collection

                            fcwiltundefined 1 Reply Last reply Reply Quote 0
                            • fcwiltundefined
                              fcwilt @wilriker
                              last edited by

                              @wilriker said in Observations on PID tuning:

                              @fcwilt Technically they will work as well. I have a few concerns about them though.

                              1. First they are much more pricy then the linked solution
                              2. They are often proprietary systems where you have to use an app to switch them
                              3. Some of them offer to switch them from anywhere in the world but that requires to punch a hole in my firewall to some Chinese server I don't like that

                              Of course this is a ready built solution that is literally plug and play on the other hand.

                              Yes it is more expensive but it is possibly "plug-and-play" with Duet.

                              There is no app involved or outside server. It's a very simple HTTP command set needed by the web server running in the unit.

                              The reason I mentioned it is that these devices have many applications. I have a few in my home controlling other things and if it could work with the Duet it would just be one more use.

                              Frederick

                              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                              wilrikerundefined 1 Reply Last reply Reply Quote 0
                              • wilrikerundefined
                                wilriker @fcwilt
                                last edited by

                                @fcwilt I can definitely see how convenient they are - but I like to tinker my solutions including the trial-and-error spectrum of it. 😁

                                Manuel
                                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                with probably always latest firmware/DWC (incl. betas or self-compiled)
                                My Tool Collection

                                1 Reply Last reply Reply Quote 0
                                • 3dmntbighkerundefined
                                  3dmntbighker @dc42
                                  last edited by

                                  @dc42 said in Observations on PID tuning:

                                  The "over powered" warning for hot ends is very common, especially since E3D started shipping silicone socks with their hot ends without reducing the heater cartridge power to compensate. Most users ignore it. However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.

                                  Damn, I just ordered a bunch of 40W heaters after my wire failed. Mine predicted 600C. Is there any point in tuning with a lower P setting at this point? Assuming I want to keep the 40's should I remove the silicone boot and re-tune at P1? Or is the best course to ditch the 40's and order the 30's? <grumble>

                                  Scratch built CoreXY with Maestro
                                  Heavily modified Ender 3 with Maestro
                                  MPCNC work in progress with Duet WiFi

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