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

    PID Tuning help needed

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    5
    31
    2.4k
    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.
    • jay_s_ukundefined
      jay_s_uk
      last edited by

      the oscillations are normal and it can take up to an hour or more to PID tune something. just let it run its course

      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

      Reefwarriorundefined 1 Reply Last reply Reply Quote 0
      • Reefwarriorundefined
        Reefwarrior @jay_s_uk
        last edited by

        @jay_s_uk said in PID Tuning help needed:

        the oscillations are normal and it can take up to an hour or more to PID tune something. just let it run its course

        Thanx, but is it normal to shoot 30+ degrees Pas target, and the oscillations do not get smaller!?

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

          @Reefwarrior yes. its measuring cooling and heating times

          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

          1 Reply Last reply Reply Quote 0
          • Reefwarriorundefined
            Reefwarrior
            last edited by

            @jay_s_uk Thank you - I will try again and let you know. Weird is that I started the PID process with a temperature of 240C, but on initial heating now it went past 320C. I suspect that the glass thingy (I forgot the name now!) that measures the temperature may not be calibrated/defined correctly.

            I know in Marlin you can choose the different options, but I haven't come across it in the duet firmware yet. Or am I missing something?

            Tinus 🙂

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

              @Reefwarrior yea, it shouldn't go as high as 320 on a 240 degree tune.
              The M308 line in config sets the thermistor. best finding out what you had in marlin so you can replicate it here

              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

              1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @Reefwarrior
                last edited by

                @Reefwarrior It sounds to me like you have a very over powered heater. Might it be 12V heater running in a 24V system? Are you able to measure the resistance of the heater cartridge? If so, post the value here and one of us will work out the wattage.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                Reefwarriorundefined 1 Reply Last reply Reply Quote 1
                • Reefwarriorundefined
                  Reefwarrior @deckingman
                  last edited by

                  @deckingman Hi, I get 4.1ohm. I don't know if this can be correct, as it 'feels' too little?

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

                    @Reefwarrior typical resistances

                    P\V --------------------- 12V---- 24V
                    40w (Red Leads) 3.6Ω 14.4Ω
                    25w (Blue Leads) 5.76Ω 23.04Ω

                    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

                    1 Reply Last reply Reply Quote 1
                    • deckingmanundefined
                      deckingman @Reefwarrior
                      last edited by deckingman

                      @Reefwarrior said in PID Tuning help needed:

                      @deckingman Hi, I get 4.1ohm. I don't know if this can be correct, as it 'feels' too little?

                      So, if my maths serves me correctly, V=IR, so I=V/R = 24/4.1 = 5.8536Amps. Wattage = VI = 24 x 5.853 = 140.48 Watts !!

                      If the voltage was 12, then the current becomes 2.9 Amps so the wattage would then be 12 x 2.9 = 35 Watts.

                      So it looks you have a nominal 40 watt \ 12V cartridge so when you put 24V through it, you get roughly 4 x the heating power.

                      Note. A 40 Watt/24V cartridge would have a resistance of about 14.5 Ohms.

                      Edit. A 40W/ 24v heater cartridge would draw about 1.65 Amps which is perfectly safe to use with the onboard MOSFETs - no need to use an external one.

                      Ian
                      https://somei3deas.wordpress.com/
                      https://www.youtube.com/@deckingman

                      1 Reply Last reply Reply Quote 1
                      • Reefwarriorundefined
                        Reefwarrior
                        last edited by Reefwarrior

                        Thank you all for the feedback. Yes seems I am running a 12V then at 24V. I take it I can't just put in a power factor of P0.25 to fix this? Or will it be better to rather just swap it out for a 24V cartridge?

                        deckingmanundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                        • deckingmanundefined
                          deckingman @Reefwarrior
                          last edited by deckingman

                          @Reefwarrior said in PID Tuning help needed:

                          Thank you all for the feedback. Yes seems I am running a 12V then at 24V. I take it I can't just put in a power factor of P0.25 to fix this? Or will it be better to rather just swap it out for a 24V cartridge?

                          Running 25% PWM is bad idea IMO. The problem is that, if a MOSFET fails, then you could end up with the full ("permanent" as in non PWM switched) 24V which could be a fire risk.

                          Ian
                          https://somei3deas.wordpress.com/
                          https://www.youtube.com/@deckingman

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

                            @Reefwarrior swap it. it will be unsafe until you do so

                            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

                            1 Reply Last reply Reply Quote 0
                            • Reefwarriorundefined
                              Reefwarrior
                              last edited by

                              Cool thank you. I will swap it out this afternoon then, and see if it is better.

                              With regards to the temperature measurement. Is it normal for it to jump up and down a few degrees? The graphs show spikes, instead of a normal flat line....

                              deckingmanundefined droftartsundefined 2 Replies Last reply Reply Quote 0
                              • deckingmanundefined
                                deckingman @Reefwarrior
                                last edited by

                                @Reefwarrior said in PID Tuning help needed:

                                Cool thank you. I will swap it out this afternoon then, and see if it is better.

                                With regards to the temperature measurement. Is it normal for it to jump up and down a few degrees? The graphs show spikes, instead of a normal flat line....

                                I think you'll find it's a lot more stable with a cartridge that is a better match to the hot end. The PID control can only do so much and when you have a heater that is over powered by a factor of 4 then you are likely to get overshoots when it turns on.

                                Ian
                                https://somei3deas.wordpress.com/
                                https://www.youtube.com/@deckingman

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

                                  @Reefwarrior said in PID Tuning help needed:

                                  Is it normal for it to jump up and down a few degrees?

                                  No, check your wiring. Either it's picking up interference (usually from stepper motor or endstop wiring), or there's a poor joint. It will also cause the PID tuning to fail, as it can't get a consistent reading, and it's probably why it's taking so long to tune.

                                  Are you using a thermistor PT1000, PT100 or thermocouple? There are ways to make the last two more reliable, by using four wires rather than just two.

                                  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

                                  Reefwarriorundefined 1 Reply Last reply Reply Quote 0
                                  • Reefwarriorundefined
                                    Reefwarrior @droftarts
                                    last edited by

                                    @droftarts Hi Ian,

                                    It looks like one of those little glass bead thingies that measures the temperature....

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

                                      @Reefwarrior Sounds like a thermistor. Check your wiring, and make sure the leads of the thermistor aren't grounding on the heater block, and that the thermistor bead is making good contact with the heater block (ie not flapping about in a big hole!). Cartridge thermistors, or PT1000, are generally easier to use and get good contact with. What kind of hot end is this?

                                      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

                                      Reefwarriorundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
                                      • Reefwarriorundefined
                                        Reefwarrior @droftarts
                                        last edited by

                                        @droftarts E3d v6 clone. I will take a look at the hotend too....

                                        1 Reply Last reply Reply Quote 0
                                        • deckingmanundefined
                                          deckingman @droftarts
                                          last edited by

                                          @droftarts Did you check the earlier posts? It transpires the OP has a 12V cartridge and a 24V system. So around 140 Watt instead of 35. Methinks, that's more likely to cause the oscillations.

                                          Ian
                                          https://somei3deas.wordpress.com/
                                          https://www.youtube.com/@deckingman

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

                                            @deckingman Yes, read the whole thread. @Reefwarrior said "The graphs show spikes". While I'm sure the heater can create a spike up in temperature, it probably can't create a drop as quickly! But a dodgy thermistor can, though I guess it could be a power drop across the board when the heater switches on, if the PSU isn't up to it.

                                            @Reefwarrior A screenshot of the temperature graph misbehaving would go some way to disambiguate the cause of the "spikes". Try wiggling the thermistor wires, see if that causes the spikes, too.

                                            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

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