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

    PID Tuning

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    26
    1.0k
    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.
    • noblebranundefined
      noblebran
      last edited by

      I have done a lot of research, but when I try to PID tune, I get data back that is not for PID, but for R, C and D values. If I use M307 I can see the results, but when I went to use M500, I got an error M501 wasn't in the config. I added it and now I have a config-override, but there is basically no info in it except for the R, C & D values not the PID values I was aiming for.

      Issue is my hot end overshoots by 40 degrees C which causes a fault and I figured PID tuning would fix it.

      Sorry for all the newbie questions, I truly appreciate all the help and have done my due diligence.

      I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

      jay_s_ukundefined droftartsundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @noblebran
        last edited by

        @noblebran R, C and D are what are used by RRF.
        What were you expecting?

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        noblebranundefined 1 Reply Last reply Reply Quote 0
        • 64bitundefined
          64bit
          last edited by

          once you add M501 to the config, run the tuning again.

          After it runs, send M500.

          Honestly, who cares what value method it uses... It does the work for you. All you've got to do is save it.

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

            @noblebran M301 https://duet3d.dozuki.com/Wiki/Gcode#Section_M301_Set_PID_parameters sets the PID parameters, but we use M307 to model the heater process parameters; it's more flexible. See this note in the M301 description:

            Note: PID parameters are computed automatically when the M307 command is used to define the heater model, or from the default heater model if no M307 command is provided. You can use M301 to override those computed PID parameters, but this is not recommended because it prevents RepRapFirmware from using different PID parameters depending on the heating phase.

            I'm not sure, but you may see the current parameters in use if you send M301.

            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

            noblebranundefined 1 Reply Last reply Reply Quote 0
            • noblebranundefined
              noblebran @jay_s_uk
              last edited by

              @jay_s_uk I don't know, I literally am new to reprap, I have used smoothieware with the little monster printer and the board went up in smoke so I decided to go to the Duet. My apologies for asking.

              I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

              1 Reply Last reply Reply Quote 0
              • noblebranundefined
                noblebran @64bit
                last edited by

                @64bit It saved the RRF, not the PID.

                I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                • noblebranundefined
                  noblebran @droftarts
                  last edited by

                  @droftarts Thank you, I will try M307... I appreciate the response.

                  I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                  1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @noblebran
                    last edited by

                    @noblebran The output for PID tuning is an M307 line with R, C and D values so what you describe is expected.
                    What command did you use to tune the hotend/bed?

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    noblebranundefined 1 Reply Last reply Reply Quote 0
                    • noblebranundefined
                      noblebran @jay_s_uk
                      last edited by

                      @jay_s_uk I used "m303 h1 s210". I get the PID values when I type in M307 H1, but they don't seem to save as it doesn't help with the heating, it still fails and heats too fast (over runs by 15c+ and then faults).

                      I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                      • jay_s_ukundefined
                        jay_s_uk @noblebran
                        last edited by

                        @noblebran if you use a part cooling fan, I suggest using M303 T0 S210 instead and then the fan is ran during the tuning process so its affect can be taken into account.

                        What output did you get in the console when you ran the tuning? Does it match whats shown with the output of M307 H1?
                        Are you running the correct voltage heater cartridge for your system? What wattage is it?

                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                        noblebranundefined 2 Replies Last reply Reply Quote 0
                        • noblebranundefined
                          noblebran @jay_s_uk
                          last edited by

                          @jay_s_uk thank you, I do have the part cooling fans running during tuning. I am, I am running a 40 watt heat cartridge, I bought everything from e3d and its been great. Never had an issue.

                          m307 h1
                          

                          Heater 1 model: heating rate 3.658, cooling time constant 136.6, dead time 14.00, max PWM 1.00, calibration voltage 0.0, mode PID
                          Computed PID parameters: setpoint change: P3.5, I0.080, D34.2, load change: P3.5, I0.124, D34.2

                          I am running it now to see if it matches.

                          I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                          1 Reply Last reply Reply Quote 0
                          • noblebranundefined
                            noblebran @jay_s_uk
                            last edited by noblebran

                            @jay_s_uk now I get this:

                            Auto tuning heater 1 completed after 3 idle and 5 tuning cycles in 659 seconds. This heater needs the following M307 command:
                             M307 H1 B0 R3.539 C260.4 D14.22 S1.00 V23.1
                            Send M500 to save this command in config-override.g
                            
                            m307 h1
                            Heater 1 model: heating rate 3.539, cooling time constant 260.4, dead time 14.22, max PWM 1.00, calibration voltage 23.1, mode PID
                            Computed PID parameters: setpoint change: P3.5, I0.058, D35.3, load change: P3.5, I0.106, D35.3
                            

                            They seem to be slightly different but my heat temp still goes above 250 when aiming for 210.

                            I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                            jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                            • jay_s_ukundefined
                              jay_s_uk @noblebran
                              last edited by

                              @noblebran yep, that looks pretty normal.
                              Add M307 H1 B0 R3.539 C260.4 D14.22 S1.00 V23.1 to your config.g or send M500 (ensuring M501 is at the end of your config.g) and check that config-override.g matches

                              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                              noblebranundefined 1 Reply Last reply Reply Quote 0
                              • jay_s_ukundefined
                                jay_s_uk @noblebran
                                last edited by

                                @noblebran said in PID Tuning:

                                They seem to be slightly different but my heat temp still goes above 250 when aiming for 210.

                                did you tune as H1 or T0?

                                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                noblebranundefined 1 Reply Last reply Reply Quote 0
                                • noblebranundefined
                                  noblebran @jay_s_uk
                                  last edited by

                                  @jay_s_uk I tuned as H1 as my fan was already on.

                                  I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                  • jay_s_ukundefined
                                    jay_s_uk @noblebran
                                    last edited by

                                    @noblebran you're best of tuning using T0 as the PWM power will be adjusted automatically to take into account whether the fan is on or not

                                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                    noblebranundefined 2 Replies Last reply Reply Quote 0
                                    • noblebranundefined
                                      noblebran @jay_s_uk
                                      last edited by

                                      @jay_s_uk said in PID Tuning:

                                      M307 H1 B0 R3.539 C260.4 D14.22 S1.00 V23.1

                                      I had that in my config already, that is why I am so confused...

                                      I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                                      1 Reply Last reply Reply Quote 0
                                      • noblebranundefined
                                        noblebran @jay_s_uk
                                        last edited by

                                        @jay_s_uk I will do that.

                                        I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                                        1 Reply Last reply Reply Quote 0
                                        • noblebranundefined
                                          noblebran @jay_s_uk
                                          last edited by

                                          @jay_s_uk

                                          @jay_s_uk said in PID Tuning:

                                          @noblebran you're best of tuning using T0 as the PWM power will be adjusted automatically to take into account whether the fan is on or not

                                          Still after all the tuning, I am running the T0 as mentioned and look at this graph. I have seen literally no changes.

                                          5384298c-c21e-45cb-bbd1-f448958e2b56-image.png

                                          Crazy, huh???

                                          I own a Tevo Little Monster but there isn't much left of that except for the frame. Duet 2 Wifi + PanelDue 7i.

                                          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                          • jay_s_ukundefined
                                            jay_s_uk @noblebran
                                            last edited by

                                            @noblebran what type of hotend are you running? thats stupidly fast heat up
                                            is your config.g correct for your thermistor?

                                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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